@dofe/infra-common 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/adapters/base.adapter.d.ts +84 -0
- package/dist/adapters/base.adapter.d.ts.map +1 -0
- package/dist/adapters/base.adapter.js +19 -0
- package/dist/adapters/base.adapter.js.map +1 -0
- package/dist/adapters/index.d.ts +35 -0
- package/dist/adapters/index.d.ts.map +1 -0
- package/dist/adapters/index.js +53 -0
- package/dist/adapters/index.js.map +1 -0
- package/dist/common.module.d.ts +7 -0
- package/dist/common.module.d.ts.map +1 -0
- package/dist/common.module.js +26 -0
- package/dist/common.module.js.map +1 -0
- package/dist/config/agentx.config.d.ts +37 -0
- package/dist/config/agentx.config.d.ts.map +1 -0
- package/dist/config/agentx.config.js +81 -0
- package/dist/config/agentx.config.js.map +1 -0
- package/dist/config/configuration.d.ts +55 -0
- package/dist/config/configuration.d.ts.map +1 -0
- package/dist/config/configuration.js +336 -0
- package/dist/config/configuration.js.map +1 -0
- package/dist/config/constant/config.constants.d.ts +48 -0
- package/dist/config/constant/config.constants.d.ts.map +1 -0
- package/dist/config/constant/config.constants.js +86 -0
- package/dist/config/constant/config.constants.js.map +1 -0
- package/dist/config/dto/config.dto.d.ts +222 -0
- package/dist/config/dto/config.dto.d.ts.map +1 -0
- package/dist/config/dto/config.dto.js +42 -0
- package/dist/config/dto/config.dto.js.map +1 -0
- package/dist/config/env-config.service.d.ts +147 -0
- package/dist/config/env-config.service.d.ts.map +1 -0
- package/dist/config/env-config.service.js +296 -0
- package/dist/config/env-config.service.js.map +1 -0
- package/dist/config/features/feature-errors.d.ts +13 -0
- package/dist/config/features/feature-errors.d.ts.map +1 -0
- package/dist/config/features/feature-errors.js +25 -0
- package/dist/config/features/feature-errors.js.map +1 -0
- package/dist/config/features/feature-registry.d.ts +26 -0
- package/dist/config/features/feature-registry.d.ts.map +1 -0
- package/dist/config/features/feature-registry.js +172 -0
- package/dist/config/features/feature-registry.js.map +1 -0
- package/dist/config/features/index.d.ts +4 -0
- package/dist/config/features/index.d.ts.map +1 -0
- package/dist/config/features/index.js +9 -0
- package/dist/config/features/index.js.map +1 -0
- package/dist/config/validation/env.validation.d.ts +132 -0
- package/dist/config/validation/env.validation.d.ts.map +1 -0
- package/dist/config/validation/env.validation.js +304 -0
- package/dist/config/validation/env.validation.js.map +1 -0
- package/dist/config/validation/index.d.ts +21 -0
- package/dist/config/validation/index.d.ts.map +1 -0
- package/dist/config/validation/index.js +119 -0
- package/dist/config/validation/index.js.map +1 -0
- package/dist/config/validation/keys.validation.d.ts +884 -0
- package/dist/config/validation/keys.validation.d.ts.map +1 -0
- package/dist/config/validation/keys.validation.js +506 -0
- package/dist/config/validation/keys.validation.js.map +1 -0
- package/dist/config/validation/yaml.validation.d.ts +765 -0
- package/dist/config/validation/yaml.validation.d.ts.map +1 -0
- package/dist/config/validation/yaml.validation.js +488 -0
- package/dist/config/validation/yaml.validation.js.map +1 -0
- package/dist/config/vendor.config.d.ts +48 -0
- package/dist/config/vendor.config.d.ts.map +1 -0
- package/dist/config/vendor.config.js +136 -0
- package/dist/config/vendor.config.js.map +1 -0
- package/dist/decorators/api-key/api-key.decorator.d.ts +25 -0
- package/dist/decorators/api-key/api-key.decorator.d.ts.map +1 -0
- package/dist/decorators/api-key/api-key.decorator.js +30 -0
- package/dist/decorators/api-key/api-key.decorator.js.map +1 -0
- package/dist/decorators/api-key/index.d.ts +2 -0
- package/dist/decorators/api-key/index.d.ts.map +1 -0
- package/dist/decorators/api-key/index.js +18 -0
- package/dist/decorators/api-key/index.js.map +1 -0
- package/dist/decorators/app-version/app-version.controller.d.ts +30 -0
- package/dist/decorators/app-version/app-version.controller.d.ts.map +1 -0
- package/dist/decorators/app-version/app-version.controller.js +159 -0
- package/dist/decorators/app-version/app-version.controller.js.map +1 -0
- package/dist/decorators/app-version/app-version.interceptor.d.ts +15 -0
- package/dist/decorators/app-version/app-version.interceptor.d.ts.map +1 -0
- package/dist/decorators/app-version/app-version.interceptor.js +42 -0
- package/dist/decorators/app-version/app-version.interceptor.js.map +1 -0
- package/dist/decorators/app-version/app-version.module.d.ts +8 -0
- package/dist/decorators/app-version/app-version.module.d.ts.map +1 -0
- package/dist/decorators/app-version/app-version.module.js +39 -0
- package/dist/decorators/app-version/app-version.module.js.map +1 -0
- package/dist/decorators/app-version/app-version.service.d.ts +88 -0
- package/dist/decorators/app-version/app-version.service.d.ts.map +1 -0
- package/dist/decorators/app-version/app-version.service.js +251 -0
- package/dist/decorators/app-version/app-version.service.js.map +1 -0
- package/dist/decorators/app-version/index.d.ts +8 -0
- package/dist/decorators/app-version/index.d.ts.map +1 -0
- package/dist/decorators/app-version/index.js +15 -0
- package/dist/decorators/app-version/index.js.map +1 -0
- package/dist/decorators/audit-log.decorator.d.ts +41 -0
- package/dist/decorators/audit-log.decorator.d.ts.map +1 -0
- package/dist/decorators/audit-log.decorator.js +19 -0
- package/dist/decorators/audit-log.decorator.js.map +1 -0
- package/dist/decorators/cache/cache.decorator.d.ts +256 -0
- package/dist/decorators/cache/cache.decorator.d.ts.map +1 -0
- package/dist/decorators/cache/cache.decorator.js +339 -0
- package/dist/decorators/cache/cache.decorator.js.map +1 -0
- package/dist/decorators/cache/cache.interceptor.d.ts +43 -0
- package/dist/decorators/cache/cache.interceptor.d.ts.map +1 -0
- package/dist/decorators/cache/cache.interceptor.js +219 -0
- package/dist/decorators/cache/cache.interceptor.js.map +1 -0
- package/dist/decorators/cache/cache.module.d.ts +9 -0
- package/dist/decorators/cache/cache.module.d.ts.map +1 -0
- package/dist/decorators/cache/cache.module.js +36 -0
- package/dist/decorators/cache/cache.module.js.map +1 -0
- package/dist/decorators/cache/index.d.ts +7 -0
- package/dist/decorators/cache/index.d.ts.map +1 -0
- package/dist/decorators/cache/index.js +32 -0
- package/dist/decorators/cache/index.js.map +1 -0
- package/dist/decorators/data-visibility/data-visibility.decorator.d.ts +74 -0
- package/dist/decorators/data-visibility/data-visibility.decorator.d.ts.map +1 -0
- package/dist/decorators/data-visibility/data-visibility.decorator.js +87 -0
- package/dist/decorators/data-visibility/data-visibility.decorator.js.map +1 -0
- package/dist/decorators/data-visibility/index.d.ts +2 -0
- package/dist/decorators/data-visibility/index.d.ts.map +1 -0
- package/dist/decorators/data-visibility/index.js +18 -0
- package/dist/decorators/data-visibility/index.js.map +1 -0
- package/dist/decorators/event/event.decorator.d.ts +152 -0
- package/dist/decorators/event/event.decorator.d.ts.map +1 -0
- package/dist/decorators/event/event.decorator.js +158 -0
- package/dist/decorators/event/event.decorator.js.map +1 -0
- package/dist/decorators/event/event.interceptor.d.ts +23 -0
- package/dist/decorators/event/event.interceptor.d.ts.map +1 -0
- package/dist/decorators/event/event.interceptor.js +140 -0
- package/dist/decorators/event/event.interceptor.js.map +1 -0
- package/dist/decorators/event/event.module.d.ts +9 -0
- package/dist/decorators/event/event.module.d.ts.map +1 -0
- package/dist/decorators/event/event.module.js +59 -0
- package/dist/decorators/event/event.module.js.map +1 -0
- package/dist/decorators/event/handlers/cache-event.handler.d.ts +55 -0
- package/dist/decorators/event/handlers/cache-event.handler.d.ts.map +1 -0
- package/dist/decorators/event/handlers/cache-event.handler.js +159 -0
- package/dist/decorators/event/handlers/cache-event.handler.js.map +1 -0
- package/dist/decorators/event/index.d.ts +8 -0
- package/dist/decorators/event/index.d.ts.map +1 -0
- package/dist/decorators/event/index.js +26 -0
- package/dist/decorators/event/index.js.map +1 -0
- package/dist/decorators/feature-flag/feature-flag.decorator.d.ts +144 -0
- package/dist/decorators/feature-flag/feature-flag.decorator.d.ts.map +1 -0
- package/dist/decorators/feature-flag/feature-flag.decorator.js +135 -0
- package/dist/decorators/feature-flag/feature-flag.decorator.js.map +1 -0
- package/dist/decorators/feature-flag/feature-flag.interceptor.d.ts +30 -0
- package/dist/decorators/feature-flag/feature-flag.interceptor.d.ts.map +1 -0
- package/dist/decorators/feature-flag/feature-flag.interceptor.js +127 -0
- package/dist/decorators/feature-flag/feature-flag.interceptor.js.map +1 -0
- package/dist/decorators/feature-flag/feature-flag.module.d.ts +9 -0
- package/dist/decorators/feature-flag/feature-flag.module.d.ts.map +1 -0
- package/dist/decorators/feature-flag/feature-flag.module.js +39 -0
- package/dist/decorators/feature-flag/feature-flag.module.js.map +1 -0
- package/dist/decorators/feature-flag/feature-flag.service.d.ts +102 -0
- package/dist/decorators/feature-flag/feature-flag.service.d.ts.map +1 -0
- package/dist/decorators/feature-flag/feature-flag.service.js +373 -0
- package/dist/decorators/feature-flag/feature-flag.service.js.map +1 -0
- package/dist/decorators/feature-flag/feature-flag.service.spec.d.ts +2 -0
- package/dist/decorators/feature-flag/feature-flag.service.spec.d.ts.map +1 -0
- package/dist/decorators/feature-flag/feature-flag.service.spec.js +264 -0
- package/dist/decorators/feature-flag/feature-flag.service.spec.js.map +1 -0
- package/dist/decorators/feature-flag/index.d.ts +8 -0
- package/dist/decorators/feature-flag/index.d.ts.map +1 -0
- package/dist/decorators/feature-flag/index.js +23 -0
- package/dist/decorators/feature-flag/index.js.map +1 -0
- package/dist/decorators/rate-limit/dto/rate-limit.dto.d.ts +174 -0
- package/dist/decorators/rate-limit/dto/rate-limit.dto.d.ts.map +1 -0
- package/dist/decorators/rate-limit/dto/rate-limit.dto.js +8 -0
- package/dist/decorators/rate-limit/dto/rate-limit.dto.js.map +1 -0
- package/dist/decorators/rate-limit/index.d.ts +24 -0
- package/dist/decorators/rate-limit/index.d.ts.map +1 -0
- package/dist/decorators/rate-limit/index.js +44 -0
- package/dist/decorators/rate-limit/index.js.map +1 -0
- package/dist/decorators/rate-limit/rate-limit.constants.d.ts +16 -0
- package/dist/decorators/rate-limit/rate-limit.constants.d.ts.map +1 -0
- package/dist/decorators/rate-limit/rate-limit.constants.js +22 -0
- package/dist/decorators/rate-limit/rate-limit.constants.js.map +1 -0
- package/dist/decorators/rate-limit/rate-limit.decorator.d.ts +132 -0
- package/dist/decorators/rate-limit/rate-limit.decorator.d.ts.map +1 -0
- package/dist/decorators/rate-limit/rate-limit.decorator.js +185 -0
- package/dist/decorators/rate-limit/rate-limit.decorator.js.map +1 -0
- package/dist/decorators/rate-limit/rate-limit.exception.d.ts +39 -0
- package/dist/decorators/rate-limit/rate-limit.exception.d.ts.map +1 -0
- package/dist/decorators/rate-limit/rate-limit.exception.js +67 -0
- package/dist/decorators/rate-limit/rate-limit.exception.js.map +1 -0
- package/dist/decorators/rate-limit/rate-limit.module.d.ts +25 -0
- package/dist/decorators/rate-limit/rate-limit.module.d.ts.map +1 -0
- package/dist/decorators/rate-limit/rate-limit.module.js +48 -0
- package/dist/decorators/rate-limit/rate-limit.module.js.map +1 -0
- package/dist/decorators/rate-limit/rate-limit.service.d.ts +102 -0
- package/dist/decorators/rate-limit/rate-limit.service.d.ts.map +1 -0
- package/dist/decorators/rate-limit/rate-limit.service.js +390 -0
- package/dist/decorators/rate-limit/rate-limit.service.js.map +1 -0
- package/dist/decorators/response.decorator.d.ts +10 -0
- package/dist/decorators/response.decorator.d.ts.map +1 -0
- package/dist/decorators/response.decorator.js +58 -0
- package/dist/decorators/response.decorator.js.map +1 -0
- package/dist/decorators/skip-version-check.decorator.d.ts +25 -0
- package/dist/decorators/skip-version-check.decorator.d.ts.map +1 -0
- package/dist/decorators/skip-version-check.decorator.js +31 -0
- package/dist/decorators/skip-version-check.decorator.js.map +1 -0
- package/dist/decorators/tenant/index.d.ts +2 -0
- package/dist/decorators/tenant/index.d.ts.map +1 -0
- package/dist/decorators/tenant/index.js +18 -0
- package/dist/decorators/tenant/index.js.map +1 -0
- package/dist/decorators/tenant/tenant.decorator.d.ts +82 -0
- package/dist/decorators/tenant/tenant.decorator.d.ts.map +1 -0
- package/dist/decorators/tenant/tenant.decorator.js +98 -0
- package/dist/decorators/tenant/tenant.decorator.js.map +1 -0
- package/dist/decorators/transaction/index.d.ts +6 -0
- package/dist/decorators/transaction/index.d.ts.map +1 -0
- package/dist/decorators/transaction/index.js +12 -0
- package/dist/decorators/transaction/index.js.map +1 -0
- package/dist/decorators/transaction/transactional.decorator.d.ts +234 -0
- package/dist/decorators/transaction/transactional.decorator.d.ts.map +1 -0
- package/dist/decorators/transaction/transactional.decorator.js +433 -0
- package/dist/decorators/transaction/transactional.decorator.js.map +1 -0
- package/dist/decorators/ts-rest-controller.decorator.d.ts +38 -0
- package/dist/decorators/ts-rest-controller.decorator.d.ts.map +1 -0
- package/dist/decorators/ts-rest-controller.decorator.js +25 -0
- package/dist/decorators/ts-rest-controller.decorator.js.map +1 -0
- package/dist/decorators/validation.decorator.d.ts +4 -0
- package/dist/decorators/validation.decorator.d.ts.map +1 -0
- package/dist/decorators/validation.decorator.js +121 -0
- package/dist/decorators/validation.decorator.js.map +1 -0
- package/dist/decorators/version/index.d.ts +7 -0
- package/dist/decorators/version/index.d.ts.map +1 -0
- package/dist/decorators/version/index.js +25 -0
- package/dist/decorators/version/index.js.map +1 -0
- package/dist/decorators/version/version.decorator.d.ts +96 -0
- package/dist/decorators/version/version.decorator.d.ts.map +1 -0
- package/dist/decorators/version/version.decorator.js +146 -0
- package/dist/decorators/version/version.decorator.js.map +1 -0
- package/dist/decorators/version/version.interceptor.d.ts +19 -0
- package/dist/decorators/version/version.interceptor.d.ts.map +1 -0
- package/dist/decorators/version/version.interceptor.js +86 -0
- package/dist/decorators/version/version.interceptor.js.map +1 -0
- package/dist/decorators/version/version.module.d.ts +8 -0
- package/dist/decorators/version/version.module.d.ts.map +1 -0
- package/dist/decorators/version/version.module.js +33 -0
- package/dist/decorators/version/version.module.js.map +1 -0
- package/dist/encryption.service.d.ts +15 -0
- package/dist/encryption.service.d.ts.map +1 -0
- package/dist/encryption.service.js +35 -0
- package/dist/encryption.service.js.map +1 -0
- package/dist/enums/action.enum.d.ts +8 -0
- package/dist/enums/action.enum.d.ts.map +1 -0
- package/dist/enums/action.enum.js +12 -0
- package/dist/enums/action.enum.js.map +1 -0
- package/dist/enums/error-codes.d.ts +33 -0
- package/dist/enums/error-codes.d.ts.map +1 -0
- package/dist/enums/error-codes.js +52 -0
- package/dist/enums/error-codes.js.map +1 -0
- package/dist/enums/role.enum.d.ts +5 -0
- package/dist/enums/role.enum.d.ts.map +1 -0
- package/dist/enums/role.enum.js +9 -0
- package/dist/enums/role.enum.js.map +1 -0
- package/dist/filter/exception/api.exception.d.ts +77 -0
- package/dist/filter/exception/api.exception.d.ts.map +1 -0
- package/dist/filter/exception/api.exception.js +151 -0
- package/dist/filter/exception/api.exception.js.map +1 -0
- package/dist/filter/exception/exception.d.ts +8 -0
- package/dist/filter/exception/exception.d.ts.map +1 -0
- package/dist/filter/exception/exception.js +50 -0
- package/dist/filter/exception/exception.js.map +1 -0
- package/dist/filter/exception/http.exception.d.ts +11 -0
- package/dist/filter/exception/http.exception.d.ts.map +1 -0
- package/dist/filter/exception/http.exception.js +152 -0
- package/dist/filter/exception/http.exception.js.map +1 -0
- package/dist/guards/api-key.guard.d.ts +42 -0
- package/dist/guards/api-key.guard.d.ts.map +1 -0
- package/dist/guards/api-key.guard.js +159 -0
- package/dist/guards/api-key.guard.js.map +1 -0
- package/dist/guards/auth.guard.d.ts +39 -0
- package/dist/guards/auth.guard.d.ts.map +1 -0
- package/dist/guards/auth.guard.js +178 -0
- package/dist/guards/auth.guard.js.map +1 -0
- package/dist/guards/data-visibility.guard.d.ts +18 -0
- package/dist/guards/data-visibility.guard.d.ts.map +1 -0
- package/dist/guards/data-visibility.guard.js +84 -0
- package/dist/guards/data-visibility.guard.js.map +1 -0
- package/dist/guards/index.d.ts +7 -0
- package/dist/guards/index.d.ts.map +1 -0
- package/dist/guards/index.js +23 -0
- package/dist/guards/index.js.map +1 -0
- package/dist/guards/permission.guard.d.ts +20 -0
- package/dist/guards/permission.guard.d.ts.map +1 -0
- package/dist/guards/permission.guard.js +141 -0
- package/dist/guards/permission.guard.js.map +1 -0
- package/dist/guards/tenant-context.guard.d.ts +12 -0
- package/dist/guards/tenant-context.guard.d.ts.map +1 -0
- package/dist/guards/tenant-context.guard.js +94 -0
- package/dist/guards/tenant-context.guard.js.map +1 -0
- package/dist/guards/version.guard.d.ts +100 -0
- package/dist/guards/version.guard.d.ts.map +1 -0
- package/dist/guards/version.guard.js +233 -0
- package/dist/guards/version.guard.js.map +1 -0
- package/dist/index.d.ts +60 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +85 -0
- package/dist/index.js.map +1 -0
- package/dist/interceptor/audit/audit-log.interceptor.d.ts +16 -0
- package/dist/interceptor/audit/audit-log.interceptor.d.ts.map +1 -0
- package/dist/interceptor/audit/audit-log.interceptor.js +156 -0
- package/dist/interceptor/audit/audit-log.interceptor.js.map +1 -0
- package/dist/interceptor/audit/index.d.ts +2 -0
- package/dist/interceptor/audit/index.d.ts.map +1 -0
- package/dist/interceptor/audit/index.js +18 -0
- package/dist/interceptor/audit/index.js.map +1 -0
- package/dist/interceptor/mask/index.d.ts +2 -0
- package/dist/interceptor/mask/index.d.ts.map +1 -0
- package/dist/interceptor/mask/index.js +18 -0
- package/dist/interceptor/mask/index.js.map +1 -0
- package/dist/interceptor/mask/mask.interceptor.d.ts +79 -0
- package/dist/interceptor/mask/mask.interceptor.d.ts.map +1 -0
- package/dist/interceptor/mask/mask.interceptor.js +197 -0
- package/dist/interceptor/mask/mask.interceptor.js.map +1 -0
- package/dist/interceptor/rate-limit/no-rate-limit.interceptor.d.ts +6 -0
- package/dist/interceptor/rate-limit/no-rate-limit.interceptor.d.ts.map +1 -0
- package/dist/interceptor/rate-limit/no-rate-limit.interceptor.js +20 -0
- package/dist/interceptor/rate-limit/no-rate-limit.interceptor.js.map +1 -0
- package/dist/interceptor/rate-limit/rate-limit.interceptor.d.ts +45 -0
- package/dist/interceptor/rate-limit/rate-limit.interceptor.d.ts.map +1 -0
- package/dist/interceptor/rate-limit/rate-limit.interceptor.js +193 -0
- package/dist/interceptor/rate-limit/rate-limit.interceptor.js.map +1 -0
- package/dist/interceptor/transform/transform.interceptor.d.ts +37 -0
- package/dist/interceptor/transform/transform.interceptor.d.ts.map +1 -0
- package/dist/interceptor/transform/transform.interceptor.js +72 -0
- package/dist/interceptor/transform/transform.interceptor.js.map +1 -0
- package/dist/interceptor/transform/transform.interceptor.spec.d.ts +2 -0
- package/dist/interceptor/transform/transform.interceptor.spec.d.ts.map +1 -0
- package/dist/interceptor/transform/transform.interceptor.spec.js +9 -0
- package/dist/interceptor/transform/transform.interceptor.spec.js.map +1 -0
- package/dist/interceptor/version/index.d.ts +2 -0
- package/dist/interceptor/version/index.d.ts.map +1 -0
- package/dist/interceptor/version/index.js +18 -0
- package/dist/interceptor/version/index.js.map +1 -0
- package/dist/interceptor/version/version-header.interceptor.d.ts +31 -0
- package/dist/interceptor/version/version-header.interceptor.d.ts.map +1 -0
- package/dist/interceptor/version/version-header.interceptor.js +62 -0
- package/dist/interceptor/version/version-header.interceptor.js.map +1 -0
- package/dist/middleware/request.middleware.d.ts +27 -0
- package/dist/middleware/request.middleware.d.ts.map +1 -0
- package/dist/middleware/request.middleware.js +141 -0
- package/dist/middleware/request.middleware.js.map +1 -0
- package/dist/middleware/tenant-isolation.middleware.d.ts +12 -0
- package/dist/middleware/tenant-isolation.middleware.d.ts.map +1 -0
- package/dist/middleware/tenant-isolation.middleware.js +51 -0
- package/dist/middleware/tenant-isolation.middleware.js.map +1 -0
- package/dist/pipes/transform-root.pipe.d.ts +5 -0
- package/dist/pipes/transform-root.pipe.d.ts.map +1 -0
- package/dist/pipes/transform-root.pipe.js +24 -0
- package/dist/pipes/transform-root.pipe.js.map +1 -0
- package/dist/ts-rest/index.d.ts +36 -0
- package/dist/ts-rest/index.d.ts.map +1 -0
- package/dist/ts-rest/index.js +65 -0
- package/dist/ts-rest/index.js.map +1 -0
- package/dist/ts-rest/response.helper.d.ts +261 -0
- package/dist/ts-rest/response.helper.d.ts.map +1 -0
- package/dist/ts-rest/response.helper.js +372 -0
- package/dist/ts-rest/response.helper.js.map +1 -0
- package/dist/utils/audit-log-helper.util.d.ts +41 -0
- package/dist/utils/audit-log-helper.util.d.ts.map +1 -0
- package/dist/utils/audit-log-helper.util.js +115 -0
- package/dist/utils/audit-log-helper.util.js.map +1 -0
- package/dist/utils/audit-signature.util.d.ts +64 -0
- package/dist/utils/audit-signature.util.d.ts.map +1 -0
- package/dist/utils/audit-signature.util.js +155 -0
- package/dist/utils/audit-signature.util.js.map +1 -0
- package/dist/utils/prisma-error.util.d.ts +160 -0
- package/dist/utils/prisma-error.util.d.ts.map +1 -0
- package/dist/utils/prisma-error.util.js +342 -0
- package/dist/utils/prisma-error.util.js.map +1 -0
- package/package.json +54 -0
|
@@ -0,0 +1,765 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* YAML Configuration Validation Schema
|
|
3
|
+
*
|
|
4
|
+
* Validates the YAML configuration file (config.local.yaml) using Zod.
|
|
5
|
+
* Ensures all required application settings are correctly configured.
|
|
6
|
+
*/
|
|
7
|
+
import { z } from 'zod';
|
|
8
|
+
/**
|
|
9
|
+
* Microservice configuration schema
|
|
10
|
+
*/
|
|
11
|
+
export declare const microServiceSchema: z.ZodObject<{
|
|
12
|
+
name: z.ZodString;
|
|
13
|
+
ChineseName: z.ZodOptional<z.ZodString>;
|
|
14
|
+
version: z.ZodOptional<z.ZodString>;
|
|
15
|
+
port: z.ZodOptional<z.ZodNumber>;
|
|
16
|
+
logger: z.ZodDefault<z.ZodBoolean>;
|
|
17
|
+
transport: z.ZodDefault<z.ZodEnum<{
|
|
18
|
+
TCP: "TCP";
|
|
19
|
+
UDP: "UDP";
|
|
20
|
+
HTTP: "HTTP";
|
|
21
|
+
}>>;
|
|
22
|
+
host: z.ZodOptional<z.ZodString>;
|
|
23
|
+
}, z.core.$strip>;
|
|
24
|
+
/**
|
|
25
|
+
* Zone configuration schema
|
|
26
|
+
*/
|
|
27
|
+
export declare const zoneSchema: z.ZodObject<{
|
|
28
|
+
zone: z.ZodString;
|
|
29
|
+
locale: z.ZodEnum<{
|
|
30
|
+
"zh-CN": "zh-CN";
|
|
31
|
+
en: "en";
|
|
32
|
+
}>;
|
|
33
|
+
defaultPrivateBucket: z.ZodString;
|
|
34
|
+
defaultPublicBucket: z.ZodString;
|
|
35
|
+
transcodeBucket: z.ZodString;
|
|
36
|
+
}, z.core.$strip>;
|
|
37
|
+
/**
|
|
38
|
+
* App configuration schema
|
|
39
|
+
*/
|
|
40
|
+
export declare const appConfigSchema: z.ZodObject<{
|
|
41
|
+
name: z.ZodString;
|
|
42
|
+
ChineseName: z.ZodOptional<z.ZodString>;
|
|
43
|
+
version: z.ZodOptional<z.ZodString>;
|
|
44
|
+
port: z.ZodOptional<z.ZodNumber>;
|
|
45
|
+
logger: z.ZodDefault<z.ZodBoolean>;
|
|
46
|
+
transport: z.ZodDefault<z.ZodEnum<{
|
|
47
|
+
TCP: "TCP";
|
|
48
|
+
UDP: "UDP";
|
|
49
|
+
HTTP: "HTTP";
|
|
50
|
+
}>>;
|
|
51
|
+
host: z.ZodOptional<z.ZodString>;
|
|
52
|
+
domain: z.ZodString;
|
|
53
|
+
MaxPageSize: z.ZodDefault<z.ZodNumber>;
|
|
54
|
+
defaultPageSize: z.ZodDefault<z.ZodNumber>;
|
|
55
|
+
defaultMiniPageSize: z.ZodDefault<z.ZodNumber>;
|
|
56
|
+
canCreateTrail: z.ZodDefault<z.ZodBoolean>;
|
|
57
|
+
defaultVendor: z.ZodDefault<z.ZodEnum<{
|
|
58
|
+
tos: "tos";
|
|
59
|
+
oss: "oss";
|
|
60
|
+
us3: "us3";
|
|
61
|
+
qiniu: "qiniu";
|
|
62
|
+
gcs: "gcs";
|
|
63
|
+
s3: "s3";
|
|
64
|
+
}>>;
|
|
65
|
+
defaultBucketPublic: z.ZodDefault<z.ZodBoolean>;
|
|
66
|
+
enableRetryMechanism: z.ZodDefault<z.ZodBoolean>;
|
|
67
|
+
enableEnhancedLogging: z.ZodDefault<z.ZodBoolean>;
|
|
68
|
+
maxRetries: z.ZodDefault<z.ZodNumber>;
|
|
69
|
+
baseRetryDelay: z.ZodDefault<z.ZodNumber>;
|
|
70
|
+
nestLogOutput: z.ZodDefault<z.ZodEnum<{
|
|
71
|
+
console: "console";
|
|
72
|
+
file: "file";
|
|
73
|
+
both: "both";
|
|
74
|
+
}>>;
|
|
75
|
+
audioTranscribe: z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
|
76
|
+
statusUpdateMode: z.ZodDefault<z.ZodEnum<{
|
|
77
|
+
webhook: "webhook";
|
|
78
|
+
polling: "polling";
|
|
79
|
+
}>>;
|
|
80
|
+
pollingInterval: z.ZodDefault<z.ZodNumber>;
|
|
81
|
+
}, z.core.$strip>>>;
|
|
82
|
+
admin: z.ZodOptional<z.ZodObject<{
|
|
83
|
+
name: z.ZodString;
|
|
84
|
+
ChineseName: z.ZodOptional<z.ZodString>;
|
|
85
|
+
version: z.ZodOptional<z.ZodString>;
|
|
86
|
+
port: z.ZodOptional<z.ZodNumber>;
|
|
87
|
+
logger: z.ZodDefault<z.ZodBoolean>;
|
|
88
|
+
transport: z.ZodDefault<z.ZodEnum<{
|
|
89
|
+
TCP: "TCP";
|
|
90
|
+
UDP: "UDP";
|
|
91
|
+
HTTP: "HTTP";
|
|
92
|
+
}>>;
|
|
93
|
+
host: z.ZodOptional<z.ZodString>;
|
|
94
|
+
}, z.core.$strip>>;
|
|
95
|
+
zones: z.ZodArray<z.ZodObject<{
|
|
96
|
+
zone: z.ZodString;
|
|
97
|
+
locale: z.ZodEnum<{
|
|
98
|
+
"zh-CN": "zh-CN";
|
|
99
|
+
en: "en";
|
|
100
|
+
}>;
|
|
101
|
+
defaultPrivateBucket: z.ZodString;
|
|
102
|
+
defaultPublicBucket: z.ZodString;
|
|
103
|
+
transcodeBucket: z.ZodString;
|
|
104
|
+
}, z.core.$strip>>;
|
|
105
|
+
}, z.core.$strip>;
|
|
106
|
+
/**
|
|
107
|
+
* Upload configuration schema
|
|
108
|
+
*/
|
|
109
|
+
export declare const uploadConfigSchema: z.ZodObject<{
|
|
110
|
+
chrunkSize: z.ZodDefault<z.ZodNumber>;
|
|
111
|
+
}, z.core.$strip>;
|
|
112
|
+
/**
|
|
113
|
+
* IP info configuration schema
|
|
114
|
+
* Note: ipinfo 配置存储在 keys/config.json,在 initConfig 时合并到 yaml config
|
|
115
|
+
*/
|
|
116
|
+
export declare const ipInfoConfigSchema: z.ZodObject<{
|
|
117
|
+
url: z.ZodString;
|
|
118
|
+
token: z.ZodString;
|
|
119
|
+
}, z.core.$strip>;
|
|
120
|
+
/**
|
|
121
|
+
* Video quality enum values
|
|
122
|
+
*/
|
|
123
|
+
export declare const videoQualitySchema: z.ZodEnum<{
|
|
124
|
+
VIDEO_360P: "VIDEO_360P";
|
|
125
|
+
VIDEO_720P: "VIDEO_720P";
|
|
126
|
+
VIDEO_1080P: "VIDEO_1080P";
|
|
127
|
+
VIDEO_4K: "VIDEO_4K";
|
|
128
|
+
VIDEO_ORIGIN: "VIDEO_ORIGIN";
|
|
129
|
+
}>;
|
|
130
|
+
/**
|
|
131
|
+
* JWT configuration schema
|
|
132
|
+
*/
|
|
133
|
+
export declare const jwtConfigSchema: z.ZodObject<{
|
|
134
|
+
secret: z.ZodString;
|
|
135
|
+
expireIn: z.ZodNumber;
|
|
136
|
+
}, z.core.$strip>;
|
|
137
|
+
/**
|
|
138
|
+
* Crypto configuration schema
|
|
139
|
+
*/
|
|
140
|
+
export declare const cryptoConfigSchema: z.ZodObject<{
|
|
141
|
+
key: z.ZodString;
|
|
142
|
+
iv: z.ZodString;
|
|
143
|
+
}, z.core.$strip>;
|
|
144
|
+
/**
|
|
145
|
+
* CDN zone configuration schema
|
|
146
|
+
*/
|
|
147
|
+
export declare const cdnZoneSchema: z.ZodObject<{
|
|
148
|
+
url: z.ZodString;
|
|
149
|
+
downloaderUrl: z.ZodString;
|
|
150
|
+
vodUrl: z.ZodString;
|
|
151
|
+
thumbTemplate: z.ZodOptional<z.ZodString>;
|
|
152
|
+
}, z.core.$strip>;
|
|
153
|
+
/**
|
|
154
|
+
* CDN configuration schema
|
|
155
|
+
*/
|
|
156
|
+
export declare const cdnConfigSchema: z.ZodObject<{
|
|
157
|
+
cn: z.ZodOptional<z.ZodObject<{
|
|
158
|
+
url: z.ZodString;
|
|
159
|
+
downloaderUrl: z.ZodString;
|
|
160
|
+
vodUrl: z.ZodString;
|
|
161
|
+
thumbTemplate: z.ZodOptional<z.ZodString>;
|
|
162
|
+
}, z.core.$strip>>;
|
|
163
|
+
us: z.ZodOptional<z.ZodObject<{
|
|
164
|
+
url: z.ZodString;
|
|
165
|
+
downloaderUrl: z.ZodString;
|
|
166
|
+
vodUrl: z.ZodString;
|
|
167
|
+
thumbTemplate: z.ZodOptional<z.ZodString>;
|
|
168
|
+
}, z.core.$strip>>;
|
|
169
|
+
ap: z.ZodOptional<z.ZodObject<{
|
|
170
|
+
url: z.ZodString;
|
|
171
|
+
downloaderUrl: z.ZodString;
|
|
172
|
+
vodUrl: z.ZodString;
|
|
173
|
+
thumbTemplate: z.ZodOptional<z.ZodString>;
|
|
174
|
+
}, z.core.$strip>>;
|
|
175
|
+
}, z.core.$strip>;
|
|
176
|
+
/**
|
|
177
|
+
* Redis cache key configuration schema
|
|
178
|
+
*/
|
|
179
|
+
export declare const redisCacheKeySchema: z.ZodObject<{
|
|
180
|
+
name: z.ZodString;
|
|
181
|
+
key: z.ZodString;
|
|
182
|
+
expireIn: z.ZodOptional<z.ZodNumber>;
|
|
183
|
+
}, z.core.$strip>;
|
|
184
|
+
/**
|
|
185
|
+
* Path configuration schema
|
|
186
|
+
*/
|
|
187
|
+
export declare const pathConfigSchema: z.ZodObject<{
|
|
188
|
+
post: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
189
|
+
get: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
190
|
+
}, z.core.$strip>;
|
|
191
|
+
/**
|
|
192
|
+
* Permission configuration schema
|
|
193
|
+
*/
|
|
194
|
+
export declare const rolePermissionSchema: z.ZodObject<{
|
|
195
|
+
role: z.ZodString;
|
|
196
|
+
permission: z.ZodArray<z.ZodString>;
|
|
197
|
+
}, z.core.$strip>;
|
|
198
|
+
/**
|
|
199
|
+
* Bucket configuration schema
|
|
200
|
+
*/
|
|
201
|
+
export declare const bucketConfigSchema: z.ZodObject<{
|
|
202
|
+
bucket: z.ZodString;
|
|
203
|
+
region: z.ZodString;
|
|
204
|
+
zone: z.ZodString;
|
|
205
|
+
endpoint: z.ZodString;
|
|
206
|
+
internalEndpoint: z.ZodString;
|
|
207
|
+
domain: z.ZodString;
|
|
208
|
+
vendor: z.ZodEnum<{
|
|
209
|
+
tos: "tos";
|
|
210
|
+
oss: "oss";
|
|
211
|
+
us3: "us3";
|
|
212
|
+
qiniu: "qiniu";
|
|
213
|
+
gcs: "gcs";
|
|
214
|
+
s3: "s3";
|
|
215
|
+
}>;
|
|
216
|
+
webhook: z.ZodOptional<z.ZodString>;
|
|
217
|
+
locale: z.ZodOptional<z.ZodString>;
|
|
218
|
+
isPublic: z.ZodDefault<z.ZodBoolean>;
|
|
219
|
+
isDefault: z.ZodDefault<z.ZodBoolean>;
|
|
220
|
+
tosEndpoint: z.ZodOptional<z.ZodString>;
|
|
221
|
+
tosInternalEndpoint: z.ZodOptional<z.ZodString>;
|
|
222
|
+
}, z.core.$strip>;
|
|
223
|
+
/**
|
|
224
|
+
* Feature flag provider type
|
|
225
|
+
*/
|
|
226
|
+
export declare const featureFlagProviderSchema: z.ZodEnum<{
|
|
227
|
+
memory: "memory";
|
|
228
|
+
redis: "redis";
|
|
229
|
+
unleash: "unleash";
|
|
230
|
+
}>;
|
|
231
|
+
/**
|
|
232
|
+
* Redis feature flag configuration schema
|
|
233
|
+
*/
|
|
234
|
+
export declare const featureFlagRedisConfigSchema: z.ZodObject<{
|
|
235
|
+
keyPrefix: z.ZodDefault<z.ZodString>;
|
|
236
|
+
defaultTTL: z.ZodDefault<z.ZodNumber>;
|
|
237
|
+
}, z.core.$strip>;
|
|
238
|
+
/**
|
|
239
|
+
* Unleash configuration schema
|
|
240
|
+
*/
|
|
241
|
+
export declare const unleashConfigSchema: z.ZodObject<{
|
|
242
|
+
url: z.ZodString;
|
|
243
|
+
appName: z.ZodString;
|
|
244
|
+
instanceId: z.ZodOptional<z.ZodString>;
|
|
245
|
+
environment: z.ZodOptional<z.ZodString>;
|
|
246
|
+
refreshInterval: z.ZodDefault<z.ZodNumber>;
|
|
247
|
+
metricsInterval: z.ZodDefault<z.ZodNumber>;
|
|
248
|
+
customHeaders: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
249
|
+
}, z.core.$strip>;
|
|
250
|
+
/**
|
|
251
|
+
* Feature flags configuration schema
|
|
252
|
+
*/
|
|
253
|
+
export declare const featureFlagsConfigSchema: z.ZodObject<{
|
|
254
|
+
provider: z.ZodDefault<z.ZodEnum<{
|
|
255
|
+
memory: "memory";
|
|
256
|
+
redis: "redis";
|
|
257
|
+
unleash: "unleash";
|
|
258
|
+
}>>;
|
|
259
|
+
redis: z.ZodOptional<z.ZodObject<{
|
|
260
|
+
keyPrefix: z.ZodDefault<z.ZodString>;
|
|
261
|
+
defaultTTL: z.ZodDefault<z.ZodNumber>;
|
|
262
|
+
}, z.core.$strip>>;
|
|
263
|
+
unleash: z.ZodOptional<z.ZodObject<{
|
|
264
|
+
url: z.ZodString;
|
|
265
|
+
appName: z.ZodString;
|
|
266
|
+
instanceId: z.ZodOptional<z.ZodString>;
|
|
267
|
+
environment: z.ZodOptional<z.ZodString>;
|
|
268
|
+
refreshInterval: z.ZodDefault<z.ZodNumber>;
|
|
269
|
+
metricsInterval: z.ZodDefault<z.ZodNumber>;
|
|
270
|
+
customHeaders: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
271
|
+
}, z.core.$strip>>;
|
|
272
|
+
defaultFlags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
|
|
273
|
+
}, z.core.$strip>;
|
|
274
|
+
/**
|
|
275
|
+
* Slow query thresholds configuration schema
|
|
276
|
+
* 慢查询阈值配置
|
|
277
|
+
*/
|
|
278
|
+
export declare const slowQueryThresholdsSchema: z.ZodObject<{
|
|
279
|
+
info: z.ZodDefault<z.ZodNumber>;
|
|
280
|
+
warn: z.ZodDefault<z.ZodNumber>;
|
|
281
|
+
error: z.ZodDefault<z.ZodNumber>;
|
|
282
|
+
}, z.core.$strip>;
|
|
283
|
+
/**
|
|
284
|
+
* Database metrics configuration schema
|
|
285
|
+
* 数据库监控配置
|
|
286
|
+
*/
|
|
287
|
+
export declare const dbMetricsConfigSchema: z.ZodObject<{
|
|
288
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
289
|
+
slowQueryThresholds: z.ZodDefault<z.ZodObject<{
|
|
290
|
+
info: z.ZodDefault<z.ZodNumber>;
|
|
291
|
+
warn: z.ZodDefault<z.ZodNumber>;
|
|
292
|
+
error: z.ZodDefault<z.ZodNumber>;
|
|
293
|
+
}, z.core.$strip>>;
|
|
294
|
+
logQueryParams: z.ZodDefault<z.ZodBoolean>;
|
|
295
|
+
logQueryResult: z.ZodDefault<z.ZodBoolean>;
|
|
296
|
+
maxParamLogLength: z.ZodDefault<z.ZodNumber>;
|
|
297
|
+
}, z.core.$strip>;
|
|
298
|
+
/**
|
|
299
|
+
* Transaction retry configuration schema
|
|
300
|
+
* 事务重试配置
|
|
301
|
+
*/
|
|
302
|
+
export declare const transactionRetryConfigSchema: z.ZodObject<{
|
|
303
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
304
|
+
maxRetries: z.ZodDefault<z.ZodNumber>;
|
|
305
|
+
baseDelay: z.ZodDefault<z.ZodNumber>;
|
|
306
|
+
backoffMultiplier: z.ZodDefault<z.ZodNumber>;
|
|
307
|
+
maxDelay: z.ZodDefault<z.ZodNumber>;
|
|
308
|
+
}, z.core.$strip>;
|
|
309
|
+
/**
|
|
310
|
+
* Transaction configuration schema
|
|
311
|
+
* 事务配置
|
|
312
|
+
*/
|
|
313
|
+
export declare const transactionConfigSchema: z.ZodObject<{
|
|
314
|
+
retry: z.ZodDefault<z.ZodObject<{
|
|
315
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
316
|
+
maxRetries: z.ZodDefault<z.ZodNumber>;
|
|
317
|
+
baseDelay: z.ZodDefault<z.ZodNumber>;
|
|
318
|
+
backoffMultiplier: z.ZodDefault<z.ZodNumber>;
|
|
319
|
+
maxDelay: z.ZodDefault<z.ZodNumber>;
|
|
320
|
+
}, z.core.$strip>>;
|
|
321
|
+
defaultMaxWait: z.ZodDefault<z.ZodNumber>;
|
|
322
|
+
defaultTimeout: z.ZodDefault<z.ZodNumber>;
|
|
323
|
+
}, z.core.$strip>;
|
|
324
|
+
/**
|
|
325
|
+
* Model routing evasion duration configuration schema
|
|
326
|
+
* 模型路由避让时长配置
|
|
327
|
+
*/
|
|
328
|
+
export declare const evasionDurationsConfigSchema: z.ZodObject<{
|
|
329
|
+
rateLimit: z.ZodDefault<z.ZodNumber>;
|
|
330
|
+
serviceUnavailable: z.ZodDefault<z.ZodNumber>;
|
|
331
|
+
serverError: z.ZodDefault<z.ZodNumber>;
|
|
332
|
+
timeout: z.ZodDefault<z.ZodNumber>;
|
|
333
|
+
authError: z.ZodDefault<z.ZodNumber>;
|
|
334
|
+
unknown: z.ZodDefault<z.ZodNumber>;
|
|
335
|
+
}, z.core.$strip>;
|
|
336
|
+
/**
|
|
337
|
+
* Model routing evasion configuration schema
|
|
338
|
+
* 模型路由避让配置
|
|
339
|
+
*/
|
|
340
|
+
export declare const evasionConfigSchema: z.ZodObject<{
|
|
341
|
+
durations: z.ZodDefault<z.ZodObject<{
|
|
342
|
+
rateLimit: z.ZodDefault<z.ZodNumber>;
|
|
343
|
+
serviceUnavailable: z.ZodDefault<z.ZodNumber>;
|
|
344
|
+
serverError: z.ZodDefault<z.ZodNumber>;
|
|
345
|
+
timeout: z.ZodDefault<z.ZodNumber>;
|
|
346
|
+
authError: z.ZodDefault<z.ZodNumber>;
|
|
347
|
+
unknown: z.ZodDefault<z.ZodNumber>;
|
|
348
|
+
}, z.core.$strip>>;
|
|
349
|
+
cleanupInterval: z.ZodDefault<z.ZodNumber>;
|
|
350
|
+
maxInactiveTime: z.ZodDefault<z.ZodNumber>;
|
|
351
|
+
priorityWeight: z.ZodDefault<z.ZodNumber>;
|
|
352
|
+
healthWeight: z.ZodDefault<z.ZodNumber>;
|
|
353
|
+
maxCrossAliasAttempts: z.ZodDefault<z.ZodNumber>;
|
|
354
|
+
}, z.core.$strip>;
|
|
355
|
+
/**
|
|
356
|
+
* Rate limit dimension type
|
|
357
|
+
*/
|
|
358
|
+
export declare const rateLimitDimensionSchema: z.ZodEnum<{
|
|
359
|
+
ip: "ip";
|
|
360
|
+
userId: "userId";
|
|
361
|
+
tenantId: "tenantId";
|
|
362
|
+
apiKey: "apiKey";
|
|
363
|
+
composite: "composite";
|
|
364
|
+
}>;
|
|
365
|
+
/**
|
|
366
|
+
* Rate limit dimension config schema (limit + window)
|
|
367
|
+
*/
|
|
368
|
+
export declare const rateLimitDimensionConfigSchema: z.ZodObject<{
|
|
369
|
+
limit: z.ZodNumber;
|
|
370
|
+
window: z.ZodNumber;
|
|
371
|
+
}, z.core.$strip>;
|
|
372
|
+
/**
|
|
373
|
+
* Rate limit whitelist configuration schema
|
|
374
|
+
*/
|
|
375
|
+
export declare const rateLimitWhitelistSchema: z.ZodObject<{
|
|
376
|
+
ips: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
377
|
+
userIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
378
|
+
apiKeys: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
379
|
+
}, z.core.$strip>;
|
|
380
|
+
/**
|
|
381
|
+
* Rate limit Redis configuration schema
|
|
382
|
+
*/
|
|
383
|
+
export declare const rateLimitRedisConfigSchema: z.ZodObject<{
|
|
384
|
+
keyPrefix: z.ZodDefault<z.ZodString>;
|
|
385
|
+
}, z.core.$strip>;
|
|
386
|
+
/**
|
|
387
|
+
* Rate limit dimensions configuration schema
|
|
388
|
+
*/
|
|
389
|
+
export declare const rateLimitDimensionsSchema: z.ZodObject<{
|
|
390
|
+
ip: z.ZodDefault<z.ZodObject<{
|
|
391
|
+
limit: z.ZodNumber;
|
|
392
|
+
window: z.ZodNumber;
|
|
393
|
+
}, z.core.$strip>>;
|
|
394
|
+
userId: z.ZodDefault<z.ZodObject<{
|
|
395
|
+
limit: z.ZodNumber;
|
|
396
|
+
window: z.ZodNumber;
|
|
397
|
+
}, z.core.$strip>>;
|
|
398
|
+
tenantId: z.ZodDefault<z.ZodObject<{
|
|
399
|
+
limit: z.ZodNumber;
|
|
400
|
+
window: z.ZodNumber;
|
|
401
|
+
}, z.core.$strip>>;
|
|
402
|
+
apiKey: z.ZodDefault<z.ZodObject<{
|
|
403
|
+
limit: z.ZodNumber;
|
|
404
|
+
window: z.ZodNumber;
|
|
405
|
+
}, z.core.$strip>>;
|
|
406
|
+
}, z.core.$strip>;
|
|
407
|
+
/**
|
|
408
|
+
* Rate limit configuration schema
|
|
409
|
+
*/
|
|
410
|
+
export declare const rateLimitConfigSchema: z.ZodObject<{
|
|
411
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
412
|
+
featureFlag: z.ZodOptional<z.ZodString>;
|
|
413
|
+
default: z.ZodDefault<z.ZodObject<{
|
|
414
|
+
limit: z.ZodNumber;
|
|
415
|
+
window: z.ZodNumber;
|
|
416
|
+
}, z.core.$strip>>;
|
|
417
|
+
dimensions: z.ZodOptional<z.ZodObject<{
|
|
418
|
+
ip: z.ZodDefault<z.ZodObject<{
|
|
419
|
+
limit: z.ZodNumber;
|
|
420
|
+
window: z.ZodNumber;
|
|
421
|
+
}, z.core.$strip>>;
|
|
422
|
+
userId: z.ZodDefault<z.ZodObject<{
|
|
423
|
+
limit: z.ZodNumber;
|
|
424
|
+
window: z.ZodNumber;
|
|
425
|
+
}, z.core.$strip>>;
|
|
426
|
+
tenantId: z.ZodDefault<z.ZodObject<{
|
|
427
|
+
limit: z.ZodNumber;
|
|
428
|
+
window: z.ZodNumber;
|
|
429
|
+
}, z.core.$strip>>;
|
|
430
|
+
apiKey: z.ZodDefault<z.ZodObject<{
|
|
431
|
+
limit: z.ZodNumber;
|
|
432
|
+
window: z.ZodNumber;
|
|
433
|
+
}, z.core.$strip>>;
|
|
434
|
+
}, z.core.$strip>>;
|
|
435
|
+
redis: z.ZodOptional<z.ZodObject<{
|
|
436
|
+
keyPrefix: z.ZodDefault<z.ZodString>;
|
|
437
|
+
}, z.core.$strip>>;
|
|
438
|
+
whitelist: z.ZodOptional<z.ZodObject<{
|
|
439
|
+
ips: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
440
|
+
userIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
441
|
+
apiKeys: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
442
|
+
}, z.core.$strip>>;
|
|
443
|
+
}, z.core.$strip>;
|
|
444
|
+
/**
|
|
445
|
+
* Full YAML configuration schema
|
|
446
|
+
*/
|
|
447
|
+
export declare const yamlConfigSchema: z.ZodObject<{
|
|
448
|
+
app: z.ZodObject<{
|
|
449
|
+
name: z.ZodString;
|
|
450
|
+
ChineseName: z.ZodOptional<z.ZodString>;
|
|
451
|
+
version: z.ZodOptional<z.ZodString>;
|
|
452
|
+
port: z.ZodOptional<z.ZodNumber>;
|
|
453
|
+
logger: z.ZodDefault<z.ZodBoolean>;
|
|
454
|
+
transport: z.ZodDefault<z.ZodEnum<{
|
|
455
|
+
TCP: "TCP";
|
|
456
|
+
UDP: "UDP";
|
|
457
|
+
HTTP: "HTTP";
|
|
458
|
+
}>>;
|
|
459
|
+
host: z.ZodOptional<z.ZodString>;
|
|
460
|
+
domain: z.ZodString;
|
|
461
|
+
MaxPageSize: z.ZodDefault<z.ZodNumber>;
|
|
462
|
+
defaultPageSize: z.ZodDefault<z.ZodNumber>;
|
|
463
|
+
defaultMiniPageSize: z.ZodDefault<z.ZodNumber>;
|
|
464
|
+
canCreateTrail: z.ZodDefault<z.ZodBoolean>;
|
|
465
|
+
defaultVendor: z.ZodDefault<z.ZodEnum<{
|
|
466
|
+
tos: "tos";
|
|
467
|
+
oss: "oss";
|
|
468
|
+
us3: "us3";
|
|
469
|
+
qiniu: "qiniu";
|
|
470
|
+
gcs: "gcs";
|
|
471
|
+
s3: "s3";
|
|
472
|
+
}>>;
|
|
473
|
+
defaultBucketPublic: z.ZodDefault<z.ZodBoolean>;
|
|
474
|
+
enableRetryMechanism: z.ZodDefault<z.ZodBoolean>;
|
|
475
|
+
enableEnhancedLogging: z.ZodDefault<z.ZodBoolean>;
|
|
476
|
+
maxRetries: z.ZodDefault<z.ZodNumber>;
|
|
477
|
+
baseRetryDelay: z.ZodDefault<z.ZodNumber>;
|
|
478
|
+
nestLogOutput: z.ZodDefault<z.ZodEnum<{
|
|
479
|
+
console: "console";
|
|
480
|
+
file: "file";
|
|
481
|
+
both: "both";
|
|
482
|
+
}>>;
|
|
483
|
+
audioTranscribe: z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
|
484
|
+
statusUpdateMode: z.ZodDefault<z.ZodEnum<{
|
|
485
|
+
webhook: "webhook";
|
|
486
|
+
polling: "polling";
|
|
487
|
+
}>>;
|
|
488
|
+
pollingInterval: z.ZodDefault<z.ZodNumber>;
|
|
489
|
+
}, z.core.$strip>>>;
|
|
490
|
+
admin: z.ZodOptional<z.ZodObject<{
|
|
491
|
+
name: z.ZodString;
|
|
492
|
+
ChineseName: z.ZodOptional<z.ZodString>;
|
|
493
|
+
version: z.ZodOptional<z.ZodString>;
|
|
494
|
+
port: z.ZodOptional<z.ZodNumber>;
|
|
495
|
+
logger: z.ZodDefault<z.ZodBoolean>;
|
|
496
|
+
transport: z.ZodDefault<z.ZodEnum<{
|
|
497
|
+
TCP: "TCP";
|
|
498
|
+
UDP: "UDP";
|
|
499
|
+
HTTP: "HTTP";
|
|
500
|
+
}>>;
|
|
501
|
+
host: z.ZodOptional<z.ZodString>;
|
|
502
|
+
}, z.core.$strip>>;
|
|
503
|
+
zones: z.ZodArray<z.ZodObject<{
|
|
504
|
+
zone: z.ZodString;
|
|
505
|
+
locale: z.ZodEnum<{
|
|
506
|
+
"zh-CN": "zh-CN";
|
|
507
|
+
en: "en";
|
|
508
|
+
}>;
|
|
509
|
+
defaultPrivateBucket: z.ZodString;
|
|
510
|
+
defaultPublicBucket: z.ZodString;
|
|
511
|
+
transcodeBucket: z.ZodString;
|
|
512
|
+
}, z.core.$strip>>;
|
|
513
|
+
}, z.core.$strip>;
|
|
514
|
+
uploadConfig: z.ZodOptional<z.ZodObject<{
|
|
515
|
+
chrunkSize: z.ZodDefault<z.ZodNumber>;
|
|
516
|
+
}, z.core.$strip>>;
|
|
517
|
+
ipinfo: z.ZodOptional<z.ZodObject<{
|
|
518
|
+
url: z.ZodString;
|
|
519
|
+
token: z.ZodString;
|
|
520
|
+
}, z.core.$strip>>;
|
|
521
|
+
outOfAnonymityPath: z.ZodOptional<z.ZodObject<{
|
|
522
|
+
post: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
523
|
+
get: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
524
|
+
}, z.core.$strip>>;
|
|
525
|
+
outOfUserPath: z.ZodOptional<z.ZodObject<{
|
|
526
|
+
post: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
527
|
+
get: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
528
|
+
}, z.core.$strip>>;
|
|
529
|
+
pinecone: z.ZodOptional<z.ZodObject<{
|
|
530
|
+
apiKey: z.ZodString;
|
|
531
|
+
}, z.core.$strip>>;
|
|
532
|
+
jwt: z.ZodOptional<z.ZodObject<{
|
|
533
|
+
secret: z.ZodString;
|
|
534
|
+
expireIn: z.ZodNumber;
|
|
535
|
+
}, z.core.$strip>>;
|
|
536
|
+
crypto: z.ZodOptional<z.ZodObject<{
|
|
537
|
+
key: z.ZodString;
|
|
538
|
+
iv: z.ZodString;
|
|
539
|
+
}, z.core.$strip>>;
|
|
540
|
+
cdn: z.ZodOptional<z.ZodObject<{
|
|
541
|
+
cn: z.ZodOptional<z.ZodObject<{
|
|
542
|
+
url: z.ZodString;
|
|
543
|
+
downloaderUrl: z.ZodString;
|
|
544
|
+
vodUrl: z.ZodString;
|
|
545
|
+
thumbTemplate: z.ZodOptional<z.ZodString>;
|
|
546
|
+
}, z.core.$strip>>;
|
|
547
|
+
us: z.ZodOptional<z.ZodObject<{
|
|
548
|
+
url: z.ZodString;
|
|
549
|
+
downloaderUrl: z.ZodString;
|
|
550
|
+
vodUrl: z.ZodString;
|
|
551
|
+
thumbTemplate: z.ZodOptional<z.ZodString>;
|
|
552
|
+
}, z.core.$strip>>;
|
|
553
|
+
ap: z.ZodOptional<z.ZodObject<{
|
|
554
|
+
url: z.ZodString;
|
|
555
|
+
downloaderUrl: z.ZodString;
|
|
556
|
+
vodUrl: z.ZodString;
|
|
557
|
+
thumbTemplate: z.ZodOptional<z.ZodString>;
|
|
558
|
+
}, z.core.$strip>>;
|
|
559
|
+
}, z.core.$strip>>;
|
|
560
|
+
redis: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
561
|
+
name: z.ZodString;
|
|
562
|
+
key: z.ZodString;
|
|
563
|
+
expireIn: z.ZodOptional<z.ZodNumber>;
|
|
564
|
+
}, z.core.$strip>>>;
|
|
565
|
+
buckets: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
566
|
+
bucket: z.ZodString;
|
|
567
|
+
region: z.ZodString;
|
|
568
|
+
zone: z.ZodString;
|
|
569
|
+
endpoint: z.ZodString;
|
|
570
|
+
internalEndpoint: z.ZodString;
|
|
571
|
+
domain: z.ZodString;
|
|
572
|
+
vendor: z.ZodEnum<{
|
|
573
|
+
tos: "tos";
|
|
574
|
+
oss: "oss";
|
|
575
|
+
us3: "us3";
|
|
576
|
+
qiniu: "qiniu";
|
|
577
|
+
gcs: "gcs";
|
|
578
|
+
s3: "s3";
|
|
579
|
+
}>;
|
|
580
|
+
webhook: z.ZodOptional<z.ZodString>;
|
|
581
|
+
locale: z.ZodOptional<z.ZodString>;
|
|
582
|
+
isPublic: z.ZodDefault<z.ZodBoolean>;
|
|
583
|
+
isDefault: z.ZodDefault<z.ZodBoolean>;
|
|
584
|
+
tosEndpoint: z.ZodOptional<z.ZodString>;
|
|
585
|
+
tosInternalEndpoint: z.ZodOptional<z.ZodString>;
|
|
586
|
+
}, z.core.$strip>>>;
|
|
587
|
+
featureFlags: z.ZodOptional<z.ZodObject<{
|
|
588
|
+
provider: z.ZodDefault<z.ZodEnum<{
|
|
589
|
+
memory: "memory";
|
|
590
|
+
redis: "redis";
|
|
591
|
+
unleash: "unleash";
|
|
592
|
+
}>>;
|
|
593
|
+
redis: z.ZodOptional<z.ZodObject<{
|
|
594
|
+
keyPrefix: z.ZodDefault<z.ZodString>;
|
|
595
|
+
defaultTTL: z.ZodDefault<z.ZodNumber>;
|
|
596
|
+
}, z.core.$strip>>;
|
|
597
|
+
unleash: z.ZodOptional<z.ZodObject<{
|
|
598
|
+
url: z.ZodString;
|
|
599
|
+
appName: z.ZodString;
|
|
600
|
+
instanceId: z.ZodOptional<z.ZodString>;
|
|
601
|
+
environment: z.ZodOptional<z.ZodString>;
|
|
602
|
+
refreshInterval: z.ZodDefault<z.ZodNumber>;
|
|
603
|
+
metricsInterval: z.ZodDefault<z.ZodNumber>;
|
|
604
|
+
customHeaders: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
605
|
+
}, z.core.$strip>>;
|
|
606
|
+
defaultFlags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
|
|
607
|
+
}, z.core.$strip>>;
|
|
608
|
+
rateLimit: z.ZodOptional<z.ZodObject<{
|
|
609
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
610
|
+
featureFlag: z.ZodOptional<z.ZodString>;
|
|
611
|
+
default: z.ZodDefault<z.ZodObject<{
|
|
612
|
+
limit: z.ZodNumber;
|
|
613
|
+
window: z.ZodNumber;
|
|
614
|
+
}, z.core.$strip>>;
|
|
615
|
+
dimensions: z.ZodOptional<z.ZodObject<{
|
|
616
|
+
ip: z.ZodDefault<z.ZodObject<{
|
|
617
|
+
limit: z.ZodNumber;
|
|
618
|
+
window: z.ZodNumber;
|
|
619
|
+
}, z.core.$strip>>;
|
|
620
|
+
userId: z.ZodDefault<z.ZodObject<{
|
|
621
|
+
limit: z.ZodNumber;
|
|
622
|
+
window: z.ZodNumber;
|
|
623
|
+
}, z.core.$strip>>;
|
|
624
|
+
tenantId: z.ZodDefault<z.ZodObject<{
|
|
625
|
+
limit: z.ZodNumber;
|
|
626
|
+
window: z.ZodNumber;
|
|
627
|
+
}, z.core.$strip>>;
|
|
628
|
+
apiKey: z.ZodDefault<z.ZodObject<{
|
|
629
|
+
limit: z.ZodNumber;
|
|
630
|
+
window: z.ZodNumber;
|
|
631
|
+
}, z.core.$strip>>;
|
|
632
|
+
}, z.core.$strip>>;
|
|
633
|
+
redis: z.ZodOptional<z.ZodObject<{
|
|
634
|
+
keyPrefix: z.ZodDefault<z.ZodString>;
|
|
635
|
+
}, z.core.$strip>>;
|
|
636
|
+
whitelist: z.ZodOptional<z.ZodObject<{
|
|
637
|
+
ips: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
638
|
+
userIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
639
|
+
apiKeys: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
640
|
+
}, z.core.$strip>>;
|
|
641
|
+
}, z.core.$strip>>;
|
|
642
|
+
dbMetrics: z.ZodOptional<z.ZodObject<{
|
|
643
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
644
|
+
slowQueryThresholds: z.ZodDefault<z.ZodObject<{
|
|
645
|
+
info: z.ZodDefault<z.ZodNumber>;
|
|
646
|
+
warn: z.ZodDefault<z.ZodNumber>;
|
|
647
|
+
error: z.ZodDefault<z.ZodNumber>;
|
|
648
|
+
}, z.core.$strip>>;
|
|
649
|
+
logQueryParams: z.ZodDefault<z.ZodBoolean>;
|
|
650
|
+
logQueryResult: z.ZodDefault<z.ZodBoolean>;
|
|
651
|
+
maxParamLogLength: z.ZodDefault<z.ZodNumber>;
|
|
652
|
+
}, z.core.$strip>>;
|
|
653
|
+
transaction: z.ZodOptional<z.ZodObject<{
|
|
654
|
+
retry: z.ZodDefault<z.ZodObject<{
|
|
655
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
656
|
+
maxRetries: z.ZodDefault<z.ZodNumber>;
|
|
657
|
+
baseDelay: z.ZodDefault<z.ZodNumber>;
|
|
658
|
+
backoffMultiplier: z.ZodDefault<z.ZodNumber>;
|
|
659
|
+
maxDelay: z.ZodDefault<z.ZodNumber>;
|
|
660
|
+
}, z.core.$strip>>;
|
|
661
|
+
defaultMaxWait: z.ZodDefault<z.ZodNumber>;
|
|
662
|
+
defaultTimeout: z.ZodDefault<z.ZodNumber>;
|
|
663
|
+
}, z.core.$strip>>;
|
|
664
|
+
evasion: z.ZodOptional<z.ZodObject<{
|
|
665
|
+
durations: z.ZodDefault<z.ZodObject<{
|
|
666
|
+
rateLimit: z.ZodDefault<z.ZodNumber>;
|
|
667
|
+
serviceUnavailable: z.ZodDefault<z.ZodNumber>;
|
|
668
|
+
serverError: z.ZodDefault<z.ZodNumber>;
|
|
669
|
+
timeout: z.ZodDefault<z.ZodNumber>;
|
|
670
|
+
authError: z.ZodDefault<z.ZodNumber>;
|
|
671
|
+
unknown: z.ZodDefault<z.ZodNumber>;
|
|
672
|
+
}, z.core.$strip>>;
|
|
673
|
+
cleanupInterval: z.ZodDefault<z.ZodNumber>;
|
|
674
|
+
maxInactiveTime: z.ZodDefault<z.ZodNumber>;
|
|
675
|
+
priorityWeight: z.ZodDefault<z.ZodNumber>;
|
|
676
|
+
healthWeight: z.ZodDefault<z.ZodNumber>;
|
|
677
|
+
maxCrossAliasAttempts: z.ZodDefault<z.ZodNumber>;
|
|
678
|
+
}, z.core.$strip>>;
|
|
679
|
+
}, z.core.$strip>;
|
|
680
|
+
/** 完整 YAML 配置类型 */
|
|
681
|
+
export type YamlConfig = z.infer<typeof yamlConfigSchema>;
|
|
682
|
+
/** 微服务配置类型 */
|
|
683
|
+
export type MicroServiceConfig = z.infer<typeof microServiceSchema>;
|
|
684
|
+
/** 应用配置类型 (扩展自 MicroServiceConfig) */
|
|
685
|
+
export type AppConfig = z.infer<typeof appConfigSchema>;
|
|
686
|
+
/** 区域配置类型 */
|
|
687
|
+
export type ZoneConfig = z.infer<typeof zoneSchema>;
|
|
688
|
+
/** 上传配置类型 */
|
|
689
|
+
export type UploadConfig = z.infer<typeof uploadConfigSchema>;
|
|
690
|
+
/** IP 信息配置类型 */
|
|
691
|
+
export type IpInfoConfig = z.infer<typeof ipInfoConfigSchema>;
|
|
692
|
+
/** JWT 配置类型 */
|
|
693
|
+
export type JwtConfig = z.infer<typeof jwtConfigSchema>;
|
|
694
|
+
/** 加密配置类型 */
|
|
695
|
+
export type CryptoConfig = z.infer<typeof cryptoConfigSchema>;
|
|
696
|
+
/** CDN 区域配置类型 */
|
|
697
|
+
export type CdnZoneConfig = z.infer<typeof cdnZoneSchema>;
|
|
698
|
+
/** CDN 配置类型 */
|
|
699
|
+
export type CdnConfig = z.infer<typeof cdnConfigSchema>;
|
|
700
|
+
/** Redis 缓存键配置类型 */
|
|
701
|
+
export type RedisCacheKeyConfig = z.infer<typeof redisCacheKeySchema>;
|
|
702
|
+
/** 路径配置类型 */
|
|
703
|
+
export type PathConfig = z.infer<typeof pathConfigSchema>;
|
|
704
|
+
/** 角色权限配置类型 */
|
|
705
|
+
export type RolePermissionConfig = z.infer<typeof rolePermissionSchema>;
|
|
706
|
+
/** 存储桶配置类型 */
|
|
707
|
+
export type BucketConfig = z.infer<typeof bucketConfigSchema>;
|
|
708
|
+
/** 视频质量枚举类型 */
|
|
709
|
+
export type VideoQuality = z.infer<typeof videoQualitySchema>;
|
|
710
|
+
/** 功能开关 Provider 类型 */
|
|
711
|
+
export type FeatureFlagProvider = z.infer<typeof featureFlagProviderSchema>;
|
|
712
|
+
/** 功能开关 Redis 配置类型 */
|
|
713
|
+
export type FeatureFlagRedisConfig = z.infer<typeof featureFlagRedisConfigSchema>;
|
|
714
|
+
/** Unleash 配置类型 */
|
|
715
|
+
export type UnleashConfig = z.infer<typeof unleashConfigSchema>;
|
|
716
|
+
/** 功能开关配置类型 */
|
|
717
|
+
export type FeatureFlagsConfig = z.infer<typeof featureFlagsConfigSchema>;
|
|
718
|
+
/** 限流维度类型 */
|
|
719
|
+
export type RateLimitDimension = z.infer<typeof rateLimitDimensionSchema>;
|
|
720
|
+
/** 限流维度配置类型 */
|
|
721
|
+
export type RateLimitDimensionConfig = z.infer<typeof rateLimitDimensionConfigSchema>;
|
|
722
|
+
/** 限流白名单配置类型 */
|
|
723
|
+
export type RateLimitWhitelistConfig = z.infer<typeof rateLimitWhitelistSchema>;
|
|
724
|
+
/** 限流 Redis 配置类型 */
|
|
725
|
+
export type RateLimitRedisConfig = z.infer<typeof rateLimitRedisConfigSchema>;
|
|
726
|
+
/** 限流维度集合配置类型 */
|
|
727
|
+
export type RateLimitDimensionsConfig = z.infer<typeof rateLimitDimensionsSchema>;
|
|
728
|
+
/** 限流配置类型 */
|
|
729
|
+
export type RateLimitConfig = z.infer<typeof rateLimitConfigSchema>;
|
|
730
|
+
/** 慢查询阈值配置类型 */
|
|
731
|
+
export type SlowQueryThresholdsConfig = z.infer<typeof slowQueryThresholdsSchema>;
|
|
732
|
+
/** 数据库监控配置类型 */
|
|
733
|
+
export type DbMetricsConfig = z.infer<typeof dbMetricsConfigSchema>;
|
|
734
|
+
/** 事务重试配置类型 */
|
|
735
|
+
export type TransactionRetryConfig = z.infer<typeof transactionRetryConfigSchema>;
|
|
736
|
+
/** 事务配置类型 */
|
|
737
|
+
export type TransactionConfig = z.infer<typeof transactionConfigSchema>;
|
|
738
|
+
/** 避让时长配置类型 */
|
|
739
|
+
export type EvasionDurationsConfig = z.infer<typeof evasionDurationsConfigSchema>;
|
|
740
|
+
/** 避让配置类型 */
|
|
741
|
+
export type EvasionConfig = z.infer<typeof evasionConfigSchema>;
|
|
742
|
+
/**
|
|
743
|
+
* Validation result type
|
|
744
|
+
*/
|
|
745
|
+
export interface YamlValidationResult {
|
|
746
|
+
success: boolean;
|
|
747
|
+
data?: YamlConfig;
|
|
748
|
+
errors?: z.ZodError;
|
|
749
|
+
}
|
|
750
|
+
/**
|
|
751
|
+
* Validates YAML configuration against the schema
|
|
752
|
+
*
|
|
753
|
+
* @param config - Parsed YAML configuration object
|
|
754
|
+
* @returns Validated configuration
|
|
755
|
+
* @throws Error if validation fails
|
|
756
|
+
*/
|
|
757
|
+
export declare function validateYamlConfig(config: unknown): YamlConfig;
|
|
758
|
+
/**
|
|
759
|
+
* Validates YAML configuration and returns detailed result
|
|
760
|
+
*
|
|
761
|
+
* @param config - Parsed YAML configuration object
|
|
762
|
+
* @returns Validation result with success status and data or errors
|
|
763
|
+
*/
|
|
764
|
+
export declare function validateYamlConfigSafe(config: unknown): YamlValidationResult;
|
|
765
|
+
//# sourceMappingURL=yaml.validation.d.ts.map
|