@nestia/sdk 14.0.1 → 14.0.2
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/assets/bundle/distribute/build-sdk.cjs +28 -0
- package/assets/bundle/distribute/package.json +6 -2
- package/lib/INestiaConfig.d.ts +55 -24
- package/lib/NestiaSdkApplication.d.ts +60 -0
- package/lib/NestiaSdkApplication.js +63 -5
- package/lib/NestiaSdkApplication.js.map +1 -1
- package/lib/NestiaSwaggerComposer.d.ts +21 -0
- package/lib/NestiaSwaggerComposer.js +21 -3
- package/lib/NestiaSwaggerComposer.js.map +1 -1
- package/lib/analyses/AccessorAnalyzer.d.ts +26 -0
- package/lib/analyses/AccessorAnalyzer.js +26 -0
- package/lib/analyses/AccessorAnalyzer.js.map +1 -1
- package/lib/analyses/ConfigAnalyzer.d.ts +41 -0
- package/lib/analyses/ConfigAnalyzer.js +48 -73
- package/lib/analyses/ConfigAnalyzer.js.map +1 -1
- package/lib/analyses/ImportAnalyzer.d.ts +25 -0
- package/lib/analyses/ImportAnalyzer.js +25 -0
- package/lib/analyses/ImportAnalyzer.js.map +1 -1
- package/lib/analyses/ParameterNameAnalyzer.d.ts +24 -0
- package/lib/analyses/ParameterNameAnalyzer.js +15 -0
- package/lib/analyses/ParameterNameAnalyzer.js.map +1 -1
- package/lib/analyses/PathAnalyzer.d.ts +63 -1
- package/lib/analyses/PathAnalyzer.js +54 -9
- package/lib/analyses/PathAnalyzer.js.map +1 -1
- package/lib/analyses/ReflectControllerAnalyzer.d.ts +32 -0
- package/lib/analyses/ReflectControllerAnalyzer.js +22 -0
- package/lib/analyses/ReflectControllerAnalyzer.js.map +1 -1
- package/lib/analyses/ReflectHttpOperationAnalyzer.d.ts +29 -0
- package/lib/analyses/ReflectHttpOperationAnalyzer.js +28 -17
- package/lib/analyses/ReflectHttpOperationAnalyzer.js.map +1 -1
- package/lib/analyses/ReflectHttpOperationExceptionAnalyzer.d.ts +31 -0
- package/lib/analyses/ReflectHttpOperationExceptionAnalyzer.js +21 -0
- package/lib/analyses/ReflectHttpOperationExceptionAnalyzer.js.map +1 -1
- package/lib/analyses/ReflectHttpOperationParameterAnalyzer.d.ts +31 -0
- package/lib/analyses/ReflectHttpOperationParameterAnalyzer.js +21 -0
- package/lib/analyses/ReflectHttpOperationParameterAnalyzer.js.map +1 -1
- package/lib/analyses/ReflectHttpOperationResponseAnalyzer.d.ts +32 -0
- package/lib/analyses/ReflectHttpOperationResponseAnalyzer.js +22 -0
- package/lib/analyses/ReflectHttpOperationResponseAnalyzer.js.map +1 -1
- package/lib/analyses/ReflectMcpOperationAnalyzer.d.ts +29 -0
- package/lib/analyses/ReflectMcpOperationAnalyzer.js +30 -9
- package/lib/analyses/ReflectMcpOperationAnalyzer.js.map +1 -1
- package/lib/analyses/ReflectMetadataAnalyzer.d.ts +47 -0
- package/lib/analyses/ReflectMetadataAnalyzer.js +47 -0
- package/lib/analyses/ReflectMetadataAnalyzer.js.map +1 -1
- package/lib/analyses/ReflectWebSocketOperationAnalyzer.d.ts +29 -0
- package/lib/analyses/ReflectWebSocketOperationAnalyzer.js +21 -2
- package/lib/analyses/ReflectWebSocketOperationAnalyzer.js.map +1 -1
- package/lib/analyses/SecurityAnalyzer.d.ts +15 -0
- package/lib/analyses/SecurityAnalyzer.js +15 -0
- package/lib/analyses/SecurityAnalyzer.js.map +1 -1
- package/lib/analyses/SwaggerExampleAnalyzer.d.ts +16 -0
- package/lib/analyses/SwaggerExampleAnalyzer.js +16 -0
- package/lib/analyses/SwaggerExampleAnalyzer.js.map +1 -1
- package/lib/analyses/TypedHttpRouteAnalyzer.d.ts +41 -3
- package/lib/analyses/TypedHttpRouteAnalyzer.js +172 -157
- package/lib/analyses/TypedHttpRouteAnalyzer.js.map +1 -1
- package/lib/analyses/TypedMcpRouteAnalyzer.d.ts +29 -0
- package/lib/analyses/TypedMcpRouteAnalyzer.js +152 -20
- package/lib/analyses/TypedMcpRouteAnalyzer.js.map +1 -1
- package/lib/analyses/TypedWebSocketRouteAnalyzer.d.ts +19 -0
- package/lib/analyses/TypedWebSocketRouteAnalyzer.js +19 -0
- package/lib/analyses/TypedWebSocketRouteAnalyzer.js.map +1 -1
- package/lib/decorators/OperationMetadata.d.ts +6 -0
- package/lib/decorators/OperationMetadata.js +6 -0
- package/lib/decorators/OperationMetadata.js.map +1 -1
- package/lib/executable/internal/CommandParser.d.ts +19 -0
- package/lib/executable/internal/CommandParser.js +19 -0
- package/lib/executable/internal/CommandParser.js.map +1 -1
- package/lib/executable/internal/NestiaConfigLoader.d.ts +56 -0
- package/lib/executable/internal/NestiaConfigLoader.js +48 -42
- package/lib/executable/internal/NestiaConfigLoader.js.map +1 -1
- package/lib/executable/internal/NestiaSdkCommand.d.ts +60 -0
- package/lib/executable/internal/NestiaSdkCommand.js +95 -3
- package/lib/executable/internal/NestiaSdkCommand.js.map +1 -1
- package/lib/executable/internal/NestiaSdkWatcher.d.ts +81 -0
- package/lib/executable/internal/NestiaSdkWatcher.js +122 -38
- package/lib/executable/internal/NestiaSdkWatcher.js.map +1 -1
- package/lib/executable/internal/NestiaSwaggerWatch.d.ts +80 -0
- package/lib/executable/internal/NestiaSwaggerWatch.js +308 -0
- package/lib/executable/internal/NestiaSwaggerWatch.js.map +1 -0
- package/lib/factories/ExpressionFactory.d.ts +17 -2
- package/lib/factories/ExpressionFactory.js +17 -2
- package/lib/factories/ExpressionFactory.js.map +1 -1
- package/lib/factories/IdentifierFactory.d.ts +24 -0
- package/lib/factories/IdentifierFactory.js +24 -0
- package/lib/factories/IdentifierFactory.js.map +1 -1
- package/lib/factories/LiteralFactory.d.ts +22 -4
- package/lib/factories/LiteralFactory.js +30 -10
- package/lib/factories/LiteralFactory.js.map +1 -1
- package/lib/factories/StatementFactory.d.ts +28 -1
- package/lib/factories/StatementFactory.js +28 -1
- package/lib/factories/StatementFactory.js.map +1 -1
- package/lib/factories/TypeFactory.d.ts +24 -0
- package/lib/factories/TypeFactory.js +15 -0
- package/lib/factories/TypeFactory.js.map +1 -1
- package/lib/generates/CloneGenerator.d.ts +22 -0
- package/lib/generates/CloneGenerator.js +26 -5
- package/lib/generates/CloneGenerator.js.map +1 -1
- package/lib/generates/E2eGenerator.d.ts +19 -0
- package/lib/generates/E2eGenerator.js +19 -0
- package/lib/generates/E2eGenerator.js.map +1 -1
- package/lib/generates/SdkGenerator.d.ts +38 -0
- package/lib/generates/SdkGenerator.js +40 -2
- package/lib/generates/SdkGenerator.js.map +1 -1
- package/lib/generates/SwaggerGenerator.d.ts +36 -6
- package/lib/generates/SwaggerGenerator.js +55 -13
- package/lib/generates/SwaggerGenerator.js.map +1 -1
- package/lib/generates/internal/E2eFileProgrammer.d.ts +19 -0
- package/lib/generates/internal/E2eFileProgrammer.js +20 -1
- package/lib/generates/internal/E2eFileProgrammer.js.map +1 -1
- package/lib/generates/internal/FilePrinter.d.ts +43 -0
- package/lib/generates/internal/FilePrinter.js +43 -0
- package/lib/generates/internal/FilePrinter.js.map +1 -1
- package/lib/generates/internal/ImportDictionary.d.ts +92 -2
- package/lib/generates/internal/ImportDictionary.js +91 -3
- package/lib/generates/internal/ImportDictionary.js.map +1 -1
- package/lib/generates/internal/SdkAliasCollection.d.ts +119 -0
- package/lib/generates/internal/SdkAliasCollection.js +124 -7
- package/lib/generates/internal/SdkAliasCollection.js.map +1 -1
- package/lib/generates/internal/SdkDistributionComposer.d.ts +19 -0
- package/lib/generates/internal/SdkDistributionComposer.js +98 -59
- package/lib/generates/internal/SdkDistributionComposer.js.map +1 -1
- package/lib/generates/internal/SdkFileProgrammer.d.ts +18 -0
- package/lib/generates/internal/SdkFileProgrammer.js +18 -0
- package/lib/generates/internal/SdkFileProgrammer.js.map +1 -1
- package/lib/generates/internal/SdkHttpCloneProgrammer.d.ts +29 -0
- package/lib/generates/internal/SdkHttpCloneProgrammer.js +33 -0
- package/lib/generates/internal/SdkHttpCloneProgrammer.js.map +1 -1
- package/lib/generates/internal/SdkHttpCloneReferencer.d.ts +19 -0
- package/lib/generates/internal/SdkHttpCloneReferencer.js +78 -25
- package/lib/generates/internal/SdkHttpCloneReferencer.js.map +1 -1
- package/lib/generates/internal/SdkHttpFunctionProgrammer.d.ts +19 -0
- package/lib/generates/internal/SdkHttpFunctionProgrammer.js +19 -0
- package/lib/generates/internal/SdkHttpFunctionProgrammer.js.map +1 -1
- package/lib/generates/internal/SdkHttpNamespaceProgrammer.d.ts +19 -0
- package/lib/generates/internal/SdkHttpNamespaceProgrammer.js +19 -0
- package/lib/generates/internal/SdkHttpNamespaceProgrammer.js.map +1 -1
- package/lib/generates/internal/SdkHttpParameterProgrammer.d.ts +104 -2
- package/lib/generates/internal/SdkHttpParameterProgrammer.js +70 -0
- package/lib/generates/internal/SdkHttpParameterProgrammer.js.map +1 -1
- package/lib/generates/internal/SdkHttpRouteProgrammer.d.ts +20 -0
- package/lib/generates/internal/SdkHttpRouteProgrammer.js +20 -0
- package/lib/generates/internal/SdkHttpRouteProgrammer.js.map +1 -1
- package/lib/generates/internal/SdkHttpSimulationProgrammer.d.ts +38 -0
- package/lib/generates/internal/SdkHttpSimulationProgrammer.js +49 -5
- package/lib/generates/internal/SdkHttpSimulationProgrammer.js.map +1 -1
- package/lib/generates/internal/SdkImportWizard.d.ts +63 -0
- package/lib/generates/internal/SdkImportWizard.js +63 -0
- package/lib/generates/internal/SdkImportWizard.js.map +1 -1
- package/lib/generates/internal/SdkMcpRouteProgrammer.d.ts +17 -2
- package/lib/generates/internal/SdkMcpRouteProgrammer.js +33 -13
- package/lib/generates/internal/SdkMcpRouteProgrammer.js.map +1 -1
- package/lib/generates/internal/SdkPathTemplate.d.ts +15 -0
- package/lib/generates/internal/SdkPathTemplate.js +15 -0
- package/lib/generates/internal/SdkPathTemplate.js.map +1 -1
- package/lib/generates/internal/SdkRouteDirectory.d.ts +10 -0
- package/lib/generates/internal/SdkRouteDirectory.js +10 -0
- package/lib/generates/internal/SdkRouteDirectory.js.map +1 -1
- package/lib/generates/internal/SdkTypeProgrammer.d.ts +54 -1
- package/lib/generates/internal/SdkTypeProgrammer.js +96 -12
- package/lib/generates/internal/SdkTypeProgrammer.js.map +1 -1
- package/lib/generates/internal/SdkTypeTagProgrammer.d.ts +36 -3
- package/lib/generates/internal/SdkTypeTagProgrammer.js +28 -7
- package/lib/generates/internal/SdkTypeTagProgrammer.js.map +1 -1
- package/lib/generates/internal/SdkWebSocketCloneProgrammer.d.ts +40 -0
- package/lib/generates/internal/SdkWebSocketCloneProgrammer.js +149 -142
- package/lib/generates/internal/SdkWebSocketCloneProgrammer.js.map +1 -1
- package/lib/generates/internal/SdkWebSocketNamespaceProgrammer.d.ts +19 -0
- package/lib/generates/internal/SdkWebSocketNamespaceProgrammer.js +19 -0
- package/lib/generates/internal/SdkWebSocketNamespaceProgrammer.js.map +1 -1
- package/lib/generates/internal/SdkWebSocketParameterProgrammer.d.ts +81 -2
- package/lib/generates/internal/SdkWebSocketParameterProgrammer.js +48 -0
- package/lib/generates/internal/SdkWebSocketParameterProgrammer.js.map +1 -1
- package/lib/generates/internal/SdkWebSocketRouteProgrammer.d.ts +18 -0
- package/lib/generates/internal/SdkWebSocketRouteProgrammer.js +18 -0
- package/lib/generates/internal/SdkWebSocketRouteProgrammer.js.map +1 -1
- package/lib/generates/internal/SwaggerDescriptionComposer.d.ts +42 -0
- package/lib/generates/internal/SwaggerDescriptionComposer.js +44 -1
- package/lib/generates/internal/SwaggerDescriptionComposer.js.map +1 -1
- package/lib/generates/internal/SwaggerOperationComposer.d.ts +18 -0
- package/lib/generates/internal/SwaggerOperationComposer.js +18 -0
- package/lib/generates/internal/SwaggerOperationComposer.js.map +1 -1
- package/lib/generates/internal/SwaggerOperationParameterComposer.d.ts +39 -0
- package/lib/generates/internal/SwaggerOperationParameterComposer.js +31 -8
- package/lib/generates/internal/SwaggerOperationParameterComposer.js.map +1 -1
- package/lib/generates/internal/SwaggerOperationResponseComposer.d.ts +19 -0
- package/lib/generates/internal/SwaggerOperationResponseComposer.js +19 -0
- package/lib/generates/internal/SwaggerOperationResponseComposer.js.map +1 -1
- package/lib/internal/legacy.d.ts +296 -16
- package/lib/internal/legacy.js +127 -10
- package/lib/internal/legacy.js.map +1 -1
- package/lib/structures/INestiaProject.d.ts +10 -0
- package/lib/structures/INestiaSdkInput.d.ts +30 -0
- package/lib/structures/IOperationMetadata.d.ts +55 -0
- package/lib/structures/IReflectController.d.ts +10 -0
- package/lib/structures/IReflectHttpOperation.d.ts +10 -0
- package/lib/structures/IReflectHttpOperationException.d.ts +10 -0
- package/lib/structures/IReflectHttpOperationParameter.d.ts +47 -0
- package/lib/structures/IReflectHttpOperationSuccess.d.ts +11 -0
- package/lib/structures/IReflectImport.d.ts +10 -0
- package/lib/structures/IReflectMcpOperation.d.ts +19 -0
- package/lib/structures/IReflectMcpOperationParameter.d.ts +9 -0
- package/lib/structures/IReflectOperationError.d.ts +28 -0
- package/lib/structures/IReflectOperationError.js +22 -2
- package/lib/structures/IReflectOperationError.js.map +1 -1
- package/lib/structures/IReflectType.d.ts +9 -0
- package/lib/structures/IReflectWebSocketOperation.d.ts +10 -0
- package/lib/structures/IReflectWebSocketOperationParameter.d.ts +55 -0
- package/lib/structures/ITypedApplication.d.ts +10 -0
- package/lib/structures/ITypedHttpRoute.d.ts +10 -0
- package/lib/structures/ITypedHttpRouteException.d.ts +10 -0
- package/lib/structures/ITypedHttpRouteParameter.d.ts +45 -0
- package/lib/structures/ITypedHttpRouteSuccess.d.ts +10 -0
- package/lib/structures/ITypedMcpRoute.d.ts +11 -0
- package/lib/structures/ITypedWebSocketRoute.d.ts +10 -0
- package/lib/transform.d.ts +6 -0
- package/lib/transform.js +6 -0
- package/lib/transform.js.map +1 -1
- package/lib/utils/ArrayUtil.d.ts +31 -1
- package/lib/utils/ArrayUtil.js +32 -11
- package/lib/utils/ArrayUtil.js.map +1 -1
- package/lib/utils/EmittedJavaScriptPatcher.d.ts +20 -0
- package/lib/utils/EmittedJavaScriptPatcher.js +65 -46
- package/lib/utils/EmittedJavaScriptPatcher.js.map +1 -1
- package/lib/utils/FileRetriever.d.ts +29 -0
- package/lib/utils/FileRetriever.js +29 -0
- package/lib/utils/FileRetriever.js.map +1 -1
- package/lib/utils/HttpResponseContentTypeUtil.d.ts +41 -0
- package/lib/utils/HttpResponseContentTypeUtil.js +31 -0
- package/lib/utils/HttpResponseContentTypeUtil.js.map +1 -1
- package/lib/utils/MapUtil.d.ts +64 -1
- package/lib/utils/MapUtil.js +24 -3
- package/lib/utils/MapUtil.js.map +1 -1
- package/lib/utils/PathUtil.d.ts +31 -0
- package/lib/utils/PathUtil.js +38 -0
- package/lib/utils/PathUtil.js.map +1 -1
- package/lib/utils/SdkBundlePath.d.ts +2 -0
- package/lib/utils/SdkBundlePath.js +10 -0
- package/lib/utils/SdkBundlePath.js.map +1 -0
- package/lib/utils/SdkInputFilter.d.ts +31 -0
- package/lib/utils/SdkInputFilter.js +115 -0
- package/lib/utils/SdkInputFilter.js.map +1 -0
- package/lib/utils/SourceFinder.d.ts +35 -0
- package/lib/utils/SourceFinder.js +47 -12
- package/lib/utils/SourceFinder.js.map +1 -1
- package/lib/utils/StringUtil.d.ts +77 -2
- package/lib/utils/StringUtil.js +166 -4
- package/lib/utils/StringUtil.js.map +1 -1
- package/lib/utils/TemporaryDirectory.d.ts +60 -0
- package/lib/utils/TemporaryDirectory.js +112 -0
- package/lib/utils/TemporaryDirectory.js.map +1 -0
- package/lib/utils/TsConfigReader.d.ts +42 -0
- package/lib/utils/TsConfigReader.js +98 -14
- package/lib/utils/TsConfigReader.js.map +1 -1
- package/lib/utils/TtscExecutor.d.ts +23 -1
- package/lib/utils/TtscExecutor.js +22 -0
- package/lib/utils/TtscExecutor.js.map +1 -1
- package/lib/utils/VersioningStrategy.d.ts +26 -1
- package/lib/utils/VersioningStrategy.js +30 -9
- package/lib/utils/VersioningStrategy.js.map +1 -1
- package/lib/validators/TextPlainValidator.d.ts +19 -0
- package/lib/validators/TextPlainValidator.js +19 -0
- package/lib/validators/TextPlainValidator.js.map +1 -1
- package/native/go.mod +1 -1
- package/native/go.sum +2 -2
- package/native/sdk/register.go +12 -2
- package/native/sdk/sdk_metadata_json.go +6 -1
- package/native/sdk/sdk_transform.go +388 -397
- package/package.json +7 -5
- package/src/INestiaConfig.ts +55 -24
- package/src/NestiaSdkApplication.ts +66 -7
- package/src/NestiaSwaggerComposer.ts +21 -6
- package/src/analyses/AccessorAnalyzer.ts +26 -0
- package/src/analyses/ConfigAnalyzer.ts +49 -87
- package/src/analyses/ImportAnalyzer.ts +25 -0
- package/src/analyses/ParameterNameAnalyzer.ts +24 -0
- package/src/analyses/PathAnalyzer.ts +63 -11
- package/src/analyses/ReflectControllerAnalyzer.ts +32 -0
- package/src/analyses/ReflectHttpOperationAnalyzer.ts +32 -10
- package/src/analyses/ReflectHttpOperationExceptionAnalyzer.ts +31 -0
- package/src/analyses/ReflectHttpOperationParameterAnalyzer.ts +31 -0
- package/src/analyses/ReflectHttpOperationResponseAnalyzer.ts +32 -0
- package/src/analyses/ReflectMcpOperationAnalyzer.ts +32 -1
- package/src/analyses/ReflectMetadataAnalyzer.ts +47 -0
- package/src/analyses/ReflectWebSocketOperationAnalyzer.ts +33 -4
- package/src/analyses/SecurityAnalyzer.ts +15 -0
- package/src/analyses/SwaggerExampleAnalyzer.ts +16 -0
- package/src/analyses/TypedHttpRouteAnalyzer.ts +240 -184
- package/src/analyses/TypedMcpRouteAnalyzer.ts +180 -20
- package/src/analyses/TypedWebSocketRouteAnalyzer.ts +19 -0
- package/src/decorators/OperationMetadata.ts +6 -0
- package/src/executable/internal/CommandParser.ts +19 -0
- package/src/executable/internal/NestiaConfigLoader.ts +66 -50
- package/src/executable/internal/NestiaSdkCommand.ts +96 -3
- package/src/executable/internal/NestiaSdkWatcher.ts +169 -41
- package/src/executable/internal/NestiaSwaggerWatch.ts +359 -0
- package/src/factories/ExpressionFactory.ts +17 -2
- package/src/factories/IdentifierFactory.ts +24 -0
- package/src/factories/LiteralFactory.ts +44 -11
- package/src/factories/StatementFactory.ts +28 -1
- package/src/factories/TypeFactory.ts +24 -0
- package/src/generates/CloneGenerator.ts +26 -5
- package/src/generates/E2eGenerator.ts +19 -0
- package/src/generates/SdkGenerator.ts +40 -9
- package/src/generates/SwaggerGenerator.ts +56 -14
- package/src/generates/internal/E2eFileProgrammer.ts +20 -0
- package/src/generates/internal/FilePrinter.ts +43 -0
- package/src/generates/internal/ImportDictionary.ts +110 -3
- package/src/generates/internal/SdkAliasCollection.ts +133 -11
- package/src/generates/internal/SdkDistributionComposer.ts +117 -66
- package/src/generates/internal/SdkFileProgrammer.ts +18 -0
- package/src/generates/internal/SdkHttpCloneProgrammer.ts +55 -0
- package/src/generates/internal/SdkHttpCloneReferencer.ts +97 -23
- package/src/generates/internal/SdkHttpFunctionProgrammer.ts +19 -0
- package/src/generates/internal/SdkHttpNamespaceProgrammer.ts +19 -0
- package/src/generates/internal/SdkHttpParameterProgrammer.ts +104 -2
- package/src/generates/internal/SdkHttpRouteProgrammer.ts +20 -0
- package/src/generates/internal/SdkHttpSimulationProgrammer.ts +72 -5
- package/src/generates/internal/SdkImportWizard.ts +63 -0
- package/src/generates/internal/SdkMcpRouteProgrammer.ts +38 -18
- package/src/generates/internal/SdkPathTemplate.ts +15 -0
- package/src/generates/internal/SdkRouteDirectory.ts +10 -0
- package/src/generates/internal/SdkTypeProgrammer.ts +118 -14
- package/src/generates/internal/SdkTypeTagProgrammer.ts +37 -7
- package/src/generates/internal/SdkWebSocketCloneProgrammer.ts +185 -142
- package/src/generates/internal/SdkWebSocketNamespaceProgrammer.ts +19 -0
- package/src/generates/internal/SdkWebSocketParameterProgrammer.ts +81 -2
- package/src/generates/internal/SdkWebSocketRouteProgrammer.ts +18 -0
- package/src/generates/internal/SwaggerDescriptionComposer.ts +47 -1
- package/src/generates/internal/SwaggerOperationComposer.ts +18 -0
- package/src/generates/internal/SwaggerOperationParameterComposer.ts +41 -8
- package/src/generates/internal/SwaggerOperationResponseComposer.ts +19 -0
- package/src/internal/legacy-augmentation.d.ts +16 -0
- package/src/internal/legacy.ts +296 -26
- package/src/structures/INestiaProject.ts +10 -0
- package/src/structures/INestiaSdkInput.ts +30 -0
- package/src/structures/IOperationMetadata.ts +55 -0
- package/src/structures/IReflectController.ts +10 -0
- package/src/structures/IReflectHttpOperation.ts +10 -0
- package/src/structures/IReflectHttpOperationException.ts +10 -0
- package/src/structures/IReflectHttpOperationParameter.ts +47 -0
- package/src/structures/IReflectHttpOperationSuccess.ts +11 -0
- package/src/structures/IReflectImport.ts +10 -0
- package/src/structures/IReflectMcpOperation.ts +19 -0
- package/src/structures/IReflectMcpOperationParameter.ts +9 -0
- package/src/structures/IReflectOperationError.ts +31 -2
- package/src/structures/IReflectType.ts +9 -0
- package/src/structures/IReflectWebSocketOperation.ts +10 -0
- package/src/structures/IReflectWebSocketOperationParameter.ts +55 -0
- package/src/structures/ITypedApplication.ts +10 -0
- package/src/structures/ITypedHttpRoute.ts +10 -0
- package/src/structures/ITypedHttpRouteException.ts +10 -0
- package/src/structures/ITypedHttpRouteParameter.ts +45 -0
- package/src/structures/ITypedHttpRouteSuccess.ts +10 -0
- package/src/structures/ITypedMcpRoute.ts +12 -0
- package/src/structures/ITypedWebSocketRoute.ts +10 -0
- package/src/transform.ts +6 -0
- package/src/utils/ArrayUtil.ts +32 -13
- package/src/utils/EmittedJavaScriptPatcher.ts +70 -47
- package/src/utils/FileRetriever.ts +29 -0
- package/src/utils/HttpResponseContentTypeUtil.ts +41 -0
- package/src/utils/MapUtil.ts +68 -3
- package/src/utils/PathUtil.ts +38 -0
- package/src/utils/SdkBundlePath.ts +11 -0
- package/src/utils/SdkInputFilter.ts +108 -0
- package/src/utils/SourceFinder.ts +51 -14
- package/src/utils/StringUtil.ts +182 -5
- package/src/utils/TemporaryDirectory.ts +108 -0
- package/src/utils/TsConfigReader.ts +124 -26
- package/src/utils/TtscExecutor.ts +23 -1
- package/src/utils/VersioningStrategy.ts +33 -13
- package/src/validators/TextPlainValidator.ts +19 -0
- package/lib/generates/internal/SwaggerReadonlyArrayEmender.d.ts +0 -9
- package/lib/generates/internal/SwaggerReadonlyArrayEmender.js +0 -178
- package/lib/generates/internal/SwaggerReadonlyArrayEmender.js.map +0 -1
- package/src/generates/internal/SwaggerReadonlyArrayEmender.ts +0 -264
package/lib/internal/legacy.js
CHANGED
|
@@ -1,19 +1,40 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.JsonSchemasProgrammer = exports.JsonMetadataFactory = exports.MetadataFactory = exports.MetadataSchema = exports.MetadataComponents = exports.isSoleLiteralOf = exports.decodeTagValue = exports.decodeMetadataValue = exports.isRequiredOf = exports.
|
|
3
|
+
exports.JsonSchemasProgrammer = exports.JsonMetadataFactory = exports.MetadataFactory = exports.MetadataSchema = exports.MetadataComponents = exports.isSoleLiteralOf = exports.decodeTagValue = exports.decodeMetadataValue = exports.isRequiredOf = exports.nameOf = exports.sizeOf = void 0;
|
|
4
4
|
// ---------------------------------------------------------------------
|
|
5
5
|
// Metadata utility functions — read pre-baked fields, no class wrapping.
|
|
6
6
|
// ---------------------------------------------------------------------
|
|
7
|
-
/**
|
|
7
|
+
/**
|
|
8
|
+
* `MetadataSchema.size()` → reads the pre-baked `size` field.
|
|
9
|
+
*
|
|
10
|
+
* @evidence contracts/common.md#principled-implementation The transform bakes the size, which replaces a method of the legacy class.
|
|
11
|
+
* @evidence contracts/common.md#clear-and-simple-design One read.
|
|
12
|
+
* @evidence contracts/common.md#prohibited-implementation-shortcuts It reads the baked field.
|
|
13
|
+
* @evidence contracts/common.md#meaningful-documentation The comment states the fallback.
|
|
14
|
+
* @evidenceExclude contracts/portability.md#os-neutral-implementation This metadata adapter represents schema values, named type references and validation results in memory. It neither interprets native pathname identity nor opens files or launches processes.
|
|
15
|
+
*/
|
|
8
16
|
const sizeOf = (m) => { var _a; return (_a = m.size) !== null && _a !== void 0 ? _a : 0; };
|
|
9
17
|
exports.sizeOf = sizeOf;
|
|
10
|
-
/**
|
|
18
|
+
/**
|
|
19
|
+
* `MetadataSchema.getName()` → reads the pre-baked `name` field.
|
|
20
|
+
*
|
|
21
|
+
* @evidence contracts/common.md#principled-implementation The transform bakes the name, which replaces a method of the legacy class.
|
|
22
|
+
* @evidence contracts/common.md#clear-and-simple-design One read.
|
|
23
|
+
* @evidence contracts/common.md#prohibited-implementation-shortcuts It reads the baked field.
|
|
24
|
+
* @evidence contracts/common.md#meaningful-documentation The comment states the fallback.
|
|
25
|
+
* @evidenceExclude contracts/portability.md#os-neutral-implementation This metadata adapter represents schema values, named type references and validation results in memory. It neither interprets native pathname identity nor opens files or launches processes.
|
|
26
|
+
*/
|
|
11
27
|
const nameOf = (m) => { var _a; return (_a = m.name) !== null && _a !== void 0 ? _a : ""; };
|
|
12
28
|
exports.nameOf = nameOf;
|
|
13
|
-
/**
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
29
|
+
/**
|
|
30
|
+
* A property is required only when neither omission nor undefined is allowed.
|
|
31
|
+
*
|
|
32
|
+
* @evidence contracts/common.md#principled-implementation Both flags must exclude absence, so the conjunction with the negated optional flag is the definition.
|
|
33
|
+
* @evidence contracts/common.md#clear-and-simple-design One expression.
|
|
34
|
+
* @evidence contracts/common.md#prohibited-implementation-shortcuts It reads two flags.
|
|
35
|
+
* @evidence contracts/common.md#meaningful-documentation The comment states the definition.
|
|
36
|
+
* @evidenceExclude contracts/portability.md#os-neutral-implementation This metadata adapter represents schema values, named type references and validation results in memory. It neither interprets native pathname identity nor opens files or launches processes.
|
|
37
|
+
*/
|
|
17
38
|
const isRequiredOf = (m) => m.required && !m.optional;
|
|
18
39
|
exports.isRequiredOf = isRequiredOf;
|
|
19
40
|
/**
|
|
@@ -24,6 +45,12 @@ exports.isRequiredOf = isRequiredOf;
|
|
|
24
45
|
* (`"Infinity"`), both as strings. `type` is the constant's type, which is its
|
|
25
46
|
* value's own, so a bigint or number constant's string is always one of those;
|
|
26
47
|
* every other value is returned as it is.
|
|
48
|
+
*
|
|
49
|
+
* @evidence contracts/common.md#principled-implementation JSON holds neither bigint nor a non-finite number, so those are carried as strings and converted back by the constant's own type.
|
|
50
|
+
* @evidence contracts/common.md#clear-and-simple-design One conditional.
|
|
51
|
+
* @evidence contracts/common.md#prohibited-implementation-shortcuts The conversion follows the documented encoding.
|
|
52
|
+
* @evidence contracts/common.md#meaningful-documentation The comment states the encoding.
|
|
53
|
+
* @evidenceExclude contracts/portability.md#os-neutral-implementation This metadata adapter represents schema values, named type references and validation results in memory. It neither interprets native pathname identity nor opens files or launches processes.
|
|
27
54
|
*/
|
|
28
55
|
const decodeMetadataValue = (type, value) => typeof value !== "string"
|
|
29
56
|
? value
|
|
@@ -40,6 +67,12 @@ exports.decodeMetadataValue = decodeMetadataValue;
|
|
|
40
67
|
* a bigint holds a number, and `tags.Example<"Infinity">` on a number holds a
|
|
41
68
|
* string. So a value encoded as a string, a bigint's digits or a non-finite
|
|
42
69
|
* number's name, arrives with the type it stands for in `encoding`.
|
|
70
|
+
*
|
|
71
|
+
* @evidence contracts/common.md#principled-implementation A tag's target is the type it tags, so a value carried as a string states the type it stands for in `encoding`.
|
|
72
|
+
* @evidence contracts/common.md#clear-and-simple-design One conditional over `decodeMetadataValue`.
|
|
73
|
+
* @evidence contracts/common.md#prohibited-implementation-shortcuts It follows the documented encoding.
|
|
74
|
+
* @evidence contracts/common.md#meaningful-documentation The comment states why the encoding exists.
|
|
75
|
+
* @evidenceExclude contracts/portability.md#os-neutral-implementation This metadata adapter represents schema values, named type references and validation results in memory. It neither interprets native pathname identity nor opens files or launches processes.
|
|
43
76
|
*/
|
|
44
77
|
const decodeTagValue = (tag) => tag.encoding !== undefined
|
|
45
78
|
? (0, exports.decodeMetadataValue)(tag.encoding, tag.value)
|
|
@@ -50,6 +83,12 @@ exports.decodeTagValue = decodeTagValue;
|
|
|
50
83
|
* the schema represents exactly one constant literal value and nothing else.
|
|
51
84
|
* Used by sdk's type printer to fall back to literal emission instead of a
|
|
52
85
|
* union.
|
|
86
|
+
*
|
|
87
|
+
* @evidence contracts/common.md#principled-implementation Every other form must be empty, the metadata must not be nullable, any, rest, or escaped, and there must be one constant with one value.
|
|
88
|
+
* @evidence contracts/common.md#clear-and-simple-design One function of guards.
|
|
89
|
+
* @evidence contracts/common.md#prohibited-implementation-shortcuts The list of forms is exhaustive over the metadata's members.
|
|
90
|
+
* @evidence contracts/common.md#meaningful-documentation The comment states the meaning.
|
|
91
|
+
* @evidenceExclude contracts/portability.md#os-neutral-implementation This metadata adapter represents schema values, named type references and validation results in memory. It neither interprets native pathname identity nor opens files or launches processes.
|
|
53
92
|
*/
|
|
54
93
|
const isSoleLiteralOf = (m) => {
|
|
55
94
|
if (m.any)
|
|
@@ -88,8 +127,23 @@ exports.isSoleLiteralOf = isSoleLiteralOf;
|
|
|
88
127
|
// ---------------------------------------------------------------------
|
|
89
128
|
// `MetadataComponents.from(plain)` — namespace utility, not a class.
|
|
90
129
|
// ---------------------------------------------------------------------
|
|
130
|
+
/**
|
|
131
|
+
* Indexes metadata component names in memory; component names are symbolic type
|
|
132
|
+
* identities rather than native pathnames.
|
|
133
|
+
*
|
|
134
|
+
* @evidenceExclude contracts/portability.md#os-neutral-implementation Indexes metadata component names in memory; component names are symbolic type identities rather than native pathnames.
|
|
135
|
+
*/
|
|
91
136
|
var MetadataComponents;
|
|
92
137
|
(function (MetadataComponents) {
|
|
138
|
+
/**
|
|
139
|
+
* Builds the components with a dictionary indexing each kind by name.
|
|
140
|
+
*
|
|
141
|
+
* @evidence contracts/common.md#principled-implementation Each kind is a map from name to type, and the plain components are kept beside it.
|
|
142
|
+
* @evidence contracts/common.md#clear-and-simple-design One function.
|
|
143
|
+
* @evidence contracts/common.md#prohibited-implementation-shortcuts It only indexes.
|
|
144
|
+
* @evidence contracts/common.md#meaningful-documentation The comment states the result.
|
|
145
|
+
* @evidenceExclude contracts/portability.md#os-neutral-implementation This metadata adapter represents schema values, named type references and validation results in memory. It neither interprets native pathname identity nor opens files or launches processes.
|
|
146
|
+
*/
|
|
93
147
|
MetadataComponents.from = (plain) => {
|
|
94
148
|
const dictionary = {
|
|
95
149
|
objects: new Map(plain.objects.map((o) => [o.name, o])),
|
|
@@ -103,6 +157,12 @@ var MetadataComponents;
|
|
|
103
157
|
// ---------------------------------------------------------------------
|
|
104
158
|
// `MetadataSchema.from(plain, dictionary)` — reference resolution.
|
|
105
159
|
// ---------------------------------------------------------------------
|
|
160
|
+
/**
|
|
161
|
+
* Resolves symbolic type references in a metadata graph; dictionary lookup owns
|
|
162
|
+
* no native file or process boundary.
|
|
163
|
+
*
|
|
164
|
+
* @evidenceExclude contracts/portability.md#os-neutral-implementation Resolves symbolic type references in a metadata graph; dictionary lookup owns no native file or process boundary.
|
|
165
|
+
*/
|
|
106
166
|
var MetadataSchema;
|
|
107
167
|
(function (MetadataSchema) {
|
|
108
168
|
/**
|
|
@@ -111,6 +171,12 @@ var MetadataSchema;
|
|
|
111
171
|
* index. This is idempotent — references whose `.type` has already been
|
|
112
172
|
* resolved are left alone — and mutates the input, matching the in-place
|
|
113
173
|
* resolution model `@typia/core` 12.x used.
|
|
174
|
+
*
|
|
175
|
+
* @evidence contracts/common.md#principled-implementation The walk tracks visited targets, not wrapper schemas, because wrappers are rebuilt on this side and are not shared, so a cyclic type such as a node with children terminates.
|
|
176
|
+
* @evidence contracts/common.md#clear-and-simple-design One function over two private walkers.
|
|
177
|
+
* @evidence contracts/common.md#prohibited-implementation-shortcuts The in-place mutation is documented and is confined to the metadata the analysis owns.
|
|
178
|
+
* @evidence contracts/common.md#meaningful-documentation The comment states the mutation, the idempotence, and the cycle rule.
|
|
179
|
+
* @evidenceExclude contracts/portability.md#os-neutral-implementation This metadata adapter represents schema values, named type references and validation results in memory. It neither interprets native pathname identity nor opens files or launches processes.
|
|
114
180
|
*/
|
|
115
181
|
MetadataSchema.from = (plain, dictionary) => {
|
|
116
182
|
if (dictionary !== undefined) {
|
|
@@ -180,6 +246,15 @@ const attachReferences = (refs, index, visited, walk) => {
|
|
|
180
246
|
// but a few JSON-serialization constraints (bare `bigint` payloads, etc.)
|
|
181
247
|
// are SDK-policy choices that the SDK still has to flag itself.
|
|
182
248
|
// ---------------------------------------------------------------------
|
|
249
|
+
/**
|
|
250
|
+
* Validation of a metadata by a policy function.
|
|
251
|
+
*
|
|
252
|
+
* @evidence contracts/common.md#principled-implementation The namespace walks the metadata once and collects the messages of the validator, and holds the types of the walk.
|
|
253
|
+
* @evidence contracts/common.md#clear-and-simple-design One function and three types.
|
|
254
|
+
* @evidence contracts/common.md#prohibited-implementation-shortcuts The policies are the callers'.
|
|
255
|
+
* @evidence contracts/common.md#meaningful-documentation The comment states its purpose.
|
|
256
|
+
* @evidenceExclude contracts/portability.md#os-neutral-implementation This metadata adapter represents schema values, named type references and validation results in memory. It neither interprets native pathname identity nor opens files or launches processes.
|
|
257
|
+
*/
|
|
183
258
|
var MetadataFactory;
|
|
184
259
|
(function (MetadataFactory) {
|
|
185
260
|
/**
|
|
@@ -190,6 +265,12 @@ var MetadataFactory;
|
|
|
190
265
|
* walker, kept lean: the typia native transform has already validated
|
|
191
266
|
* structural invariants, so the validator is only called for SDK-side policy
|
|
192
267
|
* checks (JSON-serializability, query/header atomic-only rules, …).
|
|
268
|
+
*
|
|
269
|
+
* @evidence contracts/common.md#principled-implementation The walk visits objects, arrays, tuples, aliases, and escaped types through their resolved references, tracking visited targets rather than wrappers, and reports each node with the location of its property.
|
|
270
|
+
* @evidence contracts/common.md#clear-and-simple-design One function with one recursive visitor.
|
|
271
|
+
* @evidence contracts/common.md#prohibited-implementation-shortcuts It calls only the caller's policy.
|
|
272
|
+
* @evidence contracts/common.md#meaningful-documentation The comment states the walk and the termination.
|
|
273
|
+
* @evidenceExclude contracts/portability.md#os-neutral-implementation This metadata adapter represents schema values, named type references and validation results in memory. It neither interprets native pathname identity nor opens files or launches processes.
|
|
193
274
|
*/
|
|
194
275
|
MetadataFactory.validate = (props) => {
|
|
195
276
|
const errors = [];
|
|
@@ -255,6 +336,15 @@ var MetadataFactory;
|
|
|
255
336
|
return errors;
|
|
256
337
|
};
|
|
257
338
|
})(MetadataFactory || (exports.MetadataFactory = MetadataFactory = {}));
|
|
339
|
+
/**
|
|
340
|
+
* The JSON policy of the SDK.
|
|
341
|
+
*
|
|
342
|
+
* @evidence contracts/common.md#principled-implementation The namespace holds the validator that rejects types JSON cannot carry.
|
|
343
|
+
* @evidence contracts/common.md#clear-and-simple-design One function.
|
|
344
|
+
* @evidence contracts/common.md#prohibited-implementation-shortcuts The rule is JSON's.
|
|
345
|
+
* @evidence contracts/common.md#meaningful-documentation The comment states its purpose.
|
|
346
|
+
* @evidenceExclude contracts/portability.md#os-neutral-implementation This metadata adapter represents schema values, named type references and validation results in memory. It neither interprets native pathname identity nor opens files or launches processes.
|
|
347
|
+
*/
|
|
258
348
|
var JsonMetadataFactory;
|
|
259
349
|
(function (JsonMetadataFactory) {
|
|
260
350
|
/**
|
|
@@ -263,6 +353,12 @@ var JsonMetadataFactory;
|
|
|
263
353
|
* only adds the JSON-policy bans the legacy `@typia/core` walker enforced —
|
|
264
354
|
* bare `bigint` payloads, function-typed properties, and `Map` / `Set`
|
|
265
355
|
* containers that have no canonical JSON representation.
|
|
356
|
+
*
|
|
357
|
+
* @evidence contracts/common.md#principled-implementation JSON has no representation for those four forms, so each is a violation, and other structural problems are already rejected by the transform.
|
|
358
|
+
* @evidence contracts/common.md#clear-and-simple-design One function of four checks.
|
|
359
|
+
* @evidence contracts/common.md#prohibited-implementation-shortcuts The list is the JSON limitation.
|
|
360
|
+
* @evidence contracts/common.md#meaningful-documentation The comment states the four bans.
|
|
361
|
+
* @evidenceExclude contracts/portability.md#os-neutral-implementation This metadata adapter represents schema values, named type references and validation results in memory. It neither interprets native pathname identity nor opens files or launches processes.
|
|
266
362
|
*/
|
|
267
363
|
JsonMetadataFactory.validate = (props) => {
|
|
268
364
|
const messages = [];
|
|
@@ -281,6 +377,15 @@ var JsonMetadataFactory;
|
|
|
281
377
|
// `JsonSchemasProgrammer.writeSchemas` — consumes the per-metadata
|
|
282
378
|
// pre-baked `jsonSchema` field the nestia transform emits.
|
|
283
379
|
// ---------------------------------------------------------------------
|
|
380
|
+
/**
|
|
381
|
+
* Produces the JSON schemas of metadata from what the transform baked.
|
|
382
|
+
*
|
|
383
|
+
* @evidence contracts/common.md#principled-implementation The namespace copies the baked schemas and components, and falls back to a small converter for metadata without a bake.
|
|
384
|
+
* @evidence contracts/common.md#clear-and-simple-design Two functions with a private converter.
|
|
385
|
+
* @evidence contracts/common.md#prohibited-implementation-shortcuts The copies keep one composition from editing another's data.
|
|
386
|
+
* @evidence contracts/common.md#meaningful-documentation The comment states its purpose.
|
|
387
|
+
* @evidenceExclude contracts/portability.md#os-neutral-implementation This metadata adapter represents schema values, named type references and validation results in memory. It neither interprets native pathname identity nor opens files or launches processes.
|
|
388
|
+
*/
|
|
284
389
|
var JsonSchemasProgrammer;
|
|
285
390
|
(function (JsonSchemasProgrammer) {
|
|
286
391
|
/**
|
|
@@ -293,9 +398,15 @@ var JsonSchemasProgrammer;
|
|
|
293
398
|
*
|
|
294
399
|
* The schemas and components are copies. The bake belongs to the route
|
|
295
400
|
* metadata, which every composition in the process reads, while the composer
|
|
296
|
-
*
|
|
297
|
-
*
|
|
298
|
-
*
|
|
401
|
+
* may edit what it is given in place, and so can a `SwaggerCustomizer`;
|
|
402
|
+
* handing the bake out by reference let each document inherit the previous
|
|
403
|
+
* one's edits.
|
|
404
|
+
*
|
|
405
|
+
* @evidence contracts/common.md#principled-implementation The bake belongs to route metadata that every composition reads while the composer edits its input in place, so copies are returned, and the components are copied once after the last bake of each name wins.
|
|
406
|
+
* @evidence contracts/common.md#clear-and-simple-design One function.
|
|
407
|
+
* @evidence contracts/common.md#prohibited-implementation-shortcuts The fallback is stated as weaker than the bake.
|
|
408
|
+
* @evidence contracts/common.md#meaningful-documentation The comment states the copies and the fallback.
|
|
409
|
+
* @evidenceExclude contracts/portability.md#os-neutral-implementation This metadata adapter represents schema values, named type references and validation results in memory. It neither interprets native pathname identity nor opens files or launches processes.
|
|
299
410
|
*/
|
|
300
411
|
JsonSchemasProgrammer.writeSchemas = (props) => {
|
|
301
412
|
var _a, _b;
|
|
@@ -331,6 +442,12 @@ var JsonSchemasProgrammer;
|
|
|
331
442
|
* entry for the property, because typia's object schema omits it, so no
|
|
332
443
|
* parameter describes it either. Only metadata the transform did not bake
|
|
333
444
|
* falls back to {@link writeSchemas} over the property value.
|
|
445
|
+
*
|
|
446
|
+
* @evidence contracts/common.md#principled-implementation The property schemas are baked beside the metadata's own schema and resolved against the same components, copied for the same reason as `writeSchemas`, and a bake without the property means typia omits it.
|
|
447
|
+
* @evidence contracts/common.md#clear-and-simple-design One function.
|
|
448
|
+
* @evidence contracts/common.md#prohibited-implementation-shortcuts Only metadata without a bake falls back.
|
|
449
|
+
* @evidence contracts/common.md#meaningful-documentation The comment states the result and the null case.
|
|
450
|
+
* @evidenceExclude contracts/portability.md#os-neutral-implementation This metadata adapter represents schema values, named type references and validation results in memory. It neither interprets native pathname identity nor opens files or launches processes.
|
|
334
451
|
*/
|
|
335
452
|
JsonSchemasProgrammer.writeProperty = (props) => {
|
|
336
453
|
var _a;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"legacy.js","sourceRoot":"","sources":["../../src/internal/legacy.ts"],"names":[],"mappings":";;;AAgIA,wEAAwE;AACxE,0EAA0E;AAC1E,wEAAwE;AAExE,kEAAkE;AAC3D,MAAM,MAAM,GAAG,CAAC,CAAkB,EAAU,EAAE,wBAClD,CAAsB,CAAC,IAAI,mCAAI,CAAC,GAAA,CAAC;AADvB,QAAA,MAAM,GAAN,MAAM,CACiB;AAEpC,qEAAqE;AAC9D,MAAM,MAAM,GAAG,CAAC,CAAkB,EAAU,EAAE,wBAClD,CAAsB,CAAC,IAAI,mCAAI,EAAE,GAAA,CAAC;AADxB,QAAA,MAAM,GAAN,MAAM,CACkB;AAErC,oEAAoE;AAC7D,MAAM,OAAO,GAAG,CAAC,CAAkB,EAAW,E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,CAAC,CAAC,KAAK,CAAC;AAEd,MAAM,gBAAgB,GAAG,CAAC,MAA+B,EAAW,EAAE;IACpE,IAAI,MAAM,CAAC,IAAI,KAAK,SAAS;QAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;IAC1D,IAAI,MAAM,CAAC,IAAI,KAAK,QAAQ,IAAI,MAAM,CAAC,IAAI,KAAK,QAAQ;QACtD,OAAO,EAAE,IAAI,EAAE,MAAM,CAAC,IAAI,KAAK,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,QAAQ,EAAE,CAAC;IACnE,IAAI,MAAM,CAAC,IAAI,KAAK,QAAQ;QAAE,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC;IACxD,OAAO,EAAE,CAAC;AACZ,CAAC,CAAC"}
|
|
@@ -1,6 +1,16 @@
|
|
|
1
1
|
import { INestiaConfig } from "../INestiaConfig";
|
|
2
2
|
import { INestiaSdkInput } from "./INestiaSdkInput";
|
|
3
3
|
import { IReflectOperationError } from "./IReflectOperationError";
|
|
4
|
+
/**
|
|
5
|
+
* The state of one generation: the configuration, the analyzed input, and the
|
|
6
|
+
* collected errors and warnings.
|
|
7
|
+
*
|
|
8
|
+
* @evidence contracts/common.md#principled-implementation The analyses append to the two lists and the generators run only when the error list is empty.
|
|
9
|
+
* @evidence contracts/common.md#clear-and-simple-design A flat record with no behavior.
|
|
10
|
+
* @evidence contracts/common.md#prohibited-implementation-shortcuts It is a type and adds no runtime behavior.
|
|
11
|
+
* @evidence contracts/common.md#meaningful-documentation The comment states what the type describes; its members are named for their meaning.
|
|
12
|
+
* @evidence contracts/portability.md#os-neutral-implementation Configuration pathnames remain in INestiaConfig and controller source identities remain in INestiaSdkInput; this project record carries both unchanged without converting URL spelling into native identity.
|
|
13
|
+
*/
|
|
4
14
|
export interface INestiaProject {
|
|
5
15
|
config: INestiaConfig;
|
|
6
16
|
input: INestiaSdkInput;
|
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
import { RequestMethod } from "@nestjs/common";
|
|
2
2
|
import { VersionValue } from "@nestjs/common/interfaces";
|
|
3
|
+
/**
|
|
4
|
+
* The analyzed input: the controllers, the global prefix with its exclusions,
|
|
5
|
+
* and the URI versioning options.
|
|
6
|
+
*
|
|
7
|
+
* @evidence contracts/common.md#principled-implementation The record is the common result of compiling sources and of reading a running application.
|
|
8
|
+
* @evidence contracts/common.md#clear-and-simple-design A flat record with no behavior.
|
|
9
|
+
* @evidence contracts/common.md#prohibited-implementation-shortcuts It is a type and adds no runtime behavior.
|
|
10
|
+
* @evidence contracts/common.md#meaningful-documentation The comment states what the type describes; its members are named for their meaning.
|
|
11
|
+
* @evidence contracts/portability.md#os-neutral-implementation Controller location is a native source pathname supplied by ConfigAnalyzer; prefixes, exclusions and versions are router protocol strings, not filesystem paths.
|
|
12
|
+
*/
|
|
3
13
|
export interface INestiaSdkInput {
|
|
4
14
|
controllers: INestiaSdkInput.IController[];
|
|
5
15
|
globalPrefix?: {
|
|
@@ -12,11 +22,31 @@ export interface INestiaSdkInput {
|
|
|
12
22
|
};
|
|
13
23
|
}
|
|
14
24
|
export declare namespace INestiaSdkInput {
|
|
25
|
+
/**
|
|
26
|
+
* A controller class with its source file and the module prefixes it is
|
|
27
|
+
* mounted under.
|
|
28
|
+
*
|
|
29
|
+
* @evidence contracts/common.md#principled-implementation The three members are what the reflection needs to analyze one controller and to report its errors by file.
|
|
30
|
+
* @evidence contracts/common.md#clear-and-simple-design A flat record with no behavior.
|
|
31
|
+
* @evidence contracts/common.md#prohibited-implementation-shortcuts It is a type and adds no runtime behavior.
|
|
32
|
+
* @evidence contracts/common.md#meaningful-documentation The comment states what the type describes; its members are named for their meaning.
|
|
33
|
+
* @evidence contracts/portability.md#os-neutral-implementation location carries the native source pathname resolved by ConfigAnalyzer, while prefixes are HTTP mount paths; the two representations are not normalized together.
|
|
34
|
+
*/
|
|
15
35
|
interface IController {
|
|
16
36
|
class: Function;
|
|
17
37
|
location: string;
|
|
18
38
|
prefixes: string[];
|
|
19
39
|
}
|
|
40
|
+
/**
|
|
41
|
+
* A route excluded from the global prefix, by path, or by pattern, and
|
|
42
|
+
* optionally by request method.
|
|
43
|
+
*
|
|
44
|
+
* @evidence contracts/common.md#principled-implementation The members mirror NestJS's exclusion entry, so the same match decides here and in the server.
|
|
45
|
+
* @evidence contracts/common.md#clear-and-simple-design A flat record with no behavior.
|
|
46
|
+
* @evidence contracts/common.md#prohibited-implementation-shortcuts It is a type and adds no runtime behavior.
|
|
47
|
+
* @evidence contracts/common.md#meaningful-documentation The comment states what the type describes; its members are named for their meaning.
|
|
48
|
+
* @evidenceExclude contracts/portability.md#os-neutral-implementation INestiaSdkInput.IGlobalPrefixExclude describes protocol or type metadata; any embedded import/source record preserves the identity supplied by its owner. This declaration defines no native path conversion or process boundary.
|
|
49
|
+
*/
|
|
20
50
|
interface IGlobalPrefixExclude {
|
|
21
51
|
path: string;
|
|
22
52
|
method?: RequestMethod;
|
|
@@ -2,6 +2,16 @@ import { IMetadataComponents, IMetadataSchema, ValidationPipe } from "@typia/int
|
|
|
2
2
|
import { IJsDocTagInfo } from "typia";
|
|
3
3
|
import { IReflectImport } from "./IReflectImport";
|
|
4
4
|
import { IReflectType } from "./IReflectType";
|
|
5
|
+
/**
|
|
6
|
+
* The compile-time metadata of an operation: its parameters, its success, its
|
|
7
|
+
* exceptions, its description, and its JSDoc tags.
|
|
8
|
+
*
|
|
9
|
+
* @evidence contracts/common.md#principled-implementation The record is what the nestia transform serializes into the `OperationMetadata` decorator and the analyzers read back.
|
|
10
|
+
* @evidence contracts/common.md#clear-and-simple-design A flat record with no behavior.
|
|
11
|
+
* @evidence contracts/common.md#prohibited-implementation-shortcuts It is a type and adds no runtime behavior.
|
|
12
|
+
* @evidence contracts/common.md#meaningful-documentation The comment states what the type describes; its members are named for their meaning.
|
|
13
|
+
* @evidenceExclude contracts/portability.md#os-neutral-implementation IOperationMetadata describes protocol or type metadata; any embedded import/source record preserves the identity supplied by its owner. This declaration defines no native path conversion or process boundary.
|
|
14
|
+
*/
|
|
5
15
|
export interface IOperationMetadata {
|
|
6
16
|
parameters: IOperationMetadata.IParameter[];
|
|
7
17
|
success: IOperationMetadata.IResponse;
|
|
@@ -10,18 +20,48 @@ export interface IOperationMetadata {
|
|
|
10
20
|
jsDocTags: IJsDocTagInfo[];
|
|
11
21
|
}
|
|
12
22
|
export declare namespace IOperationMetadata {
|
|
23
|
+
/**
|
|
24
|
+
* The metadata of a parameter: the response fields plus its name, position,
|
|
25
|
+
* description, and tags.
|
|
26
|
+
*
|
|
27
|
+
* @evidence contracts/common.md#principled-implementation A parameter has the type facts of a response and the identity facts of a declaration.
|
|
28
|
+
* @evidence contracts/common.md#clear-and-simple-design A flat record with no behavior.
|
|
29
|
+
* @evidence contracts/common.md#prohibited-implementation-shortcuts It is a type and adds no runtime behavior.
|
|
30
|
+
* @evidence contracts/common.md#meaningful-documentation The comment states what the type describes; its members are named for their meaning.
|
|
31
|
+
* @evidenceExclude contracts/portability.md#os-neutral-implementation IOperationMetadata.IParameter describes protocol or type metadata; any embedded import/source record preserves the identity supplied by its owner. This declaration defines no native path conversion or process boundary.
|
|
32
|
+
*/
|
|
13
33
|
interface IParameter extends IResponse {
|
|
14
34
|
name: string;
|
|
15
35
|
index: number;
|
|
16
36
|
description: string | null;
|
|
17
37
|
jsDocTags: IJsDocTagInfo[];
|
|
18
38
|
}
|
|
39
|
+
/**
|
|
40
|
+
* The metadata of a value: its reflected type, its imports, and its schemas
|
|
41
|
+
* in the primitive and the resolved forms.
|
|
42
|
+
*
|
|
43
|
+
* @evidence contracts/common.md#principled-implementation Each form is either a schema or the list of errors that made it unavailable, so an unreadable type is reported instead of dropped.
|
|
44
|
+
* @evidence contracts/common.md#clear-and-simple-design A flat record with no behavior.
|
|
45
|
+
* @evidence contracts/common.md#prohibited-implementation-shortcuts It is a type and adds no runtime behavior.
|
|
46
|
+
* @evidence contracts/common.md#meaningful-documentation The comment states what the type describes; its members are named for their meaning.
|
|
47
|
+
* @evidenceExclude contracts/portability.md#os-neutral-implementation IOperationMetadata.IResponse describes protocol or type metadata; any embedded import/source record preserves the identity supplied by its owner. This declaration defines no native path conversion or process boundary.
|
|
48
|
+
*/
|
|
19
49
|
interface IResponse {
|
|
20
50
|
type: IReflectType | null;
|
|
21
51
|
imports: IReflectImport[];
|
|
22
52
|
primitive: ValidationPipe<ISchema, IError>;
|
|
23
53
|
resolved: ValidationPipe<ISchema, IError>;
|
|
24
54
|
}
|
|
55
|
+
/**
|
|
56
|
+
* A schema: the components, the metadata, and the wire rule violations of the
|
|
57
|
+
* type.
|
|
58
|
+
*
|
|
59
|
+
* @evidence contracts/common.md#principled-implementation The components and the metadata describe the type and the HTTP rules record why it cannot travel as a query, a header, a path segment, or a form.
|
|
60
|
+
* @evidence contracts/common.md#clear-and-simple-design A flat record with no behavior.
|
|
61
|
+
* @evidence contracts/common.md#prohibited-implementation-shortcuts It is a type and adds no runtime behavior.
|
|
62
|
+
* @evidence contracts/common.md#meaningful-documentation The comment states what the type describes; its members are named for their meaning.
|
|
63
|
+
* @evidenceExclude contracts/portability.md#os-neutral-implementation IOperationMetadata.ISchema describes protocol or type metadata; any embedded import/source record preserves the identity supplied by its owner. This declaration defines no native path conversion or process boundary.
|
|
64
|
+
*/
|
|
25
65
|
interface ISchema {
|
|
26
66
|
components: IMetadataComponents;
|
|
27
67
|
metadata: IMetadataSchema;
|
|
@@ -35,6 +75,12 @@ export declare namespace IOperationMetadata {
|
|
|
35
75
|
* The violations of each HTTP input category's rules, which are typia's own
|
|
36
76
|
* validators except the path parameter rule typia keeps unexported and the
|
|
37
77
|
* one of a field-named `@Query("key")` or `@Headers("key")`.
|
|
78
|
+
*
|
|
79
|
+
* @evidence contracts/common.md#principled-implementation One list per input kind lets the parameter analysis pick the list that applies.
|
|
80
|
+
* @evidence contracts/common.md#clear-and-simple-design A flat record with no behavior.
|
|
81
|
+
* @evidence contracts/common.md#prohibited-implementation-shortcuts It is a type and adds no runtime behavior.
|
|
82
|
+
* @evidence contracts/common.md#meaningful-documentation The comment states what the type describes; its members are named for their meaning.
|
|
83
|
+
* @evidenceExclude contracts/portability.md#os-neutral-implementation IOperationMetadata.IHttpRules describes protocol or type metadata; any embedded import/source record preserves the identity supplied by its owner. This declaration defines no native path conversion or process boundary.
|
|
38
84
|
*/
|
|
39
85
|
interface IHttpRules {
|
|
40
86
|
/** A query object: `@TypedQuery()`, `@Query()`, `@TypedQuery.Body()`. */
|
|
@@ -48,6 +94,15 @@ export declare namespace IOperationMetadata {
|
|
|
48
94
|
/** A multipart body: `@TypedFormData.Body()`. */
|
|
49
95
|
formData: IError[];
|
|
50
96
|
}
|
|
97
|
+
/**
|
|
98
|
+
* One analysis error: the name, the accessor of the member, and the messages.
|
|
99
|
+
*
|
|
100
|
+
* @evidence contracts/common.md#principled-implementation The three members identify where in a type the error is.
|
|
101
|
+
* @evidence contracts/common.md#clear-and-simple-design A flat record with no behavior.
|
|
102
|
+
* @evidence contracts/common.md#prohibited-implementation-shortcuts It is a type and adds no runtime behavior.
|
|
103
|
+
* @evidence contracts/common.md#meaningful-documentation The comment states what the type describes; its members are named for their meaning.
|
|
104
|
+
* @evidenceExclude contracts/portability.md#os-neutral-implementation IOperationMetadata.IError describes protocol or type metadata; any embedded import/source record preserves the identity supplied by its owner. This declaration defines no native path conversion or process boundary.
|
|
105
|
+
*/
|
|
51
106
|
interface IError {
|
|
52
107
|
name: string;
|
|
53
108
|
accessor: string | null;
|
|
@@ -2,6 +2,16 @@ import type { VERSION_NEUTRAL } from "@nestjs/common/interfaces";
|
|
|
2
2
|
import { IReflectHttpOperation } from "./IReflectHttpOperation";
|
|
3
3
|
import { IReflectMcpOperation } from "./IReflectMcpOperation";
|
|
4
4
|
import { IReflectWebSocketOperation } from "./IReflectWebSocketOperation";
|
|
5
|
+
/**
|
|
6
|
+
* A reflected controller: its class, its file, its paths, prefixes, versions,
|
|
7
|
+
* security, tags, and operations.
|
|
8
|
+
*
|
|
9
|
+
* @evidence contracts/common.md#principled-implementation The record is the reflection result that the typed analysis consumes.
|
|
10
|
+
* @evidence contracts/common.md#clear-and-simple-design A flat record with no behavior.
|
|
11
|
+
* @evidence contracts/common.md#prohibited-implementation-shortcuts It is a type and adds no runtime behavior.
|
|
12
|
+
* @evidence contracts/common.md#meaningful-documentation The comment states what the type describes; its members are named for their meaning.
|
|
13
|
+
* @evidence contracts/portability.md#os-neutral-implementation file carries the controller source pathname supplied by ConfigAnalyzer; paths and prefixes retain Nest router spelling independently of native separators.
|
|
14
|
+
*/
|
|
5
15
|
export interface IReflectController {
|
|
6
16
|
class: Function;
|
|
7
17
|
prefixes: string[];
|
|
@@ -4,6 +4,16 @@ import { IReflectHttpOperationException } from "./IReflectHttpOperationException
|
|
|
4
4
|
import { IReflectHttpOperationParameter } from "./IReflectHttpOperationParameter";
|
|
5
5
|
import { IReflectHttpOperationSuccess } from "./IReflectHttpOperationSuccess";
|
|
6
6
|
import { IReflectImport } from "./IReflectImport";
|
|
7
|
+
/**
|
|
8
|
+
* A reflected HTTP operation: its function, name, method, paths, versions,
|
|
9
|
+
* parameters, success, exceptions, security, tags, imports, and description.
|
|
10
|
+
*
|
|
11
|
+
* @evidence contracts/common.md#principled-implementation The record joins Nest's runtime metadata with the compile-time metadata of the transform.
|
|
12
|
+
* @evidence contracts/common.md#clear-and-simple-design A flat record with no behavior.
|
|
13
|
+
* @evidence contracts/common.md#prohibited-implementation-shortcuts It is a type and adds no runtime behavior.
|
|
14
|
+
* @evidence contracts/common.md#meaningful-documentation The comment states what the type describes; its members are named for their meaning.
|
|
15
|
+
* @evidenceExclude contracts/portability.md#os-neutral-implementation IReflectHttpOperation describes protocol or type metadata; any embedded import/source record preserves the identity supplied by its owner. This declaration defines no native path conversion or process boundary.
|
|
16
|
+
*/
|
|
7
17
|
export interface IReflectHttpOperation {
|
|
8
18
|
protocol: "http";
|
|
9
19
|
function: Function;
|
|
@@ -1,6 +1,16 @@
|
|
|
1
1
|
import { IMetadataComponents, IMetadataSchema, OpenApi } from "@typia/interface";
|
|
2
2
|
import { MetadataFactory } from "../internal/legacy";
|
|
3
3
|
import { IReflectType } from "./IReflectType";
|
|
4
|
+
/**
|
|
5
|
+
* A reflected exception of an operation: its status, description, examples,
|
|
6
|
+
* type, metadata, components, and validator.
|
|
7
|
+
*
|
|
8
|
+
* @evidence contracts/common.md#principled-implementation The declaration fields come from `@TypedException` and the reflected fields from the transform.
|
|
9
|
+
* @evidence contracts/common.md#clear-and-simple-design A flat record with no behavior.
|
|
10
|
+
* @evidence contracts/common.md#prohibited-implementation-shortcuts It is a type and adds no runtime behavior.
|
|
11
|
+
* @evidence contracts/common.md#meaningful-documentation The comment states what the type describes; its members are named for their meaning.
|
|
12
|
+
* @evidenceExclude contracts/portability.md#os-neutral-implementation IReflectHttpOperationException describes protocol or type metadata; any embedded import/source record preserves the identity supplied by its owner. This declaration defines no native path conversion or process boundary.
|
|
13
|
+
*/
|
|
4
14
|
export interface IReflectHttpOperationException {
|
|
5
15
|
status: number | "2XX" | "3XX" | "4XX" | "5XX";
|
|
6
16
|
description: string | null;
|
|
@@ -1,18 +1,65 @@
|
|
|
1
1
|
import { IJsDocTagInfo, IMetadataComponents, IMetadataSchema, OpenApi } from "@typia/interface";
|
|
2
2
|
import { MetadataFactory } from "../internal/legacy";
|
|
3
3
|
import { IReflectType } from "./IReflectType";
|
|
4
|
+
/**
|
|
5
|
+
* A reflected parameter of an HTTP operation: a body, headers, a path
|
|
6
|
+
* parameter, or a query.
|
|
7
|
+
*
|
|
8
|
+
* @evidence contracts/common.md#principled-implementation The union is discriminated by `category`, with the fields each category needs, and a preconfigured form for what Nest's metadata alone gives.
|
|
9
|
+
* @evidence contracts/common.md#clear-and-simple-design A union of four records plus the preconfigured union.
|
|
10
|
+
* @evidence contracts/common.md#prohibited-implementation-shortcuts It is a type and adds no runtime behavior.
|
|
11
|
+
* @evidence contracts/common.md#meaningful-documentation The comment states what the type describes; its members are named for their meaning.
|
|
12
|
+
* @evidenceExclude contracts/portability.md#os-neutral-implementation IReflectHttpOperationParameter describes protocol or type metadata; any embedded import/source record preserves the identity supplied by its owner. This declaration defines no native path conversion or process boundary.
|
|
13
|
+
*/
|
|
4
14
|
export type IReflectHttpOperationParameter = IReflectHttpOperationParameter.IBody | IReflectHttpOperationParameter.IHeaders | IReflectHttpOperationParameter.IParam | IReflectHttpOperationParameter.IQuery;
|
|
5
15
|
export declare namespace IReflectHttpOperationParameter {
|
|
16
|
+
/**
|
|
17
|
+
* The reflected parameter of a body, with its content type and whether it is
|
|
18
|
+
* encrypted.
|
|
19
|
+
*
|
|
20
|
+
* @evidence contracts/common.md#principled-implementation The record extends the shared base with the members its category adds.
|
|
21
|
+
* @evidence contracts/common.md#clear-and-simple-design A record extending the shared base.
|
|
22
|
+
* @evidence contracts/common.md#prohibited-implementation-shortcuts It is a type and adds no runtime behavior.
|
|
23
|
+
* @evidence contracts/common.md#meaningful-documentation The comment states what the type describes; its members are named for their meaning.
|
|
24
|
+
* @evidenceExclude contracts/portability.md#os-neutral-implementation IReflectHttpOperationParameter.IBody describes protocol or type metadata; any embedded import/source record preserves the identity supplied by its owner. This declaration defines no native path conversion or process boundary.
|
|
25
|
+
*/
|
|
6
26
|
export interface IBody extends IBase<"body"> {
|
|
7
27
|
contentType: "application/json" | "application/x-www-form-urlencoded" | "multipart/form-data" | "text/plain";
|
|
8
28
|
encrypted: boolean;
|
|
9
29
|
}
|
|
30
|
+
/**
|
|
31
|
+
* The reflected parameter of the headers, as an object or as one field.
|
|
32
|
+
*
|
|
33
|
+
* @evidence contracts/common.md#principled-implementation The record extends the shared base with the members its category adds.
|
|
34
|
+
* @evidence contracts/common.md#clear-and-simple-design A record extending the shared base.
|
|
35
|
+
* @evidence contracts/common.md#prohibited-implementation-shortcuts It is a type and adds no runtime behavior.
|
|
36
|
+
* @evidence contracts/common.md#meaningful-documentation The comment states what the type describes; its members are named for their meaning.
|
|
37
|
+
* @evidenceExclude contracts/portability.md#os-neutral-implementation IReflectHttpOperationParameter.IHeaders describes protocol or type metadata; any embedded import/source record preserves the identity supplied by its owner. This declaration defines no native path conversion or process boundary.
|
|
38
|
+
*/
|
|
10
39
|
export interface IHeaders extends IBase<"headers"> {
|
|
11
40
|
field: string | null;
|
|
12
41
|
}
|
|
42
|
+
/**
|
|
43
|
+
* The reflected parameter of a path parameter with its field name.
|
|
44
|
+
*
|
|
45
|
+
* @evidence contracts/common.md#principled-implementation The record extends the shared base with the members its category adds.
|
|
46
|
+
* @evidence contracts/common.md#clear-and-simple-design A record extending the shared base.
|
|
47
|
+
* @evidence contracts/common.md#prohibited-implementation-shortcuts It is a type and adds no runtime behavior.
|
|
48
|
+
* @evidence contracts/common.md#meaningful-documentation The comment states what the type describes; its members are named for their meaning.
|
|
49
|
+
* @evidenceExclude contracts/portability.md#os-neutral-implementation IReflectHttpOperationParameter.IParam describes protocol or type metadata; any embedded import/source record preserves the identity supplied by its owner. This declaration defines no native path conversion or process boundary.
|
|
50
|
+
*/
|
|
13
51
|
export interface IParam extends IBase<"param"> {
|
|
14
52
|
field: string;
|
|
15
53
|
}
|
|
54
|
+
/**
|
|
55
|
+
* The reflected parameter of the query, as an object or as one field.
|
|
56
|
+
*
|
|
57
|
+
* @evidence contracts/common.md#principled-implementation The record extends the shared base with the members its category adds.
|
|
58
|
+
* @evidence contracts/common.md#clear-and-simple-design A record extending the shared base.
|
|
59
|
+
* @evidence contracts/common.md#prohibited-implementation-shortcuts It is a type and adds no runtime behavior.
|
|
60
|
+
* @evidence contracts/common.md#meaningful-documentation The comment states what the type describes; its members are named for their meaning.
|
|
61
|
+
* @evidenceExclude contracts/portability.md#os-neutral-implementation IReflectHttpOperationParameter.IQuery describes protocol or type metadata; any embedded import/source record preserves the identity supplied by its owner. This declaration defines no native path conversion or process boundary.
|
|
62
|
+
*/
|
|
16
63
|
export interface IQuery extends IBase<"query"> {
|
|
17
64
|
field: string | null;
|
|
18
65
|
}
|
|
@@ -2,6 +2,17 @@ import { IMetadataComponents, IMetadataSchema, OpenApi } from "@typia/interface"
|
|
|
2
2
|
import { MetadataFactory } from "../internal/legacy";
|
|
3
3
|
import { HttpResponseContentTypeUtil } from "../utils/HttpResponseContentTypeUtil";
|
|
4
4
|
import { IReflectType } from "./IReflectType";
|
|
5
|
+
/**
|
|
6
|
+
* The reflected success response of an operation: its type, status, content
|
|
7
|
+
* type, whether it is binary or encrypted, its schema, validator, and
|
|
8
|
+
* examples.
|
|
9
|
+
*
|
|
10
|
+
* @evidence contracts/common.md#principled-implementation The record holds what the SDK and the Swagger generators need to describe the response.
|
|
11
|
+
* @evidence contracts/common.md#clear-and-simple-design A flat record with no behavior.
|
|
12
|
+
* @evidence contracts/common.md#prohibited-implementation-shortcuts It is a type and adds no runtime behavior.
|
|
13
|
+
* @evidence contracts/common.md#meaningful-documentation The comment states what the type describes; its members are named for their meaning.
|
|
14
|
+
* @evidenceExclude contracts/portability.md#os-neutral-implementation IReflectHttpOperationSuccess describes protocol or type metadata; any embedded import/source record preserves the identity supplied by its owner. This declaration defines no native path conversion or process boundary.
|
|
15
|
+
*/
|
|
5
16
|
export interface IReflectHttpOperationSuccess {
|
|
6
17
|
type: IReflectType;
|
|
7
18
|
status: number;
|
|
@@ -1,3 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* An import of a source file: its file, its namespace import, its default
|
|
3
|
+
* import, its named elements, and their aliases.
|
|
4
|
+
*
|
|
5
|
+
* @evidence contracts/common.md#principled-implementation The record is one import declaration in a form that can be merged by file.
|
|
6
|
+
* @evidence contracts/common.md#clear-and-simple-design A flat record with no behavior.
|
|
7
|
+
* @evidence contracts/common.md#prohibited-implementation-shortcuts It is a type and adds no runtime behavior.
|
|
8
|
+
* @evidence contracts/common.md#meaningful-documentation The comment states what the type describes; its members are named for their meaning.
|
|
9
|
+
* @evidence contracts/portability.md#os-neutral-implementation file carries the source identity emitted by the native import analyzer; ImportDictionary owns converting it to a relative slash-separated module specifier. Binding names and aliases are language identifiers.
|
|
10
|
+
*/
|
|
1
11
|
export interface IReflectImport {
|
|
2
12
|
file: string;
|
|
3
13
|
asterisk: string | null;
|