@skmtc/core 0.0.984 → 0.16.1
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 +65 -32
- package/esm/_dnt.polyfills.d.ts +7 -0
- package/esm/_dnt.polyfills.d.ts.map +1 -0
- package/esm/anchors/CaptureSink.d.ts +83 -0
- package/esm/anchors/CaptureSink.d.ts.map +1 -0
- package/esm/anchors/CaptureSink.js +188 -0
- package/esm/anchors/ParserAdapter.d.ts +76 -0
- package/esm/anchors/ParserAdapter.d.ts.map +1 -0
- package/esm/anchors/ParserAdapter.js +19 -0
- package/esm/anchors/attribute.d.ts +25 -0
- package/esm/anchors/attribute.d.ts.map +1 -0
- package/esm/anchors/attribute.js +84 -0
- package/esm/anchors/buildSidecar.d.ts +54 -0
- package/esm/anchors/buildSidecar.d.ts.map +1 -0
- package/esm/anchors/buildSidecar.js +104 -0
- package/esm/anchors/generationMap.d.ts +67 -0
- package/esm/anchors/generationMap.d.ts.map +1 -0
- package/esm/anchors/generationMap.js +97 -0
- package/esm/anchors/postPass.d.ts +87 -0
- package/esm/anchors/postPass.d.ts.map +1 -0
- package/esm/anchors/postPass.js +77 -0
- package/esm/anchors/sidecar.d.ts +89 -0
- package/esm/anchors/sidecar.d.ts.map +1 -0
- package/esm/anchors/sidecar.js +99 -0
- package/esm/anchors/types.d.ts +51 -0
- package/esm/anchors/types.d.ts.map +1 -0
- package/esm/anchors/types.js +9 -0
- package/esm/app/validate.d.ts +1 -0
- package/esm/app/validate.d.ts.map +1 -1
- package/esm/app/validate.js +1 -0
- package/esm/context/CoreContext.d.ts +75 -39
- package/esm/context/CoreContext.d.ts.map +1 -1
- package/esm/context/CoreContext.js +184 -53
- package/esm/context/GenerateContext.d.ts +154 -115
- package/esm/context/GenerateContext.d.ts.map +1 -1
- package/esm/context/GenerateContext.js +884 -255
- package/esm/context/ParseContext.d.ts +165 -107
- package/esm/context/ParseContext.d.ts.map +1 -1
- package/esm/context/ParseContext.js +399 -116
- package/esm/context/ParseIssue.d.ts +80 -0
- package/esm/context/ParseIssue.d.ts.map +1 -0
- package/esm/context/ParseIssue.js +33 -0
- package/esm/context/RenderContext.d.ts +46 -24
- package/esm/context/RenderContext.d.ts.map +1 -1
- package/esm/context/RenderContext.js +140 -37
- package/esm/context/StackTrail.d.ts +68 -0
- package/esm/context/StackTrail.d.ts.map +1 -1
- package/esm/context/StackTrail.js +84 -0
- package/esm/context/generateTypes.d.ts +253 -70
- package/esm/context/generateTypes.d.ts.map +1 -1
- package/esm/context/generateTypes.js +33 -1
- package/esm/context/parseTypes.d.ts +148 -49
- package/esm/context/parseTypes.d.ts.map +1 -1
- package/esm/context/parseTypes.js +17 -0
- package/esm/context/tryParseAt.d.ts +70 -0
- package/esm/context/tryParseAt.d.ts.map +1 -0
- package/esm/context/tryParseAt.js +53 -0
- package/esm/deps/jsr.io/@std/fmt/1.0.10/colors.d.ts +700 -0
- package/esm/deps/jsr.io/@std/fmt/1.0.10/colors.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/fmt/1.0.10/colors.js +903 -0
- package/esm/deps/jsr.io/@std/fs/1.0.23/exists.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/fs/1.0.23/exists.js +271 -0
- package/esm/deps/jsr.io/@std/internal/1.0.13/_os.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/internal/1.0.13/_os.js +12 -0
- package/esm/deps/jsr.io/@std/internal/1.0.13/os.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/internal/1.0.13/os.js +5 -0
- package/esm/deps/jsr.io/@std/io/0.225.3/types.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/io/0.225.3/types.js +15 -0
- package/esm/deps/jsr.io/@std/io/0.225.3/write_all.d.ts +52 -0
- package/esm/deps/jsr.io/@std/io/0.225.3/write_all.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/io/0.225.3/write_all.js +61 -0
- package/esm/deps/jsr.io/@std/log/0.224.14/console_handler.js +1 -1
- package/esm/deps/jsr.io/@std/log/0.224.14/file_handler.js +1 -1
- package/esm/deps/jsr.io/@std/log/0.224.14/rotating_file_handler.js +1 -1
- package/esm/deps/jsr.io/@std/path/1.1.4/_common/assert_path.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/_common/constants.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/_common/from_file_url.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/_common/normalize.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/_common/normalize_string.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/join.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/join.js +29 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/normalize.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/normalize.js +32 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/posix/_util.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/posix/from_file_url.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/posix/join.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/posix/normalize.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/windows/_util.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/windows/from_file_url.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/windows/join.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/windows/normalize.d.ts.map +1 -0
- package/esm/dsl/CodeFileBase.d.ts +38 -0
- package/esm/dsl/CodeFileBase.d.ts.map +1 -0
- package/esm/dsl/CodeFileBase.js +60 -0
- package/esm/dsl/ContentSettings.d.ts +44 -20
- package/esm/dsl/ContentSettings.d.ts.map +1 -1
- package/esm/dsl/ContentSettings.js +35 -17
- package/esm/dsl/CustomValue.d.ts +3 -2
- package/esm/dsl/CustomValue.d.ts.map +1 -1
- package/esm/dsl/CustomValue.js +3 -2
- package/esm/dsl/Definition.d.ts +32 -200
- package/esm/dsl/Definition.d.ts.map +1 -1
- package/esm/dsl/Definition.js +16 -212
- package/esm/dsl/FileBase.d.ts +42 -0
- package/esm/dsl/FileBase.d.ts.map +1 -0
- package/esm/dsl/FileBase.js +53 -0
- package/esm/dsl/GeneratedValue.d.ts +2 -2
- package/esm/dsl/GeneratedValue.d.ts.map +1 -1
- package/esm/dsl/GeneratorKeys.d.ts +266 -73
- package/esm/dsl/GeneratorKeys.d.ts.map +1 -1
- package/esm/dsl/GeneratorKeys.js +199 -67
- package/esm/dsl/IdentifierBase.d.ts +55 -0
- package/esm/dsl/IdentifierBase.d.ts.map +1 -0
- package/esm/dsl/IdentifierBase.js +64 -0
- package/esm/dsl/IdentifierType.d.ts +31 -0
- package/esm/dsl/IdentifierType.d.ts.map +1 -0
- package/esm/dsl/IdentifierType.js +1 -0
- package/esm/dsl/ImportBase.d.ts +40 -0
- package/esm/dsl/ImportBase.d.ts.map +1 -0
- package/esm/dsl/ImportBase.js +24 -0
- package/esm/dsl/Inserted.d.ts +10 -10
- package/esm/dsl/Inserted.d.ts.map +1 -1
- package/esm/dsl/Inserted.js +8 -8
- package/esm/dsl/JsonFile.d.ts +2 -3
- package/esm/dsl/JsonFile.d.ts.map +1 -1
- package/esm/dsl/JsonFile.js +3 -9
- package/esm/dsl/Lang.d.ts +136 -0
- package/esm/dsl/Lang.d.ts.map +1 -0
- package/esm/dsl/Lang.js +1 -0
- package/esm/dsl/ReExportBase.d.ts +42 -0
- package/esm/dsl/ReExportBase.d.ts.map +1 -0
- package/esm/dsl/ReExportBase.js +27 -0
- package/esm/dsl/SnippetBase.d.ts +86 -0
- package/esm/dsl/SnippetBase.d.ts.map +1 -0
- package/esm/dsl/SnippetBase.js +113 -0
- package/esm/dsl/Stringable.d.ts +1 -0
- package/esm/dsl/Stringable.d.ts.map +1 -1
- package/esm/dsl/Stringable.js +9 -1
- package/esm/dsl/model/ModelDriver.d.ts +23 -58
- package/esm/dsl/model/ModelDriver.d.ts.map +1 -1
- package/esm/dsl/model/ModelDriver.js +86 -77
- package/esm/dsl/model/toModelEntry.d.ts +17 -23
- package/esm/dsl/model/toModelEntry.d.ts.map +1 -1
- package/esm/dsl/model/toModelEntry.js +7 -14
- package/esm/dsl/model/toModelProjectionBase.d.ts +125 -0
- package/esm/dsl/model/toModelProjectionBase.d.ts.map +1 -0
- package/esm/dsl/model/toModelProjectionBase.js +146 -0
- package/esm/dsl/model/types.d.ts +87 -54
- package/esm/dsl/model/types.d.ts.map +1 -1
- package/esm/dsl/operation/gql/GqlOperationDriver.d.ts +52 -0
- package/esm/dsl/operation/gql/GqlOperationDriver.d.ts.map +1 -0
- package/esm/dsl/operation/gql/GqlOperationDriver.js +203 -0
- package/esm/dsl/operation/gql/toGqlOperationEntry.d.ts +44 -0
- package/esm/dsl/operation/gql/toGqlOperationEntry.d.ts.map +1 -0
- package/esm/dsl/operation/gql/toGqlOperationEntry.js +45 -0
- package/esm/dsl/operation/gql/toGqlOperationProjectionBase.d.ts +128 -0
- package/esm/dsl/operation/gql/toGqlOperationProjectionBase.d.ts.map +1 -0
- package/esm/dsl/operation/gql/toGqlOperationProjectionBase.js +160 -0
- package/esm/dsl/operation/gql/types.d.ts +141 -0
- package/esm/dsl/operation/gql/types.d.ts.map +1 -0
- package/esm/dsl/operation/gql/types.js +1 -0
- package/esm/dsl/operation/oas/OasOperationDriver.d.ts +52 -0
- package/esm/dsl/operation/oas/OasOperationDriver.d.ts.map +1 -0
- package/esm/dsl/operation/oas/OasOperationDriver.js +220 -0
- package/esm/dsl/operation/oas/toOasOperationEntry.d.ts +70 -0
- package/esm/dsl/operation/oas/toOasOperationEntry.d.ts.map +1 -0
- package/esm/dsl/operation/oas/toOasOperationEntry.js +68 -0
- package/esm/dsl/operation/oas/toOasOperationProjectionBase.d.ts +144 -0
- package/esm/dsl/operation/oas/toOasOperationProjectionBase.d.ts.map +1 -0
- package/esm/dsl/operation/oas/toOasOperationProjectionBase.js +177 -0
- package/esm/dsl/operation/oas/types.d.ts +151 -0
- package/esm/dsl/operation/oas/types.d.ts.map +1 -0
- package/esm/dsl/operation/oas/types.js +1 -0
- package/esm/dsl/webhook/WebhookDriver.d.ts +50 -0
- package/esm/dsl/webhook/WebhookDriver.d.ts.map +1 -0
- package/esm/dsl/webhook/WebhookDriver.js +190 -0
- package/esm/dsl/webhook/toWebhookEntry.d.ts +58 -0
- package/esm/dsl/webhook/toWebhookEntry.d.ts.map +1 -0
- package/esm/dsl/webhook/toWebhookEntry.js +64 -0
- package/esm/dsl/webhook/toWebhookProjectionBase.d.ts +125 -0
- package/esm/dsl/webhook/toWebhookProjectionBase.d.ts.map +1 -0
- package/esm/dsl/webhook/toWebhookProjectionBase.js +160 -0
- package/esm/dsl/webhook/types.d.ts +149 -0
- package/esm/dsl/webhook/types.d.ts.map +1 -0
- package/esm/dsl/webhook/types.js +1 -0
- package/esm/enrichments/readEnrichments.d.ts +69 -0
- package/esm/enrichments/readEnrichments.d.ts.map +1 -0
- package/esm/enrichments/readEnrichments.js +59 -0
- package/esm/enrichments/toEnrichmentDescriptor.d.ts +97 -0
- package/esm/enrichments/toEnrichmentDescriptor.d.ts.map +1 -0
- package/esm/enrichments/toEnrichmentDescriptor.js +157 -0
- package/esm/gql/_helpers/recordAppliedDirectives.d.ts +25 -0
- package/esm/gql/_helpers/recordAppliedDirectives.d.ts.map +1 -0
- package/esm/gql/_helpers/recordAppliedDirectives.js +37 -0
- package/esm/gql/_helpers/unwrapType.d.ts +39 -0
- package/esm/gql/_helpers/unwrapType.d.ts.map +1 -0
- package/esm/gql/_helpers/unwrapType.js +47 -0
- package/esm/gql/argument/GqlArgument.d.ts +55 -0
- package/esm/gql/argument/GqlArgument.d.ts.map +1 -0
- package/esm/gql/argument/GqlArgument.js +83 -0
- package/esm/gql/document/GqlDocument.d.ts +93 -0
- package/esm/gql/document/GqlDocument.d.ts.map +1 -0
- package/esm/gql/document/GqlDocument.js +170 -0
- package/esm/gql/document/parseGqlDocument.d.ts +33 -0
- package/esm/gql/document/parseGqlDocument.d.ts.map +1 -0
- package/esm/gql/document/parseGqlDocument.js +185 -0
- package/esm/gql/enum/toEnumType.d.ts +29 -0
- package/esm/gql/enum/toEnumType.d.ts.map +1 -0
- package/esm/gql/enum/toEnumType.js +22 -0
- package/esm/gql/field/toFieldSchema.d.ts +38 -0
- package/esm/gql/field/toFieldSchema.d.ts.map +1 -0
- package/esm/gql/field/toFieldSchema.js +83 -0
- package/esm/gql/input/toInputType.d.ts +28 -0
- package/esm/gql/input/toInputType.d.ts.map +1 -0
- package/esm/gql/input/toInputType.js +46 -0
- package/esm/gql/interface/toInterfaceUnion.d.ts +28 -0
- package/esm/gql/interface/toInterfaceUnion.d.ts.map +1 -0
- package/esm/gql/interface/toInterfaceUnion.js +34 -0
- package/esm/gql/object/toObjectType.d.ts +23 -0
- package/esm/gql/object/toObjectType.d.ts.map +1 -0
- package/esm/gql/object/toObjectType.js +62 -0
- package/esm/gql/operation/GqlOperation.d.ts +63 -0
- package/esm/gql/operation/GqlOperation.d.ts.map +1 -0
- package/esm/gql/operation/GqlOperation.js +90 -0
- package/esm/gql/operation/synthesizeArgsObject.d.ts +22 -0
- package/esm/gql/operation/synthesizeArgsObject.d.ts.map +1 -0
- package/esm/gql/operation/synthesizeArgsObject.js +37 -0
- package/esm/gql/operation/toRootField.d.ts +26 -0
- package/esm/gql/operation/toRootField.d.ts.map +1 -0
- package/esm/gql/operation/toRootField.js +51 -0
- package/esm/gql/registry/GqlRegistry.d.ts +70 -0
- package/esm/gql/registry/GqlRegistry.d.ts.map +1 -0
- package/esm/gql/registry/GqlRegistry.js +76 -0
- package/esm/gql/rootType/GqlRootTypes.d.ts +15 -0
- package/esm/gql/rootType/GqlRootTypes.d.ts.map +1 -0
- package/esm/gql/rootType/GqlRootTypes.js +1 -0
- package/esm/gql/scalar/toScalarType.d.ts +33 -0
- package/esm/gql/scalar/toScalarType.d.ts.map +1 -0
- package/esm/gql/scalar/toScalarType.js +43 -0
- package/esm/gql/union/toUnionType.d.ts +24 -0
- package/esm/gql/union/toUnionType.d.ts.map +1 -0
- package/esm/gql/union/toUnionType.js +29 -0
- package/esm/helpers/collateExamples.d.ts +1 -0
- package/esm/helpers/collateExamples.d.ts.map +1 -1
- package/esm/helpers/collateExamples.js +1 -0
- package/esm/helpers/formatNumber.d.ts +1 -0
- package/esm/helpers/formatNumber.d.ts.map +1 -1
- package/esm/helpers/formatNumber.js +1 -0
- package/esm/helpers/isEmpty.d.ts +1 -0
- package/esm/helpers/isEmpty.d.ts.map +1 -1
- package/esm/helpers/isEmpty.js +1 -0
- package/esm/helpers/isImported.js +1 -1
- package/esm/helpers/refFns.d.ts +2 -1
- package/esm/helpers/refFns.d.ts.map +1 -1
- package/esm/helpers/refFns.js +1 -0
- package/esm/helpers/strings.d.ts +1 -0
- package/esm/helpers/strings.d.ts.map +1 -1
- package/esm/helpers/strings.js +1 -0
- package/esm/helpers/toResolvedArtifactPath.d.ts +1 -0
- package/esm/helpers/toResolvedArtifactPath.d.ts.map +1 -1
- package/esm/helpers/toResolvedArtifactPath.js +2 -1
- package/esm/helpers/toVariantList.d.ts +32 -0
- package/esm/helpers/toVariantList.d.ts.map +1 -0
- package/esm/helpers/toVariantList.js +31 -0
- package/esm/helpers/withVariant.d.ts +20 -0
- package/esm/helpers/withVariant.d.ts.map +1 -0
- package/esm/helpers/withVariant.js +27 -0
- package/esm/mod.d.ts +58 -37
- package/esm/mod.d.ts.map +1 -1
- package/esm/mod.js +61 -37
- package/esm/oas/array/Array.d.ts +5 -2
- package/esm/oas/array/Array.d.ts.map +1 -1
- package/esm/oas/array/Array.js +5 -2
- package/esm/oas/boolean/Boolean.d.ts +8 -2
- package/esm/oas/boolean/Boolean.d.ts.map +1 -1
- package/esm/oas/boolean/Boolean.js +8 -2
- package/esm/oas/components/Components.d.ts +1 -0
- package/esm/oas/components/Components.d.ts.map +1 -1
- package/esm/oas/components/Components.js +1 -0
- package/esm/oas/discriminator/Discriminator.d.ts +1 -0
- package/esm/oas/discriminator/Discriminator.d.ts.map +1 -1
- package/esm/oas/discriminator/Discriminator.js +1 -0
- package/esm/oas/document/Document.d.ts +56 -2
- package/esm/oas/document/Document.d.ts.map +1 -1
- package/esm/oas/document/Document.js +61 -1
- package/esm/oas/info/Info.d.ts +1 -0
- package/esm/oas/info/Info.d.ts.map +1 -1
- package/esm/oas/info/Info.js +1 -0
- package/esm/oas/integer/Integer.d.ts +5 -2
- package/esm/oas/integer/Integer.d.ts.map +1 -1
- package/esm/oas/integer/Integer.js +5 -2
- package/esm/oas/mediaType/MediaType.d.ts +4 -2
- package/esm/oas/mediaType/MediaType.d.ts.map +1 -1
- package/esm/oas/mediaType/MediaType.js +4 -2
- package/esm/oas/number/Number.d.ts +5 -2
- package/esm/oas/number/Number.d.ts.map +1 -1
- package/esm/oas/number/Number.js +5 -2
- package/esm/oas/object/Object.d.ts +5 -2
- package/esm/oas/object/Object.d.ts.map +1 -1
- package/esm/oas/object/Object.js +5 -2
- package/esm/oas/operation/Operation.d.ts +5 -2
- package/esm/oas/operation/Operation.d.ts.map +1 -1
- package/esm/oas/operation/Operation.js +5 -2
- package/esm/oas/parameter/Parameter.d.ts +5 -2
- package/esm/oas/parameter/Parameter.d.ts.map +1 -1
- package/esm/oas/parameter/Parameter.js +5 -2
- package/esm/oas/ref/Ref.d.ts +37 -6
- package/esm/oas/ref/Ref.d.ts.map +1 -1
- package/esm/oas/ref/Ref.js +67 -40
- package/esm/oas/requestBody/RequestBody.d.ts +5 -2
- package/esm/oas/requestBody/RequestBody.d.ts.map +1 -1
- package/esm/oas/requestBody/RequestBody.js +5 -2
- package/esm/oas/response/Response.d.ts +5 -2
- package/esm/oas/response/Response.d.ts.map +1 -1
- package/esm/oas/response/Response.js +5 -2
- package/esm/oas/schema/Schema.d.ts +1 -0
- package/esm/oas/schema/Schema.d.ts.map +1 -1
- package/esm/oas/schema/Schema.js +1 -1
- package/esm/oas/server/Server.d.ts +1 -0
- package/esm/oas/server/Server.d.ts.map +1 -1
- package/esm/oas/server/Server.js +1 -0
- package/esm/oas/string/String.d.ts +5 -2
- package/esm/oas/string/String.d.ts.map +1 -1
- package/esm/oas/string/String.js +5 -2
- package/esm/oas/tag/Tag.d.ts +4 -0
- package/esm/oas/tag/Tag.d.ts.map +1 -1
- package/esm/oas/tag/Tag.js +4 -0
- package/esm/oas/tag/tag-types.d.ts +2 -0
- package/esm/oas/tag/tag-types.d.ts.map +1 -1
- package/esm/oas/tag/tag-types.js +3 -2
- package/esm/oas/union/Union.d.ts +4 -2
- package/esm/oas/union/Union.d.ts.map +1 -1
- package/esm/oas/union/Union.js +4 -2
- package/esm/oas/unknown/Unknown.d.ts +5 -2
- package/esm/oas/unknown/Unknown.d.ts.map +1 -1
- package/esm/oas/unknown/Unknown.js +5 -2
- package/esm/oas/void/Void.d.ts +6 -3
- package/esm/oas/void/Void.d.ts.map +1 -1
- package/esm/oas/void/Void.js +6 -3
- package/esm/oas/webhook/Webhook.d.ts +109 -0
- package/esm/oas/webhook/Webhook.d.ts.map +1 -0
- package/esm/oas/webhook/Webhook.js +166 -0
- package/esm/parse/toOasDialect.d.ts +26 -0
- package/esm/parse/toOasDialect.d.ts.map +1 -0
- package/esm/parse/toOasDialect.js +22 -0
- package/esm/parse/v3-0/_helpers/parseDefault.d.ts +44 -0
- package/esm/parse/v3-0/_helpers/parseDefault.d.ts.map +1 -0
- package/esm/parse/v3-0/_helpers/parseDefault.js +39 -0
- package/esm/parse/v3-0/_helpers/parseEnum.d.ts +14 -0
- package/esm/parse/v3-0/_helpers/parseEnum.d.ts.map +1 -0
- package/esm/parse/v3-0/_helpers/parseEnum.js +23 -0
- package/esm/parse/v3-0/_helpers/parseExample.d.ts +42 -0
- package/esm/parse/v3-0/_helpers/parseExample.d.ts.map +1 -0
- package/esm/parse/v3-0/_helpers/parseExample.js +37 -0
- package/esm/parse/v3-0/_helpers/parseNullable.d.ts +142 -0
- package/esm/parse/v3-0/_helpers/parseNullable.d.ts.map +1 -0
- package/esm/parse/v3-0/_merge-all-of/check-array-item-type-conflicts.d.ts.map +1 -0
- package/esm/parse/v3-0/_merge-all-of/check-at-least-one-type-match.d.ts.map +1 -0
- package/esm/parse/v3-0/_merge-all-of/check-enum-conflicts.d.ts.map +1 -0
- package/esm/parse/v3-0/_merge-all-of/check-format-conflicts.d.ts.map +1 -0
- package/esm/parse/v3-0/_merge-all-of/check-number-constraints-conflicts.d.ts.map +1 -0
- package/esm/parse/v3-0/_merge-all-of/check-read-only-write-only-conflicts.d.ts.map +1 -0
- package/esm/parse/v3-0/_merge-all-of/check-type-conflicts.d.ts.map +1 -0
- package/esm/parse/v3-0/_merge-all-of/cross-product.d.ts.map +1 -0
- package/esm/parse/v3-0/_merge-all-of/decompose-intersection.d.ts.map +1 -0
- package/esm/parse/v3-0/_merge-all-of/decompose-union.d.ts.map +1 -0
- package/esm/parse/v3-0/_merge-all-of/decompose-union.js +73 -0
- package/esm/parse/v3-0/_merge-all-of/generic-merge.d.ts.map +1 -0
- package/esm/parse/v3-0/_merge-all-of/is-equal.d.ts.map +1 -0
- package/esm/parse/v3-0/_merge-all-of/merge-array-constraints.d.ts.map +1 -0
- package/esm/parse/v3-0/_merge-all-of/merge-boolean-constraints.d.ts.map +1 -0
- package/esm/parse/v3-0/_merge-all-of/merge-enum-values.d.ts.map +1 -0
- package/esm/parse/v3-0/_merge-all-of/merge-integer-constraints.d.ts.map +1 -0
- package/esm/parse/v3-0/_merge-all-of/merge-intersection.d.ts.map +1 -0
- package/esm/parse/v3-0/_merge-all-of/merge-number-constraints.d.ts.map +1 -0
- package/esm/parse/v3-0/_merge-all-of/merge-object-constraints.d.ts.map +1 -0
- package/esm/parse/v3-0/_merge-all-of/merge-properties.d.ts.map +1 -0
- package/esm/parse/v3-0/_merge-all-of/merge-required.d.ts.map +1 -0
- package/esm/parse/v3-0/_merge-all-of/merge-string-constraints.d.ts.map +1 -0
- package/esm/parse/v3-0/_merge-all-of/merge-union.d.ts.map +1 -0
- package/esm/parse/v3-0/_merge-all-of/merge-union.js +61 -0
- package/esm/parse/v3-0/_merge-all-of/merge.d.ts.map +1 -0
- package/esm/parse/v3-0/_merge-all-of/merge.js +155 -0
- package/esm/parse/v3-0/_merge-all-of/nullable-merge.d.ts.map +1 -0
- package/esm/parse/v3-0/_merge-all-of/nullable-merge.js +12 -0
- package/esm/parse/v3-0/_merge-all-of/types.d.ts.map +1 -0
- package/esm/parse/v3-0/array/toArray.d.ts +81 -0
- package/esm/parse/v3-0/array/toArray.d.ts.map +1 -0
- package/esm/parse/v3-0/array/toArray.js +165 -0
- package/esm/parse/v3-0/boolean/toBoolean.d.ts +79 -0
- package/esm/parse/v3-0/boolean/toBoolean.d.ts.map +1 -0
- package/esm/parse/v3-0/boolean/toBoolean.js +139 -0
- package/esm/parse/v3-0/components/toComponentsV3.d.ts +11 -0
- package/esm/parse/v3-0/components/toComponentsV3.d.ts.map +1 -0
- package/esm/parse/v3-0/components/toComponentsV3.js +39 -0
- package/esm/parse/v3-0/contact/toContactV3.d.ts +6 -0
- package/esm/parse/v3-0/contact/toContactV3.d.ts.map +1 -0
- package/esm/parse/v3-0/contact/toContactV3.js +18 -0
- package/esm/parse/v3-0/discriminator/toDiscriminatorV3.d.ts +11 -0
- package/esm/parse/v3-0/discriminator/toDiscriminatorV3.d.ts.map +1 -0
- package/esm/parse/v3-0/discriminator/toDiscriminatorV3.js +20 -0
- package/esm/parse/v3-0/document/toDocumentFieldsV3.d.ts +14 -0
- package/esm/parse/v3-0/document/toDocumentFieldsV3.d.ts.map +1 -0
- package/esm/parse/v3-0/document/toDocumentFieldsV3.js +32 -0
- package/esm/parse/v3-0/example/toExamplesV3.d.ts +68 -0
- package/esm/parse/v3-0/example/toExamplesV3.d.ts.map +1 -0
- package/esm/parse/v3-0/example/toExamplesV3.js +89 -0
- package/esm/parse/v3-0/externalDocs/toExternalDocs.d.ts +11 -0
- package/esm/parse/v3-0/externalDocs/toExternalDocs.d.ts.map +1 -0
- package/esm/parse/v3-0/externalDocs/toExternalDocs.js +15 -0
- package/esm/parse/v3-0/header/toHeadersV3.d.ts +17 -0
- package/esm/parse/v3-0/header/toHeadersV3.d.ts.map +1 -0
- package/esm/parse/v3-0/header/toHeadersV3.js +47 -0
- package/esm/parse/v3-0/info/toInfoV3.d.ts +11 -0
- package/esm/parse/v3-0/info/toInfoV3.d.ts.map +1 -0
- package/esm/parse/v3-0/info/toInfoV3.js +23 -0
- package/esm/parse/v3-0/integer/toInteger.d.ts +22 -0
- package/esm/parse/v3-0/integer/toInteger.d.ts.map +1 -0
- package/esm/parse/v3-0/integer/toInteger.js +112 -0
- package/esm/parse/v3-0/license/toLicenseV3.d.ts +6 -0
- package/esm/parse/v3-0/license/toLicenseV3.d.ts.map +1 -0
- package/esm/parse/v3-0/license/toLicenseV3.js +17 -0
- package/esm/parse/v3-0/mediaType/toMediaTypeItemV3.d.ts +315 -0
- package/esm/parse/v3-0/mediaType/toMediaTypeItemV3.d.ts.map +1 -0
- package/esm/parse/v3-0/mediaType/toMediaTypeItemV3.js +314 -0
- package/esm/parse/v3-0/number/toNumber.d.ts +11 -0
- package/esm/parse/v3-0/number/toNumber.d.ts.map +1 -0
- package/esm/parse/v3-0/number/toNumber.js +112 -0
- package/esm/parse/v3-0/object/toAdditionalPropertiesV3.d.ts +12 -0
- package/esm/parse/v3-0/object/toAdditionalPropertiesV3.d.ts.map +1 -0
- package/esm/parse/v3-0/object/toObject.d.ts +11 -0
- package/esm/parse/v3-0/object/toObject.d.ts.map +1 -0
- package/esm/parse/v3-0/object/toObject.js +88 -0
- package/esm/parse/v3-0/operation/toOperationsV3.d.ts +26 -0
- package/esm/parse/v3-0/operation/toOperationsV3.d.ts.map +1 -0
- package/esm/parse/v3-0/operation/toOperationsV3.js +113 -0
- package/esm/parse/v3-0/parameter/toParameterV3.d.ts +40 -0
- package/esm/parse/v3-0/parameter/toParameterV3.d.ts.map +1 -0
- package/esm/parse/v3-0/parameter/toParameterV3.js +112 -0
- package/esm/parse/v3-0/pathItem/toPathItemV3.d.ts +11 -0
- package/esm/parse/v3-0/pathItem/toPathItemV3.d.ts.map +1 -0
- package/esm/parse/v3-0/pathItem/toPathItemV3.js +18 -0
- package/esm/parse/v3-0/ref/toRefV31.d.ts +20 -0
- package/esm/parse/v3-0/ref/toRefV31.d.ts.map +1 -0
- package/esm/parse/v3-0/ref/toRefV31.js +10 -0
- package/esm/parse/v3-0/requestBody/toRequestBodiesV3.d.ts +19 -0
- package/esm/parse/v3-0/requestBody/toRequestBodiesV3.d.ts.map +1 -0
- package/esm/parse/v3-0/requestBody/toRequestBodiesV3.js +44 -0
- package/esm/parse/v3-0/response/toResponseV3.d.ts +24 -0
- package/esm/parse/v3-0/response/toResponseV3.d.ts.map +1 -0
- package/esm/parse/v3-0/response/toResponseV3.js +52 -0
- package/esm/parse/v3-0/schema/toSchemasV3.d.ts +30 -0
- package/esm/parse/v3-0/schema/toSchemasV3.d.ts.map +1 -0
- package/esm/parse/v3-0/schema/toSchemasV3.js +296 -0
- package/esm/parse/v3-0/securityRequirement/toSecurityRequirement.d.ts +10 -0
- package/esm/parse/v3-0/securityRequirement/toSecurityRequirement.d.ts.map +1 -0
- package/esm/parse/v3-0/securityRequirement/toSecurityRequirement.js +9 -0
- package/esm/parse/v3-0/securitySchemes/toSecuritySchemes.d.ts +18 -0
- package/esm/parse/v3-0/securitySchemes/toSecuritySchemes.d.ts.map +1 -0
- package/esm/parse/v3-0/securitySchemes/toSecuritySchemes.js +105 -0
- package/esm/parse/v3-0/server/toServerV3.d.ts +23 -0
- package/esm/parse/v3-0/server/toServerV3.d.ts.map +1 -0
- package/esm/parse/v3-0/server/toServerV3.js +30 -0
- package/esm/parse/v3-0/serverVariable/toServerVariableV3.d.ts +23 -0
- package/esm/parse/v3-0/serverVariable/toServerVariableV3.d.ts.map +1 -0
- package/esm/parse/v3-0/serverVariable/toServerVariableV3.js +30 -0
- package/esm/parse/v3-0/specificationExtensions/toSpecificationExtensionsV3.d.ts +15 -0
- package/esm/parse/v3-0/specificationExtensions/toSpecificationExtensionsV3.d.ts.map +1 -0
- package/esm/parse/v3-0/specificationExtensions/toSpecificationExtensionsV3.js +25 -0
- package/esm/parse/v3-0/string/toString.d.ts +147 -0
- package/esm/parse/v3-0/string/toString.d.ts.map +1 -0
- package/esm/parse/v3-0/string/toString.js +218 -0
- package/esm/parse/v3-0/tag/toTagsV3.d.ts +17 -0
- package/esm/parse/v3-0/tag/toTagsV3.d.ts.map +1 -0
- package/esm/parse/v3-0/tag/toTagsV3.js +27 -0
- package/esm/parse/v3-0/union/toUnion.d.ts +13 -0
- package/esm/parse/v3-0/union/toUnion.d.ts.map +1 -0
- package/esm/parse/v3-0/union/toUnion.js +66 -0
- package/esm/parse/v3-0/unknown/toUnknown.d.ts +11 -0
- package/esm/parse/v3-0/unknown/toUnknown.d.ts.map +1 -0
- package/esm/parse/v3-0/unknown/toUnknown.js +19 -0
- package/esm/parse/v3-0/webhook/toWebhooksV3.d.ts +49 -0
- package/esm/parse/v3-0/webhook/toWebhooksV3.d.ts.map +1 -0
- package/esm/parse/v3-0/webhook/toWebhooksV3.js +130 -0
- package/esm/parse/v3-1/_helpers/parseDefault.d.ts +44 -0
- package/esm/parse/v3-1/_helpers/parseDefault.d.ts.map +1 -0
- package/esm/parse/v3-1/_helpers/parseDefault.js +39 -0
- package/esm/parse/v3-1/_helpers/parseEnum.d.ts +14 -0
- package/esm/parse/v3-1/_helpers/parseEnum.d.ts.map +1 -0
- package/esm/parse/v3-1/_helpers/parseEnum.js +23 -0
- package/esm/parse/v3-1/_helpers/parseExample.d.ts +42 -0
- package/esm/parse/v3-1/_helpers/parseExample.d.ts.map +1 -0
- package/esm/parse/v3-1/_helpers/parseExample.js +37 -0
- package/esm/parse/v3-1/_helpers/parseNullable.d.ts +142 -0
- package/esm/parse/v3-1/_helpers/parseNullable.d.ts.map +1 -0
- package/esm/parse/v3-1/_helpers/parseNullable.js +140 -0
- package/esm/parse/v3-1/_merge-all-of/check-array-item-type-conflicts.d.ts.map +1 -0
- package/esm/parse/v3-1/_merge-all-of/check-array-item-type-conflicts.js +9 -0
- package/esm/parse/v3-1/_merge-all-of/check-at-least-one-type-match.d.ts.map +1 -0
- package/esm/parse/v3-1/_merge-all-of/check-at-least-one-type-match.js +5 -0
- package/esm/parse/v3-1/_merge-all-of/check-enum-conflicts.d.ts.map +1 -0
- package/esm/parse/v3-1/_merge-all-of/check-enum-conflicts.js +11 -0
- package/esm/parse/v3-1/_merge-all-of/check-format-conflicts.d.ts.map +1 -0
- package/esm/parse/v3-1/_merge-all-of/check-format-conflicts.js +5 -0
- package/esm/parse/v3-1/_merge-all-of/check-number-constraints-conflicts.d.ts.map +1 -0
- package/esm/parse/v3-1/_merge-all-of/check-number-constraints-conflicts.js +11 -0
- package/esm/parse/v3-1/_merge-all-of/check-read-only-write-only-conflicts.d.ts.map +1 -0
- package/esm/parse/v3-1/_merge-all-of/check-read-only-write-only-conflicts.js +5 -0
- package/esm/parse/v3-1/_merge-all-of/check-type-conflicts.d.ts.map +1 -0
- package/esm/parse/v3-1/_merge-all-of/check-type-conflicts.js +5 -0
- package/esm/parse/v3-1/_merge-all-of/cross-product.d.ts.map +1 -0
- package/esm/parse/v3-1/_merge-all-of/cross-product.js +3 -0
- package/esm/parse/v3-1/_merge-all-of/decompose-intersection.d.ts.map +1 -0
- package/esm/parse/v3-1/_merge-all-of/decompose-intersection.js +27 -0
- package/esm/parse/v3-1/_merge-all-of/decompose-union.d.ts.map +1 -0
- package/esm/parse/v3-1/_merge-all-of/decompose-union.js +73 -0
- package/esm/parse/v3-1/_merge-all-of/generic-merge.d.ts.map +1 -0
- package/esm/parse/v3-1/_merge-all-of/generic-merge.js +12 -0
- package/esm/parse/v3-1/_merge-all-of/is-equal.d.ts.map +1 -0
- package/esm/parse/v3-1/_merge-all-of/is-equal.js +19 -0
- package/esm/parse/v3-1/_merge-all-of/merge-array-constraints.d.ts.map +1 -0
- package/esm/parse/v3-1/_merge-all-of/merge-array-constraints.js +44 -0
- package/esm/parse/v3-1/_merge-all-of/merge-boolean-constraints.d.ts.map +1 -0
- package/esm/parse/v3-1/_merge-all-of/merge-boolean-constraints.js +7 -0
- package/esm/parse/v3-1/_merge-all-of/merge-enum-values.d.ts.map +1 -0
- package/esm/parse/v3-1/_merge-all-of/merge-enum-values.js +32 -0
- package/esm/parse/v3-1/_merge-all-of/merge-integer-constraints.d.ts.map +1 -0
- package/esm/parse/v3-1/_merge-all-of/merge-integer-constraints.js +41 -0
- package/esm/parse/v3-1/_merge-all-of/merge-intersection.d.ts.map +1 -0
- package/esm/parse/v3-1/_merge-all-of/merge-intersection.js +16 -0
- package/esm/parse/v3-1/_merge-all-of/merge-number-constraints.d.ts.map +1 -0
- package/esm/parse/v3-1/_merge-all-of/merge-number-constraints.js +41 -0
- package/esm/parse/v3-1/_merge-all-of/merge-object-constraints.d.ts.map +1 -0
- package/esm/parse/v3-1/_merge-all-of/merge-object-constraints.js +28 -0
- package/esm/parse/v3-1/_merge-all-of/merge-properties.d.ts.map +1 -0
- package/esm/parse/v3-1/_merge-all-of/merge-properties.js +25 -0
- package/esm/parse/v3-1/_merge-all-of/merge-required.d.ts.map +1 -0
- package/esm/parse/v3-1/_merge-all-of/merge-required.js +10 -0
- package/esm/parse/v3-1/_merge-all-of/merge-string-constraints.d.ts.map +1 -0
- package/esm/parse/v3-1/_merge-all-of/merge-string-constraints.js +55 -0
- package/esm/parse/v3-1/_merge-all-of/merge-union.d.ts.map +1 -0
- package/esm/parse/v3-1/_merge-all-of/merge-union.js +61 -0
- package/esm/parse/v3-1/_merge-all-of/merge.d.ts.map +1 -0
- package/esm/parse/v3-1/_merge-all-of/merge.js +155 -0
- package/esm/parse/v3-1/_merge-all-of/nullable-merge.d.ts.map +1 -0
- package/esm/parse/v3-1/_merge-all-of/nullable-merge.js +12 -0
- package/esm/parse/v3-1/_merge-all-of/types.d.ts.map +1 -0
- package/esm/parse/v3-1/_merge-all-of/types.js +2 -0
- package/esm/parse/v3-1/array/toArray.d.ts +81 -0
- package/esm/parse/v3-1/array/toArray.d.ts.map +1 -0
- package/esm/parse/v3-1/array/toArray.js +165 -0
- package/esm/parse/v3-1/boolean/toBoolean.d.ts +79 -0
- package/esm/parse/v3-1/boolean/toBoolean.d.ts.map +1 -0
- package/esm/parse/v3-1/boolean/toBoolean.js +139 -0
- package/esm/parse/v3-1/components/toComponentsV3.d.ts +11 -0
- package/esm/parse/v3-1/components/toComponentsV3.d.ts.map +1 -0
- package/esm/parse/v3-1/components/toComponentsV3.js +39 -0
- package/esm/parse/v3-1/contact/toContactV3.d.ts +6 -0
- package/esm/parse/v3-1/contact/toContactV3.d.ts.map +1 -0
- package/esm/parse/v3-1/contact/toContactV3.js +18 -0
- package/esm/parse/v3-1/discriminator/toDiscriminatorV3.d.ts +11 -0
- package/esm/parse/v3-1/discriminator/toDiscriminatorV3.d.ts.map +1 -0
- package/esm/parse/v3-1/discriminator/toDiscriminatorV3.js +20 -0
- package/esm/parse/v3-1/document/toDocumentFieldsV3.d.ts +15 -0
- package/esm/parse/v3-1/document/toDocumentFieldsV3.d.ts.map +1 -0
- package/esm/parse/v3-1/document/toDocumentFieldsV3.js +32 -0
- package/esm/parse/v3-1/example/toExamplesV3.d.ts +68 -0
- package/esm/parse/v3-1/example/toExamplesV3.d.ts.map +1 -0
- package/esm/parse/v3-1/example/toExamplesV3.js +89 -0
- package/esm/parse/v3-1/externalDocs/toExternalDocs.d.ts +11 -0
- package/esm/parse/v3-1/externalDocs/toExternalDocs.d.ts.map +1 -0
- package/esm/parse/v3-1/externalDocs/toExternalDocs.js +15 -0
- package/esm/parse/v3-1/header/toHeadersV3.d.ts +17 -0
- package/esm/parse/v3-1/header/toHeadersV3.d.ts.map +1 -0
- package/esm/parse/v3-1/header/toHeadersV3.js +47 -0
- package/esm/parse/v3-1/info/toInfoV3.d.ts +11 -0
- package/esm/parse/v3-1/info/toInfoV3.d.ts.map +1 -0
- package/esm/parse/v3-1/info/toInfoV3.js +23 -0
- package/esm/parse/v3-1/integer/toInteger.d.ts +22 -0
- package/esm/parse/v3-1/integer/toInteger.d.ts.map +1 -0
- package/esm/parse/v3-1/integer/toInteger.js +112 -0
- package/esm/parse/v3-1/license/toLicenseV3.d.ts +6 -0
- package/esm/parse/v3-1/license/toLicenseV3.d.ts.map +1 -0
- package/esm/parse/v3-1/license/toLicenseV3.js +17 -0
- package/esm/parse/v3-1/mediaType/toMediaTypeItemV3.d.ts +315 -0
- package/esm/parse/v3-1/mediaType/toMediaTypeItemV3.d.ts.map +1 -0
- package/esm/parse/v3-1/mediaType/toMediaTypeItemV3.js +314 -0
- package/esm/parse/v3-1/number/toNumber.d.ts +11 -0
- package/esm/parse/v3-1/number/toNumber.d.ts.map +1 -0
- package/esm/parse/v3-1/number/toNumber.js +112 -0
- package/esm/parse/v3-1/object/toAdditionalPropertiesV3.d.ts +12 -0
- package/esm/parse/v3-1/object/toAdditionalPropertiesV3.d.ts.map +1 -0
- package/esm/parse/v3-1/object/toAdditionalPropertiesV3.js +10 -0
- package/esm/parse/v3-1/object/toObject.d.ts +11 -0
- package/esm/parse/v3-1/object/toObject.d.ts.map +1 -0
- package/esm/parse/v3-1/object/toObject.js +88 -0
- package/esm/parse/v3-1/operation/toOperationsV3.d.ts +26 -0
- package/esm/parse/v3-1/operation/toOperationsV3.d.ts.map +1 -0
- package/esm/parse/v3-1/operation/toOperationsV3.js +116 -0
- package/esm/parse/v3-1/parameter/toParameterV3.d.ts +40 -0
- package/esm/parse/v3-1/parameter/toParameterV3.d.ts.map +1 -0
- package/esm/parse/v3-1/parameter/toParameterV3.js +112 -0
- package/esm/parse/v3-1/pathItem/toPathItemV3.d.ts +11 -0
- package/esm/parse/v3-1/pathItem/toPathItemV3.d.ts.map +1 -0
- package/esm/parse/v3-1/pathItem/toPathItemV3.js +18 -0
- package/esm/parse/v3-1/ref/toRefV31.d.ts +20 -0
- package/esm/parse/v3-1/ref/toRefV31.d.ts.map +1 -0
- package/esm/parse/v3-1/ref/toRefV31.js +10 -0
- package/esm/parse/v3-1/requestBody/toRequestBodiesV3.d.ts +19 -0
- package/esm/parse/v3-1/requestBody/toRequestBodiesV3.d.ts.map +1 -0
- package/esm/parse/v3-1/requestBody/toRequestBodiesV3.js +44 -0
- package/esm/parse/v3-1/response/toResponseV3.d.ts +24 -0
- package/esm/parse/v3-1/response/toResponseV3.d.ts.map +1 -0
- package/esm/parse/v3-1/response/toResponseV3.js +52 -0
- package/esm/parse/v3-1/schema/toSchemasV3.d.ts +30 -0
- package/esm/parse/v3-1/schema/toSchemasV3.d.ts.map +1 -0
- package/esm/parse/v3-1/schema/toSchemasV3.js +478 -0
- package/esm/parse/v3-1/securityRequirement/toSecurityRequirement.d.ts +10 -0
- package/esm/parse/v3-1/securityRequirement/toSecurityRequirement.d.ts.map +1 -0
- package/esm/parse/v3-1/securityRequirement/toSecurityRequirement.js +9 -0
- package/esm/parse/v3-1/securitySchemes/toSecuritySchemes.d.ts +18 -0
- package/esm/parse/v3-1/securitySchemes/toSecuritySchemes.d.ts.map +1 -0
- package/esm/parse/v3-1/securitySchemes/toSecuritySchemes.js +105 -0
- package/esm/parse/v3-1/server/toServerV3.d.ts +23 -0
- package/esm/parse/v3-1/server/toServerV3.d.ts.map +1 -0
- package/esm/parse/v3-1/server/toServerV3.js +30 -0
- package/esm/parse/v3-1/serverVariable/toServerVariableV3.d.ts +23 -0
- package/esm/parse/v3-1/serverVariable/toServerVariableV3.d.ts.map +1 -0
- package/esm/parse/v3-1/serverVariable/toServerVariableV3.js +30 -0
- package/esm/parse/v3-1/specificationExtensions/toSpecificationExtensionsV3.d.ts +15 -0
- package/esm/parse/v3-1/specificationExtensions/toSpecificationExtensionsV3.d.ts.map +1 -0
- package/esm/parse/v3-1/specificationExtensions/toSpecificationExtensionsV3.js +25 -0
- package/esm/parse/v3-1/string/toString.d.ts +147 -0
- package/esm/parse/v3-1/string/toString.d.ts.map +1 -0
- package/esm/parse/v3-1/string/toString.js +218 -0
- package/esm/parse/v3-1/tag/toTagsV3.d.ts +17 -0
- package/esm/parse/v3-1/tag/toTagsV3.d.ts.map +1 -0
- package/esm/parse/v3-1/tag/toTagsV3.js +27 -0
- package/esm/parse/v3-1/union/toUnion.d.ts +13 -0
- package/esm/parse/v3-1/union/toUnion.d.ts.map +1 -0
- package/esm/parse/v3-1/union/toUnion.js +66 -0
- package/esm/parse/v3-1/unknown/toUnknown.d.ts +11 -0
- package/esm/parse/v3-1/unknown/toUnknown.d.ts.map +1 -0
- package/esm/parse/v3-1/unknown/toUnknown.js +19 -0
- package/esm/parse/v3-1/webhook/toWebhooksV3.d.ts +49 -0
- package/esm/parse/v3-1/webhook/toWebhooksV3.d.ts.map +1 -0
- package/esm/parse/v3-1/webhook/toWebhooksV3.js +130 -0
- package/esm/run/toArtifacts.d.ts +20 -25
- package/esm/run/toArtifacts.d.ts.map +1 -1
- package/esm/run/toArtifacts.js +9 -27
- package/esm/run/toEnrichmentDefaults.d.ts +51 -0
- package/esm/run/toEnrichmentDefaults.d.ts.map +1 -0
- package/esm/run/toEnrichmentDefaults.js +24 -0
- package/esm/run/toSupportedSubjects.d.ts +48 -0
- package/esm/run/toSupportedSubjects.d.ts.map +1 -0
- package/esm/run/toSupportedSubjects.js +21 -0
- package/esm/types/AccessorPath.d.ts +17 -0
- package/esm/types/AccessorPath.d.ts.map +1 -0
- package/esm/types/AccessorPath.js +9 -0
- package/esm/types/AttributionState.d.ts +51 -0
- package/esm/types/AttributionState.d.ts.map +1 -0
- package/esm/types/AttributionState.js +20 -0
- package/esm/types/Brand.d.ts +3 -2
- package/esm/types/Brand.d.ts.map +1 -1
- package/esm/types/Brand.js +10 -1
- package/esm/types/DenoJson.d.ts +1 -0
- package/esm/types/DenoJson.d.ts.map +1 -1
- package/esm/types/DenoJson.js +1 -0
- package/esm/types/EnrichmentDefaults.d.ts +33 -0
- package/esm/types/EnrichmentDefaults.d.ts.map +1 -0
- package/esm/types/EnrichmentDefaults.js +21 -0
- package/esm/types/EnrichmentRequest.d.ts +1 -0
- package/esm/types/EnrichmentRequest.d.ts.map +1 -1
- package/esm/types/EnrichmentRequest.js +1 -1
- package/esm/types/Enrichments.d.ts +136 -175
- package/esm/types/Enrichments.d.ts.map +1 -1
- package/esm/types/Enrichments.js +100 -134
- package/esm/types/GeneratorType.d.ts +45 -107
- package/esm/types/GeneratorType.d.ts.map +1 -1
- package/esm/types/JsonPointer.d.ts +92 -0
- package/esm/types/JsonPointer.d.ts.map +1 -0
- package/esm/types/JsonPointer.js +112 -0
- package/esm/types/Manifest.d.ts +11 -2
- package/esm/types/Manifest.d.ts.map +1 -1
- package/esm/types/Manifest.js +49 -2
- package/esm/types/Method.d.ts +1 -0
- package/esm/types/Method.d.ts.map +1 -1
- package/esm/types/Method.js +1 -0
- package/esm/types/ModuleExport.d.ts +1 -0
- package/esm/types/ModuleExport.d.ts.map +1 -1
- package/esm/types/ModuleExport.js +1 -0
- package/esm/types/OasBase.d.ts +40 -0
- package/esm/types/OasBase.d.ts.map +1 -0
- package/esm/types/OasBase.js +48 -0
- package/esm/types/Preview.d.ts +100 -66
- package/esm/types/Preview.d.ts.map +1 -1
- package/esm/types/Preview.js +67 -65
- package/esm/types/RefName.d.ts +3 -2
- package/esm/types/RefName.d.ts.map +1 -1
- package/esm/types/RefName.js +1 -1
- package/esm/types/Results.d.ts +1 -0
- package/esm/types/Results.d.ts.map +1 -1
- package/esm/types/Results.js +1 -0
- package/esm/types/Settings.d.ts +236 -25
- package/esm/types/Settings.d.ts.map +1 -1
- package/esm/types/Settings.js +71 -7
- package/esm/types/SkmtcDocument.d.ts +81 -0
- package/esm/types/SkmtcDocument.d.ts.map +1 -0
- package/esm/types/SkmtcDocument.js +18 -0
- package/esm/types/SupportedSubjects.d.ts +41 -0
- package/esm/types/SupportedSubjects.d.ts.map +1 -0
- package/esm/types/SupportedSubjects.js +10 -0
- package/esm/types/TypeSystem.d.ts +1 -0
- package/esm/types/TypeSystem.d.ts.map +1 -1
- package/esm/types/TypeSystem.js +1 -1
- package/esm/types/Variant.d.ts +65 -0
- package/esm/types/Variant.d.ts.map +1 -0
- package/esm/types/Variant.js +55 -0
- package/package.json +6 -7
- package/script/_dnt.polyfills.d.ts +7 -0
- package/script/_dnt.polyfills.d.ts.map +1 -0
- package/script/anchors/CaptureSink.d.ts +83 -0
- package/script/anchors/CaptureSink.d.ts.map +1 -0
- package/script/anchors/CaptureSink.js +192 -0
- package/script/anchors/ParserAdapter.d.ts +76 -0
- package/script/anchors/ParserAdapter.d.ts.map +1 -0
- package/script/anchors/ParserAdapter.js +20 -0
- package/script/anchors/attribute.d.ts +25 -0
- package/script/anchors/attribute.d.ts.map +1 -0
- package/script/anchors/attribute.js +88 -0
- package/script/anchors/buildSidecar.d.ts +54 -0
- package/script/anchors/buildSidecar.d.ts.map +1 -0
- package/script/anchors/buildSidecar.js +108 -0
- package/script/anchors/generationMap.d.ts +67 -0
- package/script/anchors/generationMap.d.ts.map +1 -0
- package/script/anchors/generationMap.js +136 -0
- package/script/anchors/postPass.d.ts +87 -0
- package/script/anchors/postPass.d.ts.map +1 -0
- package/script/anchors/postPass.js +81 -0
- package/script/anchors/sidecar.d.ts +89 -0
- package/script/anchors/sidecar.d.ts.map +1 -0
- package/script/anchors/sidecar.js +136 -0
- package/script/anchors/types.d.ts +51 -0
- package/script/anchors/types.d.ts.map +1 -0
- package/script/anchors/types.js +10 -0
- package/script/app/validate.d.ts +1 -0
- package/script/app/validate.d.ts.map +1 -1
- package/script/app/validate.js +1 -0
- package/script/context/CoreContext.d.ts +75 -39
- package/script/context/CoreContext.d.ts.map +1 -1
- package/script/context/CoreContext.js +184 -53
- package/script/context/GenerateContext.d.ts +154 -115
- package/script/context/GenerateContext.d.ts.map +1 -1
- package/script/context/GenerateContext.js +888 -257
- package/script/context/ParseContext.d.ts +165 -107
- package/script/context/ParseContext.d.ts.map +1 -1
- package/script/context/ParseContext.js +399 -116
- package/script/context/ParseIssue.d.ts +80 -0
- package/script/context/ParseIssue.d.ts.map +1 -0
- package/script/context/ParseIssue.js +69 -0
- package/script/context/RenderContext.d.ts +46 -24
- package/script/context/RenderContext.d.ts.map +1 -1
- package/script/context/RenderContext.js +140 -37
- package/script/context/StackTrail.d.ts +68 -0
- package/script/context/StackTrail.d.ts.map +1 -1
- package/script/context/StackTrail.js +84 -0
- package/script/context/generateTypes.d.ts +253 -70
- package/script/context/generateTypes.d.ts.map +1 -1
- package/script/context/generateTypes.js +67 -0
- package/script/context/parseTypes.d.ts +148 -49
- package/script/context/parseTypes.d.ts.map +1 -1
- package/script/context/parseTypes.js +17 -0
- package/script/context/tryParseAt.d.ts +70 -0
- package/script/context/tryParseAt.d.ts.map +1 -0
- package/script/context/tryParseAt.js +57 -0
- package/script/deps/jsr.io/@std/fmt/1.0.10/colors.d.ts +700 -0
- package/script/deps/jsr.io/@std/fmt/1.0.10/colors.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/fmt/1.0.10/colors.js +986 -0
- package/script/deps/jsr.io/@std/fs/1.0.23/exists.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/fs/1.0.23/exists.js +308 -0
- package/script/deps/jsr.io/@std/internal/1.0.13/_os.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/internal/1.0.13/_os.js +48 -0
- package/script/deps/jsr.io/@std/internal/1.0.13/os.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/internal/1.0.13/os.js +8 -0
- package/script/deps/jsr.io/@std/io/0.225.3/types.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/io/0.225.3/types.js +18 -0
- package/script/deps/jsr.io/@std/io/0.225.3/write_all.d.ts +52 -0
- package/script/deps/jsr.io/@std/io/0.225.3/write_all.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/io/0.225.3/write_all.js +65 -0
- package/script/deps/jsr.io/@std/log/0.224.14/console_handler.js +1 -1
- package/script/deps/jsr.io/@std/log/0.224.14/file_handler.js +1 -1
- package/script/deps/jsr.io/@std/log/0.224.14/rotating_file_handler.js +1 -1
- package/script/deps/jsr.io/@std/path/1.1.4/_common/assert_path.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.4/_common/constants.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.4/_common/from_file_url.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.4/_common/normalize.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.4/_common/normalize_string.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.4/join.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.4/join.js +32 -0
- package/script/deps/jsr.io/@std/path/1.1.4/normalize.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.4/normalize.js +35 -0
- package/script/deps/jsr.io/@std/path/1.1.4/posix/_util.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.4/posix/from_file_url.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.4/posix/join.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.4/posix/normalize.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.4/windows/_util.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.4/windows/from_file_url.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.4/windows/join.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.4/windows/normalize.d.ts.map +1 -0
- package/script/dsl/CodeFileBase.d.ts +38 -0
- package/script/dsl/CodeFileBase.d.ts.map +1 -0
- package/script/dsl/CodeFileBase.js +64 -0
- package/script/dsl/ContentSettings.d.ts +44 -20
- package/script/dsl/ContentSettings.d.ts.map +1 -1
- package/script/dsl/ContentSettings.js +35 -17
- package/script/dsl/CustomValue.d.ts +3 -2
- package/script/dsl/CustomValue.d.ts.map +1 -1
- package/script/dsl/CustomValue.js +3 -2
- package/script/dsl/Definition.d.ts +32 -200
- package/script/dsl/Definition.d.ts.map +1 -1
- package/script/dsl/Definition.js +18 -214
- package/script/dsl/FileBase.d.ts +42 -0
- package/script/dsl/FileBase.d.ts.map +1 -0
- package/script/dsl/FileBase.js +57 -0
- package/script/dsl/GeneratedValue.d.ts +2 -2
- package/script/dsl/GeneratedValue.d.ts.map +1 -1
- package/script/dsl/GeneratorKeys.d.ts +266 -73
- package/script/dsl/GeneratorKeys.d.ts.map +1 -1
- package/script/dsl/GeneratorKeys.js +207 -71
- package/script/dsl/IdentifierBase.d.ts +55 -0
- package/script/dsl/IdentifierBase.d.ts.map +1 -0
- package/script/dsl/IdentifierBase.js +68 -0
- package/script/dsl/IdentifierType.d.ts +31 -0
- package/script/dsl/IdentifierType.d.ts.map +1 -0
- package/script/dsl/IdentifierType.js +2 -0
- package/script/dsl/ImportBase.d.ts +40 -0
- package/script/dsl/ImportBase.d.ts.map +1 -0
- package/script/dsl/ImportBase.js +28 -0
- package/script/dsl/Inserted.d.ts +10 -10
- package/script/dsl/Inserted.d.ts.map +1 -1
- package/script/dsl/Inserted.js +8 -8
- package/script/dsl/JsonFile.d.ts +2 -3
- package/script/dsl/JsonFile.d.ts.map +1 -1
- package/script/dsl/JsonFile.js +3 -9
- package/script/dsl/Lang.d.ts +136 -0
- package/script/dsl/Lang.d.ts.map +1 -0
- package/script/dsl/Lang.js +2 -0
- package/script/dsl/ReExportBase.d.ts +42 -0
- package/script/dsl/ReExportBase.d.ts.map +1 -0
- package/script/dsl/ReExportBase.js +31 -0
- package/script/dsl/SnippetBase.d.ts +86 -0
- package/script/dsl/SnippetBase.d.ts.map +1 -0
- package/script/dsl/SnippetBase.js +117 -0
- package/script/dsl/Stringable.d.ts +1 -0
- package/script/dsl/Stringable.d.ts.map +1 -1
- package/script/dsl/Stringable.js +9 -0
- package/script/dsl/model/ModelDriver.d.ts +23 -58
- package/script/dsl/model/ModelDriver.d.ts.map +1 -1
- package/script/dsl/model/ModelDriver.js +89 -77
- package/script/dsl/model/toModelEntry.d.ts +17 -23
- package/script/dsl/model/toModelEntry.d.ts.map +1 -1
- package/script/dsl/model/toModelEntry.js +7 -14
- package/script/dsl/model/toModelProjectionBase.d.ts +125 -0
- package/script/dsl/model/toModelProjectionBase.d.ts.map +1 -0
- package/script/dsl/model/toModelProjectionBase.js +186 -0
- package/script/dsl/model/types.d.ts +87 -54
- package/script/dsl/model/types.d.ts.map +1 -1
- package/script/dsl/operation/gql/GqlOperationDriver.d.ts +52 -0
- package/script/dsl/operation/gql/GqlOperationDriver.d.ts.map +1 -0
- package/script/dsl/operation/gql/GqlOperationDriver.js +210 -0
- package/script/dsl/operation/gql/toGqlOperationEntry.d.ts +44 -0
- package/script/dsl/operation/gql/toGqlOperationEntry.d.ts.map +1 -0
- package/script/dsl/operation/gql/toGqlOperationEntry.js +85 -0
- package/script/dsl/operation/gql/toGqlOperationProjectionBase.d.ts +128 -0
- package/script/dsl/operation/gql/toGqlOperationProjectionBase.d.ts.map +1 -0
- package/script/dsl/operation/gql/toGqlOperationProjectionBase.js +200 -0
- package/script/dsl/operation/gql/types.d.ts +141 -0
- package/script/dsl/operation/gql/types.d.ts.map +1 -0
- package/script/dsl/operation/gql/types.js +2 -0
- package/script/dsl/operation/oas/OasOperationDriver.d.ts +52 -0
- package/script/dsl/operation/oas/OasOperationDriver.d.ts.map +1 -0
- package/script/dsl/operation/oas/OasOperationDriver.js +227 -0
- package/script/dsl/operation/oas/toOasOperationEntry.d.ts +70 -0
- package/script/dsl/operation/oas/toOasOperationEntry.d.ts.map +1 -0
- package/script/dsl/operation/oas/toOasOperationEntry.js +108 -0
- package/script/dsl/operation/oas/toOasOperationProjectionBase.d.ts +144 -0
- package/script/dsl/operation/oas/toOasOperationProjectionBase.d.ts.map +1 -0
- package/script/dsl/operation/oas/toOasOperationProjectionBase.js +217 -0
- package/script/dsl/operation/oas/types.d.ts +151 -0
- package/script/dsl/operation/oas/types.d.ts.map +1 -0
- package/script/dsl/operation/oas/types.js +2 -0
- package/script/dsl/webhook/WebhookDriver.d.ts +50 -0
- package/script/dsl/webhook/WebhookDriver.d.ts.map +1 -0
- package/script/dsl/webhook/WebhookDriver.js +197 -0
- package/script/dsl/webhook/toWebhookEntry.d.ts +58 -0
- package/script/dsl/webhook/toWebhookEntry.d.ts.map +1 -0
- package/script/dsl/webhook/toWebhookEntry.js +104 -0
- package/script/dsl/webhook/toWebhookProjectionBase.d.ts +125 -0
- package/script/dsl/webhook/toWebhookProjectionBase.d.ts.map +1 -0
- package/script/dsl/webhook/toWebhookProjectionBase.js +200 -0
- package/script/dsl/webhook/types.d.ts +149 -0
- package/script/dsl/webhook/types.d.ts.map +1 -0
- package/script/dsl/webhook/types.js +2 -0
- package/script/enrichments/readEnrichments.d.ts +69 -0
- package/script/enrichments/readEnrichments.d.ts.map +1 -0
- package/script/enrichments/readEnrichments.js +97 -0
- package/script/enrichments/toEnrichmentDescriptor.d.ts +97 -0
- package/script/enrichments/toEnrichmentDescriptor.d.ts.map +1 -0
- package/script/enrichments/toEnrichmentDescriptor.js +162 -0
- package/script/gql/_helpers/recordAppliedDirectives.d.ts +25 -0
- package/script/gql/_helpers/recordAppliedDirectives.d.ts.map +1 -0
- package/script/gql/_helpers/recordAppliedDirectives.js +41 -0
- package/script/gql/_helpers/unwrapType.d.ts +39 -0
- package/script/gql/_helpers/unwrapType.d.ts.map +1 -0
- package/script/gql/_helpers/unwrapType.js +51 -0
- package/script/gql/argument/GqlArgument.d.ts +55 -0
- package/script/gql/argument/GqlArgument.d.ts.map +1 -0
- package/script/gql/argument/GqlArgument.js +87 -0
- package/script/gql/document/GqlDocument.d.ts +93 -0
- package/script/gql/document/GqlDocument.d.ts.map +1 -0
- package/script/gql/document/GqlDocument.js +174 -0
- package/script/gql/document/parseGqlDocument.d.ts +33 -0
- package/script/gql/document/parseGqlDocument.d.ts.map +1 -0
- package/script/gql/document/parseGqlDocument.js +189 -0
- package/script/gql/enum/toEnumType.d.ts +29 -0
- package/script/gql/enum/toEnumType.d.ts.map +1 -0
- package/script/gql/enum/toEnumType.js +26 -0
- package/script/gql/field/toFieldSchema.d.ts +38 -0
- package/script/gql/field/toFieldSchema.d.ts.map +1 -0
- package/script/gql/field/toFieldSchema.js +87 -0
- package/script/gql/input/toInputType.d.ts +28 -0
- package/script/gql/input/toInputType.d.ts.map +1 -0
- package/script/gql/input/toInputType.js +50 -0
- package/script/gql/interface/toInterfaceUnion.d.ts +28 -0
- package/script/gql/interface/toInterfaceUnion.d.ts.map +1 -0
- package/script/gql/interface/toInterfaceUnion.js +38 -0
- package/script/gql/object/toObjectType.d.ts +23 -0
- package/script/gql/object/toObjectType.d.ts.map +1 -0
- package/script/gql/object/toObjectType.js +66 -0
- package/script/gql/operation/GqlOperation.d.ts +63 -0
- package/script/gql/operation/GqlOperation.d.ts.map +1 -0
- package/script/gql/operation/GqlOperation.js +94 -0
- package/script/gql/operation/synthesizeArgsObject.d.ts +22 -0
- package/script/gql/operation/synthesizeArgsObject.d.ts.map +1 -0
- package/script/gql/operation/synthesizeArgsObject.js +41 -0
- package/script/gql/operation/toRootField.d.ts +26 -0
- package/script/gql/operation/toRootField.d.ts.map +1 -0
- package/script/gql/operation/toRootField.js +55 -0
- package/script/gql/registry/GqlRegistry.d.ts +70 -0
- package/script/gql/registry/GqlRegistry.d.ts.map +1 -0
- package/script/gql/registry/GqlRegistry.js +80 -0
- package/script/gql/rootType/GqlRootTypes.d.ts +15 -0
- package/script/gql/rootType/GqlRootTypes.d.ts.map +1 -0
- package/script/gql/rootType/GqlRootTypes.js +2 -0
- package/script/gql/scalar/toScalarType.d.ts +33 -0
- package/script/gql/scalar/toScalarType.d.ts.map +1 -0
- package/script/gql/scalar/toScalarType.js +47 -0
- package/script/gql/union/toUnionType.d.ts +24 -0
- package/script/gql/union/toUnionType.d.ts.map +1 -0
- package/script/gql/union/toUnionType.js +33 -0
- package/script/helpers/collateExamples.d.ts +1 -0
- package/script/helpers/collateExamples.d.ts.map +1 -1
- package/script/helpers/collateExamples.js +1 -0
- package/script/helpers/formatNumber.d.ts +1 -0
- package/script/helpers/formatNumber.d.ts.map +1 -1
- package/script/helpers/formatNumber.js +1 -0
- package/script/helpers/isEmpty.d.ts +1 -0
- package/script/helpers/isEmpty.d.ts.map +1 -1
- package/script/helpers/isEmpty.js +1 -0
- package/script/helpers/isImported.js +1 -1
- package/script/helpers/refFns.d.ts +2 -1
- package/script/helpers/refFns.d.ts.map +1 -1
- package/script/helpers/refFns.js +1 -0
- package/script/helpers/strings.d.ts +1 -0
- package/script/helpers/strings.d.ts.map +1 -1
- package/script/helpers/strings.js +1 -0
- package/script/helpers/toResolvedArtifactPath.d.ts +1 -0
- package/script/helpers/toResolvedArtifactPath.d.ts.map +1 -1
- package/script/helpers/toResolvedArtifactPath.js +4 -3
- package/script/helpers/toVariantList.d.ts +32 -0
- package/script/helpers/toVariantList.d.ts.map +1 -0
- package/script/helpers/toVariantList.js +35 -0
- package/script/helpers/withVariant.d.ts +20 -0
- package/script/helpers/withVariant.d.ts.map +1 -0
- package/script/helpers/withVariant.js +31 -0
- package/script/mod.d.ts +58 -37
- package/script/mod.d.ts.map +1 -1
- package/script/mod.js +76 -52
- package/script/oas/array/Array.d.ts +5 -2
- package/script/oas/array/Array.d.ts.map +1 -1
- package/script/oas/array/Array.js +5 -2
- package/script/oas/boolean/Boolean.d.ts +8 -2
- package/script/oas/boolean/Boolean.d.ts.map +1 -1
- package/script/oas/boolean/Boolean.js +8 -2
- package/script/oas/components/Components.d.ts +1 -0
- package/script/oas/components/Components.d.ts.map +1 -1
- package/script/oas/components/Components.js +1 -0
- package/script/oas/discriminator/Discriminator.d.ts +1 -0
- package/script/oas/discriminator/Discriminator.d.ts.map +1 -1
- package/script/oas/discriminator/Discriminator.js +1 -0
- package/script/oas/document/Document.d.ts +56 -2
- package/script/oas/document/Document.d.ts.map +1 -1
- package/script/oas/document/Document.js +61 -1
- package/script/oas/info/Info.d.ts +1 -0
- package/script/oas/info/Info.d.ts.map +1 -1
- package/script/oas/info/Info.js +1 -0
- package/script/oas/integer/Integer.d.ts +5 -2
- package/script/oas/integer/Integer.d.ts.map +1 -1
- package/script/oas/integer/Integer.js +5 -2
- package/script/oas/mediaType/MediaType.d.ts +4 -2
- package/script/oas/mediaType/MediaType.d.ts.map +1 -1
- package/script/oas/mediaType/MediaType.js +4 -2
- package/script/oas/number/Number.d.ts +5 -2
- package/script/oas/number/Number.d.ts.map +1 -1
- package/script/oas/number/Number.js +5 -2
- package/script/oas/object/Object.d.ts +5 -2
- package/script/oas/object/Object.d.ts.map +1 -1
- package/script/oas/object/Object.js +5 -2
- package/script/oas/operation/Operation.d.ts +5 -2
- package/script/oas/operation/Operation.d.ts.map +1 -1
- package/script/oas/operation/Operation.js +5 -2
- package/script/oas/parameter/Parameter.d.ts +5 -2
- package/script/oas/parameter/Parameter.d.ts.map +1 -1
- package/script/oas/parameter/Parameter.js +5 -2
- package/script/oas/ref/Ref.d.ts +37 -6
- package/script/oas/ref/Ref.d.ts.map +1 -1
- package/script/oas/ref/Ref.js +67 -40
- package/script/oas/requestBody/RequestBody.d.ts +5 -2
- package/script/oas/requestBody/RequestBody.d.ts.map +1 -1
- package/script/oas/requestBody/RequestBody.js +5 -2
- package/script/oas/response/Response.d.ts +5 -2
- package/script/oas/response/Response.d.ts.map +1 -1
- package/script/oas/response/Response.js +5 -2
- package/script/oas/schema/Schema.d.ts +1 -0
- package/script/oas/schema/Schema.d.ts.map +1 -1
- package/script/oas/schema/Schema.js +1 -0
- package/script/oas/server/Server.d.ts +1 -0
- package/script/oas/server/Server.d.ts.map +1 -1
- package/script/oas/server/Server.js +1 -0
- package/script/oas/string/String.d.ts +5 -2
- package/script/oas/string/String.d.ts.map +1 -1
- package/script/oas/string/String.js +5 -2
- package/script/oas/tag/Tag.d.ts +4 -0
- package/script/oas/tag/Tag.d.ts.map +1 -1
- package/script/oas/tag/Tag.js +4 -0
- package/script/oas/tag/tag-types.d.ts +2 -0
- package/script/oas/tag/tag-types.d.ts.map +1 -1
- package/script/oas/tag/tag-types.js +3 -2
- package/script/oas/union/Union.d.ts +4 -2
- package/script/oas/union/Union.d.ts.map +1 -1
- package/script/oas/union/Union.js +4 -2
- package/script/oas/unknown/Unknown.d.ts +5 -2
- package/script/oas/unknown/Unknown.d.ts.map +1 -1
- package/script/oas/unknown/Unknown.js +5 -2
- package/script/oas/void/Void.d.ts +6 -3
- package/script/oas/void/Void.d.ts.map +1 -1
- package/script/oas/void/Void.js +6 -3
- package/script/oas/webhook/Webhook.d.ts +109 -0
- package/script/oas/webhook/Webhook.d.ts.map +1 -0
- package/script/oas/webhook/Webhook.js +170 -0
- package/script/parse/toOasDialect.d.ts +26 -0
- package/script/parse/toOasDialect.d.ts.map +1 -0
- package/script/parse/toOasDialect.js +26 -0
- package/script/parse/v3-0/_helpers/parseDefault.d.ts +44 -0
- package/script/parse/v3-0/_helpers/parseDefault.d.ts.map +1 -0
- package/script/parse/v3-0/_helpers/parseDefault.js +43 -0
- package/script/parse/v3-0/_helpers/parseEnum.d.ts +14 -0
- package/script/parse/v3-0/_helpers/parseEnum.d.ts.map +1 -0
- package/script/parse/v3-0/_helpers/parseEnum.js +27 -0
- package/script/parse/v3-0/_helpers/parseExample.d.ts +42 -0
- package/script/parse/v3-0/_helpers/parseExample.d.ts.map +1 -0
- package/script/parse/v3-0/_helpers/parseExample.js +41 -0
- package/script/parse/v3-0/_helpers/parseNullable.d.ts +142 -0
- package/script/parse/v3-0/_helpers/parseNullable.d.ts.map +1 -0
- package/script/parse/v3-0/_merge-all-of/check-array-item-type-conflicts.d.ts +3 -0
- package/script/parse/v3-0/_merge-all-of/check-array-item-type-conflicts.d.ts.map +1 -0
- package/script/parse/v3-0/_merge-all-of/check-at-least-one-type-match.d.ts +5 -0
- package/script/parse/v3-0/_merge-all-of/check-at-least-one-type-match.d.ts.map +1 -0
- package/script/parse/v3-0/_merge-all-of/check-enum-conflicts.d.ts +3 -0
- package/script/parse/v3-0/_merge-all-of/check-enum-conflicts.d.ts.map +1 -0
- package/script/parse/v3-0/_merge-all-of/check-format-conflicts.d.ts +3 -0
- package/script/parse/v3-0/_merge-all-of/check-format-conflicts.d.ts.map +1 -0
- package/script/parse/v3-0/_merge-all-of/check-number-constraints-conflicts.d.ts +3 -0
- package/script/parse/v3-0/_merge-all-of/check-number-constraints-conflicts.d.ts.map +1 -0
- package/script/parse/v3-0/_merge-all-of/check-read-only-write-only-conflicts.d.ts +3 -0
- package/script/parse/v3-0/_merge-all-of/check-read-only-write-only-conflicts.d.ts.map +1 -0
- package/script/parse/v3-0/_merge-all-of/check-type-conflicts.d.ts +3 -0
- package/script/parse/v3-0/_merge-all-of/check-type-conflicts.d.ts.map +1 -0
- package/script/parse/v3-0/_merge-all-of/cross-product.d.ts +3 -0
- package/script/parse/v3-0/_merge-all-of/cross-product.d.ts.map +1 -0
- package/script/parse/v3-0/_merge-all-of/decompose-intersection.d.ts +7 -0
- package/script/parse/v3-0/_merge-all-of/decompose-intersection.d.ts.map +1 -0
- package/script/parse/v3-0/_merge-all-of/decompose-union.d.ts +13 -0
- package/script/parse/v3-0/_merge-all-of/decompose-union.d.ts.map +1 -0
- package/script/parse/v3-0/_merge-all-of/decompose-union.js +77 -0
- package/script/parse/v3-0/_merge-all-of/generic-merge.d.ts +4 -0
- package/script/parse/v3-0/_merge-all-of/generic-merge.d.ts.map +1 -0
- package/script/parse/v3-0/_merge-all-of/is-equal.d.ts +2 -0
- package/script/parse/v3-0/_merge-all-of/is-equal.d.ts.map +1 -0
- package/script/parse/v3-0/_merge-all-of/merge-array-constraints.d.ts +3 -0
- package/script/parse/v3-0/_merge-all-of/merge-array-constraints.d.ts.map +1 -0
- package/script/parse/v3-0/_merge-all-of/merge-boolean-constraints.d.ts +4 -0
- package/script/parse/v3-0/_merge-all-of/merge-boolean-constraints.d.ts.map +1 -0
- package/script/parse/v3-0/_merge-all-of/merge-enum-values.d.ts +4 -0
- package/script/parse/v3-0/_merge-all-of/merge-enum-values.d.ts.map +1 -0
- package/script/parse/v3-0/_merge-all-of/merge-integer-constraints.d.ts +4 -0
- package/script/parse/v3-0/_merge-all-of/merge-integer-constraints.d.ts.map +1 -0
- package/script/parse/v3-0/_merge-all-of/merge-intersection.d.ts +9 -0
- package/script/parse/v3-0/_merge-all-of/merge-intersection.d.ts.map +1 -0
- package/script/parse/v3-0/_merge-all-of/merge-number-constraints.d.ts +4 -0
- package/script/parse/v3-0/_merge-all-of/merge-number-constraints.d.ts.map +1 -0
- package/script/parse/v3-0/_merge-all-of/merge-object-constraints.d.ts +6 -0
- package/script/parse/v3-0/_merge-all-of/merge-object-constraints.d.ts.map +1 -0
- package/script/parse/v3-0/_merge-all-of/merge-properties.d.ts +3 -0
- package/script/parse/v3-0/_merge-all-of/merge-properties.d.ts.map +1 -0
- package/script/parse/v3-0/_merge-all-of/merge-required.d.ts +4 -0
- package/script/parse/v3-0/_merge-all-of/merge-required.d.ts.map +1 -0
- package/script/parse/v3-0/_merge-all-of/merge-string-constraints.d.ts +4 -0
- package/script/parse/v3-0/_merge-all-of/merge-string-constraints.d.ts.map +1 -0
- package/script/parse/v3-0/_merge-all-of/merge-union.d.ts +16 -0
- package/script/parse/v3-0/_merge-all-of/merge-union.d.ts.map +1 -0
- package/script/parse/v3-0/_merge-all-of/merge-union.js +66 -0
- package/script/parse/v3-0/_merge-all-of/merge.d.ts +3 -0
- package/script/parse/v3-0/_merge-all-of/merge.d.ts.map +1 -0
- package/script/parse/v3-0/_merge-all-of/merge.js +159 -0
- package/script/parse/v3-0/_merge-all-of/nullable-merge.d.ts +4 -0
- package/script/parse/v3-0/_merge-all-of/nullable-merge.d.ts.map +1 -0
- package/script/parse/v3-0/_merge-all-of/nullable-merge.js +17 -0
- package/script/parse/v3-0/_merge-all-of/types.d.ts +15 -0
- package/script/parse/v3-0/_merge-all-of/types.d.ts.map +1 -0
- package/script/parse/v3-0/array/toArray.d.ts +81 -0
- package/script/parse/v3-0/array/toArray.d.ts.map +1 -0
- package/script/parse/v3-0/array/toArray.js +203 -0
- package/script/parse/v3-0/boolean/toBoolean.d.ts +79 -0
- package/script/parse/v3-0/boolean/toBoolean.d.ts.map +1 -0
- package/script/parse/v3-0/boolean/toBoolean.js +177 -0
- package/script/parse/v3-0/components/toComponentsV3.d.ts +11 -0
- package/script/parse/v3-0/components/toComponentsV3.d.ts.map +1 -0
- package/script/parse/v3-0/components/toComponentsV3.js +43 -0
- package/script/parse/v3-0/contact/toContactV3.d.ts +6 -0
- package/script/parse/v3-0/contact/toContactV3.d.ts.map +1 -0
- package/script/parse/v3-0/contact/toContactV3.js +22 -0
- package/script/parse/v3-0/discriminator/toDiscriminatorV3.d.ts +11 -0
- package/script/parse/v3-0/discriminator/toDiscriminatorV3.d.ts.map +1 -0
- package/script/parse/v3-0/discriminator/toDiscriminatorV3.js +24 -0
- package/script/parse/v3-0/document/toDocumentFieldsV3.d.ts +14 -0
- package/script/parse/v3-0/document/toDocumentFieldsV3.d.ts.map +1 -0
- package/script/parse/v3-0/document/toDocumentFieldsV3.js +36 -0
- package/script/parse/v3-0/example/toExamplesV3.d.ts +68 -0
- package/script/parse/v3-0/example/toExamplesV3.d.ts.map +1 -0
- package/script/parse/v3-0/example/toExamplesV3.js +95 -0
- package/script/parse/v3-0/externalDocs/toExternalDocs.d.ts +11 -0
- package/script/parse/v3-0/externalDocs/toExternalDocs.d.ts.map +1 -0
- package/script/parse/v3-0/externalDocs/toExternalDocs.js +52 -0
- package/script/parse/v3-0/header/toHeadersV3.d.ts +17 -0
- package/script/parse/v3-0/header/toHeadersV3.d.ts.map +1 -0
- package/script/parse/v3-0/header/toHeadersV3.js +51 -0
- package/script/parse/v3-0/info/toInfoV3.d.ts +11 -0
- package/script/parse/v3-0/info/toInfoV3.d.ts.map +1 -0
- package/script/parse/v3-0/info/toInfoV3.js +27 -0
- package/script/parse/v3-0/integer/toInteger.d.ts +22 -0
- package/script/parse/v3-0/integer/toInteger.d.ts.map +1 -0
- package/script/parse/v3-0/integer/toInteger.js +150 -0
- package/script/parse/v3-0/license/toLicenseV3.d.ts +6 -0
- package/script/parse/v3-0/license/toLicenseV3.d.ts.map +1 -0
- package/script/parse/v3-0/license/toLicenseV3.js +21 -0
- package/script/parse/v3-0/mediaType/toMediaTypeItemV3.d.ts +315 -0
- package/script/parse/v3-0/mediaType/toMediaTypeItemV3.d.ts.map +1 -0
- package/script/parse/v3-0/mediaType/toMediaTypeItemV3.js +320 -0
- package/script/parse/v3-0/number/toNumber.d.ts +11 -0
- package/script/parse/v3-0/number/toNumber.d.ts.map +1 -0
- package/script/parse/v3-0/number/toNumber.js +149 -0
- package/script/parse/v3-0/object/toAdditionalPropertiesV3.d.ts +12 -0
- package/script/parse/v3-0/object/toAdditionalPropertiesV3.d.ts.map +1 -0
- package/script/parse/v3-0/object/toObject.d.ts +11 -0
- package/script/parse/v3-0/object/toObject.d.ts.map +1 -0
- package/script/parse/v3-0/object/toObject.js +92 -0
- package/script/parse/v3-0/operation/toOperationsV3.d.ts +26 -0
- package/script/parse/v3-0/operation/toOperationsV3.d.ts.map +1 -0
- package/script/parse/v3-0/operation/toOperationsV3.js +118 -0
- package/script/parse/v3-0/parameter/toParameterV3.d.ts +40 -0
- package/script/parse/v3-0/parameter/toParameterV3.d.ts.map +1 -0
- package/script/parse/v3-0/parameter/toParameterV3.js +151 -0
- package/script/parse/v3-0/pathItem/toPathItemV3.d.ts +11 -0
- package/script/parse/v3-0/pathItem/toPathItemV3.d.ts.map +1 -0
- package/script/parse/v3-0/pathItem/toPathItemV3.js +22 -0
- package/script/parse/v3-0/ref/toRefV31.d.ts +20 -0
- package/script/parse/v3-0/ref/toRefV31.d.ts.map +1 -0
- package/script/parse/v3-0/ref/toRefV31.js +14 -0
- package/script/parse/v3-0/requestBody/toRequestBodiesV3.d.ts +19 -0
- package/script/parse/v3-0/requestBody/toRequestBodiesV3.d.ts.map +1 -0
- package/script/parse/v3-0/requestBody/toRequestBodiesV3.js +49 -0
- package/script/parse/v3-0/response/toResponseV3.d.ts +24 -0
- package/script/parse/v3-0/response/toResponseV3.d.ts.map +1 -0
- package/script/parse/v3-0/response/toResponseV3.js +58 -0
- package/script/parse/v3-0/schema/toSchemasV3.d.ts +30 -0
- package/script/parse/v3-0/schema/toSchemasV3.d.ts.map +1 -0
- package/script/parse/v3-0/schema/toSchemasV3.js +303 -0
- package/script/parse/v3-0/securityRequirement/toSecurityRequirement.d.ts +10 -0
- package/script/parse/v3-0/securityRequirement/toSecurityRequirement.d.ts.map +1 -0
- package/script/parse/v3-0/securityRequirement/toSecurityRequirement.js +13 -0
- package/script/parse/v3-0/securitySchemes/toSecuritySchemes.d.ts +18 -0
- package/script/parse/v3-0/securitySchemes/toSecuritySchemes.d.ts.map +1 -0
- package/script/parse/v3-0/securitySchemes/toSecuritySchemes.js +142 -0
- package/script/parse/v3-0/server/toServerV3.d.ts +23 -0
- package/script/parse/v3-0/server/toServerV3.d.ts.map +1 -0
- package/script/parse/v3-0/server/toServerV3.js +36 -0
- package/script/parse/v3-0/serverVariable/toServerVariableV3.d.ts +23 -0
- package/script/parse/v3-0/serverVariable/toServerVariableV3.d.ts.map +1 -0
- package/script/parse/v3-0/serverVariable/toServerVariableV3.js +36 -0
- package/script/parse/v3-0/specificationExtensions/toSpecificationExtensionsV3.d.ts +15 -0
- package/script/parse/v3-0/specificationExtensions/toSpecificationExtensionsV3.d.ts.map +1 -0
- package/script/parse/v3-0/specificationExtensions/toSpecificationExtensionsV3.js +30 -0
- package/script/parse/v3-0/string/toString.d.ts +147 -0
- package/script/parse/v3-0/string/toString.d.ts.map +1 -0
- package/script/parse/v3-0/string/toString.js +256 -0
- package/script/parse/v3-0/tag/toTagsV3.d.ts +17 -0
- package/script/parse/v3-0/tag/toTagsV3.d.ts.map +1 -0
- package/script/parse/v3-0/tag/toTagsV3.js +32 -0
- package/script/parse/v3-0/union/toUnion.d.ts +13 -0
- package/script/parse/v3-0/union/toUnion.d.ts.map +1 -0
- package/script/parse/v3-0/union/toUnion.js +70 -0
- package/script/parse/v3-0/unknown/toUnknown.d.ts +11 -0
- package/script/parse/v3-0/unknown/toUnknown.d.ts.map +1 -0
- package/script/parse/v3-0/unknown/toUnknown.js +23 -0
- package/script/parse/v3-0/webhook/toWebhooksV3.d.ts +49 -0
- package/script/parse/v3-0/webhook/toWebhooksV3.d.ts.map +1 -0
- package/script/parse/v3-0/webhook/toWebhooksV3.js +135 -0
- package/script/parse/v3-1/_helpers/parseDefault.d.ts +44 -0
- package/script/parse/v3-1/_helpers/parseDefault.d.ts.map +1 -0
- package/script/parse/v3-1/_helpers/parseDefault.js +43 -0
- package/script/parse/v3-1/_helpers/parseEnum.d.ts +14 -0
- package/script/parse/v3-1/_helpers/parseEnum.d.ts.map +1 -0
- package/script/parse/v3-1/_helpers/parseEnum.js +27 -0
- package/script/parse/v3-1/_helpers/parseExample.d.ts +42 -0
- package/script/parse/v3-1/_helpers/parseExample.d.ts.map +1 -0
- package/script/parse/v3-1/_helpers/parseExample.js +41 -0
- package/script/parse/v3-1/_helpers/parseNullable.d.ts +142 -0
- package/script/parse/v3-1/_helpers/parseNullable.d.ts.map +1 -0
- package/script/parse/v3-1/_helpers/parseNullable.js +144 -0
- package/script/parse/v3-1/_merge-all-of/check-array-item-type-conflicts.d.ts +3 -0
- package/script/parse/v3-1/_merge-all-of/check-array-item-type-conflicts.d.ts.map +1 -0
- package/script/parse/v3-1/_merge-all-of/check-array-item-type-conflicts.js +13 -0
- package/script/parse/v3-1/_merge-all-of/check-at-least-one-type-match.d.ts +5 -0
- package/script/parse/v3-1/_merge-all-of/check-at-least-one-type-match.d.ts.map +1 -0
- package/script/parse/v3-1/_merge-all-of/check-at-least-one-type-match.js +9 -0
- package/script/parse/v3-1/_merge-all-of/check-enum-conflicts.d.ts +3 -0
- package/script/parse/v3-1/_merge-all-of/check-enum-conflicts.d.ts.map +1 -0
- package/script/parse/v3-1/_merge-all-of/check-enum-conflicts.js +15 -0
- package/script/parse/v3-1/_merge-all-of/check-format-conflicts.d.ts +3 -0
- package/script/parse/v3-1/_merge-all-of/check-format-conflicts.d.ts.map +1 -0
- package/script/parse/v3-1/_merge-all-of/check-format-conflicts.js +9 -0
- package/script/parse/v3-1/_merge-all-of/check-number-constraints-conflicts.d.ts +3 -0
- package/script/parse/v3-1/_merge-all-of/check-number-constraints-conflicts.d.ts.map +1 -0
- package/script/parse/v3-1/_merge-all-of/check-number-constraints-conflicts.js +15 -0
- package/script/parse/v3-1/_merge-all-of/check-read-only-write-only-conflicts.d.ts +3 -0
- package/script/parse/v3-1/_merge-all-of/check-read-only-write-only-conflicts.d.ts.map +1 -0
- package/script/parse/v3-1/_merge-all-of/check-read-only-write-only-conflicts.js +9 -0
- package/script/parse/v3-1/_merge-all-of/check-type-conflicts.d.ts +3 -0
- package/script/parse/v3-1/_merge-all-of/check-type-conflicts.d.ts.map +1 -0
- package/script/parse/v3-1/_merge-all-of/check-type-conflicts.js +9 -0
- package/script/parse/v3-1/_merge-all-of/cross-product.d.ts +3 -0
- package/script/parse/v3-1/_merge-all-of/cross-product.d.ts.map +1 -0
- package/script/parse/v3-1/_merge-all-of/cross-product.js +7 -0
- package/script/parse/v3-1/_merge-all-of/decompose-intersection.d.ts +7 -0
- package/script/parse/v3-1/_merge-all-of/decompose-intersection.d.ts.map +1 -0
- package/script/parse/v3-1/_merge-all-of/decompose-intersection.js +31 -0
- package/script/parse/v3-1/_merge-all-of/decompose-union.d.ts +13 -0
- package/script/parse/v3-1/_merge-all-of/decompose-union.d.ts.map +1 -0
- package/script/parse/v3-1/_merge-all-of/decompose-union.js +77 -0
- package/script/parse/v3-1/_merge-all-of/generic-merge.d.ts +4 -0
- package/script/parse/v3-1/_merge-all-of/generic-merge.d.ts.map +1 -0
- package/script/parse/v3-1/_merge-all-of/generic-merge.js +16 -0
- package/script/parse/v3-1/_merge-all-of/is-equal.d.ts +2 -0
- package/script/parse/v3-1/_merge-all-of/is-equal.d.ts.map +1 -0
- package/script/parse/v3-1/_merge-all-of/is-equal.js +23 -0
- package/script/parse/v3-1/_merge-all-of/merge-array-constraints.d.ts +3 -0
- package/script/parse/v3-1/_merge-all-of/merge-array-constraints.d.ts.map +1 -0
- package/script/parse/v3-1/_merge-all-of/merge-array-constraints.js +80 -0
- package/script/parse/v3-1/_merge-all-of/merge-boolean-constraints.d.ts +4 -0
- package/script/parse/v3-1/_merge-all-of/merge-boolean-constraints.d.ts.map +1 -0
- package/script/parse/v3-1/_merge-all-of/merge-boolean-constraints.js +43 -0
- package/script/parse/v3-1/_merge-all-of/merge-enum-values.d.ts +4 -0
- package/script/parse/v3-1/_merge-all-of/merge-enum-values.d.ts.map +1 -0
- package/script/parse/v3-1/_merge-all-of/merge-enum-values.js +68 -0
- package/script/parse/v3-1/_merge-all-of/merge-integer-constraints.d.ts +4 -0
- package/script/parse/v3-1/_merge-all-of/merge-integer-constraints.d.ts.map +1 -0
- package/script/parse/v3-1/_merge-all-of/merge-integer-constraints.js +77 -0
- package/script/parse/v3-1/_merge-all-of/merge-intersection.d.ts +9 -0
- package/script/parse/v3-1/_merge-all-of/merge-intersection.d.ts.map +1 -0
- package/script/parse/v3-1/_merge-all-of/merge-intersection.js +20 -0
- package/script/parse/v3-1/_merge-all-of/merge-number-constraints.d.ts +4 -0
- package/script/parse/v3-1/_merge-all-of/merge-number-constraints.d.ts.map +1 -0
- package/script/parse/v3-1/_merge-all-of/merge-number-constraints.js +77 -0
- package/script/parse/v3-1/_merge-all-of/merge-object-constraints.d.ts +6 -0
- package/script/parse/v3-1/_merge-all-of/merge-object-constraints.d.ts.map +1 -0
- package/script/parse/v3-1/_merge-all-of/merge-object-constraints.js +65 -0
- package/script/parse/v3-1/_merge-all-of/merge-properties.d.ts +3 -0
- package/script/parse/v3-1/_merge-all-of/merge-properties.d.ts.map +1 -0
- package/script/parse/v3-1/_merge-all-of/merge-properties.js +29 -0
- package/script/parse/v3-1/_merge-all-of/merge-required.d.ts +4 -0
- package/script/parse/v3-1/_merge-all-of/merge-required.d.ts.map +1 -0
- package/script/parse/v3-1/_merge-all-of/merge-required.js +15 -0
- package/script/parse/v3-1/_merge-all-of/merge-string-constraints.d.ts +4 -0
- package/script/parse/v3-1/_merge-all-of/merge-string-constraints.d.ts.map +1 -0
- package/script/parse/v3-1/_merge-all-of/merge-string-constraints.js +91 -0
- package/script/parse/v3-1/_merge-all-of/merge-union.d.ts +16 -0
- package/script/parse/v3-1/_merge-all-of/merge-union.d.ts.map +1 -0
- package/script/parse/v3-1/_merge-all-of/merge-union.js +66 -0
- package/script/parse/v3-1/_merge-all-of/merge.d.ts +3 -0
- package/script/parse/v3-1/_merge-all-of/merge.d.ts.map +1 -0
- package/script/parse/v3-1/_merge-all-of/merge.js +159 -0
- package/script/parse/v3-1/_merge-all-of/nullable-merge.d.ts +4 -0
- package/script/parse/v3-1/_merge-all-of/nullable-merge.d.ts.map +1 -0
- package/script/parse/v3-1/_merge-all-of/nullable-merge.js +17 -0
- package/script/parse/v3-1/_merge-all-of/types.d.ts +15 -0
- package/script/parse/v3-1/_merge-all-of/types.d.ts.map +1 -0
- package/script/parse/v3-1/_merge-all-of/types.js +38 -0
- package/script/parse/v3-1/array/toArray.d.ts +81 -0
- package/script/parse/v3-1/array/toArray.d.ts.map +1 -0
- package/script/parse/v3-1/array/toArray.js +203 -0
- package/script/parse/v3-1/boolean/toBoolean.d.ts +79 -0
- package/script/parse/v3-1/boolean/toBoolean.d.ts.map +1 -0
- package/script/parse/v3-1/boolean/toBoolean.js +177 -0
- package/script/parse/v3-1/components/toComponentsV3.d.ts +11 -0
- package/script/parse/v3-1/components/toComponentsV3.d.ts.map +1 -0
- package/script/parse/v3-1/components/toComponentsV3.js +43 -0
- package/script/parse/v3-1/contact/toContactV3.d.ts +6 -0
- package/script/parse/v3-1/contact/toContactV3.d.ts.map +1 -0
- package/script/parse/v3-1/contact/toContactV3.js +22 -0
- package/script/parse/v3-1/discriminator/toDiscriminatorV3.d.ts +11 -0
- package/script/parse/v3-1/discriminator/toDiscriminatorV3.d.ts.map +1 -0
- package/script/parse/v3-1/discriminator/toDiscriminatorV3.js +24 -0
- package/script/parse/v3-1/document/toDocumentFieldsV3.d.ts +15 -0
- package/script/parse/v3-1/document/toDocumentFieldsV3.d.ts.map +1 -0
- package/script/parse/v3-1/document/toDocumentFieldsV3.js +36 -0
- package/script/parse/v3-1/example/toExamplesV3.d.ts +68 -0
- package/script/parse/v3-1/example/toExamplesV3.d.ts.map +1 -0
- package/script/parse/v3-1/example/toExamplesV3.js +95 -0
- package/script/parse/v3-1/externalDocs/toExternalDocs.d.ts +11 -0
- package/script/parse/v3-1/externalDocs/toExternalDocs.d.ts.map +1 -0
- package/script/parse/v3-1/externalDocs/toExternalDocs.js +52 -0
- package/script/parse/v3-1/header/toHeadersV3.d.ts +17 -0
- package/script/parse/v3-1/header/toHeadersV3.d.ts.map +1 -0
- package/script/parse/v3-1/header/toHeadersV3.js +51 -0
- package/script/parse/v3-1/info/toInfoV3.d.ts +11 -0
- package/script/parse/v3-1/info/toInfoV3.d.ts.map +1 -0
- package/script/parse/v3-1/info/toInfoV3.js +27 -0
- package/script/parse/v3-1/integer/toInteger.d.ts +22 -0
- package/script/parse/v3-1/integer/toInteger.d.ts.map +1 -0
- package/script/parse/v3-1/integer/toInteger.js +150 -0
- package/script/parse/v3-1/license/toLicenseV3.d.ts +6 -0
- package/script/parse/v3-1/license/toLicenseV3.d.ts.map +1 -0
- package/script/parse/v3-1/license/toLicenseV3.js +21 -0
- package/script/parse/v3-1/mediaType/toMediaTypeItemV3.d.ts +315 -0
- package/script/parse/v3-1/mediaType/toMediaTypeItemV3.d.ts.map +1 -0
- package/script/parse/v3-1/mediaType/toMediaTypeItemV3.js +320 -0
- package/script/parse/v3-1/number/toNumber.d.ts +11 -0
- package/script/parse/v3-1/number/toNumber.d.ts.map +1 -0
- package/script/parse/v3-1/number/toNumber.js +149 -0
- package/script/parse/v3-1/object/toAdditionalPropertiesV3.d.ts +12 -0
- package/script/parse/v3-1/object/toAdditionalPropertiesV3.d.ts.map +1 -0
- package/script/parse/v3-1/object/toAdditionalPropertiesV3.js +14 -0
- package/script/parse/v3-1/object/toObject.d.ts +11 -0
- package/script/parse/v3-1/object/toObject.d.ts.map +1 -0
- package/script/parse/v3-1/object/toObject.js +92 -0
- package/script/parse/v3-1/operation/toOperationsV3.d.ts +26 -0
- package/script/parse/v3-1/operation/toOperationsV3.d.ts.map +1 -0
- package/script/parse/v3-1/operation/toOperationsV3.js +121 -0
- package/script/parse/v3-1/parameter/toParameterV3.d.ts +40 -0
- package/script/parse/v3-1/parameter/toParameterV3.d.ts.map +1 -0
- package/script/parse/v3-1/parameter/toParameterV3.js +151 -0
- package/script/parse/v3-1/pathItem/toPathItemV3.d.ts +11 -0
- package/script/parse/v3-1/pathItem/toPathItemV3.d.ts.map +1 -0
- package/script/parse/v3-1/pathItem/toPathItemV3.js +22 -0
- package/script/parse/v3-1/ref/toRefV31.d.ts +20 -0
- package/script/parse/v3-1/ref/toRefV31.d.ts.map +1 -0
- package/script/parse/v3-1/ref/toRefV31.js +14 -0
- package/script/parse/v3-1/requestBody/toRequestBodiesV3.d.ts +19 -0
- package/script/parse/v3-1/requestBody/toRequestBodiesV3.d.ts.map +1 -0
- package/script/parse/v3-1/requestBody/toRequestBodiesV3.js +49 -0
- package/script/parse/v3-1/response/toResponseV3.d.ts +24 -0
- package/script/parse/v3-1/response/toResponseV3.d.ts.map +1 -0
- package/script/parse/v3-1/response/toResponseV3.js +58 -0
- package/script/parse/v3-1/schema/toSchemasV3.d.ts +30 -0
- package/script/parse/v3-1/schema/toSchemasV3.d.ts.map +1 -0
- package/script/parse/v3-1/schema/toSchemasV3.js +485 -0
- package/script/parse/v3-1/securityRequirement/toSecurityRequirement.d.ts +10 -0
- package/script/parse/v3-1/securityRequirement/toSecurityRequirement.d.ts.map +1 -0
- package/script/parse/v3-1/securityRequirement/toSecurityRequirement.js +13 -0
- package/script/parse/v3-1/securitySchemes/toSecuritySchemes.d.ts +18 -0
- package/script/parse/v3-1/securitySchemes/toSecuritySchemes.d.ts.map +1 -0
- package/script/parse/v3-1/securitySchemes/toSecuritySchemes.js +142 -0
- package/script/parse/v3-1/server/toServerV3.d.ts +23 -0
- package/script/parse/v3-1/server/toServerV3.d.ts.map +1 -0
- package/script/parse/v3-1/server/toServerV3.js +36 -0
- package/script/parse/v3-1/serverVariable/toServerVariableV3.d.ts +23 -0
- package/script/parse/v3-1/serverVariable/toServerVariableV3.d.ts.map +1 -0
- package/script/parse/v3-1/serverVariable/toServerVariableV3.js +36 -0
- package/script/parse/v3-1/specificationExtensions/toSpecificationExtensionsV3.d.ts +15 -0
- package/script/parse/v3-1/specificationExtensions/toSpecificationExtensionsV3.d.ts.map +1 -0
- package/script/parse/v3-1/specificationExtensions/toSpecificationExtensionsV3.js +30 -0
- package/script/parse/v3-1/string/toString.d.ts +147 -0
- package/script/parse/v3-1/string/toString.d.ts.map +1 -0
- package/script/parse/v3-1/string/toString.js +256 -0
- package/script/parse/v3-1/tag/toTagsV3.d.ts +17 -0
- package/script/parse/v3-1/tag/toTagsV3.d.ts.map +1 -0
- package/script/parse/v3-1/tag/toTagsV3.js +32 -0
- package/script/parse/v3-1/union/toUnion.d.ts +13 -0
- package/script/parse/v3-1/union/toUnion.d.ts.map +1 -0
- package/script/parse/v3-1/union/toUnion.js +70 -0
- package/script/parse/v3-1/unknown/toUnknown.d.ts +11 -0
- package/script/parse/v3-1/unknown/toUnknown.d.ts.map +1 -0
- package/script/parse/v3-1/unknown/toUnknown.js +23 -0
- package/script/parse/v3-1/webhook/toWebhooksV3.d.ts +49 -0
- package/script/parse/v3-1/webhook/toWebhooksV3.d.ts.map +1 -0
- package/script/parse/v3-1/webhook/toWebhooksV3.js +135 -0
- package/script/run/toArtifacts.d.ts +20 -25
- package/script/run/toArtifacts.d.ts.map +1 -1
- package/script/run/toArtifacts.js +9 -60
- package/script/run/toEnrichmentDefaults.d.ts +51 -0
- package/script/run/toEnrichmentDefaults.d.ts.map +1 -0
- package/script/run/toEnrichmentDefaults.js +28 -0
- package/script/run/toSupportedSubjects.d.ts +48 -0
- package/script/run/toSupportedSubjects.d.ts.map +1 -0
- package/script/run/toSupportedSubjects.js +25 -0
- package/script/types/AccessorPath.d.ts +17 -0
- package/script/types/AccessorPath.d.ts.map +1 -0
- package/script/types/AccessorPath.js +45 -0
- package/script/types/AttributionState.d.ts +51 -0
- package/script/types/AttributionState.d.ts.map +1 -0
- package/script/types/AttributionState.js +21 -0
- package/script/types/Brand.d.ts +3 -2
- package/script/types/Brand.d.ts.map +1 -1
- package/script/types/Brand.js +10 -0
- package/script/types/DenoJson.d.ts +1 -0
- package/script/types/DenoJson.d.ts.map +1 -1
- package/script/types/DenoJson.js +1 -0
- package/script/types/EnrichmentDefaults.d.ts +33 -0
- package/script/types/EnrichmentDefaults.d.ts.map +1 -0
- package/script/types/EnrichmentDefaults.js +22 -0
- package/script/types/EnrichmentRequest.d.ts +1 -0
- package/script/types/EnrichmentRequest.d.ts.map +1 -1
- package/script/types/EnrichmentRequest.js +2 -1
- package/script/types/Enrichments.d.ts +136 -175
- package/script/types/Enrichments.d.ts.map +1 -1
- package/script/types/Enrichments.js +105 -138
- package/script/types/GeneratorType.d.ts +45 -107
- package/script/types/GeneratorType.d.ts.map +1 -1
- package/script/types/JsonPointer.d.ts +92 -0
- package/script/types/JsonPointer.d.ts.map +1 -0
- package/script/types/JsonPointer.js +121 -0
- package/script/types/Manifest.d.ts +11 -2
- package/script/types/Manifest.d.ts.map +1 -1
- package/script/types/Manifest.js +84 -37
- package/script/types/Method.d.ts +1 -0
- package/script/types/Method.d.ts.map +1 -1
- package/script/types/Method.js +1 -0
- package/script/types/ModuleExport.d.ts +1 -0
- package/script/types/ModuleExport.d.ts.map +1 -1
- package/script/types/ModuleExport.js +1 -0
- package/script/types/OasBase.d.ts +40 -0
- package/script/types/OasBase.d.ts.map +1 -0
- package/script/types/OasBase.js +52 -0
- package/script/types/Preview.d.ts +100 -66
- package/script/types/Preview.d.ts.map +1 -1
- package/script/types/Preview.js +98 -96
- package/script/types/RefName.d.ts +3 -2
- package/script/types/RefName.d.ts.map +1 -1
- package/script/types/RefName.js +2 -1
- package/script/types/Results.d.ts +1 -0
- package/script/types/Results.d.ts.map +1 -1
- package/script/types/Results.js +36 -35
- package/script/types/Settings.d.ts +236 -25
- package/script/types/Settings.d.ts.map +1 -1
- package/script/types/Settings.js +106 -42
- package/script/types/SkmtcDocument.d.ts +81 -0
- package/script/types/SkmtcDocument.d.ts.map +1 -0
- package/script/types/SkmtcDocument.js +23 -0
- package/script/types/SupportedSubjects.d.ts +41 -0
- package/script/types/SupportedSubjects.d.ts.map +1 -0
- package/script/types/SupportedSubjects.js +11 -0
- package/script/types/TypeSystem.d.ts +1 -0
- package/script/types/TypeSystem.d.ts.map +1 -1
- package/script/types/TypeSystem.js +1 -0
- package/script/types/Variant.d.ts +65 -0
- package/script/types/Variant.d.ts.map +1 -0
- package/script/types/Variant.js +58 -0
- package/esm/deps/jsr.io/@std/fmt/1.0.8/colors.d.ts +0 -700
- package/esm/deps/jsr.io/@std/fmt/1.0.8/colors.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/fmt/1.0.8/colors.js +0 -903
- package/esm/deps/jsr.io/@std/fs/1.0.20/exists.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/fs/1.0.20/exists.js +0 -271
- package/esm/deps/jsr.io/@std/internal/1.0.12/_os.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/internal/1.0.12/_os.js +0 -12
- package/esm/deps/jsr.io/@std/internal/1.0.12/os.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/internal/1.0.12/os.js +0 -5
- package/esm/deps/jsr.io/@std/io/0.225.2/types.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/io/0.225.2/types.js +0 -15
- package/esm/deps/jsr.io/@std/io/0.225.2/write_all.d.ts +0 -51
- package/esm/deps/jsr.io/@std/io/0.225.2/write_all.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/io/0.225.2/write_all.js +0 -61
- package/esm/deps/jsr.io/@std/path/1.1.3/_common/assert_path.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.1.3/_common/constants.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.1.3/_common/from_file_url.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.1.3/_common/normalize.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.1.3/_common/normalize_string.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.1.3/join.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.1.3/join.js +0 -29
- package/esm/deps/jsr.io/@std/path/1.1.3/normalize.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.1.3/normalize.js +0 -32
- package/esm/deps/jsr.io/@std/path/1.1.3/posix/_util.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.1.3/posix/from_file_url.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.1.3/posix/join.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.1.3/posix/normalize.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.1.3/windows/_util.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.1.3/windows/from_file_url.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.1.3/windows/join.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.1.3/windows/normalize.d.ts.map +0 -1
- package/esm/dsl/ContentBase.d.ts +0 -131
- package/esm/dsl/ContentBase.d.ts.map +0 -1
- package/esm/dsl/ContentBase.js +0 -137
- package/esm/dsl/EntityType.d.ts +0 -89
- package/esm/dsl/EntityType.d.ts.map +0 -1
- package/esm/dsl/EntityType.js +0 -106
- package/esm/dsl/File.d.ts +0 -232
- package/esm/dsl/File.d.ts.map +0 -1
- package/esm/dsl/File.js +0 -288
- package/esm/dsl/Identifier.d.ts +0 -163
- package/esm/dsl/Identifier.d.ts.map +0 -1
- package/esm/dsl/Identifier.js +0 -200
- package/esm/dsl/Import.d.ts +0 -243
- package/esm/dsl/Import.d.ts.map +0 -1
- package/esm/dsl/Import.js +0 -265
- package/esm/dsl/model/ModelBase.d.ts +0 -285
- package/esm/dsl/model/ModelBase.d.ts.map +0 -1
- package/esm/dsl/model/ModelBase.js +0 -294
- package/esm/dsl/model/toModelBase.d.ts +0 -106
- package/esm/dsl/model/toModelBase.d.ts.map +0 -1
- package/esm/dsl/model/toModelBase.js +0 -105
- package/esm/dsl/operation/OperationBase.d.ts +0 -388
- package/esm/dsl/operation/OperationBase.d.ts.map +0 -1
- package/esm/dsl/operation/OperationBase.js +0 -407
- package/esm/dsl/operation/OperationDriver.d.ts +0 -111
- package/esm/dsl/operation/OperationDriver.d.ts.map +0 -1
- package/esm/dsl/operation/OperationDriver.js +0 -191
- package/esm/dsl/operation/toOperationBase.d.ts +0 -94
- package/esm/dsl/operation/toOperationBase.d.ts.map +0 -1
- package/esm/dsl/operation/toOperationBase.js +0 -99
- package/esm/dsl/operation/toOperationEntry.d.ts +0 -63
- package/esm/dsl/operation/toOperationEntry.d.ts.map +0 -1
- package/esm/dsl/operation/toOperationEntry.js +0 -53
- package/esm/dsl/operation/types.d.ts +0 -125
- package/esm/dsl/operation/types.d.ts.map +0 -1
- package/esm/helpers/protectedKeywords.d.ts +0 -2
- package/esm/helpers/protectedKeywords.d.ts.map +0 -1
- package/esm/helpers/protectedKeywords.js +0 -69
- package/esm/helpers/sanitizePropertyName.d.ts +0 -3
- package/esm/helpers/sanitizePropertyName.d.ts.map +0 -1
- package/esm/helpers/sanitizePropertyName.js +0 -14
- package/esm/helpers/tracer.d.ts +0 -127
- package/esm/helpers/tracer.d.ts.map +0 -1
- package/esm/helpers/tracer.js +0 -137
- package/esm/oas/_helpers/parseEnum.d.ts +0 -14
- package/esm/oas/_helpers/parseEnum.d.ts.map +0 -1
- package/esm/oas/_helpers/parseEnum.js +0 -23
- package/esm/oas/_helpers/parseNullable.d.ts +0 -142
- package/esm/oas/_helpers/parseNullable.d.ts.map +0 -1
- package/esm/oas/_merge-all-of/check-array-item-type-conflicts.d.ts.map +0 -1
- package/esm/oas/_merge-all-of/check-at-least-one-type-match.d.ts.map +0 -1
- package/esm/oas/_merge-all-of/check-enum-conflicts.d.ts.map +0 -1
- package/esm/oas/_merge-all-of/check-format-conflicts.d.ts.map +0 -1
- package/esm/oas/_merge-all-of/check-number-constraints-conflicts.d.ts.map +0 -1
- package/esm/oas/_merge-all-of/check-read-only-write-only-conflicts.d.ts.map +0 -1
- package/esm/oas/_merge-all-of/check-type-conflicts.d.ts.map +0 -1
- package/esm/oas/_merge-all-of/cross-product.d.ts.map +0 -1
- package/esm/oas/_merge-all-of/decompose-intersection.d.ts.map +0 -1
- package/esm/oas/_merge-all-of/decompose-union.d.ts.map +0 -1
- package/esm/oas/_merge-all-of/decompose-union.js +0 -52
- package/esm/oas/_merge-all-of/generic-merge.d.ts.map +0 -1
- package/esm/oas/_merge-all-of/is-equal.d.ts.map +0 -1
- package/esm/oas/_merge-all-of/merge-array-constraints.d.ts.map +0 -1
- package/esm/oas/_merge-all-of/merge-boolean-constraints.d.ts.map +0 -1
- package/esm/oas/_merge-all-of/merge-enum-values.d.ts.map +0 -1
- package/esm/oas/_merge-all-of/merge-integer-constraints.d.ts.map +0 -1
- package/esm/oas/_merge-all-of/merge-intersection.d.ts.map +0 -1
- package/esm/oas/_merge-all-of/merge-number-constraints.d.ts.map +0 -1
- package/esm/oas/_merge-all-of/merge-object-constraints.d.ts.map +0 -1
- package/esm/oas/_merge-all-of/merge-properties.d.ts.map +0 -1
- package/esm/oas/_merge-all-of/merge-required.d.ts.map +0 -1
- package/esm/oas/_merge-all-of/merge-string-constraints.d.ts.map +0 -1
- package/esm/oas/_merge-all-of/merge-union.d.ts.map +0 -1
- package/esm/oas/_merge-all-of/merge-union.js +0 -53
- package/esm/oas/_merge-all-of/merge.d.ts.map +0 -1
- package/esm/oas/_merge-all-of/merge.js +0 -155
- package/esm/oas/_merge-all-of/nullable-merge.d.ts.map +0 -1
- package/esm/oas/_merge-all-of/nullable-merge.js +0 -12
- package/esm/oas/_merge-all-of/types.d.ts.map +0 -1
- package/esm/oas/array/toArray.d.ts +0 -81
- package/esm/oas/array/toArray.d.ts.map +0 -1
- package/esm/oas/array/toArray.js +0 -184
- package/esm/oas/boolean/toBoolean.d.ts +0 -79
- package/esm/oas/boolean/toBoolean.d.ts.map +0 -1
- package/esm/oas/boolean/toBoolean.js +0 -179
- package/esm/oas/components/toComponentsV3.d.ts +0 -12
- package/esm/oas/components/toComponentsV3.d.ts.map +0 -1
- package/esm/oas/components/toComponentsV3.js +0 -39
- package/esm/oas/contact/toContactV3.d.ts +0 -6
- package/esm/oas/contact/toContactV3.d.ts.map +0 -1
- package/esm/oas/contact/toContactV3.js +0 -18
- package/esm/oas/discriminator/toDiscriminatorV3.d.ts +0 -12
- package/esm/oas/discriminator/toDiscriminatorV3.d.ts.map +0 -1
- package/esm/oas/discriminator/toDiscriminatorV3.js +0 -20
- package/esm/oas/document/toDocumentFieldsV3.d.ts +0 -12
- package/esm/oas/document/toDocumentFieldsV3.d.ts.map +0 -1
- package/esm/oas/document/toDocumentFieldsV3.js +0 -30
- package/esm/oas/example/toExamplesV3.d.ts +0 -69
- package/esm/oas/example/toExamplesV3.d.ts.map +0 -1
- package/esm/oas/example/toExamplesV3.js +0 -89
- package/esm/oas/externalDocs/toExternalDocs.d.ts +0 -12
- package/esm/oas/externalDocs/toExternalDocs.d.ts.map +0 -1
- package/esm/oas/externalDocs/toExternalDocs.js +0 -15
- package/esm/oas/header/toHeadersV3.d.ts +0 -13
- package/esm/oas/header/toHeadersV3.d.ts.map +0 -1
- package/esm/oas/header/toHeadersV3.js +0 -47
- package/esm/oas/info/toInfoV3.d.ts +0 -12
- package/esm/oas/info/toInfoV3.d.ts.map +0 -1
- package/esm/oas/info/toInfoV3.js +0 -23
- package/esm/oas/integer/toInteger.d.ts +0 -21
- package/esm/oas/integer/toInteger.d.ts.map +0 -1
- package/esm/oas/integer/toInteger.js +0 -117
- package/esm/oas/license/toLicenseV3.d.ts +0 -6
- package/esm/oas/license/toLicenseV3.d.ts.map +0 -1
- package/esm/oas/license/toLicenseV3.js +0 -17
- package/esm/oas/mediaType/toMediaTypeItemV3.d.ts +0 -316
- package/esm/oas/mediaType/toMediaTypeItemV3.d.ts.map +0 -1
- package/esm/oas/mediaType/toMediaTypeItemV3.js +0 -314
- package/esm/oas/number/toNumber.d.ts +0 -12
- package/esm/oas/number/toNumber.d.ts.map +0 -1
- package/esm/oas/number/toNumber.js +0 -117
- package/esm/oas/object/toAdditionalPropertiesV3.d.ts +0 -13
- package/esm/oas/object/toAdditionalPropertiesV3.d.ts.map +0 -1
- package/esm/oas/object/toObject.d.ts +0 -12
- package/esm/oas/object/toObject.d.ts.map +0 -1
- package/esm/oas/object/toObject.js +0 -93
- package/esm/oas/operation/toOperationsV3.d.ts +0 -26
- package/esm/oas/operation/toOperationsV3.d.ts.map +0 -1
- package/esm/oas/operation/toOperationsV3.js +0 -102
- package/esm/oas/parameter/toParameterV3.d.ts +0 -25
- package/esm/oas/parameter/toParameterV3.d.ts.map +0 -1
- package/esm/oas/parameter/toParameterV3.js +0 -115
- package/esm/oas/pathItem/toPathItemV3.d.ts +0 -12
- package/esm/oas/pathItem/toPathItemV3.d.ts.map +0 -1
- package/esm/oas/pathItem/toPathItemV3.js +0 -18
- package/esm/oas/ref/toRefV31.d.ts +0 -14
- package/esm/oas/ref/toRefV31.d.ts.map +0 -1
- package/esm/oas/ref/toRefV31.js +0 -13
- package/esm/oas/requestBody/toRequestBodiesV3.d.ts +0 -20
- package/esm/oas/requestBody/toRequestBodiesV3.d.ts.map +0 -1
- package/esm/oas/requestBody/toRequestBodiesV3.js +0 -44
- package/esm/oas/response/toResponseV3.d.ts +0 -25
- package/esm/oas/response/toResponseV3.d.ts.map +0 -1
- package/esm/oas/response/toResponseV3.js +0 -53
- package/esm/oas/schema/toSchemasV3.d.ts +0 -31
- package/esm/oas/schema/toSchemasV3.d.ts.map +0 -1
- package/esm/oas/schema/toSchemasV3.js +0 -227
- package/esm/oas/securityRequirement/toSecurityRequirement.d.ts +0 -11
- package/esm/oas/securityRequirement/toSecurityRequirement.d.ts.map +0 -1
- package/esm/oas/securityRequirement/toSecurityRequirement.js +0 -9
- package/esm/oas/securitySchemes/toSecuritySchemes.d.ts +0 -13
- package/esm/oas/securitySchemes/toSecuritySchemes.d.ts.map +0 -1
- package/esm/oas/securitySchemes/toSecuritySchemes.js +0 -89
- package/esm/oas/server/toServerV3.d.ts +0 -24
- package/esm/oas/server/toServerV3.d.ts.map +0 -1
- package/esm/oas/server/toServerV3.js +0 -30
- package/esm/oas/serverVariable/toServerVariableV3.d.ts +0 -24
- package/esm/oas/serverVariable/toServerVariableV3.d.ts.map +0 -1
- package/esm/oas/serverVariable/toServerVariableV3.js +0 -30
- package/esm/oas/specificationExtensions/toSpecificationExtensionsV3.d.ts +0 -16
- package/esm/oas/specificationExtensions/toSpecificationExtensionsV3.d.ts.map +0 -1
- package/esm/oas/specificationExtensions/toSpecificationExtensionsV3.js +0 -25
- package/esm/oas/string/toString.d.ts +0 -147
- package/esm/oas/string/toString.d.ts.map +0 -1
- package/esm/oas/string/toString.js +0 -252
- package/esm/oas/tag/toTagsV3.d.ts +0 -18
- package/esm/oas/tag/toTagsV3.d.ts.map +0 -1
- package/esm/oas/tag/toTagsV3.js +0 -24
- package/esm/oas/union/toUnion.d.ts +0 -14
- package/esm/oas/union/toUnion.d.ts.map +0 -1
- package/esm/oas/union/toUnion.js +0 -32
- package/esm/oas/unknown/toUnknown.d.ts +0 -12
- package/esm/oas/unknown/toUnknown.d.ts.map +0 -1
- package/esm/oas/unknown/toUnknown.js +0 -19
- package/esm/types/PrettierConfig.d.ts +0 -101
- package/esm/types/PrettierConfig.d.ts.map +0 -1
- package/esm/types/PrettierConfig.js +0 -99
- package/esm/typescript/FunctionParameter.d.ts +0 -349
- package/esm/typescript/FunctionParameter.d.ts.map +0 -1
- package/esm/typescript/FunctionParameter.js +0 -457
- package/esm/typescript/List.d.ts +0 -362
- package/esm/typescript/List.d.ts.map +0 -1
- package/esm/typescript/List.js +0 -503
- package/esm/typescript/PathParams.d.ts +0 -218
- package/esm/typescript/PathParams.d.ts.map +0 -1
- package/esm/typescript/PathParams.js +0 -239
- package/esm/typescript/ReactRouterPathParams.d.ts +0 -210
- package/esm/typescript/ReactRouterPathParams.d.ts.map +0 -1
- package/esm/typescript/ReactRouterPathParams.js +0 -232
- package/esm/typescript/identifiers.d.ts +0 -162
- package/esm/typescript/identifiers.d.ts.map +0 -1
- package/esm/typescript/identifiers.js +0 -166
- package/esm/typescript/keyValues.d.ts +0 -128
- package/esm/typescript/keyValues.d.ts.map +0 -1
- package/esm/typescript/keyValues.js +0 -135
- package/esm/typescript/toPathParams.d.ts +0 -181
- package/esm/typescript/toPathParams.d.ts.map +0 -1
- package/esm/typescript/toPathParams.js +0 -182
- package/esm/typescript/toPathTemplate.d.ts +0 -116
- package/esm/typescript/toPathTemplate.d.ts.map +0 -1
- package/esm/typescript/toPathTemplate.js +0 -117
- package/esm/typescript/withDescription.d.ts +0 -123
- package/esm/typescript/withDescription.d.ts.map +0 -1
- package/esm/typescript/withDescription.js +0 -122
- package/script/deps/jsr.io/@std/fmt/1.0.8/colors.d.ts +0 -700
- package/script/deps/jsr.io/@std/fmt/1.0.8/colors.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/fmt/1.0.8/colors.js +0 -986
- package/script/deps/jsr.io/@std/fs/1.0.20/exists.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/fs/1.0.20/exists.js +0 -308
- package/script/deps/jsr.io/@std/internal/1.0.12/_os.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/internal/1.0.12/_os.js +0 -48
- package/script/deps/jsr.io/@std/internal/1.0.12/os.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/internal/1.0.12/os.js +0 -8
- package/script/deps/jsr.io/@std/io/0.225.2/types.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/io/0.225.2/types.js +0 -18
- package/script/deps/jsr.io/@std/io/0.225.2/write_all.d.ts +0 -51
- package/script/deps/jsr.io/@std/io/0.225.2/write_all.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/io/0.225.2/write_all.js +0 -65
- package/script/deps/jsr.io/@std/path/1.1.3/_common/assert_path.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.1.3/_common/constants.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.1.3/_common/from_file_url.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.1.3/_common/normalize.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.1.3/_common/normalize_string.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.1.3/join.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.1.3/join.js +0 -32
- package/script/deps/jsr.io/@std/path/1.1.3/normalize.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.1.3/normalize.js +0 -35
- package/script/deps/jsr.io/@std/path/1.1.3/posix/_util.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.1.3/posix/from_file_url.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.1.3/posix/join.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.1.3/posix/normalize.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.1.3/windows/_util.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.1.3/windows/from_file_url.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.1.3/windows/join.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.1.3/windows/normalize.d.ts.map +0 -1
- package/script/dsl/ContentBase.d.ts +0 -131
- package/script/dsl/ContentBase.d.ts.map +0 -1
- package/script/dsl/ContentBase.js +0 -141
- package/script/dsl/EntityType.d.ts +0 -89
- package/script/dsl/EntityType.d.ts.map +0 -1
- package/script/dsl/EntityType.js +0 -110
- package/script/dsl/File.d.ts +0 -232
- package/script/dsl/File.d.ts.map +0 -1
- package/script/dsl/File.js +0 -293
- package/script/dsl/Identifier.d.ts +0 -163
- package/script/dsl/Identifier.d.ts.map +0 -1
- package/script/dsl/Identifier.js +0 -204
- package/script/dsl/Import.d.ts +0 -243
- package/script/dsl/Import.d.ts.map +0 -1
- package/script/dsl/Import.js +0 -270
- package/script/dsl/model/ModelBase.d.ts +0 -285
- package/script/dsl/model/ModelBase.d.ts.map +0 -1
- package/script/dsl/model/ModelBase.js +0 -298
- package/script/dsl/model/toModelBase.d.ts +0 -106
- package/script/dsl/model/toModelBase.d.ts.map +0 -1
- package/script/dsl/model/toModelBase.js +0 -145
- package/script/dsl/operation/OperationBase.d.ts +0 -388
- package/script/dsl/operation/OperationBase.d.ts.map +0 -1
- package/script/dsl/operation/OperationBase.js +0 -411
- package/script/dsl/operation/OperationDriver.d.ts +0 -111
- package/script/dsl/operation/OperationDriver.d.ts.map +0 -1
- package/script/dsl/operation/OperationDriver.js +0 -195
- package/script/dsl/operation/toOperationBase.d.ts +0 -94
- package/script/dsl/operation/toOperationBase.d.ts.map +0 -1
- package/script/dsl/operation/toOperationBase.js +0 -139
- package/script/dsl/operation/toOperationEntry.d.ts +0 -63
- package/script/dsl/operation/toOperationEntry.d.ts.map +0 -1
- package/script/dsl/operation/toOperationEntry.js +0 -93
- package/script/dsl/operation/types.d.ts +0 -125
- package/script/dsl/operation/types.d.ts.map +0 -1
- package/script/helpers/protectedKeywords.d.ts +0 -2
- package/script/helpers/protectedKeywords.d.ts.map +0 -1
- package/script/helpers/protectedKeywords.js +0 -72
- package/script/helpers/sanitizePropertyName.d.ts +0 -3
- package/script/helpers/sanitizePropertyName.d.ts.map +0 -1
- package/script/helpers/sanitizePropertyName.js +0 -18
- package/script/helpers/tracer.d.ts +0 -127
- package/script/helpers/tracer.d.ts.map +0 -1
- package/script/helpers/tracer.js +0 -141
- package/script/oas/_helpers/parseEnum.d.ts +0 -14
- package/script/oas/_helpers/parseEnum.d.ts.map +0 -1
- package/script/oas/_helpers/parseEnum.js +0 -27
- package/script/oas/_helpers/parseNullable.d.ts +0 -142
- package/script/oas/_helpers/parseNullable.d.ts.map +0 -1
- package/script/oas/_merge-all-of/check-array-item-type-conflicts.d.ts.map +0 -1
- package/script/oas/_merge-all-of/check-at-least-one-type-match.d.ts.map +0 -1
- package/script/oas/_merge-all-of/check-enum-conflicts.d.ts.map +0 -1
- package/script/oas/_merge-all-of/check-format-conflicts.d.ts.map +0 -1
- package/script/oas/_merge-all-of/check-number-constraints-conflicts.d.ts.map +0 -1
- package/script/oas/_merge-all-of/check-read-only-write-only-conflicts.d.ts.map +0 -1
- package/script/oas/_merge-all-of/check-type-conflicts.d.ts.map +0 -1
- package/script/oas/_merge-all-of/cross-product.d.ts.map +0 -1
- package/script/oas/_merge-all-of/decompose-intersection.d.ts.map +0 -1
- package/script/oas/_merge-all-of/decompose-union.d.ts.map +0 -1
- package/script/oas/_merge-all-of/decompose-union.js +0 -56
- package/script/oas/_merge-all-of/generic-merge.d.ts.map +0 -1
- package/script/oas/_merge-all-of/is-equal.d.ts.map +0 -1
- package/script/oas/_merge-all-of/merge-array-constraints.d.ts.map +0 -1
- package/script/oas/_merge-all-of/merge-boolean-constraints.d.ts.map +0 -1
- package/script/oas/_merge-all-of/merge-enum-values.d.ts.map +0 -1
- package/script/oas/_merge-all-of/merge-integer-constraints.d.ts.map +0 -1
- package/script/oas/_merge-all-of/merge-intersection.d.ts.map +0 -1
- package/script/oas/_merge-all-of/merge-number-constraints.d.ts.map +0 -1
- package/script/oas/_merge-all-of/merge-object-constraints.d.ts.map +0 -1
- package/script/oas/_merge-all-of/merge-properties.d.ts.map +0 -1
- package/script/oas/_merge-all-of/merge-required.d.ts.map +0 -1
- package/script/oas/_merge-all-of/merge-string-constraints.d.ts.map +0 -1
- package/script/oas/_merge-all-of/merge-union.d.ts.map +0 -1
- package/script/oas/_merge-all-of/merge-union.js +0 -58
- package/script/oas/_merge-all-of/merge.d.ts.map +0 -1
- package/script/oas/_merge-all-of/merge.js +0 -159
- package/script/oas/_merge-all-of/nullable-merge.d.ts.map +0 -1
- package/script/oas/_merge-all-of/nullable-merge.js +0 -17
- package/script/oas/_merge-all-of/types.d.ts.map +0 -1
- package/script/oas/array/toArray.d.ts +0 -81
- package/script/oas/array/toArray.d.ts.map +0 -1
- package/script/oas/array/toArray.js +0 -222
- package/script/oas/boolean/toBoolean.d.ts +0 -79
- package/script/oas/boolean/toBoolean.d.ts.map +0 -1
- package/script/oas/boolean/toBoolean.js +0 -217
- package/script/oas/components/toComponentsV3.d.ts +0 -12
- package/script/oas/components/toComponentsV3.d.ts.map +0 -1
- package/script/oas/components/toComponentsV3.js +0 -43
- package/script/oas/contact/toContactV3.d.ts +0 -6
- package/script/oas/contact/toContactV3.d.ts.map +0 -1
- package/script/oas/contact/toContactV3.js +0 -22
- package/script/oas/discriminator/toDiscriminatorV3.d.ts +0 -12
- package/script/oas/discriminator/toDiscriminatorV3.d.ts.map +0 -1
- package/script/oas/discriminator/toDiscriminatorV3.js +0 -24
- package/script/oas/document/toDocumentFieldsV3.d.ts +0 -12
- package/script/oas/document/toDocumentFieldsV3.d.ts.map +0 -1
- package/script/oas/document/toDocumentFieldsV3.js +0 -34
- package/script/oas/example/toExamplesV3.d.ts +0 -69
- package/script/oas/example/toExamplesV3.d.ts.map +0 -1
- package/script/oas/example/toExamplesV3.js +0 -95
- package/script/oas/externalDocs/toExternalDocs.d.ts +0 -12
- package/script/oas/externalDocs/toExternalDocs.d.ts.map +0 -1
- package/script/oas/externalDocs/toExternalDocs.js +0 -52
- package/script/oas/header/toHeadersV3.d.ts +0 -13
- package/script/oas/header/toHeadersV3.d.ts.map +0 -1
- package/script/oas/header/toHeadersV3.js +0 -51
- package/script/oas/info/toInfoV3.d.ts +0 -12
- package/script/oas/info/toInfoV3.d.ts.map +0 -1
- package/script/oas/info/toInfoV3.js +0 -27
- package/script/oas/integer/toInteger.d.ts +0 -21
- package/script/oas/integer/toInteger.d.ts.map +0 -1
- package/script/oas/integer/toInteger.js +0 -155
- package/script/oas/license/toLicenseV3.d.ts +0 -6
- package/script/oas/license/toLicenseV3.d.ts.map +0 -1
- package/script/oas/license/toLicenseV3.js +0 -21
- package/script/oas/mediaType/toMediaTypeItemV3.d.ts +0 -316
- package/script/oas/mediaType/toMediaTypeItemV3.d.ts.map +0 -1
- package/script/oas/mediaType/toMediaTypeItemV3.js +0 -320
- package/script/oas/number/toNumber.d.ts +0 -12
- package/script/oas/number/toNumber.d.ts.map +0 -1
- package/script/oas/number/toNumber.js +0 -154
- package/script/oas/object/toAdditionalPropertiesV3.d.ts +0 -13
- package/script/oas/object/toAdditionalPropertiesV3.d.ts.map +0 -1
- package/script/oas/object/toObject.d.ts +0 -12
- package/script/oas/object/toObject.d.ts.map +0 -1
- package/script/oas/object/toObject.js +0 -97
- package/script/oas/operation/toOperationsV3.d.ts +0 -26
- package/script/oas/operation/toOperationsV3.d.ts.map +0 -1
- package/script/oas/operation/toOperationsV3.js +0 -110
- package/script/oas/parameter/toParameterV3.d.ts +0 -25
- package/script/oas/parameter/toParameterV3.d.ts.map +0 -1
- package/script/oas/parameter/toParameterV3.js +0 -157
- package/script/oas/pathItem/toPathItemV3.d.ts +0 -12
- package/script/oas/pathItem/toPathItemV3.d.ts.map +0 -1
- package/script/oas/pathItem/toPathItemV3.js +0 -22
- package/script/oas/ref/toRefV31.d.ts +0 -14
- package/script/oas/ref/toRefV31.d.ts.map +0 -1
- package/script/oas/ref/toRefV31.js +0 -17
- package/script/oas/requestBody/toRequestBodiesV3.d.ts +0 -20
- package/script/oas/requestBody/toRequestBodiesV3.d.ts.map +0 -1
- package/script/oas/requestBody/toRequestBodiesV3.js +0 -49
- package/script/oas/response/toResponseV3.d.ts +0 -25
- package/script/oas/response/toResponseV3.d.ts.map +0 -1
- package/script/oas/response/toResponseV3.js +0 -62
- package/script/oas/schema/toSchemasV3.d.ts +0 -31
- package/script/oas/schema/toSchemasV3.d.ts.map +0 -1
- package/script/oas/schema/toSchemasV3.js +0 -237
- package/script/oas/securityRequirement/toSecurityRequirement.d.ts +0 -11
- package/script/oas/securityRequirement/toSecurityRequirement.d.ts.map +0 -1
- package/script/oas/securityRequirement/toSecurityRequirement.js +0 -13
- package/script/oas/securitySchemes/toSecuritySchemes.d.ts +0 -13
- package/script/oas/securitySchemes/toSecuritySchemes.d.ts.map +0 -1
- package/script/oas/securitySchemes/toSecuritySchemes.js +0 -126
- package/script/oas/server/toServerV3.d.ts +0 -24
- package/script/oas/server/toServerV3.d.ts.map +0 -1
- package/script/oas/server/toServerV3.js +0 -36
- package/script/oas/serverVariable/toServerVariableV3.d.ts +0 -24
- package/script/oas/serverVariable/toServerVariableV3.d.ts.map +0 -1
- package/script/oas/serverVariable/toServerVariableV3.js +0 -36
- package/script/oas/specificationExtensions/toSpecificationExtensionsV3.d.ts +0 -16
- package/script/oas/specificationExtensions/toSpecificationExtensionsV3.d.ts.map +0 -1
- package/script/oas/specificationExtensions/toSpecificationExtensionsV3.js +0 -30
- package/script/oas/string/toString.d.ts +0 -147
- package/script/oas/string/toString.d.ts.map +0 -1
- package/script/oas/string/toString.js +0 -290
- package/script/oas/tag/toTagsV3.d.ts +0 -18
- package/script/oas/tag/toTagsV3.d.ts.map +0 -1
- package/script/oas/tag/toTagsV3.js +0 -29
- package/script/oas/union/toUnion.d.ts +0 -14
- package/script/oas/union/toUnion.d.ts.map +0 -1
- package/script/oas/union/toUnion.js +0 -36
- package/script/oas/unknown/toUnknown.d.ts +0 -12
- package/script/oas/unknown/toUnknown.d.ts.map +0 -1
- package/script/oas/unknown/toUnknown.js +0 -23
- package/script/types/PrettierConfig.d.ts +0 -101
- package/script/types/PrettierConfig.d.ts.map +0 -1
- package/script/types/PrettierConfig.js +0 -135
- package/script/typescript/FunctionParameter.d.ts +0 -349
- package/script/typescript/FunctionParameter.d.ts.map +0 -1
- package/script/typescript/FunctionParameter.js +0 -461
- package/script/typescript/List.d.ts +0 -362
- package/script/typescript/List.d.ts.map +0 -1
- package/script/typescript/List.js +0 -509
- package/script/typescript/PathParams.d.ts +0 -218
- package/script/typescript/PathParams.d.ts.map +0 -1
- package/script/typescript/PathParams.js +0 -243
- package/script/typescript/ReactRouterPathParams.d.ts +0 -210
- package/script/typescript/ReactRouterPathParams.d.ts.map +0 -1
- package/script/typescript/ReactRouterPathParams.js +0 -236
- package/script/typescript/identifiers.d.ts +0 -162
- package/script/typescript/identifiers.d.ts.map +0 -1
- package/script/typescript/identifiers.js +0 -171
- package/script/typescript/keyValues.d.ts +0 -128
- package/script/typescript/keyValues.d.ts.map +0 -1
- package/script/typescript/keyValues.js +0 -139
- package/script/typescript/toPathParams.d.ts +0 -181
- package/script/typescript/toPathParams.d.ts.map +0 -1
- package/script/typescript/toPathParams.js +0 -186
- package/script/typescript/toPathTemplate.d.ts +0 -116
- package/script/typescript/toPathTemplate.d.ts.map +0 -1
- package/script/typescript/toPathTemplate.js +0 -121
- package/script/typescript/withDescription.d.ts +0 -123
- package/script/typescript/withDescription.d.ts.map +0 -1
- package/script/typescript/withDescription.js +0 -126
- /package/esm/{dsl/operation/types.js → _dnt.polyfills.js} +0 -0
- /package/esm/deps/jsr.io/@std/fs/{1.0.20 → 1.0.23}/exists.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/internal/{1.0.12 → 1.0.13}/_os.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/internal/{1.0.12 → 1.0.13}/os.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/io/{0.225.2 → 0.225.3}/types.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/_common/assert_path.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/_common/assert_path.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/_common/constants.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/_common/constants.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/_common/from_file_url.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/_common/from_file_url.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/_common/normalize.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/_common/normalize.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/_common/normalize_string.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/_common/normalize_string.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/join.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/normalize.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/posix/_util.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/posix/_util.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/posix/from_file_url.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/posix/from_file_url.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/posix/join.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/posix/join.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/posix/normalize.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/posix/normalize.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/windows/_util.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/windows/_util.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/windows/from_file_url.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/windows/from_file_url.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/windows/join.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/windows/join.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/windows/normalize.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/windows/normalize.js +0 -0
- /package/esm/{oas → parse/v3-0}/_helpers/parseNullable.js +0 -0
- /package/esm/{oas → parse/v3-0}/_merge-all-of/check-array-item-type-conflicts.d.ts +0 -0
- /package/esm/{oas → parse/v3-0}/_merge-all-of/check-array-item-type-conflicts.js +0 -0
- /package/esm/{oas → parse/v3-0}/_merge-all-of/check-at-least-one-type-match.d.ts +0 -0
- /package/esm/{oas → parse/v3-0}/_merge-all-of/check-at-least-one-type-match.js +0 -0
- /package/esm/{oas → parse/v3-0}/_merge-all-of/check-enum-conflicts.d.ts +0 -0
- /package/esm/{oas → parse/v3-0}/_merge-all-of/check-enum-conflicts.js +0 -0
- /package/esm/{oas → parse/v3-0}/_merge-all-of/check-format-conflicts.d.ts +0 -0
- /package/esm/{oas → parse/v3-0}/_merge-all-of/check-format-conflicts.js +0 -0
- /package/esm/{oas → parse/v3-0}/_merge-all-of/check-number-constraints-conflicts.d.ts +0 -0
- /package/esm/{oas → parse/v3-0}/_merge-all-of/check-number-constraints-conflicts.js +0 -0
- /package/esm/{oas → parse/v3-0}/_merge-all-of/check-read-only-write-only-conflicts.d.ts +0 -0
- /package/esm/{oas → parse/v3-0}/_merge-all-of/check-read-only-write-only-conflicts.js +0 -0
- /package/esm/{oas → parse/v3-0}/_merge-all-of/check-type-conflicts.d.ts +0 -0
- /package/esm/{oas → parse/v3-0}/_merge-all-of/check-type-conflicts.js +0 -0
- /package/esm/{oas → parse/v3-0}/_merge-all-of/cross-product.d.ts +0 -0
- /package/esm/{oas → parse/v3-0}/_merge-all-of/cross-product.js +0 -0
- /package/esm/{oas → parse/v3-0}/_merge-all-of/decompose-intersection.d.ts +0 -0
- /package/esm/{oas → parse/v3-0}/_merge-all-of/decompose-intersection.js +0 -0
- /package/esm/{oas → parse/v3-0}/_merge-all-of/decompose-union.d.ts +0 -0
- /package/esm/{oas → parse/v3-0}/_merge-all-of/generic-merge.d.ts +0 -0
- /package/esm/{oas → parse/v3-0}/_merge-all-of/generic-merge.js +0 -0
- /package/esm/{oas → parse/v3-0}/_merge-all-of/is-equal.d.ts +0 -0
- /package/esm/{oas → parse/v3-0}/_merge-all-of/is-equal.js +0 -0
- /package/esm/{oas → parse/v3-0}/_merge-all-of/merge-array-constraints.d.ts +0 -0
- /package/esm/{oas → parse/v3-0}/_merge-all-of/merge-array-constraints.js +0 -0
- /package/esm/{oas → parse/v3-0}/_merge-all-of/merge-boolean-constraints.d.ts +0 -0
- /package/esm/{oas → parse/v3-0}/_merge-all-of/merge-boolean-constraints.js +0 -0
- /package/esm/{oas → parse/v3-0}/_merge-all-of/merge-enum-values.d.ts +0 -0
- /package/esm/{oas → parse/v3-0}/_merge-all-of/merge-enum-values.js +0 -0
- /package/esm/{oas → parse/v3-0}/_merge-all-of/merge-integer-constraints.d.ts +0 -0
- /package/esm/{oas → parse/v3-0}/_merge-all-of/merge-integer-constraints.js +0 -0
- /package/esm/{oas → parse/v3-0}/_merge-all-of/merge-intersection.d.ts +0 -0
- /package/esm/{oas → parse/v3-0}/_merge-all-of/merge-intersection.js +0 -0
- /package/esm/{oas → parse/v3-0}/_merge-all-of/merge-number-constraints.d.ts +0 -0
- /package/esm/{oas → parse/v3-0}/_merge-all-of/merge-number-constraints.js +0 -0
- /package/esm/{oas → parse/v3-0}/_merge-all-of/merge-object-constraints.d.ts +0 -0
- /package/esm/{oas → parse/v3-0}/_merge-all-of/merge-object-constraints.js +0 -0
- /package/esm/{oas → parse/v3-0}/_merge-all-of/merge-properties.d.ts +0 -0
- /package/esm/{oas → parse/v3-0}/_merge-all-of/merge-properties.js +0 -0
- /package/esm/{oas → parse/v3-0}/_merge-all-of/merge-required.d.ts +0 -0
- /package/esm/{oas → parse/v3-0}/_merge-all-of/merge-required.js +0 -0
- /package/esm/{oas → parse/v3-0}/_merge-all-of/merge-string-constraints.d.ts +0 -0
- /package/esm/{oas → parse/v3-0}/_merge-all-of/merge-string-constraints.js +0 -0
- /package/esm/{oas → parse/v3-0}/_merge-all-of/merge-union.d.ts +0 -0
- /package/esm/{oas → parse/v3-0}/_merge-all-of/merge.d.ts +0 -0
- /package/esm/{oas → parse/v3-0}/_merge-all-of/nullable-merge.d.ts +0 -0
- /package/esm/{oas → parse/v3-0}/_merge-all-of/types.d.ts +0 -0
- /package/esm/{oas → parse/v3-0}/_merge-all-of/types.js +0 -0
- /package/esm/{oas → parse/v3-0}/object/toAdditionalPropertiesV3.js +0 -0
- /package/{script/oas → esm/parse/v3-1}/_merge-all-of/check-array-item-type-conflicts.d.ts +0 -0
- /package/{script/oas → esm/parse/v3-1}/_merge-all-of/check-at-least-one-type-match.d.ts +0 -0
- /package/{script/oas → esm/parse/v3-1}/_merge-all-of/check-enum-conflicts.d.ts +0 -0
- /package/{script/oas → esm/parse/v3-1}/_merge-all-of/check-format-conflicts.d.ts +0 -0
- /package/{script/oas → esm/parse/v3-1}/_merge-all-of/check-number-constraints-conflicts.d.ts +0 -0
- /package/{script/oas → esm/parse/v3-1}/_merge-all-of/check-read-only-write-only-conflicts.d.ts +0 -0
- /package/{script/oas → esm/parse/v3-1}/_merge-all-of/check-type-conflicts.d.ts +0 -0
- /package/{script/oas → esm/parse/v3-1}/_merge-all-of/cross-product.d.ts +0 -0
- /package/{script/oas → esm/parse/v3-1}/_merge-all-of/decompose-intersection.d.ts +0 -0
- /package/{script/oas → esm/parse/v3-1}/_merge-all-of/decompose-union.d.ts +0 -0
- /package/{script/oas → esm/parse/v3-1}/_merge-all-of/generic-merge.d.ts +0 -0
- /package/{script/oas → esm/parse/v3-1}/_merge-all-of/is-equal.d.ts +0 -0
- /package/{script/oas → esm/parse/v3-1}/_merge-all-of/merge-array-constraints.d.ts +0 -0
- /package/{script/oas → esm/parse/v3-1}/_merge-all-of/merge-boolean-constraints.d.ts +0 -0
- /package/{script/oas → esm/parse/v3-1}/_merge-all-of/merge-enum-values.d.ts +0 -0
- /package/{script/oas → esm/parse/v3-1}/_merge-all-of/merge-integer-constraints.d.ts +0 -0
- /package/{script/oas → esm/parse/v3-1}/_merge-all-of/merge-intersection.d.ts +0 -0
- /package/{script/oas → esm/parse/v3-1}/_merge-all-of/merge-number-constraints.d.ts +0 -0
- /package/{script/oas → esm/parse/v3-1}/_merge-all-of/merge-object-constraints.d.ts +0 -0
- /package/{script/oas → esm/parse/v3-1}/_merge-all-of/merge-properties.d.ts +0 -0
- /package/{script/oas → esm/parse/v3-1}/_merge-all-of/merge-required.d.ts +0 -0
- /package/{script/oas → esm/parse/v3-1}/_merge-all-of/merge-string-constraints.d.ts +0 -0
- /package/{script/oas → esm/parse/v3-1}/_merge-all-of/merge-union.d.ts +0 -0
- /package/{script/oas → esm/parse/v3-1}/_merge-all-of/merge.d.ts +0 -0
- /package/{script/oas → esm/parse/v3-1}/_merge-all-of/nullable-merge.d.ts +0 -0
- /package/{script/oas → esm/parse/v3-1}/_merge-all-of/types.d.ts +0 -0
- /package/script/{dsl/operation/types.js → _dnt.polyfills.js} +0 -0
- /package/script/deps/jsr.io/@std/fs/{1.0.20 → 1.0.23}/exists.d.ts +0 -0
- /package/script/deps/jsr.io/@std/internal/{1.0.12 → 1.0.13}/_os.d.ts +0 -0
- /package/script/deps/jsr.io/@std/internal/{1.0.12 → 1.0.13}/os.d.ts +0 -0
- /package/script/deps/jsr.io/@std/io/{0.225.2 → 0.225.3}/types.d.ts +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/_common/assert_path.d.ts +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/_common/assert_path.js +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/_common/constants.d.ts +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/_common/constants.js +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/_common/from_file_url.d.ts +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/_common/from_file_url.js +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/_common/normalize.d.ts +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/_common/normalize.js +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/_common/normalize_string.d.ts +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/_common/normalize_string.js +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/join.d.ts +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/normalize.d.ts +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/posix/_util.d.ts +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/posix/_util.js +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/posix/from_file_url.d.ts +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/posix/from_file_url.js +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/posix/join.d.ts +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/posix/join.js +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/posix/normalize.d.ts +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/posix/normalize.js +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/windows/_util.d.ts +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/windows/_util.js +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/windows/from_file_url.d.ts +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/windows/from_file_url.js +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/windows/join.d.ts +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/windows/join.js +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/windows/normalize.d.ts +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/windows/normalize.js +0 -0
- /package/script/{oas → parse/v3-0}/_helpers/parseNullable.js +0 -0
- /package/script/{oas → parse/v3-0}/_merge-all-of/check-array-item-type-conflicts.js +0 -0
- /package/script/{oas → parse/v3-0}/_merge-all-of/check-at-least-one-type-match.js +0 -0
- /package/script/{oas → parse/v3-0}/_merge-all-of/check-enum-conflicts.js +0 -0
- /package/script/{oas → parse/v3-0}/_merge-all-of/check-format-conflicts.js +0 -0
- /package/script/{oas → parse/v3-0}/_merge-all-of/check-number-constraints-conflicts.js +0 -0
- /package/script/{oas → parse/v3-0}/_merge-all-of/check-read-only-write-only-conflicts.js +0 -0
- /package/script/{oas → parse/v3-0}/_merge-all-of/check-type-conflicts.js +0 -0
- /package/script/{oas → parse/v3-0}/_merge-all-of/cross-product.js +0 -0
- /package/script/{oas → parse/v3-0}/_merge-all-of/decompose-intersection.js +0 -0
- /package/script/{oas → parse/v3-0}/_merge-all-of/generic-merge.js +0 -0
- /package/script/{oas → parse/v3-0}/_merge-all-of/is-equal.js +0 -0
- /package/script/{oas → parse/v3-0}/_merge-all-of/merge-array-constraints.js +0 -0
- /package/script/{oas → parse/v3-0}/_merge-all-of/merge-boolean-constraints.js +0 -0
- /package/script/{oas → parse/v3-0}/_merge-all-of/merge-enum-values.js +0 -0
- /package/script/{oas → parse/v3-0}/_merge-all-of/merge-integer-constraints.js +0 -0
- /package/script/{oas → parse/v3-0}/_merge-all-of/merge-intersection.js +0 -0
- /package/script/{oas → parse/v3-0}/_merge-all-of/merge-number-constraints.js +0 -0
- /package/script/{oas → parse/v3-0}/_merge-all-of/merge-object-constraints.js +0 -0
- /package/script/{oas → parse/v3-0}/_merge-all-of/merge-properties.js +0 -0
- /package/script/{oas → parse/v3-0}/_merge-all-of/merge-required.js +0 -0
- /package/script/{oas → parse/v3-0}/_merge-all-of/merge-string-constraints.js +0 -0
- /package/script/{oas → parse/v3-0}/_merge-all-of/types.js +0 -0
- /package/script/{oas → parse/v3-0}/object/toAdditionalPropertiesV3.js +0 -0
|
@@ -9,15 +9,18 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
9
9
|
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
10
10
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
11
11
|
};
|
|
12
|
-
var _GenerateContext_instances, _GenerateContext_files, _GenerateContext_previews, _GenerateContext_mappings,
|
|
13
|
-
import { normalize } from '../deps/jsr.io/@std/path/1.1.
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
12
|
+
var _GenerateContext_instances, _GenerateContext_files, _GenerateContext_previews, _GenerateContext_mappings, _GenerateContext_captureChannel, _GenerateContext_supports, _GenerateContext_subjectDefaults, _GenerateContext_runOasOperationGenerator, _GenerateContext_runWebhookGenerator, _GenerateContext_runGqlOperationGenerator, _GenerateContext_runModelGenerator, _GenerateContext_addPreview, _GenerateContext_addMapping;
|
|
13
|
+
import { normalize } from '../deps/jsr.io/@std/path/1.1.4/normalize.js';
|
|
14
|
+
import { OasOperationDriver } from '../dsl/operation/oas/OasOperationDriver.js';
|
|
15
|
+
import { WebhookDriver } from '../dsl/webhook/WebhookDriver.js';
|
|
16
|
+
import { GqlOperationDriver } from '../dsl/operation/gql/GqlOperationDriver.js';
|
|
17
17
|
import { ModelDriver } from '../dsl/model/ModelDriver.js';
|
|
18
18
|
import { ContentSettings } from '../dsl/ContentSettings.js';
|
|
19
|
+
import { DEFAULT_VARIANT } from '../types/Variant.js';
|
|
20
|
+
import { toVariantList } from '../helpers/toVariantList.js';
|
|
21
|
+
import get from 'lodash-es/get.js';
|
|
19
22
|
import { Inserted } from '../dsl/Inserted.js';
|
|
20
|
-
import {
|
|
23
|
+
import { CodeFileBase } from '../dsl/CodeFileBase.js';
|
|
21
24
|
import { JsonFile } from '../dsl/JsonFile.js';
|
|
22
25
|
import invariant from 'tiny-invariant';
|
|
23
26
|
/**
|
|
@@ -44,15 +47,15 @@ import invariant from 'tiny-invariant';
|
|
|
44
47
|
*
|
|
45
48
|
* @example Basic usage in a model generator
|
|
46
49
|
* ```typescript
|
|
47
|
-
* import {
|
|
50
|
+
* import { ModelProjectionBase } from '@skmtc/core';
|
|
48
51
|
*
|
|
49
|
-
* class TypeScriptInterface extends
|
|
52
|
+
* class TypeScriptInterface extends ModelProjectionBase {
|
|
50
53
|
* generate(): Definition {
|
|
51
54
|
* const schema = this.context.getSchema(this.refName);
|
|
52
55
|
*
|
|
53
56
|
* return new Definition({
|
|
54
57
|
* context: this.context,
|
|
55
|
-
* identifier:
|
|
58
|
+
* identifier: createType(this.refName),
|
|
56
59
|
* description: schema.description,
|
|
57
60
|
* value: {
|
|
58
61
|
* generatorKey: this.generatorKey,
|
|
@@ -63,19 +66,23 @@ import invariant from 'tiny-invariant';
|
|
|
63
66
|
* }
|
|
64
67
|
* ```
|
|
65
68
|
*/
|
|
69
|
+
const isGqlInsertOperationArgs = (args) => args.operation.oasType === 'gqlOperation';
|
|
70
|
+
const isGqlToOperationSettingsArgs = (args) => args.operation.oasType === 'gqlOperation';
|
|
71
|
+
/** A non-null object — the subject-scope leaf of an enrichment-defaults umbrella
|
|
72
|
+
* (`{ fields, title, … }`). Narrows `unknown` without an `as` cast. */
|
|
73
|
+
const isEnrichmentLeaf = (value) => typeof value === 'object' && value !== null;
|
|
66
74
|
export class GenerateContext {
|
|
67
|
-
|
|
68
|
-
* Creates a new GenerateContext instance for the generation phase.
|
|
69
|
-
*
|
|
70
|
-
* @param args - Constructor arguments including document, settings, and handlers
|
|
71
|
-
*/
|
|
72
|
-
constructor({ oasDocument, settings, logger, captureCurrentResult, toGeneratorConfigMap }) {
|
|
75
|
+
constructor({ document, settings, logger, captureCurrentResult, toGeneratorConfigMap, captureChannel }) {
|
|
73
76
|
_GenerateContext_instances.add(this);
|
|
74
77
|
_GenerateContext_files.set(this, void 0);
|
|
75
78
|
_GenerateContext_previews.set(this, void 0);
|
|
76
79
|
_GenerateContext_mappings.set(this, void 0);
|
|
77
|
-
/**
|
|
78
|
-
|
|
80
|
+
/**
|
|
81
|
+
* Parsed source document, wrapped in the {@link SkmtcParsedDocument}
|
|
82
|
+
* discriminated union. Canonical representation; both protocol-neutral
|
|
83
|
+
* (model) and protocol-specific (operation) dispatch reads through this.
|
|
84
|
+
*/
|
|
85
|
+
Object.defineProperty(this, "document", {
|
|
79
86
|
enumerable: true,
|
|
80
87
|
configurable: true,
|
|
81
88
|
writable: true,
|
|
@@ -116,15 +123,32 @@ export class GenerateContext {
|
|
|
116
123
|
writable: true,
|
|
117
124
|
value: void 0
|
|
118
125
|
});
|
|
126
|
+
/**
|
|
127
|
+
* Creates a new GenerateContext instance for the generation phase.
|
|
128
|
+
*
|
|
129
|
+
* @param args - Constructor arguments including document, settings, and handlers
|
|
130
|
+
*/
|
|
131
|
+
/** Shared attribution capture channel (see {@link ConstructorArgs}). */
|
|
132
|
+
_GenerateContext_captureChannel.set(this, void 0);
|
|
119
133
|
this.logger = logger;
|
|
120
134
|
__classPrivateFieldSet(this, _GenerateContext_files, new Map(), "f");
|
|
121
135
|
__classPrivateFieldSet(this, _GenerateContext_previews, {}, "f");
|
|
122
136
|
__classPrivateFieldSet(this, _GenerateContext_mappings, {}, "f");
|
|
123
|
-
this.
|
|
137
|
+
this.document = document;
|
|
124
138
|
this.settings = settings;
|
|
125
139
|
this.captureCurrentResult = captureCurrentResult;
|
|
126
140
|
this.toGeneratorConfigMap = toGeneratorConfigMap;
|
|
127
141
|
this.modelDepth = {};
|
|
142
|
+
__classPrivateFieldSet(this, _GenerateContext_captureChannel, captureChannel, "f");
|
|
143
|
+
}
|
|
144
|
+
/**
|
|
145
|
+
* The active attribution capture sink, or `undefined` outside the
|
|
146
|
+
* capture interval. Every `SnippetBase` instance's `toString` wrapper
|
|
147
|
+
* reads this; `RenderContext` opens/closes the interval by flipping the
|
|
148
|
+
* shared channel's `sink`.
|
|
149
|
+
*/
|
|
150
|
+
get captureSink() {
|
|
151
|
+
return __classPrivateFieldGet(this, _GenerateContext_captureChannel, "f")?.sink;
|
|
128
152
|
}
|
|
129
153
|
/**
|
|
130
154
|
* @internal
|
|
@@ -133,21 +157,68 @@ export class GenerateContext {
|
|
|
133
157
|
const generators = Object.values(this.toGeneratorConfigMap());
|
|
134
158
|
generators.forEach(generatorConfig => {
|
|
135
159
|
stackTrail.trace(generatorConfig.id, st => {
|
|
160
|
+
// Whole-generator skip (string entry in `skip`). Silent no-op:
|
|
161
|
+
// no per-operation `skipped` results emitted.
|
|
136
162
|
if (this.settings?.skip?.includes(generatorConfig.id)) {
|
|
137
163
|
return;
|
|
138
164
|
}
|
|
165
|
+
// `include` is per-generator, not document-global. A generator
|
|
166
|
+
// with a per-operation include slice runs in allow-list mode
|
|
167
|
+
// (only the listed operations); a generator absent from
|
|
168
|
+
// `include` is unaffected and runs default-on. There is
|
|
169
|
+
// therefore no whole-generator include gate here — the slice
|
|
170
|
+
// extracted below is applied per-operation in the run* arms.
|
|
171
|
+
// (Whole-generator opt-out is `skip`. A bare-string `include`
|
|
172
|
+
// entry carries no per-operation filter and is a no-op.)
|
|
139
173
|
const skip = this.settings?.skip?.find((skip) => {
|
|
140
174
|
return typeof skip === 'object' && Boolean(skip[generatorConfig.id]);
|
|
141
175
|
});
|
|
176
|
+
// Extract the per-generator include slice (if any). Same
|
|
177
|
+
// dispatch shape as skip: object entries get matched by key,
|
|
178
|
+
// string entries don't produce a per-op filter (they mean
|
|
179
|
+
// "everything from this generator is included", which is
|
|
180
|
+
// semantically equivalent to "no per-op filter" once the
|
|
181
|
+
// whole-generator gate above has admitted us).
|
|
182
|
+
const include = this.settings?.include?.find((entry) => {
|
|
183
|
+
return typeof entry === 'object' && Boolean(entry[generatorConfig.id]);
|
|
184
|
+
});
|
|
142
185
|
switch (generatorConfig.type) {
|
|
143
|
-
case '
|
|
144
|
-
|
|
186
|
+
case 'oasOperation':
|
|
187
|
+
if (this.document.type !== 'oas') {
|
|
188
|
+
// Generator targets OAS; current document is GraphQL — skip silently.
|
|
189
|
+
return;
|
|
190
|
+
}
|
|
191
|
+
__classPrivateFieldGet(this, _GenerateContext_instances, "m", _GenerateContext_runOasOperationGenerator).call(this, this.document.value, generatorConfig, toIncludePaths(include, generatorConfig.id), toSkipPaths(skip, generatorConfig.id), st);
|
|
192
|
+
break;
|
|
193
|
+
case 'webhook':
|
|
194
|
+
if (this.document.type !== 'oas') {
|
|
195
|
+
// Webhooks are an OAS 3.1 feature; current document is GraphQL —
|
|
196
|
+
// skip silently.
|
|
197
|
+
return;
|
|
198
|
+
}
|
|
199
|
+
__classPrivateFieldGet(this, _GenerateContext_instances, "m", _GenerateContext_runWebhookGenerator).call(this, this.document.value, generatorConfig, toIncludePaths(include, generatorConfig.id), toSkipPaths(skip, generatorConfig.id), st);
|
|
200
|
+
break;
|
|
201
|
+
case 'gqlOperation':
|
|
202
|
+
if (this.document.type !== 'gql') {
|
|
203
|
+
// Generator targets GraphQL; current document is OAS — skip silently.
|
|
204
|
+
return;
|
|
205
|
+
}
|
|
206
|
+
// GraphQL operations don't yet have skip/include support
|
|
207
|
+
// at the per-operation level. The whole-generator gate
|
|
208
|
+
// above does apply (so `include: ['my-gql-gen']` works as
|
|
209
|
+
// expected), but per-(rootKind, fieldName) filtering is a
|
|
210
|
+
// follow-up that needs the same dispatch shape added for
|
|
211
|
+
// GqlOperation. Tracked alongside the existing GQL-skip
|
|
212
|
+
// gap.
|
|
213
|
+
__classPrivateFieldGet(this, _GenerateContext_instances, "m", _GenerateContext_runGqlOperationGenerator).call(this, this.document.value, generatorConfig, st);
|
|
145
214
|
break;
|
|
146
215
|
case 'model':
|
|
147
|
-
__classPrivateFieldGet(this, _GenerateContext_instances, "m", _GenerateContext_runModelGenerator).call(this, this.
|
|
216
|
+
__classPrivateFieldGet(this, _GenerateContext_instances, "m", _GenerateContext_runModelGenerator).call(this, this.document, generatorConfig, toIncludeModels(include, generatorConfig.id), toSkipModels(skip, generatorConfig.id), st);
|
|
148
217
|
break;
|
|
149
|
-
default:
|
|
150
|
-
|
|
218
|
+
default: {
|
|
219
|
+
const _exhaustive = generatorConfig;
|
|
220
|
+
throw new Error(`Invalid generator type: ${JSON.stringify(_exhaustive)}`);
|
|
221
|
+
}
|
|
151
222
|
}
|
|
152
223
|
});
|
|
153
224
|
});
|
|
@@ -158,29 +229,181 @@ export class GenerateContext {
|
|
|
158
229
|
};
|
|
159
230
|
}
|
|
160
231
|
/**
|
|
161
|
-
*
|
|
232
|
+
* Evaluate each generator's `isSupported` over the parsed document's subjects
|
|
233
|
+
* and report the subjects each generator supports — capability only, no
|
|
234
|
+
* transform and no render. Operation generators report the operations their
|
|
235
|
+
* `isSupported` accepts; model generators report every model (the generate
|
|
236
|
+
* pipeline applies no model-level `isSupported`). A generator targeting the
|
|
237
|
+
* other protocol reports nothing.
|
|
238
|
+
*/
|
|
239
|
+
toSupportedSubjects() {
|
|
240
|
+
const generators = Object.values(this.toGeneratorConfigMap());
|
|
241
|
+
const out = {};
|
|
242
|
+
generators.forEach(generatorConfig => {
|
|
243
|
+
switch (generatorConfig.type) {
|
|
244
|
+
case 'oasOperation': {
|
|
245
|
+
const operations = this.document.type === 'oas'
|
|
246
|
+
? this.document.value.operations
|
|
247
|
+
.filter(operation => __classPrivateFieldGet(this, _GenerateContext_instances, "m", _GenerateContext_supports).call(this, () => generatorConfig.isSupported({ operation, context: this, variant: DEFAULT_VARIANT })))
|
|
248
|
+
.map(operation => ({ path: operation.path, method: operation.method }))
|
|
249
|
+
: [];
|
|
250
|
+
out[generatorConfig.id] = { type: 'oasOperation', operations };
|
|
251
|
+
break;
|
|
252
|
+
}
|
|
253
|
+
case 'webhook': {
|
|
254
|
+
const webhooks = this.document.type === 'oas'
|
|
255
|
+
? this.document.value.webhooks
|
|
256
|
+
.filter(webhook => __classPrivateFieldGet(this, _GenerateContext_instances, "m", _GenerateContext_supports).call(this, () => generatorConfig.isSupported({ webhook, context: this, variant: DEFAULT_VARIANT })))
|
|
257
|
+
.map(webhook => ({ name: webhook.name, method: webhook.method }))
|
|
258
|
+
: [];
|
|
259
|
+
out[generatorConfig.id] = { type: 'webhook', webhooks };
|
|
260
|
+
break;
|
|
261
|
+
}
|
|
262
|
+
case 'gqlOperation': {
|
|
263
|
+
const operations = this.document.type === 'gql'
|
|
264
|
+
? this.document.value.operations
|
|
265
|
+
.filter(operation => __classPrivateFieldGet(this, _GenerateContext_instances, "m", _GenerateContext_supports).call(this, () => generatorConfig.isSupported({ operation, context: this, variant: DEFAULT_VARIANT })))
|
|
266
|
+
.map(operation => ({
|
|
267
|
+
rootKind: operation.rootKind,
|
|
268
|
+
fieldName: operation.fieldName
|
|
269
|
+
}))
|
|
270
|
+
: [];
|
|
271
|
+
out[generatorConfig.id] = { type: 'gqlOperation', operations };
|
|
272
|
+
break;
|
|
273
|
+
}
|
|
274
|
+
case 'model': {
|
|
275
|
+
const refNames = this.document.type === 'oas'
|
|
276
|
+
? (this.document.value.components?.toSchemasRefNames() ?? [])
|
|
277
|
+
: this.document.value.registry.toSchemasRefNames();
|
|
278
|
+
out[generatorConfig.id] = { type: 'model', models: [...refNames] };
|
|
279
|
+
break;
|
|
280
|
+
}
|
|
281
|
+
default: {
|
|
282
|
+
const _exhaustive = generatorConfig;
|
|
283
|
+
throw new Error(`Invalid generator type: ${JSON.stringify(_exhaustive)}`);
|
|
284
|
+
}
|
|
285
|
+
}
|
|
286
|
+
});
|
|
287
|
+
return out;
|
|
288
|
+
}
|
|
289
|
+
/**
|
|
290
|
+
* The seed enrichment values each configured generator derives from the
|
|
291
|
+
* document — the *values* counterpart of {@link toSupportedSubjects}. For
|
|
292
|
+
* every generator that advertises `toEnrichmentDefaults`, calls it over the
|
|
293
|
+
* subjects the generator supports and keeps the non-`undefined` subject-scope
|
|
294
|
+
* leaves, keyed by the `client.json#settings.enrichments` routing:
|
|
295
|
+
* `[id][path][method]['main']` for operations, `[id][refName]['main']` for
|
|
296
|
+
* models. Seeding targets the `'main'` variant; a generator that advertises
|
|
297
|
+
* no defaults (or whose every subject returns `undefined`) is omitted.
|
|
162
298
|
*
|
|
163
|
-
* @
|
|
299
|
+
* Like {@link toSupportedSubjects} it neither transforms nor renders, and is
|
|
300
|
+
* defensive: a generator whose hook throws contributes nothing rather than
|
|
301
|
+
* failing the whole pass.
|
|
164
302
|
*/
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
303
|
+
toEnrichmentDefaults() {
|
|
304
|
+
const generators = Object.values(this.toGeneratorConfigMap());
|
|
305
|
+
const out = {};
|
|
306
|
+
generators.forEach(generatorConfig => {
|
|
307
|
+
switch (generatorConfig.type) {
|
|
308
|
+
case 'oasOperation': {
|
|
309
|
+
const toDefaults = generatorConfig.toEnrichmentDefaults;
|
|
310
|
+
if (!toDefaults || this.document.type !== 'oas')
|
|
311
|
+
break;
|
|
312
|
+
const operations = {};
|
|
313
|
+
this.document.value.operations.forEach(operation => {
|
|
314
|
+
if (!__classPrivateFieldGet(this, _GenerateContext_instances, "m", _GenerateContext_supports).call(this, () => generatorConfig.isSupported({ operation, context: this, variant: DEFAULT_VARIANT }))) {
|
|
315
|
+
return;
|
|
316
|
+
}
|
|
317
|
+
const leaf = __classPrivateFieldGet(this, _GenerateContext_instances, "m", _GenerateContext_subjectDefaults).call(this, () => toDefaults({ operation, context: this, variant: DEFAULT_VARIANT }));
|
|
318
|
+
if (leaf === undefined)
|
|
319
|
+
return;
|
|
320
|
+
const methods = (operations[operation.path] ??= {});
|
|
321
|
+
methods[operation.method] = { [DEFAULT_VARIANT]: leaf };
|
|
322
|
+
});
|
|
323
|
+
if (Object.keys(operations).length > 0) {
|
|
324
|
+
out[generatorConfig.id] = operations;
|
|
325
|
+
}
|
|
326
|
+
break;
|
|
327
|
+
}
|
|
328
|
+
case 'webhook': {
|
|
329
|
+
const toDefaults = generatorConfig.toEnrichmentDefaults;
|
|
330
|
+
if (!toDefaults || this.document.type !== 'oas')
|
|
331
|
+
break;
|
|
332
|
+
const webhooks = {};
|
|
333
|
+
this.document.value.webhooks.forEach(webhook => {
|
|
334
|
+
if (!__classPrivateFieldGet(this, _GenerateContext_instances, "m", _GenerateContext_supports).call(this, () => generatorConfig.isSupported({ webhook, context: this, variant: DEFAULT_VARIANT }))) {
|
|
335
|
+
return;
|
|
336
|
+
}
|
|
337
|
+
const leaf = __classPrivateFieldGet(this, _GenerateContext_instances, "m", _GenerateContext_subjectDefaults).call(this, () => toDefaults({ webhook, context: this, variant: DEFAULT_VARIANT }));
|
|
338
|
+
if (leaf === undefined)
|
|
339
|
+
return;
|
|
340
|
+
const methods = (webhooks[webhook.name] ??= {});
|
|
341
|
+
methods[webhook.method] = { [DEFAULT_VARIANT]: leaf };
|
|
342
|
+
});
|
|
343
|
+
if (Object.keys(webhooks).length > 0) {
|
|
344
|
+
out[generatorConfig.id] = webhooks;
|
|
345
|
+
}
|
|
346
|
+
break;
|
|
347
|
+
}
|
|
348
|
+
case 'model': {
|
|
349
|
+
const toDefaults = generatorConfig.toEnrichmentDefaults;
|
|
350
|
+
if (!toDefaults)
|
|
351
|
+
break;
|
|
352
|
+
// Model entries carry no `isSupported` — the generate pipeline visits
|
|
353
|
+
// every refName and filters inside the callback. Mirror that here: the
|
|
354
|
+
// hook itself returns `undefined` for schemas it doesn't seed.
|
|
355
|
+
const refNames = this.document.type === 'oas'
|
|
356
|
+
? (this.document.value.components?.toSchemasRefNames() ?? [])
|
|
357
|
+
: this.document.value.registry.toSchemasRefNames();
|
|
358
|
+
const models = {};
|
|
359
|
+
for (const refName of refNames) {
|
|
360
|
+
const leaf = __classPrivateFieldGet(this, _GenerateContext_instances, "m", _GenerateContext_subjectDefaults).call(this, () => toDefaults({ refName, context: this, variant: DEFAULT_VARIANT }));
|
|
361
|
+
if (leaf === undefined)
|
|
362
|
+
continue;
|
|
363
|
+
models[refName] = { [DEFAULT_VARIANT]: leaf };
|
|
364
|
+
}
|
|
365
|
+
if (Object.keys(models).length > 0) {
|
|
366
|
+
out[generatorConfig.id] = models;
|
|
367
|
+
}
|
|
368
|
+
break;
|
|
369
|
+
}
|
|
370
|
+
case 'gqlOperation': {
|
|
371
|
+
// No `toEnrichmentDefaults` on the GraphQL projection base — seeding is
|
|
372
|
+
// OAS-operation / model only today, so a GQL generator contributes
|
|
373
|
+
// nothing.
|
|
374
|
+
break;
|
|
375
|
+
}
|
|
376
|
+
default: {
|
|
377
|
+
const _exhaustive = generatorConfig;
|
|
378
|
+
throw new Error(`Invalid generator type: ${JSON.stringify(_exhaustive)}`);
|
|
379
|
+
}
|
|
380
|
+
}
|
|
172
381
|
});
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
382
|
+
return out;
|
|
383
|
+
}
|
|
384
|
+
/**
|
|
385
|
+
* Look up an already-registered file by path, or `undefined` if none
|
|
386
|
+
* exists. Neutral primitive: returns the abstract `FileBase` and never
|
|
387
|
+
* constructs anything, so a (future) language-owned `register` can ask
|
|
388
|
+
* "does this file exist yet?" without the engine knowing the language.
|
|
389
|
+
* To create-on-miss, use the internal `#getFile`; to add a
|
|
390
|
+
* language-constructed file, use {@link addFile}.
|
|
391
|
+
*/
|
|
392
|
+
getFile(filePath) {
|
|
393
|
+
return __classPrivateFieldGet(this, _GenerateContext_files, "f").get(normalize(filePath));
|
|
394
|
+
}
|
|
395
|
+
/**
|
|
396
|
+
* Store a language-constructed file. The engine never constructs a
|
|
397
|
+
* concrete (language) `File`; the language's `register` builds its own
|
|
398
|
+
* `FileBase` subclass and hands it in here. Throws if a file already
|
|
399
|
+
* exists at the (normalized) path.
|
|
400
|
+
*/
|
|
401
|
+
addFile(file) {
|
|
402
|
+
const normalizedPath = normalize(file.path);
|
|
403
|
+
if (__classPrivateFieldGet(this, _GenerateContext_files, "f").has(normalizedPath)) {
|
|
404
|
+
throw new Error(`File already exists: ${normalizedPath}`);
|
|
177
405
|
}
|
|
178
|
-
|
|
179
|
-
identifier,
|
|
180
|
-
value,
|
|
181
|
-
destinationPath,
|
|
182
|
-
noExport
|
|
183
|
-
});
|
|
406
|
+
__classPrivateFieldGet(this, _GenerateContext_files, "f").set(normalizedPath, file);
|
|
184
407
|
}
|
|
185
408
|
/**
|
|
186
409
|
* Registers JSON content for output to a file.
|
|
@@ -189,7 +412,12 @@ export class GenerateContext {
|
|
|
189
412
|
* @param args - Registration arguments with destination path and JSON content
|
|
190
413
|
*/
|
|
191
414
|
registerJson({ destinationPath, json }) {
|
|
192
|
-
const
|
|
415
|
+
const normalizedPath = normalize(destinationPath);
|
|
416
|
+
let currentFile = this.getFile(normalizedPath);
|
|
417
|
+
if (!currentFile) {
|
|
418
|
+
currentFile = new JsonFile({ path: normalizedPath, content: {} });
|
|
419
|
+
this.addFile(currentFile);
|
|
420
|
+
}
|
|
193
421
|
invariant(currentFile instanceof JsonFile, `File at "${destinationPath}" is not a "JsonFile" type`);
|
|
194
422
|
currentFile.content = json;
|
|
195
423
|
}
|
|
@@ -204,81 +432,99 @@ export class GenerateContext {
|
|
|
204
432
|
*
|
|
205
433
|
* @mutates this.files
|
|
206
434
|
*/
|
|
207
|
-
register({ imports =
|
|
208
|
-
|
|
209
|
-
const currentFile =
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
if (!module[entityType]) {
|
|
220
|
-
module[entityType] = new Set();
|
|
221
|
-
}
|
|
222
|
-
module[entityType].add(identifier.name);
|
|
223
|
-
});
|
|
224
|
-
});
|
|
225
|
-
Object.entries(imports).forEach(([importModule, importNames]) => {
|
|
226
|
-
const module = currentFile.imports.get(importModule);
|
|
227
|
-
const importItem = new Import({ module: importModule, importNames });
|
|
228
|
-
if (module) {
|
|
229
|
-
importItem.importNames.forEach(n => module.add(`${n}`));
|
|
230
|
-
}
|
|
231
|
-
else {
|
|
232
|
-
currentFile.imports.set(importModule, new Set(importItem.importNames.map(n => `${n}`)));
|
|
233
|
-
}
|
|
234
|
-
});
|
|
435
|
+
register({ imports = [], reExports = [], definitions, destinationPath }) {
|
|
436
|
+
const normalizedPath = normalize(destinationPath);
|
|
437
|
+
const currentFile = this.getFile(normalizedPath);
|
|
438
|
+
// `register` never creates files — it speaks pure data and the engine
|
|
439
|
+
// never names a file class. Callers pre-create the destination file
|
|
440
|
+
// through their language (the lang package's register function, the
|
|
441
|
+
// Drivers' ensureFile); reaching a file-miss here is a bug at the
|
|
442
|
+
// caller.
|
|
443
|
+
invariant(currentFile, `Cannot register into '${normalizedPath}' — the file does not exist. ` +
|
|
444
|
+
`Pre-create it through your lang (its register function does this).`);
|
|
445
|
+
// Definitions merge is language-neutral — `addDefinition` lives on
|
|
446
|
+
// `FileBase`, so this works for any language's file.
|
|
235
447
|
definitions?.forEach(definition => {
|
|
236
|
-
if (
|
|
237
|
-
|
|
238
|
-
}
|
|
239
|
-
const { name } = definition.identifier;
|
|
240
|
-
if (!currentFile.definitions.has(name)) {
|
|
241
|
-
currentFile.definitions.set(name, definition);
|
|
448
|
+
if (definition) {
|
|
449
|
+
currentFile.addDefinition(definition);
|
|
242
450
|
}
|
|
243
451
|
});
|
|
452
|
+
// Imports and re-exports are standardised `ImportBase` /
|
|
453
|
+
// `ReExportBase` objects; the neutral merges (keyed by `mergeKey`)
|
|
454
|
+
// live on `CodeFileBase`. `JsonFile` has neither, so the guard skips
|
|
455
|
+
// it.
|
|
456
|
+
if (imports.length > 0 && currentFile instanceof CodeFileBase) {
|
|
457
|
+
currentFile.addImports(imports);
|
|
458
|
+
}
|
|
459
|
+
if (reExports.length > 0 && currentFile instanceof CodeFileBase) {
|
|
460
|
+
currentFile.addReExports(reExports);
|
|
461
|
+
}
|
|
244
462
|
}
|
|
245
463
|
/**
|
|
246
464
|
* Insert operation into the output file with path `destinationPath`.
|
|
247
465
|
*
|
|
248
466
|
* Insert will perform the following steps:
|
|
249
|
-
*
|
|
250
|
-
*
|
|
251
|
-
*
|
|
252
|
-
*
|
|
253
|
-
*
|
|
254
|
-
*
|
|
255
|
-
* 5. Use the content settings to generate the operation using the
|
|
256
|
-
* insertable's driver
|
|
467
|
+
* Insert an operation definition into `destinationPath`.
|
|
468
|
+
*
|
|
469
|
+
* Resolves identifier and export path from the projection, registers the
|
|
470
|
+
* definition (or reuses a cached one), and stitches an import into
|
|
471
|
+
* `destinationPath` if it differs from the projection's `exportPath`.
|
|
472
|
+
*
|
|
257
473
|
* @mutates this.files
|
|
258
474
|
*/
|
|
259
|
-
insertOperation(
|
|
260
|
-
|
|
475
|
+
insertOperation(args) {
|
|
476
|
+
// Default to the canonical variant. Callers who explicitly thread
|
|
477
|
+
// a variant (e.g. variants-aware Projections threading
|
|
478
|
+
// `this.settings.variant`) override this default.
|
|
479
|
+
const variant = args.variant ?? DEFAULT_VARIANT;
|
|
480
|
+
if (isGqlInsertOperationArgs(args)) {
|
|
481
|
+
const { settings, definition } = new GqlOperationDriver({
|
|
482
|
+
context: this,
|
|
483
|
+
projection: args.projection,
|
|
484
|
+
operation: args.operation,
|
|
485
|
+
destinationPath: args.destinationPath,
|
|
486
|
+
noExport: args.noExport ?? false,
|
|
487
|
+
variant
|
|
488
|
+
});
|
|
489
|
+
return new Inserted({ settings, definition });
|
|
490
|
+
}
|
|
491
|
+
const { settings, definition } = new OasOperationDriver({
|
|
492
|
+
context: this,
|
|
493
|
+
projection: args.projection,
|
|
494
|
+
operation: args.operation,
|
|
495
|
+
destinationPath: args.destinationPath,
|
|
496
|
+
noExport: args.noExport ?? false,
|
|
497
|
+
variant
|
|
498
|
+
});
|
|
499
|
+
return new Inserted({ settings, definition });
|
|
500
|
+
}
|
|
501
|
+
/**
|
|
502
|
+
* Insert a webhook's projection. Sibling of {@link insertOperation} for
|
|
503
|
+
* the OAS 3.1 webhook subject — webhooks are OAS-only, so there is no
|
|
504
|
+
* protocol discrimination.
|
|
505
|
+
*/
|
|
506
|
+
insertWebhook(args) {
|
|
507
|
+
const variant = args.variant ?? DEFAULT_VARIANT;
|
|
508
|
+
const { settings, definition } = new WebhookDriver({
|
|
261
509
|
context: this,
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
destinationPath,
|
|
265
|
-
noExport
|
|
510
|
+
projection: args.projection,
|
|
511
|
+
webhook: args.webhook,
|
|
512
|
+
destinationPath: args.destinationPath,
|
|
513
|
+
noExport: args.noExport ?? false,
|
|
514
|
+
variant
|
|
266
515
|
});
|
|
267
516
|
return new Inserted({ settings, definition });
|
|
268
517
|
}
|
|
269
518
|
/**
|
|
270
|
-
*
|
|
271
|
-
*
|
|
272
|
-
* @param insertable - Model insertable configuration with prototype and transform functions
|
|
273
|
-
* @param schema - OAS schema, reference, or void type to generate model from
|
|
274
|
-
* @param options - Insertion options including generation type and destination
|
|
275
|
-
* @returns Inserted model instance with settings and definition
|
|
519
|
+
* Insert a normalized model: dispatch to {@link insertModel} when the schema
|
|
520
|
+
* is a `$ref`, otherwise produce a one-off definition under `fallbackName`.
|
|
276
521
|
*/
|
|
277
|
-
|
|
522
|
+
insertNormalizedModel(projection, { schema, fallbackName, destinationPath }, { noExport = false, variant } = {}) {
|
|
278
523
|
if (schema.isRef()) {
|
|
279
|
-
const { definition } = this.insertModel(
|
|
524
|
+
const { definition } = this.insertModel(projection, schema.toRefName(), {
|
|
280
525
|
destinationPath,
|
|
281
|
-
noExport
|
|
526
|
+
noExport,
|
|
527
|
+
variant
|
|
282
528
|
});
|
|
283
529
|
// @TODO Using mapped types would help avoid generics casting
|
|
284
530
|
return definition;
|
|
@@ -292,77 +538,159 @@ export class GenerateContext {
|
|
|
292
538
|
if (cachedDefinition) {
|
|
293
539
|
return cachedDefinition;
|
|
294
540
|
}
|
|
295
|
-
const value =
|
|
541
|
+
const value = projection.schemaToValueFn({
|
|
296
542
|
context: this,
|
|
297
543
|
schema,
|
|
298
544
|
destinationPath,
|
|
299
545
|
required: true
|
|
300
546
|
});
|
|
301
|
-
|
|
302
|
-
|
|
547
|
+
// The inline-schema fallback builds the Definition through the
|
|
548
|
+
// projection's language — the static read off the projection class at
|
|
549
|
+
// the use site (same ephemeral read the Drivers make) — pre-creates
|
|
550
|
+
// the destination file caller-side, and stores via the pure-data
|
|
551
|
+
// `register`.
|
|
552
|
+
const normalizedPath = normalize(destinationPath);
|
|
553
|
+
if (!this.getFile(normalizedPath)) {
|
|
554
|
+
this.addFile(projection.lang.createFile({ path: normalizedPath, settings: this.settings }));
|
|
555
|
+
}
|
|
556
|
+
const definition = projection.lang.toDefinition({
|
|
557
|
+
context: this,
|
|
558
|
+
identifier: projection.createIdentifier(fallbackName),
|
|
303
559
|
value,
|
|
304
|
-
destinationPath,
|
|
305
560
|
noExport
|
|
306
561
|
});
|
|
562
|
+
this.register({ definitions: [definition], destinationPath: normalizedPath });
|
|
307
563
|
// @TODO Using mapped types would help avoid generics casting
|
|
308
564
|
return definition;
|
|
309
565
|
}
|
|
310
566
|
/**
|
|
311
|
-
* Insert model into
|
|
567
|
+
* Insert a model definition into `destinationPath`.
|
|
568
|
+
*
|
|
569
|
+
* Resolves identifier and export path from the projection, registers the
|
|
570
|
+
* definition (or reuses a cached one), and stitches an import into
|
|
571
|
+
* `destinationPath` if it differs from the projection's `exportPath`.
|
|
312
572
|
*
|
|
313
|
-
* Insert will perform the following steps:
|
|
314
|
-
* 1. Generate content settings for the supplied model
|
|
315
|
-
* 2. Look up definition in file with path `destinationPath`
|
|
316
|
-
* 3. If definition is not found, it will create a new one and register it
|
|
317
|
-
* 4. If the definition is defined at a location that is different from
|
|
318
|
-
* the current file, it will add an import to the current file from
|
|
319
|
-
* that location
|
|
320
|
-
* 5. Use the content settings to generate the model using the
|
|
321
|
-
* insertable's driver
|
|
322
573
|
* @mutates this.files
|
|
323
574
|
*/
|
|
324
|
-
insertModel(
|
|
575
|
+
insertModel(projection, refName, { destinationPath, noExport = false, variant } = {}) {
|
|
576
|
+
// Default to the canonical variant. Callers who explicitly thread
|
|
577
|
+
// a variant (e.g. variants-aware Projections threading
|
|
578
|
+
// `this.settings.variant`) override this default.
|
|
579
|
+
const resolvedVariant = variant ?? DEFAULT_VARIANT;
|
|
325
580
|
const { settings, definition } = new ModelDriver({
|
|
326
581
|
context: this,
|
|
327
|
-
|
|
582
|
+
projection,
|
|
328
583
|
refName,
|
|
329
584
|
destinationPath,
|
|
330
585
|
rootRef: refName,
|
|
331
|
-
noExport
|
|
586
|
+
noExport,
|
|
587
|
+
variant: resolvedVariant
|
|
332
588
|
});
|
|
333
589
|
return new Inserted({ settings, definition });
|
|
334
590
|
}
|
|
335
591
|
/**
|
|
336
|
-
*
|
|
337
|
-
*
|
|
338
|
-
*
|
|
339
|
-
*
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
592
|
+
* Build content settings for an operation projection by calling its
|
|
593
|
+
* statics `toIdentifierName` + `toIdentifierType`, `toExportPath`, and
|
|
594
|
+
* `toEnrichments` against the
|
|
595
|
+
* given operation.
|
|
596
|
+
*/
|
|
597
|
+
toOperationContentSettings(args) {
|
|
598
|
+
const { variant } = args;
|
|
599
|
+
if (isGqlToOperationSettingsArgs(args)) {
|
|
600
|
+
const enrichments = args.projection.toEnrichments({
|
|
601
|
+
operation: args.operation,
|
|
602
|
+
context: this,
|
|
603
|
+
variant
|
|
604
|
+
});
|
|
605
|
+
return new ContentSettings({
|
|
606
|
+
identifier: args.projection.lang.toIdentifier({
|
|
607
|
+
name: args.projection.toIdentifierName({
|
|
608
|
+
operation: args.operation,
|
|
609
|
+
enrichments,
|
|
610
|
+
variant
|
|
611
|
+
}),
|
|
612
|
+
...args.projection.toIdentifierType(args.operation, this)
|
|
613
|
+
}),
|
|
614
|
+
exportPath: args.projection.toExportPath({
|
|
615
|
+
operation: args.operation,
|
|
616
|
+
enrichments,
|
|
617
|
+
variant
|
|
618
|
+
}),
|
|
619
|
+
enrichments,
|
|
620
|
+
variant
|
|
621
|
+
});
|
|
622
|
+
}
|
|
623
|
+
const enrichments = args.projection.toEnrichments({
|
|
624
|
+
operation: args.operation,
|
|
625
|
+
context: this,
|
|
626
|
+
variant
|
|
627
|
+
});
|
|
628
|
+
return new ContentSettings({
|
|
629
|
+
identifier: args.projection.lang.toIdentifier({
|
|
630
|
+
name: args.projection.toIdentifierName({
|
|
631
|
+
operation: args.operation,
|
|
632
|
+
enrichments,
|
|
633
|
+
variant
|
|
634
|
+
}),
|
|
635
|
+
...args.projection.toIdentifierType(args.operation, this)
|
|
636
|
+
}),
|
|
637
|
+
exportPath: args.projection.toExportPath({
|
|
638
|
+
operation: args.operation,
|
|
639
|
+
enrichments,
|
|
640
|
+
variant
|
|
641
|
+
}),
|
|
642
|
+
enrichments,
|
|
643
|
+
variant
|
|
644
|
+
});
|
|
645
|
+
}
|
|
646
|
+
/**
|
|
647
|
+
* Build content settings for a webhook projection. Sibling of
|
|
648
|
+
* {@link toOperationContentSettings}; webhooks are OAS-only, so there is no
|
|
649
|
+
* protocol discrimination.
|
|
344
650
|
*/
|
|
345
|
-
|
|
651
|
+
toWebhookContentSettings(args) {
|
|
652
|
+
const { variant } = args;
|
|
653
|
+
const enrichments = args.projection.toEnrichments({
|
|
654
|
+
webhook: args.webhook,
|
|
655
|
+
context: this,
|
|
656
|
+
variant
|
|
657
|
+
});
|
|
346
658
|
return new ContentSettings({
|
|
347
|
-
identifier:
|
|
348
|
-
|
|
349
|
-
|
|
659
|
+
identifier: args.projection.lang.toIdentifier({
|
|
660
|
+
name: args.projection.toIdentifierName({
|
|
661
|
+
webhook: args.webhook,
|
|
662
|
+
enrichments,
|
|
663
|
+
variant
|
|
664
|
+
}),
|
|
665
|
+
...args.projection.toIdentifierType(args.webhook, this)
|
|
666
|
+
}),
|
|
667
|
+
exportPath: args.projection.toExportPath({
|
|
668
|
+
webhook: args.webhook,
|
|
669
|
+
enrichments,
|
|
670
|
+
variant
|
|
671
|
+
}),
|
|
672
|
+
enrichments,
|
|
673
|
+
variant
|
|
350
674
|
});
|
|
351
675
|
}
|
|
352
676
|
/**
|
|
353
|
-
*
|
|
354
|
-
*
|
|
355
|
-
*
|
|
356
|
-
*
|
|
357
|
-
*
|
|
358
|
-
*
|
|
359
|
-
* @returns Content settings for model
|
|
677
|
+
* Build content settings for a model projection by calling its statics
|
|
678
|
+
* `toIdentifierName` (pure, for the name) + `toIdentifierType`
|
|
679
|
+
* (context-aware, for kind/typeName/exported), `toExportPath`, and
|
|
680
|
+
* `toEnrichments` against the given `refName` and `variant`. The full
|
|
681
|
+
* identifier is assembled through the projection's language
|
|
682
|
+
* (`lang.toIdentifier`).
|
|
360
683
|
*/
|
|
361
|
-
toModelContentSettings({ refName,
|
|
684
|
+
toModelContentSettings({ refName, projection, variant }) {
|
|
685
|
+
const enrichments = projection.toEnrichments({ refName, context: this, variant });
|
|
362
686
|
return new ContentSettings({
|
|
363
|
-
identifier:
|
|
364
|
-
|
|
365
|
-
|
|
687
|
+
identifier: projection.lang.toIdentifier({
|
|
688
|
+
name: projection.toIdentifierName({ refName, enrichments, variant }),
|
|
689
|
+
...projection.toIdentifierType(refName, this)
|
|
690
|
+
}),
|
|
691
|
+
exportPath: projection.toExportPath({ refName, enrichments, variant }),
|
|
692
|
+
enrichments,
|
|
693
|
+
variant
|
|
366
694
|
});
|
|
367
695
|
}
|
|
368
696
|
/**
|
|
@@ -373,10 +701,17 @@ export class GenerateContext {
|
|
|
373
701
|
*/
|
|
374
702
|
resolveSchemaRefOnce(refName, generatorId) {
|
|
375
703
|
this.modelDepth[`${generatorId}:${refName}`]++;
|
|
376
|
-
const schema = this.
|
|
704
|
+
const schema = this.document.type === 'oas'
|
|
705
|
+
? this.document.value.components?.schemas?.[refName]?.resolveOnce()
|
|
706
|
+
: this.document.value.registry.schemas[refName];
|
|
377
707
|
if (!schema) {
|
|
378
708
|
throw new Error(`Schema not found: ${refName}`);
|
|
379
709
|
}
|
|
710
|
+
// GqlRegistry stores raw OasSchema | OasRef entries that we need to
|
|
711
|
+
// resolve once for parity with the OAS code path.
|
|
712
|
+
if (this.document.type === 'gql' && 'resolveOnce' in schema) {
|
|
713
|
+
return schema.resolveOnce();
|
|
714
|
+
}
|
|
380
715
|
return schema;
|
|
381
716
|
}
|
|
382
717
|
/**
|
|
@@ -387,70 +722,263 @@ export class GenerateContext {
|
|
|
387
722
|
* @returns Matching definition if found or `undefined` otherwise
|
|
388
723
|
*/
|
|
389
724
|
findDefinition({ name, exportPath }) {
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
return
|
|
725
|
+
// Pure lookup — no file is created on a miss. `definitions` lives on
|
|
726
|
+
// `FileBase`, so this reads any language's file without narrowing.
|
|
727
|
+
return this.getFile(exportPath)?.definitions.get(name);
|
|
393
728
|
}
|
|
394
729
|
}
|
|
395
|
-
_GenerateContext_files = new WeakMap(), _GenerateContext_previews = new WeakMap(), _GenerateContext_mappings = new WeakMap(),
|
|
396
|
-
|
|
397
|
-
return
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
730
|
+
_GenerateContext_files = new WeakMap(), _GenerateContext_previews = new WeakMap(), _GenerateContext_mappings = new WeakMap(), _GenerateContext_captureChannel = new WeakMap(), _GenerateContext_instances = new WeakSet(), _GenerateContext_supports = function _GenerateContext_supports(probe) {
|
|
731
|
+
try {
|
|
732
|
+
return probe();
|
|
733
|
+
}
|
|
734
|
+
catch (error) {
|
|
735
|
+
this.logger.error(error);
|
|
736
|
+
return false;
|
|
737
|
+
}
|
|
738
|
+
}, _GenerateContext_subjectDefaults = function _GenerateContext_subjectDefaults(produce) {
|
|
739
|
+
try {
|
|
740
|
+
const umbrella = produce();
|
|
741
|
+
if (typeof umbrella !== 'object' || umbrella === null || !('subject' in umbrella)) {
|
|
742
|
+
return undefined;
|
|
743
|
+
}
|
|
744
|
+
const { subject } = umbrella;
|
|
745
|
+
return isEnrichmentLeaf(subject) ? subject : undefined;
|
|
746
|
+
}
|
|
747
|
+
catch (error) {
|
|
748
|
+
this.logger.error(error);
|
|
749
|
+
return undefined;
|
|
750
|
+
}
|
|
751
|
+
}, _GenerateContext_runOasOperationGenerator = function _GenerateContext_runOasOperationGenerator(oasDocument, generatorConfig, include, skip, stackTrail) {
|
|
752
|
+
oasDocument.operations.forEach(operation => {
|
|
753
|
+
stackTrail.trace(`${operation.path}:${operation.method}`, opTrail => {
|
|
754
|
+
// Resolve the variant list to fan out over. The consumer's
|
|
755
|
+
// enrichments are keyed `[generatorId][path][method][variant]`;
|
|
756
|
+
// the block at `[path][method]` is therefore a record of
|
|
757
|
+
// variant names. Three cases handled in `toVariantList`:
|
|
758
|
+
//
|
|
759
|
+
// - absent → run a single 'main' pass with no enrichment
|
|
760
|
+
// - present, non-object → treat as a single 'main' pass
|
|
761
|
+
// (the per-variant Valibot wrap will reject this shape
|
|
762
|
+
// at config-load time once it lands)
|
|
763
|
+
// - present, object → enumerate keys; 'main' must be among
|
|
764
|
+
// them or we throw (loud beats silent zero-output)
|
|
765
|
+
const opEnrichments = get(this.settings, ['enrichments', generatorConfig.id, operation.path, operation.method]);
|
|
766
|
+
const variants = toVariantList({
|
|
767
|
+
opEnrichments,
|
|
768
|
+
generatorId: generatorConfig.id,
|
|
769
|
+
operationLabel: `${operation.method.toUpperCase()} ${operation.path}`
|
|
770
|
+
});
|
|
771
|
+
variants.forEach(variant => {
|
|
772
|
+
opTrail.trace(`variant: ${variant}`, st => {
|
|
773
|
+
try {
|
|
774
|
+
if (typeof generatorConfig?.isSupported === 'function' &&
|
|
775
|
+
!generatorConfig.isSupported({ operation, context: this, variant })) {
|
|
776
|
+
this.captureCurrentResult('notSupported', st);
|
|
777
|
+
return;
|
|
778
|
+
}
|
|
779
|
+
// Order: isSupported (capability) → include (allow) → skip
|
|
780
|
+
// (deny). Match is now on `(path, method, variant)`. An
|
|
781
|
+
// empty variant array on a method means "every variant of
|
|
782
|
+
// this method"; a populated array names the variants the
|
|
783
|
+
// entry applies to.
|
|
784
|
+
if (include !== undefined &&
|
|
785
|
+
!matchesPathFilter({ paths: include, path: operation.path, method: operation.method, variant })) {
|
|
786
|
+
this.captureCurrentResult('skipped', st);
|
|
787
|
+
return;
|
|
788
|
+
}
|
|
789
|
+
if (matchesPathFilter({ paths: skip, path: operation.path, method: operation.method, variant })) {
|
|
790
|
+
this.captureCurrentResult('skipped', st);
|
|
791
|
+
return;
|
|
792
|
+
}
|
|
793
|
+
generatorConfig.transform({
|
|
794
|
+
context: this,
|
|
795
|
+
operation,
|
|
796
|
+
variant
|
|
797
|
+
});
|
|
798
|
+
const source = toOasOperationSource({
|
|
799
|
+
operation,
|
|
800
|
+
generatorId: generatorConfig.id,
|
|
801
|
+
variant
|
|
802
|
+
});
|
|
803
|
+
__classPrivateFieldGet(this, _GenerateContext_instances, "m", _GenerateContext_addPreview).call(this, source, generatorConfig.toPreviewModule?.({ context: this, operation, variant }));
|
|
804
|
+
__classPrivateFieldGet(this, _GenerateContext_instances, "m", _GenerateContext_addMapping).call(this, source, generatorConfig.toMappingModule?.({ context: this, operation, variant }));
|
|
805
|
+
this.captureCurrentResult('success', st);
|
|
806
|
+
}
|
|
807
|
+
catch (error) {
|
|
808
|
+
this.logger.error(error);
|
|
809
|
+
this.captureCurrentResult('error', st);
|
|
810
|
+
}
|
|
811
|
+
});
|
|
812
|
+
});
|
|
419
813
|
});
|
|
420
|
-
}
|
|
421
|
-
},
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
814
|
+
});
|
|
815
|
+
}, _GenerateContext_runWebhookGenerator = function _GenerateContext_runWebhookGenerator(oasDocument, generatorConfig, include, skip, stackTrail) {
|
|
816
|
+
oasDocument.webhooks.forEach(webhook => {
|
|
817
|
+
stackTrail.trace(`webhook:${webhook.name}:${webhook.method}`, webhookTrail => {
|
|
818
|
+
// Variant fan-out, keyed `[generatorId][name][method][variant]` —
|
|
819
|
+
// the webhook analogue of the operation routing. `toVariantList`
|
|
820
|
+
// handles absent / non-object / object enrichment blocks and
|
|
821
|
+
// enforces the `'main'`-must-be-present rule.
|
|
822
|
+
const webhookEnrichments = get(this.settings, ['enrichments', generatorConfig.id, webhook.name, webhook.method]);
|
|
823
|
+
const variants = toVariantList({
|
|
824
|
+
opEnrichments: webhookEnrichments,
|
|
825
|
+
generatorId: generatorConfig.id,
|
|
826
|
+
operationLabel: `webhook '${webhook.name}' (${webhook.method.toUpperCase()})`
|
|
827
|
+
});
|
|
828
|
+
variants.forEach(variant => {
|
|
829
|
+
webhookTrail.trace(`variant: ${variant}`, st => {
|
|
830
|
+
try {
|
|
831
|
+
if (typeof generatorConfig?.isSupported === 'function' &&
|
|
832
|
+
!generatorConfig.isSupported({ webhook, context: this, variant })) {
|
|
833
|
+
this.captureCurrentResult('notSupported', st);
|
|
834
|
+
return;
|
|
835
|
+
}
|
|
836
|
+
// Order: isSupported (capability) → include (allow) → skip
|
|
837
|
+
// (deny). The skip/include shape is structurally identical to
|
|
838
|
+
// operations (the webhook name occupies the `path` slot), so
|
|
839
|
+
// `matchesPathFilter` is reused with `path: webhook.name`.
|
|
840
|
+
if (include !== undefined &&
|
|
841
|
+
!matchesPathFilter({ paths: include, path: webhook.name, method: webhook.method, variant })) {
|
|
842
|
+
this.captureCurrentResult('skipped', st);
|
|
843
|
+
return;
|
|
844
|
+
}
|
|
845
|
+
if (matchesPathFilter({ paths: skip, path: webhook.name, method: webhook.method, variant })) {
|
|
846
|
+
this.captureCurrentResult('skipped', st);
|
|
847
|
+
return;
|
|
848
|
+
}
|
|
849
|
+
generatorConfig.transform({
|
|
850
|
+
context: this,
|
|
851
|
+
webhook,
|
|
852
|
+
variant
|
|
853
|
+
});
|
|
854
|
+
const source = toWebhookSource({
|
|
855
|
+
webhook,
|
|
856
|
+
generatorId: generatorConfig.id,
|
|
857
|
+
variant
|
|
858
|
+
});
|
|
859
|
+
__classPrivateFieldGet(this, _GenerateContext_instances, "m", _GenerateContext_addPreview).call(this, source, generatorConfig.toPreviewModule?.({ context: this, webhook, variant }));
|
|
860
|
+
__classPrivateFieldGet(this, _GenerateContext_instances, "m", _GenerateContext_addMapping).call(this, source, generatorConfig.toMappingModule?.({ context: this, webhook, variant }));
|
|
861
|
+
this.captureCurrentResult('success', st);
|
|
862
|
+
}
|
|
863
|
+
catch (error) {
|
|
864
|
+
this.logger.error(error);
|
|
865
|
+
this.captureCurrentResult('error', st);
|
|
866
|
+
}
|
|
867
|
+
});
|
|
868
|
+
});
|
|
441
869
|
});
|
|
442
|
-
}
|
|
870
|
+
});
|
|
871
|
+
}, _GenerateContext_runGqlOperationGenerator = function _GenerateContext_runGqlOperationGenerator(gqlDocument, generatorConfig, stackTrail) {
|
|
872
|
+
gqlDocument.operations.forEach(operation => {
|
|
873
|
+
stackTrail.trace(operation.identifier, opTrail => {
|
|
874
|
+
// GraphQL enrichment routing key is
|
|
875
|
+
// `[generatorId][rootKind][fieldName][variant]`.
|
|
876
|
+
const opEnrichments = get(this.settings, ['enrichments', generatorConfig.id, operation.rootKind, operation.fieldName]);
|
|
877
|
+
const variants = toVariantList({
|
|
878
|
+
opEnrichments,
|
|
879
|
+
generatorId: generatorConfig.id,
|
|
880
|
+
operationLabel: `${operation.rootKind} ${operation.fieldName}`
|
|
881
|
+
});
|
|
882
|
+
variants.forEach(variant => {
|
|
883
|
+
opTrail.trace(`variant: ${variant}`, st => {
|
|
884
|
+
try {
|
|
885
|
+
if (typeof generatorConfig.isSupported === 'function' &&
|
|
886
|
+
!generatorConfig.isSupported({ operation, context: this, variant })) {
|
|
887
|
+
this.captureCurrentResult('notSupported', st);
|
|
888
|
+
return;
|
|
889
|
+
}
|
|
890
|
+
generatorConfig.transform({
|
|
891
|
+
context: this,
|
|
892
|
+
operation,
|
|
893
|
+
variant
|
|
894
|
+
});
|
|
895
|
+
const source = toGqlOperationSource({
|
|
896
|
+
operation,
|
|
897
|
+
generatorId: generatorConfig.id,
|
|
898
|
+
variant
|
|
899
|
+
});
|
|
900
|
+
__classPrivateFieldGet(this, _GenerateContext_instances, "m", _GenerateContext_addPreview).call(this, source, generatorConfig.toPreviewModule?.({ context: this, operation, variant }));
|
|
901
|
+
__classPrivateFieldGet(this, _GenerateContext_instances, "m", _GenerateContext_addMapping).call(this, source, generatorConfig.toMappingModule?.({ context: this, operation, variant }));
|
|
902
|
+
this.captureCurrentResult('success', st);
|
|
903
|
+
}
|
|
904
|
+
catch (error) {
|
|
905
|
+
this.logger.error(error);
|
|
906
|
+
this.captureCurrentResult('error', st);
|
|
907
|
+
}
|
|
908
|
+
});
|
|
909
|
+
});
|
|
910
|
+
});
|
|
911
|
+
});
|
|
912
|
+
}, _GenerateContext_runModelGenerator = function _GenerateContext_runModelGenerator(document, generatorConfig, include, skip, stackTrail) {
|
|
913
|
+
const refNames = document.type === 'oas'
|
|
914
|
+
? (document.value.components?.toSchemasRefNames() ?? [])
|
|
915
|
+
: document.value.registry.toSchemasRefNames();
|
|
916
|
+
refNames.forEach(refName => {
|
|
917
|
+
stackTrail.trace(refName, refTrail => {
|
|
918
|
+
// Resolve the variant list to fan out over. The consumer's
|
|
919
|
+
// enrichments are keyed `[generatorId][refName][variant]`; the
|
|
920
|
+
// block at `[refName]` is therefore a record of variant names.
|
|
921
|
+
// Three cases handled in `toVariantList`:
|
|
922
|
+
//
|
|
923
|
+
// - absent → run a single 'main' pass with no enrichment
|
|
924
|
+
// - present, non-object → treat as a single 'main' pass
|
|
925
|
+
// (the per-variant Valibot wrap will reject this shape
|
|
926
|
+
// at config-load time once it lands)
|
|
927
|
+
// - present, object → enumerate keys; 'main' must be among
|
|
928
|
+
// them or we throw (loud beats silent zero-output)
|
|
929
|
+
const modelEnrichments = get(this.settings, ['enrichments', generatorConfig.id, refName]);
|
|
930
|
+
const variants = toVariantList({
|
|
931
|
+
opEnrichments: modelEnrichments,
|
|
932
|
+
generatorId: generatorConfig.id,
|
|
933
|
+
operationLabel: refName
|
|
934
|
+
});
|
|
935
|
+
variants.forEach(variant => {
|
|
936
|
+
refTrail.trace(`variant: ${variant}`, st => {
|
|
937
|
+
try {
|
|
938
|
+
// Order: include (allow) → skip (deny). Match is now on
|
|
939
|
+
// `(refName, variant)`. An empty variant array on a
|
|
940
|
+
// refName means "every variant of this refName"; a
|
|
941
|
+
// populated array names the variants the entry applies
|
|
942
|
+
// to.
|
|
943
|
+
if (include !== undefined &&
|
|
944
|
+
!matchesRefFilter({ refs: include, refName, variant })) {
|
|
945
|
+
this.captureCurrentResult('skipped', st);
|
|
946
|
+
return;
|
|
947
|
+
}
|
|
948
|
+
if (matchesRefFilter({ refs: skip, refName, variant })) {
|
|
949
|
+
this.captureCurrentResult('skipped', st);
|
|
950
|
+
return;
|
|
951
|
+
}
|
|
952
|
+
generatorConfig.transform({
|
|
953
|
+
context: this,
|
|
954
|
+
refName,
|
|
955
|
+
variant
|
|
956
|
+
});
|
|
957
|
+
const source = toModelSource({
|
|
958
|
+
refName,
|
|
959
|
+
generatorId: generatorConfig.id,
|
|
960
|
+
variant
|
|
961
|
+
});
|
|
962
|
+
__classPrivateFieldGet(this, _GenerateContext_instances, "m", _GenerateContext_addPreview).call(this, source, generatorConfig.toPreviewModule?.({ context: this, refName, variant }));
|
|
963
|
+
__classPrivateFieldGet(this, _GenerateContext_instances, "m", _GenerateContext_addMapping).call(this, source, generatorConfig.toMappingModule?.({ context: this, refName, variant }));
|
|
964
|
+
this.captureCurrentResult('success', st);
|
|
965
|
+
}
|
|
966
|
+
catch (error) {
|
|
967
|
+
this.logger.error(error);
|
|
968
|
+
this.captureCurrentResult('error', st);
|
|
969
|
+
}
|
|
970
|
+
});
|
|
971
|
+
});
|
|
972
|
+
});
|
|
973
|
+
});
|
|
443
974
|
}, _GenerateContext_addPreview = function _GenerateContext_addPreview(source, module) {
|
|
444
975
|
if (!module) {
|
|
445
976
|
return;
|
|
446
977
|
}
|
|
447
|
-
if (
|
|
448
|
-
|
|
449
|
-
}
|
|
450
|
-
if (__classPrivateFieldGet(this, _GenerateContext_previews, "f")[module.group][module.name]) {
|
|
451
|
-
throw new Error(`Cannot override preview module "${module.name}" in group "${module.group}"`);
|
|
978
|
+
if (__classPrivateFieldGet(this, _GenerateContext_previews, "f")[module.name]) {
|
|
979
|
+
throw new Error(`Cannot override preview module "${module.name}"`);
|
|
452
980
|
}
|
|
453
|
-
__classPrivateFieldGet(this, _GenerateContext_previews, "f")[module.
|
|
981
|
+
__classPrivateFieldGet(this, _GenerateContext_previews, "f")[module.name] = {
|
|
454
982
|
module,
|
|
455
983
|
source
|
|
456
984
|
};
|
|
@@ -458,97 +986,198 @@ _GenerateContext_files = new WeakMap(), _GenerateContext_previews = new WeakMap(
|
|
|
458
986
|
if (!module) {
|
|
459
987
|
return;
|
|
460
988
|
}
|
|
461
|
-
if (
|
|
462
|
-
|
|
989
|
+
if (__classPrivateFieldGet(this, _GenerateContext_mappings, "f")[module.name]) {
|
|
990
|
+
throw new Error(`Cannot override mapping module "${module.name}"`);
|
|
463
991
|
}
|
|
464
|
-
|
|
465
|
-
throw new Error(`Cannot override mapping module "${module.name}" in group "${module.group}"`);
|
|
466
|
-
}
|
|
467
|
-
__classPrivateFieldGet(this, _GenerateContext_mappings, "f")[module.group][module.name] = {
|
|
992
|
+
__classPrivateFieldGet(this, _GenerateContext_mappings, "f")[module.name] = {
|
|
468
993
|
module,
|
|
469
994
|
source
|
|
470
995
|
};
|
|
471
|
-
}
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
996
|
+
};
|
|
997
|
+
/**
|
|
998
|
+
* Match a `(path, method, variant)` tuple against an operation-shaped
|
|
999
|
+
* skip or include entry. Shared by both arms because skip and include
|
|
1000
|
+
* have the same matching rules; only the engine's interpretation of
|
|
1001
|
+
* the result differs (skip = deny, include = allow).
|
|
1002
|
+
*
|
|
1003
|
+
* Returns `false` when:
|
|
1004
|
+
* - `paths` is `undefined` (no filter applies)
|
|
1005
|
+
* - the `path` isn't keyed in the entry
|
|
1006
|
+
* - the `method` isn't present in the inner record
|
|
1007
|
+
*
|
|
1008
|
+
* Returns `true` when:
|
|
1009
|
+
* - the method's variant array is empty (matches every variant)
|
|
1010
|
+
* - the method's variant array contains `variant`
|
|
1011
|
+
*/
|
|
1012
|
+
const matchesPathFilter = ({ paths, path, method, variant }) => {
|
|
1013
|
+
if (!paths) {
|
|
1014
|
+
return false;
|
|
481
1015
|
}
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
}
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
return definition;
|
|
495
|
-
}, _GenerateContext_addFile = function _GenerateContext_addFile(normalisedPath) {
|
|
496
|
-
if (__classPrivateFieldGet(this, _GenerateContext_files, "f").has(normalisedPath)) {
|
|
497
|
-
throw new Error(`File already exists: ${normalisedPath}`);
|
|
498
|
-
}
|
|
499
|
-
const extension = normalisedPath.split('.').pop();
|
|
500
|
-
let newFile;
|
|
501
|
-
switch (extension) {
|
|
502
|
-
case 'json':
|
|
503
|
-
newFile = new JsonFile({ path: normalisedPath, content: {} });
|
|
504
|
-
break;
|
|
505
|
-
default:
|
|
506
|
-
newFile = new File({ path: normalisedPath, settings: this.settings });
|
|
507
|
-
break;
|
|
508
|
-
}
|
|
509
|
-
__classPrivateFieldGet(this, _GenerateContext_files, "f").set(normalisedPath, newFile);
|
|
510
|
-
return newFile;
|
|
1016
|
+
const methodMap = paths[path];
|
|
1017
|
+
if (!methodMap) {
|
|
1018
|
+
return false;
|
|
1019
|
+
}
|
|
1020
|
+
const variants = methodMap[method];
|
|
1021
|
+
if (variants === undefined) {
|
|
1022
|
+
return false;
|
|
1023
|
+
}
|
|
1024
|
+
if (variants.length === 0) {
|
|
1025
|
+
return true;
|
|
1026
|
+
}
|
|
1027
|
+
return variants.includes(variant);
|
|
511
1028
|
};
|
|
512
1029
|
/**
|
|
513
|
-
*
|
|
1030
|
+
* Match a `(refName, variant)` tuple against a model-shaped skip or
|
|
1031
|
+
* include entry. Sibling to {@link matchesPathFilter} — both arms
|
|
1032
|
+
* share matching rules; only the engine's interpretation of the
|
|
1033
|
+
* result differs (skip = deny, include = allow).
|
|
1034
|
+
*
|
|
1035
|
+
* Returns `false` when:
|
|
1036
|
+
* - `refs` is `undefined` (no filter applies)
|
|
1037
|
+
* - the `refName` isn't keyed in the entry
|
|
1038
|
+
*
|
|
1039
|
+
* Returns `true` when:
|
|
1040
|
+
* - the refName's variant array is empty (matches every variant)
|
|
1041
|
+
* - the refName's variant array contains `variant`
|
|
1042
|
+
*/
|
|
1043
|
+
const matchesRefFilter = ({ refs, refName, variant }) => {
|
|
1044
|
+
if (!refs) {
|
|
1045
|
+
return false;
|
|
1046
|
+
}
|
|
1047
|
+
const variants = refs[refName];
|
|
1048
|
+
if (variants === undefined) {
|
|
1049
|
+
return false;
|
|
1050
|
+
}
|
|
1051
|
+
if (variants.length === 0) {
|
|
1052
|
+
return true;
|
|
1053
|
+
}
|
|
1054
|
+
return variants.includes(variant);
|
|
1055
|
+
};
|
|
1056
|
+
/**
|
|
1057
|
+
* Creates an OasOperationSource from an operation, generator ID, and variant.
|
|
514
1058
|
*
|
|
515
1059
|
* Transforms operation and generator information into a source descriptor
|
|
516
1060
|
* that can be used for tracking operation origins in the generation pipeline.
|
|
517
1061
|
*
|
|
518
|
-
* @param args - Arguments containing operation
|
|
519
|
-
* @returns
|
|
1062
|
+
* @param args - Arguments containing operation, generator ID, and variant
|
|
1063
|
+
* @returns OasOperationSource descriptor for the operation
|
|
520
1064
|
*/
|
|
521
|
-
export const
|
|
522
|
-
type: '
|
|
1065
|
+
export const toOasOperationSource = ({ operation, generatorId, variant }) => ({
|
|
1066
|
+
type: 'oasOperation',
|
|
523
1067
|
generatorId,
|
|
524
1068
|
operationPath: operation.path,
|
|
525
|
-
operationMethod: operation.method
|
|
1069
|
+
operationMethod: operation.method,
|
|
1070
|
+
variant
|
|
1071
|
+
});
|
|
1072
|
+
/**
|
|
1073
|
+
* Creates a {@link WebhookSource} from a webhook, generator ID, and variant.
|
|
1074
|
+
* Sibling of {@link toOasOperationSource} for the 3.1 webhook subject.
|
|
1075
|
+
*/
|
|
1076
|
+
export const toWebhookSource = ({ webhook, generatorId, variant }) => ({
|
|
1077
|
+
type: 'webhook',
|
|
1078
|
+
generatorId,
|
|
1079
|
+
webhookName: webhook.name,
|
|
1080
|
+
webhookMethod: webhook.method,
|
|
1081
|
+
variant
|
|
526
1082
|
});
|
|
527
1083
|
/**
|
|
528
|
-
* Creates a
|
|
1084
|
+
* Creates a GraphQL operation source descriptor.
|
|
1085
|
+
*
|
|
1086
|
+
* Sibling to {@link toOasOperationSource} for the GraphQL protocol — encodes
|
|
1087
|
+
* `rootKind` and `fieldName` instead of `path` / `method`.
|
|
1088
|
+
*/
|
|
1089
|
+
export const toGqlOperationSource = ({ operation, generatorId, variant }) => ({
|
|
1090
|
+
type: 'gqlOperation',
|
|
1091
|
+
generatorId,
|
|
1092
|
+
rootKind: operation.rootKind,
|
|
1093
|
+
fieldName: operation.fieldName,
|
|
1094
|
+
variant
|
|
1095
|
+
});
|
|
1096
|
+
/**
|
|
1097
|
+
* Creates a ModelSource from a reference name, generator ID, and variant.
|
|
529
1098
|
*
|
|
530
1099
|
* Transforms model reference and generator information into a source descriptor
|
|
531
1100
|
* that can be used for tracking model origins in the generation pipeline.
|
|
532
1101
|
*
|
|
533
|
-
* @param args - Arguments containing reference name
|
|
1102
|
+
* @param args - Arguments containing reference name, generator ID, and variant
|
|
534
1103
|
* @returns ModelSource descriptor for the model
|
|
535
1104
|
*/
|
|
536
|
-
export const toModelSource = ({ refName, generatorId }) => ({
|
|
1105
|
+
export const toModelSource = ({ refName, generatorId, variant }) => ({
|
|
537
1106
|
type: 'model',
|
|
538
1107
|
generatorId,
|
|
539
|
-
refName
|
|
1108
|
+
refName,
|
|
1109
|
+
variant
|
|
540
1110
|
});
|
|
541
1111
|
const toSkipPaths = (skip, generatorId) => {
|
|
542
1112
|
const generatorSkip = skip?.[generatorId];
|
|
543
|
-
|
|
544
|
-
|
|
1113
|
+
// Operation-shaped entries have records-of-records at the inner
|
|
1114
|
+
// slot (`Record<path, Record<method, variant[]>>`); model-shaped
|
|
1115
|
+
// entries have records-of-arrays (`Record<refName, variant[]>`).
|
|
1116
|
+
// Discriminate by inner value shape. An empty record is ambiguous
|
|
1117
|
+
// and admitted by both helpers — each arm will see its own empty
|
|
1118
|
+
// filter (`{}`), which means "match nothing" in both cases.
|
|
1119
|
+
if (typeof generatorSkip === 'object' &&
|
|
1120
|
+
generatorSkip !== null &&
|
|
1121
|
+
!Array.isArray(generatorSkip)) {
|
|
1122
|
+
const values = Object.values(generatorSkip);
|
|
1123
|
+
if (values.length === 0 ||
|
|
1124
|
+
values.every(v => typeof v === 'object' && v !== null && !Array.isArray(v))) {
|
|
1125
|
+
return generatorSkip;
|
|
1126
|
+
}
|
|
545
1127
|
}
|
|
546
1128
|
return undefined;
|
|
547
1129
|
};
|
|
548
1130
|
const toSkipModels = (skip, generatorId) => {
|
|
549
1131
|
const generatorSkip = skip?.[generatorId];
|
|
550
|
-
|
|
551
|
-
|
|
1132
|
+
// SkipModelRefs is `Record<refName, variant[]>`. The operation arm
|
|
1133
|
+
// entries are `Record<path, Record<method, variant[]>>` — discriminate
|
|
1134
|
+
// by inner value shape (arrays vs nested records). An empty record is
|
|
1135
|
+
// ambiguous and admitted by both helpers — see `toSkipPaths`.
|
|
1136
|
+
if (typeof generatorSkip === 'object' &&
|
|
1137
|
+
generatorSkip !== null &&
|
|
1138
|
+
!Array.isArray(generatorSkip)) {
|
|
1139
|
+
const values = Object.values(generatorSkip);
|
|
1140
|
+
if (values.length === 0 || values.every(v => Array.isArray(v))) {
|
|
1141
|
+
return generatorSkip;
|
|
1142
|
+
}
|
|
1143
|
+
}
|
|
1144
|
+
return undefined;
|
|
1145
|
+
};
|
|
1146
|
+
/**
|
|
1147
|
+
* Extracts the per-operation include slice for a generator, mirroring
|
|
1148
|
+
* {@link toSkipPaths}. Returns `undefined` when the include entry
|
|
1149
|
+
* isn't operation-shaped for this generator (e.g. the user passed a
|
|
1150
|
+
* model-shaped array or no entry at all) — the caller then treats
|
|
1151
|
+
* "no per-op filter active" as the semantics.
|
|
1152
|
+
*/
|
|
1153
|
+
const toIncludePaths = (include, generatorId) => {
|
|
1154
|
+
const generatorInclude = include?.[generatorId];
|
|
1155
|
+
// Same model/operation discrimination as `toSkipPaths`.
|
|
1156
|
+
if (typeof generatorInclude === 'object' &&
|
|
1157
|
+
generatorInclude !== null &&
|
|
1158
|
+
!Array.isArray(generatorInclude)) {
|
|
1159
|
+
const values = Object.values(generatorInclude);
|
|
1160
|
+
if (values.length === 0 ||
|
|
1161
|
+
values.every(v => typeof v === 'object' && v !== null && !Array.isArray(v))) {
|
|
1162
|
+
return generatorInclude;
|
|
1163
|
+
}
|
|
1164
|
+
}
|
|
1165
|
+
return undefined;
|
|
1166
|
+
};
|
|
1167
|
+
/**
|
|
1168
|
+
* Extracts the per-model include slice for a generator, mirroring
|
|
1169
|
+
* {@link toSkipModels}. Returns `undefined` when the include entry
|
|
1170
|
+
* isn't model-shaped for this generator.
|
|
1171
|
+
*/
|
|
1172
|
+
const toIncludeModels = (include, generatorId) => {
|
|
1173
|
+
const generatorInclude = include?.[generatorId];
|
|
1174
|
+
if (typeof generatorInclude === 'object' &&
|
|
1175
|
+
generatorInclude !== null &&
|
|
1176
|
+
!Array.isArray(generatorInclude)) {
|
|
1177
|
+
const values = Object.values(generatorInclude);
|
|
1178
|
+
if (values.length === 0 || values.every(v => Array.isArray(v))) {
|
|
1179
|
+
return generatorInclude;
|
|
1180
|
+
}
|
|
552
1181
|
}
|
|
553
1182
|
return undefined;
|
|
554
1183
|
};
|