typia 8.0.3 → 8.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/AssertionGuard.d.mts +1 -0
- package/lib/CamelCase.d.mts +26 -0
- package/lib/IRandomGenerator.d.mts +40 -0
- package/lib/IReadableURLSearchParams.d.mts +9 -0
- package/lib/IValidation.d.mts +1 -0
- package/lib/PascalCase.d.mts +25 -0
- package/lib/Primitive.d.mts +49 -0
- package/lib/Resolved.d.mts +39 -0
- package/lib/SnakeCase.d.mts +31 -0
- package/lib/TypeGuardError.d.mts +17 -0
- package/lib/executable/TypiaGenerateWizard.d.mts +8 -0
- package/lib/executable/TypiaPatchWizard.d.mts +4 -0
- package/lib/executable/TypiaSetupWizard.d.mts +7 -0
- package/lib/executable/setup/ArgumentParser.d.mts +7 -0
- package/lib/executable/setup/CommandExecutor.d.mts +3 -0
- package/lib/executable/setup/FileRetriever.d.mts +7 -0
- package/lib/executable/setup/PackageManager.d.mts +24 -0
- package/lib/executable/setup/PluginConfigurator.d.mts +4 -0
- package/lib/executable/typia.d.mts +4 -0
- package/lib/factories/CommentFactory.d.mts +5 -0
- package/lib/factories/ExpressionFactory.d.mts +29 -0
- package/lib/factories/IdentifierFactory.d.mts +8 -0
- package/lib/factories/JsonMetadataFactory.d.mts +19 -0
- package/lib/factories/LiteralFactory.d.mts +4 -0
- package/lib/factories/MetadataCollection.d.mts +40 -0
- package/lib/factories/MetadataCommentTagFactory.d.mts +1 -0
- package/lib/factories/MetadataFactory.d.mts +48 -0
- package/lib/factories/MetadataTypeTagFactory.d.mts +20 -0
- package/lib/factories/MetadataTypeTagSchemaFactory.d.mts +7 -0
- package/lib/factories/NumericRangeFactory.d.mts +6 -0
- package/lib/factories/ProtobufFactory.d.mts +13 -0
- package/lib/factories/StatementFactory.d.mts +19 -0
- package/lib/factories/TemplateFactory.d.mts +4 -0
- package/lib/factories/TypeFactory.d.mts +16 -0
- package/lib/factories/ValueFactory.d.mts +8 -0
- package/lib/factories/internal/metadata/IMetadataIteratorProps.d.mts +14 -0
- package/lib/factories/internal/metadata/MetadataHelper.d.mts +4 -0
- package/lib/factories/internal/metadata/emend_metadata_atomics.d.mts +2 -0
- package/lib/factories/internal/metadata/emplace_metadata_alias.d.mts +3 -0
- package/lib/factories/internal/metadata/emplace_metadata_array_type.d.mts +8 -0
- package/lib/factories/internal/metadata/emplace_metadata_object.d.mts +3 -0
- package/lib/factories/internal/metadata/emplace_metadata_tuple.d.mts +4 -0
- package/lib/factories/internal/metadata/explore_metadata.d.mts +8 -0
- package/lib/factories/internal/metadata/iterate_metadata.d.mts +2 -0
- package/lib/factories/internal/metadata/iterate_metadata_alias.d.mts +2 -0
- package/lib/factories/internal/metadata/iterate_metadata_array.d.mts +2 -0
- package/lib/factories/internal/metadata/iterate_metadata_atomic.d.mts +6 -0
- package/lib/factories/internal/metadata/iterate_metadata_coalesce.d.mts +6 -0
- package/lib/factories/internal/metadata/iterate_metadata_collection.d.mts +6 -0
- package/lib/factories/internal/metadata/iterate_metadata_comment_tags.d.mts +6 -0
- package/lib/factories/internal/metadata/iterate_metadata_constant.d.mts +2 -0
- package/lib/factories/internal/metadata/iterate_metadata_escape.d.mts +2 -0
- package/lib/factories/internal/metadata/iterate_metadata_function.d.mts +2 -0
- package/lib/factories/internal/metadata/iterate_metadata_intersection.d.mts +2 -0
- package/lib/factories/internal/metadata/iterate_metadata_map.d.mts +2 -0
- package/lib/factories/internal/metadata/iterate_metadata_native.d.mts +2 -0
- package/lib/factories/internal/metadata/iterate_metadata_object.d.mts +2 -0
- package/lib/factories/internal/metadata/iterate_metadata_set.d.mts +2 -0
- package/lib/factories/internal/metadata/iterate_metadata_sort.d.mts +6 -0
- package/lib/factories/internal/metadata/iterate_metadata_template.d.mts +2 -0
- package/lib/factories/internal/metadata/iterate_metadata_tuple.d.mts +3 -0
- package/lib/factories/internal/metadata/iterate_metadata_union.d.mts +2 -0
- package/lib/functional.d.mts +490 -0
- package/lib/http.d.mts +717 -0
- package/lib/index.d.mts +3 -0
- package/lib/internal/_IProtobufWriter.d.mts +15 -0
- package/lib/internal/_ProtobufReader.d.mts +35 -0
- package/lib/internal/_ProtobufSizer.d.mts +36 -0
- package/lib/internal/_ProtobufWriter.d.mts +45 -0
- package/lib/internal/_accessExpressionAsString.d.mts +1 -0
- package/lib/internal/_assertGuard.d.mts +2 -0
- package/lib/internal/_functionalTypeGuardErrorFactory.d.mts +2 -0
- package/lib/internal/_httpFormDataReadArray.d.mts +1 -0
- package/lib/internal/_httpFormDataReadBigint.d.mts +1 -0
- package/lib/internal/_httpFormDataReadBlob.d.mts +1 -0
- package/lib/internal/_httpFormDataReadBoolean.d.mts +1 -0
- package/lib/internal/_httpFormDataReadFile.d.mts +1 -0
- package/lib/internal/_httpFormDataReadNumber.d.mts +1 -0
- package/lib/internal/_httpFormDataReadString.d.mts +1 -0
- package/lib/internal/_httpHeaderReadBigint.d.mts +1 -0
- package/lib/internal/_httpHeaderReadBoolean.d.mts +1 -0
- package/lib/internal/_httpHeaderReadNumber.d.mts +1 -0
- package/lib/internal/_httpParameterReadBigint.d.mts +1 -0
- package/lib/internal/_httpParameterReadBoolean.d.mts +1 -0
- package/lib/internal/_httpParameterReadNumber.d.mts +1 -0
- package/lib/internal/_httpParameterReadString.d.mts +1 -0
- package/lib/internal/_httpQueryParseURLSearchParams.d.mts +2 -0
- package/lib/internal/_httpQueryReadArray.d.mts +1 -0
- package/lib/internal/_httpQueryReadBigint.d.mts +1 -0
- package/lib/internal/_httpQueryReadBoolean.d.mts +1 -0
- package/lib/internal/_httpQueryReadNumber.d.mts +1 -0
- package/lib/internal/_httpQueryReadString.d.mts +1 -0
- package/lib/internal/_isBetween.d.mts +1 -0
- package/lib/internal/_isBigintString.d.mts +1 -0
- package/lib/internal/_isFormatByte.d.mts +1 -0
- package/lib/internal/_isFormatDate.d.mts +1 -0
- package/lib/internal/_isFormatDateTime.d.mts +1 -0
- package/lib/internal/_isFormatDuration.d.mts +1 -0
- package/lib/internal/_isFormatEmail.d.mts +1 -0
- package/lib/internal/_isFormatHostname.d.mts +1 -0
- package/lib/internal/_isFormatIdnEmail.d.mts +1 -0
- package/lib/internal/_isFormatIdnHostname.d.mts +1 -0
- package/lib/internal/_isFormatIpv4.d.mts +1 -0
- package/lib/internal/_isFormatIpv6.d.mts +1 -0
- package/lib/internal/_isFormatIri.d.mts +1 -0
- package/lib/internal/_isFormatIriReference.d.mts +1 -0
- package/lib/internal/_isFormatJsonPointer.d.mts +1 -0
- package/lib/internal/_isFormatPassword.d.mts +1 -0
- package/lib/internal/_isFormatRegex.d.mts +1 -0
- package/lib/internal/_isFormatRelativeJsonPointer.d.mts +1 -0
- package/lib/internal/_isFormatTime.d.mts +1 -0
- package/lib/internal/_isFormatUri.d.mts +1 -0
- package/lib/internal/_isFormatUriReference.d.mts +1 -0
- package/lib/internal/_isFormatUriTemplate.d.mts +1 -0
- package/lib/internal/_isFormatUrl.d.mts +1 -0
- package/lib/internal/_isFormatUuid.d.mts +1 -0
- package/lib/internal/_isTypeFloat.d.mts +1 -0
- package/lib/internal/_isTypeInt32.d.mts +1 -0
- package/lib/internal/_isTypeInt64.d.mts +1 -0
- package/lib/internal/_isTypeUint32.d.mts +1 -0
- package/lib/internal/_isTypeUint64.d.mts +1 -0
- package/lib/internal/_isUniqueItems.d.mts +1 -0
- package/lib/internal/_jsonStringifyNumber.d.mts +1 -0
- package/lib/internal/_jsonStringifyRest.d.mts +1 -0
- package/lib/internal/_jsonStringifyString.d.mts +13 -0
- package/lib/internal/_jsonStringifyTail.d.mts +1 -0
- package/lib/internal/_llmApplicationFinalize.d.mts +2 -0
- package/lib/internal/_miscCloneAny.d.mts +2 -0
- package/lib/internal/_notationAny.d.mts +1 -0
- package/lib/internal/_notationCamel.d.mts +1 -0
- package/lib/internal/_notationPascal.d.mts +1 -0
- package/lib/internal/_notationSnake.d.mts +1 -0
- package/lib/internal/_randomArray.d.mts +4 -0
- package/lib/internal/_randomBigint.d.mts +2 -0
- package/lib/internal/_randomBoolean.d.mts +1 -0
- package/lib/internal/_randomFormatByte.d.mts +1 -0
- package/lib/internal/_randomFormatDate.d.mts +4 -0
- package/lib/internal/_randomFormatDatetime.d.mts +4 -0
- package/lib/internal/_randomFormatDuration.d.mts +1 -0
- package/lib/internal/_randomFormatEmail.d.mts +1 -0
- package/lib/internal/_randomFormatHostname.d.mts +1 -0
- package/lib/internal/_randomFormatIdnEmail.d.mts +1 -0
- package/lib/internal/_randomFormatIdnHostname.d.mts +1 -0
- package/lib/internal/_randomFormatIpv4.d.mts +1 -0
- package/lib/internal/_randomFormatIpv6.d.mts +1 -0
- package/lib/internal/_randomFormatIri.d.mts +1 -0
- package/lib/internal/_randomFormatIriReference.d.mts +1 -0
- package/lib/internal/_randomFormatJsonPointer.d.mts +1 -0
- package/lib/internal/_randomFormatPassword.d.mts +1 -0
- package/lib/internal/_randomFormatRegex.d.mts +1 -0
- package/lib/internal/_randomFormatRelativeJsonPointer.d.mts +1 -0
- package/lib/internal/_randomFormatTime.d.mts +1 -0
- package/lib/internal/_randomFormatUri.d.mts +1 -0
- package/lib/internal/_randomFormatUriReference.d.mts +1 -0
- package/lib/internal/_randomFormatUriTemplate.d.mts +1 -0
- package/lib/internal/_randomFormatUrl.d.mts +1 -0
- package/lib/internal/_randomFormatUuid.d.mts +1 -0
- package/lib/internal/_randomInteger.d.mts +2 -0
- package/lib/internal/_randomNumber.d.mts +2 -0
- package/lib/internal/_randomPattern.d.mts +1 -0
- package/lib/internal/_randomPick.d.mts +1 -0
- package/lib/internal/_randomString.d.mts +2 -0
- package/lib/internal/_throwTypeGuardError.d.mts +2 -0
- package/lib/internal/_validateReport.d.mts +2 -0
- package/lib/internal/private/__notationCapitalize.d.mts +1 -0
- package/lib/internal/private/__notationUnsnake.d.mts +4 -0
- package/lib/json.d.mts +480 -0
- package/lib/llm.d.mts +322 -0
- package/lib/misc.d.mts +453 -0
- package/lib/module.d.mts +707 -0
- package/lib/notations.d.mts +551 -0
- package/lib/programmers/AssertProgrammer.d.mts +31 -0
- package/lib/programmers/CheckerProgrammer.d.mts +125 -0
- package/lib/programmers/FeatureProgrammer.d.mts +249 -0
- package/lib/programmers/ImportProgrammer.d.mts +35 -0
- package/lib/programmers/IsProgrammer.d.mts +65 -0
- package/lib/programmers/RandomProgrammer.d.mts +22 -0
- package/lib/programmers/TypiaProgrammer.d.mts +8 -0
- package/lib/programmers/ValidateProgrammer.d.mts +22 -0
- package/lib/programmers/functional/FunctionalAssertFunctionProgrammer.d.mts +28 -0
- package/lib/programmers/functional/FunctionalAssertParametersProgrammer.d.mts +28 -0
- package/lib/programmers/functional/FunctionalAssertReturnProgrammer.d.mts +30 -0
- package/lib/programmers/functional/FunctionalIsFunctionProgrammer.d.mts +20 -0
- package/lib/programmers/functional/FunctionalIsParametersProgrammer.d.mts +27 -0
- package/lib/programmers/functional/FunctionalIsReturnProgrammer.d.mts +29 -0
- package/lib/programmers/functional/FunctionalValidateFunctionProgrammer.d.mts +25 -0
- package/lib/programmers/functional/FunctionalValidateParametersProgrammer.d.mts +27 -0
- package/lib/programmers/functional/FunctionalValidateReturnProgrammer.d.mts +29 -0
- package/lib/programmers/functional/internal/FunctionalGeneralProgrammer.d.mts +12 -0
- package/lib/programmers/helpers/AtomicPredicator.d.mts +14 -0
- package/lib/programmers/helpers/CloneJoiner.d.mts +16 -0
- package/lib/programmers/helpers/FunctionProgrammer.d.mts +16 -0
- package/lib/programmers/helpers/HttpMetadataUtil.d.mts +5 -0
- package/lib/programmers/helpers/ICheckEntry.d.mts +12 -0
- package/lib/programmers/helpers/IExpressionEntry.d.mts +8 -0
- package/lib/programmers/helpers/NotationJoiner.d.mts +17 -0
- package/lib/programmers/helpers/OptionPredicator.d.mts +7 -0
- package/lib/programmers/helpers/ProtobufUtil.d.mts +14 -0
- package/lib/programmers/helpers/ProtobufWire.d.mts +29 -0
- package/lib/programmers/helpers/PruneJoiner.d.mts +18 -0
- package/lib/programmers/helpers/RandomJoiner.d.mts +23 -0
- package/lib/programmers/helpers/StringifyJoinder.d.mts +17 -0
- package/lib/programmers/helpers/StringifyPredicator.d.mts +5 -0
- package/lib/programmers/helpers/UnionExplorer.d.mts +79 -0
- package/lib/programmers/helpers/UnionPredicator.d.mts +11 -0
- package/lib/programmers/helpers/disable_function_programmer_declare.d.mts +2 -0
- package/lib/programmers/http/HttpAssertFormDataProgrammer.d.mts +15 -0
- package/lib/programmers/http/HttpAssertHeadersProgrammer.d.mts +15 -0
- package/lib/programmers/http/HttpAssertQueryProgrammer.d.mts +19 -0
- package/lib/programmers/http/HttpFormDataProgrammer.d.mts +17 -0
- package/lib/programmers/http/HttpHeadersProgrammer.d.mts +18 -0
- package/lib/programmers/http/HttpIsFormDataProgrammer.d.mts +14 -0
- package/lib/programmers/http/HttpIsHeadersProgrammer.d.mts +14 -0
- package/lib/programmers/http/HttpIsQueryProgrammer.d.mts +18 -0
- package/lib/programmers/http/HttpParameterProgrammer.d.mts +7 -0
- package/lib/programmers/http/HttpQueryProgrammer.d.mts +21 -0
- package/lib/programmers/http/HttpValidateFormDataProgrammer.d.mts +15 -0
- package/lib/programmers/http/HttpValidateHeadersProgrammer.d.mts +15 -0
- package/lib/programmers/http/HttpValidateQueryProgrammer.d.mts +19 -0
- package/lib/programmers/internal/check_array_length.d.mts +1 -0
- package/lib/programmers/internal/check_bigint.d.mts +1 -0
- package/lib/programmers/internal/check_dynamic_key.d.mts +1 -0
- package/lib/programmers/internal/check_dynamic_properties.d.mts +1 -0
- package/lib/programmers/internal/check_everything.d.mts +1 -0
- package/lib/programmers/internal/check_native.d.mts +1 -0
- package/lib/programmers/internal/check_number.d.mts +1 -0
- package/lib/programmers/internal/check_object.d.mts +1 -0
- package/lib/programmers/internal/check_string.d.mts +1 -0
- package/lib/programmers/internal/check_template.d.mts +1 -0
- package/lib/programmers/internal/check_union_array_like.d.mts +1 -0
- package/lib/programmers/internal/decode_union_object.d.mts +1 -0
- package/lib/programmers/internal/feature_object_entries.d.mts +1 -0
- package/lib/programmers/internal/json_schema_alias.d.mts +7 -0
- package/lib/programmers/internal/json_schema_array.d.mts +6 -0
- package/lib/programmers/internal/json_schema_bigint.d.mts +3 -0
- package/lib/programmers/internal/json_schema_boolean.d.mts +3 -0
- package/lib/programmers/internal/json_schema_constant.d.mts +3 -0
- package/lib/programmers/internal/json_schema_description.d.mts +5 -0
- package/lib/programmers/internal/json_schema_discriminator.d.mts +3 -0
- package/lib/programmers/internal/json_schema_escaped.d.mts +1 -0
- package/lib/programmers/internal/json_schema_native.d.mts +6 -0
- package/lib/programmers/internal/json_schema_number.d.mts +3 -0
- package/lib/programmers/internal/json_schema_object.d.mts +1 -0
- package/lib/programmers/internal/json_schema_plugin.d.mts +6 -0
- package/lib/programmers/internal/json_schema_station.d.mts +8 -0
- package/lib/programmers/internal/json_schema_string.d.mts +3 -0
- package/lib/programmers/internal/json_schema_template.d.mts +3 -0
- package/lib/programmers/internal/json_schema_title.d.mts +5 -0
- package/lib/programmers/internal/json_schema_tuple.d.mts +6 -0
- package/lib/programmers/internal/metadata_to_pattern.d.mts +1 -0
- package/lib/programmers/internal/postfix_of_tuple.d.mts +1 -0
- package/lib/programmers/internal/prune_object_properties.d.mts +1 -0
- package/lib/programmers/internal/stringify_dynamic_properties.d.mts +1 -0
- package/lib/programmers/internal/stringify_native.d.mts +1 -0
- package/lib/programmers/internal/stringify_regular_properties.d.mts +1 -0
- package/lib/programmers/internal/template_to_pattern.d.mts +1 -0
- package/lib/programmers/internal/wrap_metadata_rest_tuple.d.mts +1 -0
- package/lib/programmers/json/JsonApplicationProgrammer.d.mts +24 -0
- package/lib/programmers/json/JsonAssertParseProgrammer.d.mts +15 -0
- package/lib/programmers/json/JsonAssertStringifyProgrammer.d.mts +15 -0
- package/lib/programmers/json/JsonIsParseProgrammer.d.mts +14 -0
- package/lib/programmers/json/JsonIsStringifyProgrammer.d.mts +14 -0
- package/lib/programmers/json/JsonSchemasProgrammer.d.mts +9 -0
- package/lib/programmers/json/JsonStringifyProgrammer.d.mts +15 -0
- package/lib/programmers/json/JsonValidateParseProgrammer.d.mts +15 -0
- package/lib/programmers/json/JsonValidateStringifyProgrammer.d.mts +15 -0
- package/lib/programmers/llm/LlmApplicationProgrammer.d.mts +19 -0
- package/lib/programmers/llm/LlmModelPredicator.d.mts +16 -0
- package/lib/programmers/llm/LlmParametersProgrammer.d.mts +14 -0
- package/lib/programmers/llm/LlmSchemaProgrammer.d.mts +18 -0
- package/lib/programmers/misc/MiscAssertCloneProgrammer.d.mts +15 -0
- package/lib/programmers/misc/MiscAssertPruneProgrammer.d.mts +15 -0
- package/lib/programmers/misc/MiscCloneProgrammer.d.mts +15 -0
- package/lib/programmers/misc/MiscIsCloneProgrammer.d.mts +14 -0
- package/lib/programmers/misc/MiscIsPruneProgrammer.d.mts +14 -0
- package/lib/programmers/misc/MiscLiteralsProgrammer.d.mts +9 -0
- package/lib/programmers/misc/MiscPruneProgrammer.d.mts +15 -0
- package/lib/programmers/misc/MiscValidateCloneProgrammer.d.mts +15 -0
- package/lib/programmers/misc/MiscValidatePruneProgrammer.d.mts +15 -0
- package/lib/programmers/notations/NotationAssertGeneralProgrammer.d.mts +19 -0
- package/lib/programmers/notations/NotationGeneralProgrammer.d.mts +24 -0
- package/lib/programmers/notations/NotationIsGeneralProgrammer.d.mts +18 -0
- package/lib/programmers/notations/NotationValidateGeneralProgrammer.d.mts +19 -0
- package/lib/programmers/protobuf/ProtobufAssertDecodeProgrammer.d.mts +16 -0
- package/lib/programmers/protobuf/ProtobufAssertEncodeProgrammer.d.mts +16 -0
- package/lib/programmers/protobuf/ProtobufDecodeProgrammer.d.mts +15 -0
- package/lib/programmers/protobuf/ProtobufEncodeProgrammer.d.mts +15 -0
- package/lib/programmers/protobuf/ProtobufIsDecodeProgrammer.d.mts +15 -0
- package/lib/programmers/protobuf/ProtobufIsEncodeProgrammer.d.mts +15 -0
- package/lib/programmers/protobuf/ProtobufMessageProgrammer.d.mts +9 -0
- package/lib/programmers/protobuf/ProtobufValidateDecodeProgrammer.d.mts +15 -0
- package/lib/programmers/protobuf/ProtobufValidateEncodeProgrammer.d.mts +15 -0
- package/lib/protobuf.d.mts +661 -0
- package/lib/reflect.d.mts +35 -0
- package/lib/schemas/json/IJsonApplication.d.mts +12 -0
- package/lib/schemas/json/IJsonSchemaCollection.d.mts +23 -0
- package/lib/schemas/json/__IJsonApplication.d.mts +35 -0
- package/lib/schemas/llm/ILlmApplicationOfValidate.d.mts +5 -0
- package/lib/schemas/llm/ILlmFunctionOfValidate.d.mts +5 -0
- package/lib/schemas/metadata/IJsDocTagInfo.d.mts +10 -0
- package/lib/schemas/metadata/IMetadata.d.mts +31 -0
- package/lib/schemas/metadata/IMetadataAlias.d.mts +5 -0
- package/lib/schemas/metadata/IMetadataAliasType.d.mts +10 -0
- package/lib/schemas/metadata/IMetadataApplication.d.mts +6 -0
- package/lib/schemas/metadata/IMetadataArray.d.mts +5 -0
- package/lib/schemas/metadata/IMetadataArrayType.d.mts +8 -0
- package/lib/schemas/metadata/IMetadataAtomic.d.mts +5 -0
- package/lib/schemas/metadata/IMetadataComponents.d.mts +10 -0
- package/lib/schemas/metadata/IMetadataConstant.d.mts +9 -0
- package/lib/schemas/metadata/IMetadataConstantValue.d.mts +9 -0
- package/lib/schemas/metadata/IMetadataDictionary.d.mts +10 -0
- package/lib/schemas/metadata/IMetadataEscaped.d.mts +5 -0
- package/lib/schemas/metadata/IMetadataFunction.d.mts +7 -0
- package/lib/schemas/metadata/IMetadataMap.d.mts +7 -0
- package/lib/schemas/metadata/IMetadataNative.d.mts +5 -0
- package/lib/schemas/metadata/IMetadataObject.d.mts +5 -0
- package/lib/schemas/metadata/IMetadataObjectType.d.mts +11 -0
- package/lib/schemas/metadata/IMetadataParameter.d.mts +8 -0
- package/lib/schemas/metadata/IMetadataProperty.d.mts +8 -0
- package/lib/schemas/metadata/IMetadataSet.d.mts +6 -0
- package/lib/schemas/metadata/IMetadataTemplate.d.mts +6 -0
- package/lib/schemas/metadata/IMetadataTuple.d.mts +5 -0
- package/lib/schemas/metadata/IMetadataTupleType.d.mts +8 -0
- package/lib/schemas/metadata/IMetadataTypeTag.d.mts +9 -0
- package/lib/schemas/metadata/Metadata.d.mts +50 -0
- package/lib/schemas/metadata/MetadataAlias.d.mts +13 -0
- package/lib/schemas/metadata/MetadataAliasType.d.mts +16 -0
- package/lib/schemas/metadata/MetadataApplication.d.mts +13 -0
- package/lib/schemas/metadata/MetadataArray.d.mts +16 -0
- package/lib/schemas/metadata/MetadataArrayType.d.mts +14 -0
- package/lib/schemas/metadata/MetadataAtomic.d.mts +12 -0
- package/lib/schemas/metadata/MetadataComponents.d.mts +16 -0
- package/lib/schemas/metadata/MetadataConstant.d.mts +11 -0
- package/lib/schemas/metadata/MetadataConstantValue.d.mts +16 -0
- package/lib/schemas/metadata/MetadataEscaped.d.mts +12 -0
- package/lib/schemas/metadata/MetadataFunction.d.mts +15 -0
- package/lib/schemas/metadata/MetadataMap.d.mts +14 -0
- package/lib/schemas/metadata/MetadataNative.d.mts +12 -0
- package/lib/schemas/metadata/MetadataObject.d.mts +16 -0
- package/lib/schemas/metadata/MetadataObjectType.d.mts +20 -0
- package/lib/schemas/metadata/MetadataParameter.d.mts +15 -0
- package/lib/schemas/metadata/MetadataProperty.d.mts +16 -0
- package/lib/schemas/metadata/MetadataSet.d.mts +13 -0
- package/lib/schemas/metadata/MetadataTemplate.d.mts +15 -0
- package/lib/schemas/metadata/MetadataTuple.d.mts +12 -0
- package/lib/schemas/metadata/MetadataTupleType.d.mts +13 -0
- package/lib/schemas/protobuf/IProtobufProperty.d.mts +5 -0
- package/lib/schemas/protobuf/IProtobufPropertyType.d.mts +28 -0
- package/lib/schemas/protobuf/IProtobufSchema.d.mts +38 -0
- package/lib/tags/Constant.d.mts +10 -0
- package/lib/tags/ContentMediaType.d.mts +9 -0
- package/lib/tags/Default.d.mts +14 -0
- package/lib/tags/Example.d.mts +14 -0
- package/lib/tags/Examples.d.mts +10 -0
- package/lib/tags/ExclusiveMaximum.d.mts +18 -0
- package/lib/tags/ExclusiveMinimum.d.mts +18 -0
- package/lib/tags/Format.d.mts +17 -0
- package/lib/tags/JsonSchemaPlugin.d.mts +7 -0
- package/lib/tags/MaxItems.d.mts +11 -0
- package/lib/tags/MaxLength.d.mts +11 -0
- package/lib/tags/Maximum.d.mts +16 -0
- package/lib/tags/MinItems.d.mts +11 -0
- package/lib/tags/MinLength.d.mts +11 -0
- package/lib/tags/Minimum.d.mts +16 -0
- package/lib/tags/MultipleOf.d.mts +16 -0
- package/lib/tags/Pattern.d.mts +22 -0
- package/lib/tags/Sequence.d.mts +9 -0
- package/lib/tags/TagBase.d.mts +60 -0
- package/lib/tags/Type.d.mts +17 -0
- package/lib/tags/UniqueItems.d.mts +11 -0
- package/lib/tags/index.d.mts +21 -0
- package/lib/tags/internal/FormatCheatSheet.d.mts +27 -0
- package/lib/transform.d.mts +5 -0
- package/lib/transformers/CallExpressionTransformer.d.mts +8 -0
- package/lib/transformers/FileTransformer.d.mts +5 -0
- package/lib/transformers/IProgrammerProps.d.mts +9 -0
- package/lib/transformers/ITransformOptions.d.mts +59 -0
- package/lib/transformers/ITransformProps.d.mts +7 -0
- package/lib/transformers/ITypiaContext.d.mts +15 -0
- package/lib/transformers/ImportTransformer.d.mts +7 -0
- package/lib/transformers/NodeTransformer.d.mts +8 -0
- package/lib/transformers/TransformerError.d.mts +15 -0
- package/lib/transformers/features/AssertTransformer.d.mts +5 -0
- package/lib/transformers/features/CreateAssertTransformer.d.mts +5 -0
- package/lib/transformers/features/CreateIsTransformer.d.mts +5 -0
- package/lib/transformers/features/CreateRandomTransformer.d.mts +5 -0
- package/lib/transformers/features/CreateValidateTransformer.d.mts +5 -0
- package/lib/transformers/features/IsTransformer.d.mts +5 -0
- package/lib/transformers/features/RandomTransformer.d.mts +5 -0
- package/lib/transformers/features/ValidateTransformer.d.mts +5 -0
- package/lib/transformers/features/functional/FunctionalGenericTransformer.d.mts +21 -0
- package/lib/transformers/features/http/CreateHttpAssertFormDataTransformer.d.mts +4 -0
- package/lib/transformers/features/http/CreateHttpAssertHeadersTransformer.d.mts +4 -0
- package/lib/transformers/features/http/CreateHttpAssertQueryTransformer.d.mts +4 -0
- package/lib/transformers/features/http/CreateHttpFormDataTransformer.d.mts +4 -0
- package/lib/transformers/features/http/CreateHttpHeadersTransformer.d.mts +4 -0
- package/lib/transformers/features/http/CreateHttpIsFormDataTransformer.d.mts +4 -0
- package/lib/transformers/features/http/CreateHttpIsHeadersTransformer.d.mts +4 -0
- package/lib/transformers/features/http/CreateHttpIsQueryTransformer.d.mts +4 -0
- package/lib/transformers/features/http/CreateHttpParameterTransformer.d.mts +4 -0
- package/lib/transformers/features/http/CreateHttpQueryTransformer.d.mts +4 -0
- package/lib/transformers/features/http/CreateHttpValidateFormDataTransformer.d.mts +4 -0
- package/lib/transformers/features/http/CreateHttpValidateHeadersTransformer.d.mts +4 -0
- package/lib/transformers/features/http/CreateHttpValidateQueryTransformer.d.mts +4 -0
- package/lib/transformers/features/http/HttpAssertFormDataTransformer.d.mts +4 -0
- package/lib/transformers/features/http/HttpAssertHeadersTransformer.d.mts +4 -0
- package/lib/transformers/features/http/HttpAssertQueryTransformer.d.mts +4 -0
- package/lib/transformers/features/http/HttpFormDataTransformer.d.mts +4 -0
- package/lib/transformers/features/http/HttpHeadersTransformer.d.mts +4 -0
- package/lib/transformers/features/http/HttpIsFormDataTransformer.d.mts +4 -0
- package/lib/transformers/features/http/HttpIsHeadersTransformer.d.mts +4 -0
- package/lib/transformers/features/http/HttpIsQueryTransformer.d.mts +4 -0
- package/lib/transformers/features/http/HttpParameterTransformer.d.mts +4 -0
- package/lib/transformers/features/http/HttpQueryTransformer.d.mts +4 -0
- package/lib/transformers/features/http/HttpValidateFormDataTransformer.d.mts +4 -0
- package/lib/transformers/features/http/HttpValidateHeadersTransformer.d.mts +4 -0
- package/lib/transformers/features/http/HttpValidateQueryTransformer.d.mts +4 -0
- package/lib/transformers/features/json/JsonAssertParseTransformer.d.mts +4 -0
- package/lib/transformers/features/json/JsonAssertStringifyTransformer.d.mts +4 -0
- package/lib/transformers/features/json/JsonCreateAssertParseTransformer.d.mts +4 -0
- package/lib/transformers/features/json/JsonCreateAssertStringifyTransformer.d.mts +4 -0
- package/lib/transformers/features/json/JsonCreateIsParseTransformer.d.mts +4 -0
- package/lib/transformers/features/json/JsonCreateIsStringifyTransformer.d.mts +4 -0
- package/lib/transformers/features/json/JsonCreateStringifyTransformer.d.mts +4 -0
- package/lib/transformers/features/json/JsonCreateValidateParseTransformer.d.mts +4 -0
- package/lib/transformers/features/json/JsonCreateValidateStringifyProgrammer.d.mts +4 -0
- package/lib/transformers/features/json/JsonIsParseTransformer.d.mts +4 -0
- package/lib/transformers/features/json/JsonIsStringifyTransformer.d.mts +4 -0
- package/lib/transformers/features/json/JsonSchemasTransformer.d.mts +5 -0
- package/lib/transformers/features/json/JsonStringifyTransformer.d.mts +4 -0
- package/lib/transformers/features/json/JsonValidateParseTransformer.d.mts +4 -0
- package/lib/transformers/features/json/JsonValidateStringifyTransformer.d.mts +4 -0
- package/lib/transformers/features/llm/LlmApplicationTransformer.d.mts +5 -0
- package/lib/transformers/features/llm/LlmParametersTransformer.d.mts +5 -0
- package/lib/transformers/features/llm/LlmSchemaTransformer.d.mts +5 -0
- package/lib/transformers/features/misc/MiscAssertCloneTransformer.d.mts +4 -0
- package/lib/transformers/features/misc/MiscAssertPruneTransformer.d.mts +4 -0
- package/lib/transformers/features/misc/MiscCloneTransformer.d.mts +4 -0
- package/lib/transformers/features/misc/MiscCreateAssertCloneTransformer.d.mts +4 -0
- package/lib/transformers/features/misc/MiscCreateAssertPruneTransformer.d.mts +4 -0
- package/lib/transformers/features/misc/MiscCreateCloneTransformer.d.mts +4 -0
- package/lib/transformers/features/misc/MiscCreateIsCloneTransformer.d.mts +4 -0
- package/lib/transformers/features/misc/MiscCreateIsPruneTransformer.d.mts +4 -0
- package/lib/transformers/features/misc/MiscCreatePruneTransformer.d.mts +4 -0
- package/lib/transformers/features/misc/MiscCreateValidateCloneTransformer.d.mts +4 -0
- package/lib/transformers/features/misc/MiscCreateValidatePruneTransformer.d.mts +4 -0
- package/lib/transformers/features/misc/MiscIsCloneTransformer.d.mts +4 -0
- package/lib/transformers/features/misc/MiscIsPruneTransformer.d.mts +4 -0
- package/lib/transformers/features/misc/MiscLiteralsTransformer.d.mts +5 -0
- package/lib/transformers/features/misc/MiscPruneTransformer.d.mts +4 -0
- package/lib/transformers/features/misc/MiscValidateCloneTransformer.d.mts +4 -0
- package/lib/transformers/features/misc/MiscValidatePruneTransformer.d.mts +4 -0
- package/lib/transformers/features/notations/NotationAssertGeneralTransformer.d.mts +4 -0
- package/lib/transformers/features/notations/NotationCreateAssertGeneralTransformer.d.mts +4 -0
- package/lib/transformers/features/notations/NotationCreateGeneralTransformer.d.mts +4 -0
- package/lib/transformers/features/notations/NotationCreateIsGeneralTransformer.d.mts +4 -0
- package/lib/transformers/features/notations/NotationCreateValidateGeneralTransformer.d.mts +4 -0
- package/lib/transformers/features/notations/NotationGeneralTransformer.d.mts +4 -0
- package/lib/transformers/features/notations/NotationIsGeneralTransformer.d.mts +4 -0
- package/lib/transformers/features/notations/NotationValidateGeneralTransformer.d.mts +4 -0
- package/lib/transformers/features/protobuf/ProtobufAssertDecodeTransformer.d.mts +4 -0
- package/lib/transformers/features/protobuf/ProtobufAssertEncodeTransformer.d.mts +4 -0
- package/lib/transformers/features/protobuf/ProtobufCreateAssertDecodeTransformer.d.mts +4 -0
- package/lib/transformers/features/protobuf/ProtobufCreateAssertEncodeTransformer.d.mts +4 -0
- package/lib/transformers/features/protobuf/ProtobufCreateDecodeTransformer.d.mts +4 -0
- package/lib/transformers/features/protobuf/ProtobufCreateEncodeTransformer.d.mts +4 -0
- package/lib/transformers/features/protobuf/ProtobufCreateIsDecodeTransformer.d.mts +4 -0
- package/lib/transformers/features/protobuf/ProtobufCreateIsEncodeTransformer.d.mts +4 -0
- package/lib/transformers/features/protobuf/ProtobufCreateValidateDecodeTransformer.d.mts +4 -0
- package/lib/transformers/features/protobuf/ProtobufCreateValidateEncodeTransformer.d.mts +4 -0
- package/lib/transformers/features/protobuf/ProtobufDecodeTransformer.d.mts +4 -0
- package/lib/transformers/features/protobuf/ProtobufEncodeTransformer.d.mts +4 -0
- package/lib/transformers/features/protobuf/ProtobufIsDecodeTransformer.d.mts +4 -0
- package/lib/transformers/features/protobuf/ProtobufIsEncodeTransformer.d.mts +4 -0
- package/lib/transformers/features/protobuf/ProtobufMessageTransformer.d.mts +5 -0
- package/lib/transformers/features/protobuf/ProtobufValidateDecodeTransformer.d.mts +4 -0
- package/lib/transformers/features/protobuf/ProtobufValidateEncodeTransformer.d.mts +4 -0
- package/lib/transformers/features/reflect/ReflectMetadataTransformer.d.mts +5 -0
- package/lib/transformers/features/reflect/ReflectNameTransformer.d.mts +5 -0
- package/lib/transformers/internal/GenericTransformer.d.mts +11 -0
- package/lib/typings/Atomic.d.mts +11 -0
- package/lib/typings/ClassProperties.d.mts +4 -0
- package/lib/typings/Customizable.d.mts +5 -0
- package/lib/typings/Equal.d.mts +15 -0
- package/lib/typings/IsTuple.d.mts +5 -0
- package/lib/typings/NativeClass.d.mts +1 -0
- package/lib/typings/OmitNever.d.mts +2 -0
- package/lib/typings/ProtobufAtomic.d.mts +5 -0
- package/lib/typings/SpecialFields.d.mts +3 -0
- package/lib/typings/ValidationPipe.d.mts +7 -0
- package/lib/typings/ValueOf.d.mts +6 -0
- package/lib/typings/Writable.d.mts +5 -0
- package/lib/utils/ArrayUtil.d.mts +7 -0
- package/lib/utils/Escaper.d.mts +4 -0
- package/lib/utils/MapUtil.d.mts +3 -0
- package/lib/utils/NamingConvention.d.mts +5 -0
- package/lib/utils/PatternUtil.d.mts +7 -0
- package/lib/utils/ProtobufNameEncoder.d.mts +4 -0
- package/lib/utils/Singleton.d.mts +6 -0
- package/lib/utils/StringUtil.d.mts +8 -0
- package/package.json +4 -5
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
export interface ITransformOptions {
|
|
2
|
+
/**
|
|
3
|
+
* Whether to validate finite number or not.
|
|
4
|
+
*
|
|
5
|
+
* If configured true, number typed values would be validated by Number.isNaN().
|
|
6
|
+
*
|
|
7
|
+
* However, whatever you configure, it would be ignored when marshaling or parsing.
|
|
8
|
+
*
|
|
9
|
+
* - when marshaling, always be true
|
|
10
|
+
* - assertStringify()
|
|
11
|
+
* - validateEncode()
|
|
12
|
+
* - when parsing, always be false
|
|
13
|
+
* - assertParse()
|
|
14
|
+
* - isDecode()
|
|
15
|
+
*
|
|
16
|
+
* @default false
|
|
17
|
+
*/
|
|
18
|
+
finite?: undefined | boolean;
|
|
19
|
+
/**
|
|
20
|
+
* Whether to validate finite number or not.
|
|
21
|
+
*
|
|
22
|
+
* If configured true, number typed values would be validated by Number.isFinite().
|
|
23
|
+
*
|
|
24
|
+
* However, whatever you configure, it can be ignored in below case.
|
|
25
|
+
*
|
|
26
|
+
* - when `finite` option is true, this option would be ignored
|
|
27
|
+
* - when marshaling, always be true
|
|
28
|
+
* - assertStringify()
|
|
29
|
+
* - validateEncode()
|
|
30
|
+
* - when parsing, always be false
|
|
31
|
+
* - assertParse()
|
|
32
|
+
* - isDecode()
|
|
33
|
+
*
|
|
34
|
+
* @default false
|
|
35
|
+
*/
|
|
36
|
+
numeric?: undefined | boolean;
|
|
37
|
+
/**
|
|
38
|
+
* Whether to validate functional type or not.
|
|
39
|
+
*
|
|
40
|
+
* However, whatever you configure, it becomes false when marshaling or parsing.
|
|
41
|
+
*
|
|
42
|
+
* @default false
|
|
43
|
+
*/
|
|
44
|
+
functional?: undefined | boolean;
|
|
45
|
+
/**
|
|
46
|
+
* Whether to check undefined value or not.
|
|
47
|
+
*
|
|
48
|
+
* JavaScript can assign `undefined` value to a specific property and it is an
|
|
49
|
+
* issue when validating without allowing superfluous properties. Should undefined
|
|
50
|
+
* value assigned superfluous property be allowed or not?
|
|
51
|
+
*
|
|
52
|
+
* Note that, this option only works on {@link equals} function. Other function
|
|
53
|
+
* like {@link assertEquals} or {@link validateEquals} would ignore this option
|
|
54
|
+
* value and always allow the `undefined` value.
|
|
55
|
+
*
|
|
56
|
+
* @default true
|
|
57
|
+
*/
|
|
58
|
+
undefined?: undefined | boolean;
|
|
59
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import ts from "typescript";
|
|
2
|
+
import { ImportProgrammer } from "../programmers/ImportProgrammer";
|
|
3
|
+
import { ITransformOptions } from "./ITransformOptions";
|
|
4
|
+
export interface ITypiaContext {
|
|
5
|
+
program: ts.Program;
|
|
6
|
+
compilerOptions: ts.CompilerOptions;
|
|
7
|
+
checker: ts.TypeChecker;
|
|
8
|
+
printer: ts.Printer;
|
|
9
|
+
options: ITransformOptions;
|
|
10
|
+
transformer: ts.TransformationContext;
|
|
11
|
+
importer: ImportProgrammer;
|
|
12
|
+
extras: {
|
|
13
|
+
addDiagnostic: (diag: ts.Diagnostic) => number;
|
|
14
|
+
};
|
|
15
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { MetadataFactory } from "../factories/MetadataFactory";
|
|
2
|
+
export declare class TransformerError extends Error {
|
|
3
|
+
readonly code: string;
|
|
4
|
+
constructor(props: TransformerError.IProps);
|
|
5
|
+
}
|
|
6
|
+
export declare namespace TransformerError {
|
|
7
|
+
interface IProps {
|
|
8
|
+
code: string;
|
|
9
|
+
message: string;
|
|
10
|
+
}
|
|
11
|
+
const from: (props: {
|
|
12
|
+
code: string;
|
|
13
|
+
errors: MetadataFactory.IError[];
|
|
14
|
+
}) => TransformerError;
|
|
15
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { AssertProgrammer } from "../../programmers/AssertProgrammer";
|
|
2
|
+
import { ITransformProps } from "../ITransformProps";
|
|
3
|
+
export declare namespace AssertTransformer {
|
|
4
|
+
const transform: (config: AssertProgrammer.IConfig) => (props: ITransformProps) => import("typescript").CallExpression;
|
|
5
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { AssertProgrammer } from "../../programmers/AssertProgrammer";
|
|
2
|
+
import { ITransformProps } from "../ITransformProps";
|
|
3
|
+
export declare namespace CreateAssertTransformer {
|
|
4
|
+
const transform: (config: AssertProgrammer.IConfig) => (props: ITransformProps) => import("typescript").Expression | import("typescript").ArrowFunction;
|
|
5
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { IsProgrammer } from "../../programmers/IsProgrammer";
|
|
2
|
+
import { ITransformProps } from "../ITransformProps";
|
|
3
|
+
export declare namespace CreateIsTransformer {
|
|
4
|
+
const transform: (config: IsProgrammer.IConfig) => (props: ITransformProps) => import("typescript").Expression | import("typescript").ArrowFunction;
|
|
5
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { ValidateProgrammer } from "../../programmers/ValidateProgrammer";
|
|
2
|
+
import { ITransformProps } from "../ITransformProps";
|
|
3
|
+
export declare namespace CreateValidateTransformer {
|
|
4
|
+
const transform: (config: ValidateProgrammer.IConfig) => (props: ITransformProps) => import("typescript").Expression | import("typescript").ArrowFunction;
|
|
5
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { IsProgrammer } from "../../programmers/IsProgrammer";
|
|
2
|
+
import { ITransformProps } from "../ITransformProps";
|
|
3
|
+
export declare namespace IsTransformer {
|
|
4
|
+
const transform: (config: IsProgrammer.IConfig) => (props: ITransformProps) => import("typescript").CallExpression;
|
|
5
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { ValidateProgrammer } from "../../programmers/ValidateProgrammer";
|
|
2
|
+
import { ITransformProps } from "../ITransformProps";
|
|
3
|
+
export declare namespace ValidateTransformer {
|
|
4
|
+
const transform: (config: ValidateProgrammer.IConfig) => (props: ITransformProps) => import("typescript").CallExpression;
|
|
5
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import ts from "typescript";
|
|
2
|
+
import { ITransformProps } from "../../ITransformProps";
|
|
3
|
+
import { ITypiaContext } from "../../ITypiaContext";
|
|
4
|
+
export declare namespace FunctionalGenericTransformer {
|
|
5
|
+
interface IConfig {
|
|
6
|
+
equals: boolean;
|
|
7
|
+
}
|
|
8
|
+
interface ISpecification {
|
|
9
|
+
method: string;
|
|
10
|
+
config: IConfig;
|
|
11
|
+
programmer: (p: {
|
|
12
|
+
context: ITypiaContext;
|
|
13
|
+
modulo: ts.LeftHandSideExpression;
|
|
14
|
+
expression: ts.Expression;
|
|
15
|
+
declaration: ts.FunctionDeclaration;
|
|
16
|
+
config: IConfig;
|
|
17
|
+
init?: ts.Expression;
|
|
18
|
+
}) => ts.Expression;
|
|
19
|
+
}
|
|
20
|
+
const transform: (spec: ISpecification) => (props: ITransformProps) => ts.Expression;
|
|
21
|
+
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { ITransformProps } from "../../ITransformProps";
|
|
2
|
+
export declare namespace NotationCreateAssertGeneralTransformer {
|
|
3
|
+
const transform: (rename: (str: string) => string) => (props: ITransformProps) => import("typescript").Expression | import("typescript").ArrowFunction;
|
|
4
|
+
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { ITransformProps } from "../../ITransformProps";
|
|
2
|
+
export declare namespace NotationCreateGeneralTransformer {
|
|
3
|
+
const transform: (rename: (str: string) => string) => (props: ITransformProps) => import("typescript").Expression | import("typescript").ArrowFunction;
|
|
4
|
+
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { ITransformProps } from "../../ITransformProps";
|
|
2
|
+
export declare namespace NotationCreateIsGeneralTransformer {
|
|
3
|
+
const transform: (rename: (str: string) => string) => (props: ITransformProps) => import("typescript").Expression | import("typescript").ArrowFunction;
|
|
4
|
+
}
|