@buka/nestjs-kit 4.1.8 → 4.2.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/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # Changelog
2
2
 
3
+ ## [4.2.0](https://github.com/buka-ltd/npm.nestjs-kit/compare/v4.1.9...v4.2.0) (2026-05-24)
4
+
5
+
6
+ ### Features
7
+
8
+ * urn支持通配符 ([31bc4e1](https://github.com/buka-ltd/npm.nestjs-kit/commit/31bc4e13045255eb99b8b719589af697046005d0))
9
+
10
+ ## [4.1.9](https://github.com/buka-ltd/npm.nestjs-kit/compare/v4.1.8...v4.1.9) (2026-05-24)
11
+
12
+
13
+ ### Bug Fixes
14
+
15
+ * authLogging should export ([0f0bf53](https://github.com/buka-ltd/npm.nestjs-kit/commit/0f0bf53ff992b9fdf13e8f4e3641f5869e929623))
16
+
3
17
  ## [4.1.8](https://github.com/buka-ltd/npm.nestjs-kit/compare/v4.1.7...v4.1.8) (2026-05-23)
4
18
 
5
19
 
package/dist/index.d.mts CHANGED
@@ -10,6 +10,7 @@ import { Logger, LoggerErrorInterceptor } from "nestjs-pino";
10
10
  import { Readable } from "node:stream";
11
11
  import * as _$type_fest0 from "type-fest";
12
12
  import { Class, JsonValue, ValueOf } from "type-fest";
13
+ import { IncomingMessage } from "http";
13
14
 
14
15
  //#region src/swagger-patcher/deep-objectify-queries.d.ts
15
16
  /**
@@ -226,9 +227,9 @@ declare function IsScalarDictionary(ctor: ScalarClass, validationOptions?: Valid
226
227
  //#endregion
227
228
  //#region src/modules/core/decorators/class-validator/is-urn.d.ts
228
229
  declare const IS_URN = "isUrn";
229
- declare const IS_NAMESPACE_URN = "isNamespaceUrn";
230
- declare const IS_RESOURCE_URN = "isResourceUrn";
231
- declare const IS_IDENTIFIER_URN = "isIdentifierUrn";
230
+ declare const IS_DOMAIN_URN = "isDomainUrn";
231
+ declare const IS_RESOURCE_TYPE_URN = "isResourceTypeUrn";
232
+ declare const IS_RESOURCE_ID_URN = "isResourceIdUrn";
232
233
  /**
233
234
  * 验证字符串是否为合法的 URN(任意层级)。
234
235
  *
@@ -242,41 +243,41 @@ declare const IS_IDENTIFIER_URN = "isIdentifierUrn";
242
243
  */
243
244
  declare function IsUrn(validationOptions?: ValidationOptions): (object: object, propertyName: string) => void;
244
245
  /**
245
- * 验证字符串是否为 namespace 级 URN(仅含 namespace,无 resource 和 identifier)。
246
+ * 验证字符串是否为概念域级 URN(仅含 domain,无 resourceType 和 resourceId)。
246
247
  *
247
248
  * @example
248
249
  * ```typescript
249
250
  * class TokenPayloadDTO {
250
- * @IsNamespaceUrn()
251
+ * @IsDomainUrn()
251
252
  * aud: string
252
253
  * }
253
254
  * ```
254
255
  */
255
- declare function IsNamespaceUrn(validationOptions?: ValidationOptions): (object: object, propertyName: string) => void;
256
+ declare function IsDomainUrn(validationOptions?: ValidationOptions): (object: object, propertyName: string) => void;
256
257
  /**
257
- * 验证字符串是否为资源类型级 URN(含 namespace 和 resource,无 identifier)。
258
+ * 验证字符串是否为资源类型级 URN(含 domain 和 resourceType,无 resourceId)。
258
259
  *
259
260
  * @example
260
261
  * ```typescript
261
262
  * class ResourceDTO {
262
- * @IsResourceUrn()
263
+ * @IsResourceTypeUrn()
263
264
  * resourceType: string
264
265
  * }
265
266
  * ```
266
267
  */
267
- declare function IsResourceUrn(validationOptions?: ValidationOptions): (object: object, propertyName: string) => void;
268
+ declare function IsResourceTypeUrn(validationOptions?: ValidationOptions): (object: object, propertyName: string) => void;
268
269
  /**
269
- * 验证字符串是否为实例级 URN(含完整三段:namespace、resource 和 identifier)。
270
+ * 验证字符串是否为实例级 URN(含完整三段:domain、resourceType 和 resourceId)。
270
271
  *
271
272
  * @example
272
273
  * ```typescript
273
274
  * class TokenPayloadDTO {
274
- * @IsIdentifierUrn()
275
+ * @IsResourceIdUrn()
275
276
  * sub: string
276
277
  * }
277
278
  * ```
278
279
  */
279
- declare function IsIdentifierUrn(validationOptions?: ValidationOptions): (object: object, propertyName: string) => void;
280
+ declare function IsResourceIdUrn(validationOptions?: ValidationOptions): (object: object, propertyName: string) => void;
280
281
  //#endregion
281
282
  //#region src/modules/core/decorators/class-validator/match-json-schema.d.ts
282
283
  declare const MATCH_JSON_SCHEMA = "matchJsonSchema";
@@ -968,123 +969,142 @@ declare class Slice<T extends object> {
968
969
  /**
969
970
  * 统一资源名称(URN)
970
971
  *
971
- * 格式: urn:buka:<namespace>[:<resource>[:<identifier>]]
972
+ * 格式: urn:buka:<domain>:<resource-type>[:<resource-id>]
972
973
  *
973
974
  * 支持三种粒度:
974
- * - namespace 级: urn:buka:galaxy
975
+ * - 概念域级: urn:buka:galaxy
975
976
  * - 资源类型级: urn:buka:galaxy:principal
976
977
  * - 实例级: urn:buka:galaxy:principal:550e8400-e29b-41d4-a716-446655440000
977
978
  *
978
- * namespace 划分原则:按资源类型的定义权归属划分,非按部署单元。
979
+ * domain 划分原则:按资源类型的定义权归属划分,非按部署单元。
980
+ * resource-type 第一级推荐用于 env(环境),这是一个语义约定,不强制。
979
981
  *
980
982
  * 推荐通过静态工厂方法或派生方法构建层级 URN:
981
983
  * ```ts
982
- * Urn.of('galaxy') // → NamespaceUrn
983
- * Urn.of('galaxy', 'principal') // → ResourceUrn
984
- * Urn.of('galaxy', 'principal', '550e8400-...') // → IdentifierUrn
984
+ * Urn.of('galaxy') // → DomainUrn
985
+ * Urn.of('galaxy', 'principal') // → ResourceTypeUrn
986
+ * Urn.of('galaxy', 'principal', '550e8400-...') // → ResourceIdUrn
985
987
  *
986
988
  * // 或通过派生方法逐层构建
987
989
  * Urn.of('galaxy')
988
- * .withResource('principal') // → ResourceUrn
989
- * .withIdentifier('550e8400-...') // → IdentifierUrn
990
+ * .withResourceType('principal') // → ResourceTypeUrn
991
+ * .withResourceId('550e8400-...') // → ResourceIdUrn
990
992
  * ```
991
993
  */
992
994
  declare class Urn {
993
- /** 资源类型所有者(概念域/平台),如 galaxy、infra */
994
- readonly namespace: string;
995
- /** 资源类型,如 principal、oauth2-client */
996
- readonly resource?: string | undefined;
997
- /** 资源唯一标识 */
998
- readonly identifier?: string | undefined;
995
+ /** 概念域 — 资源类型定义权归属,通常为系统名 */
996
+ readonly domain: string;
997
+ /** 资源类型,可多级。第一级推荐用于 env */
998
+ readonly resourceType?: string | undefined;
999
+ /** 资源实例唯一标识 */
1000
+ readonly resourceId?: string | undefined;
999
1001
  private constructor();
1000
1002
  /**
1001
1003
  * 序列化为 URN 字符串
1002
1004
  */
1003
1005
  toString(): string;
1006
+ /**
1007
+ * 返回 resourceType 按 `:` 拆分后的层级数组
1008
+ */
1009
+ get resourceTypeSegments(): string[];
1010
+ private toSegments;
1004
1011
  /**
1005
1012
  * 衍生出资源类型级 URN
1006
1013
  *
1007
- * @throws Error 当前 URN 已有 resource 时抛出
1014
+ * @throws Error 当前 URN 已有 resourceType 时抛出
1008
1015
  */
1009
- withResource(resource: string): ResourceUrn;
1016
+ withResourceType(resourceType: string): ResourceTypeUrn;
1010
1017
  /**
1011
1018
  * 衍生出实例级 URN
1012
1019
  *
1013
- * @throws Error 当前 URN 无 resource 或已有 identifier 时抛出
1020
+ * @throws Error 当前 URN 无 resourceType 或已有 resourceId 时抛出
1014
1021
  */
1015
- withIdentifier(identifier: string): IdentifierUrn;
1022
+ withResourceId(resourceId: string): ResourceIdUrn;
1016
1023
  /**
1017
- * 类型守卫:判断是否为 namespace 级 URN
1024
+ * 类型守卫:判断是否为概念域级 URN
1018
1025
  */
1019
- isNamespaceUrn(): this is NamespaceUrn;
1026
+ isDomainUrn(): this is DomainUrn;
1020
1027
  /**
1021
1028
  * 类型守卫:判断是否为资源类型级 URN
1022
1029
  */
1023
- isResourceUrn(): this is ResourceUrn;
1030
+ isResourceTypeUrn(): this is ResourceTypeUrn;
1024
1031
  /**
1025
1032
  * 类型守卫:判断是否为实例级 URN
1026
1033
  */
1027
- isIdentifierUrn(): this is IdentifierUrn;
1034
+ isResourceIdUrn(): this is ResourceIdUrn;
1028
1035
  /**
1029
1036
  * 根据参数创建对应层级的 URN
1030
1037
  *
1031
1038
  * 重载签名使返回类型随参数数量自动窄化:
1032
- * - 仅 namespace → NamespaceUrn
1033
- * - namespace + resource → ResourceUrn
1034
- * - namespace + resource + identifier → IdentifierUrn
1039
+ * - 仅 domain → DomainUrn
1040
+ * - domain + resourceType → ResourceTypeUrn
1041
+ * - domain + resourceType + resourceId → ResourceIdUrn
1035
1042
  */
1036
- static of(namespace: string): NamespaceUrn;
1037
- static of(namespace: string, resource: string): ResourceUrn;
1038
- static of(namespace: string, resource: string, identifier: string): IdentifierUrn;
1043
+ static of(domain: string): DomainUrn;
1044
+ static of(domain: string, resourceType: string): ResourceTypeUrn;
1045
+ static of(domain: string, resourceType: string, resourceId: string): ResourceIdUrn;
1039
1046
  /**
1040
- * 从 URN 字符串解析
1047
+ * 从 URN 字符串解析,支持通配符 `*` 和 `**`
1048
+ *
1049
+ * - `*` 匹配恰好一个段
1050
+ * - `**` 匹配零个或多个尾部段(仅允许出现在末尾)
1041
1051
  *
1042
1052
  * @throws Error URN 格式不合法时抛出
1043
1053
  */
1044
1054
  static parse(urn: string): Urn;
1045
1055
  /**
1046
- * 判断是否匹配指定的 namespace、resource 和 identifier
1056
+ * 判断是否匹配指定的 domain、resourceType 和 resourceId
1047
1057
  *
1048
1058
  * 仅比较传入的参数,未传入的参数不参与比较。
1049
1059
  */
1050
- is(namespace: string, resource?: string, identifier?: string): boolean;
1060
+ is(domain: string, resourceType?: string, resourceId?: string): boolean;
1061
+ /**
1062
+ * 判断当前 URN 是否包含另一个 URN
1063
+ *
1064
+ * 当前 URN 含通配符(`*` 或 `**`)时,作为集合模式判断:
1065
+ * - `*` 匹配恰好一个段
1066
+ * - `**` 匹配零个或多个尾部段(仅末尾有效)
1067
+ *
1068
+ * 当前 URN 为具体 URN(无通配符)时,仅包含自身(严格相等)。
1069
+ */
1070
+ contains(other: Urn): boolean;
1051
1071
  }
1052
1072
  /**
1053
- * namespace 级 URN — 仅含 namespace,无 resource 和 identifier
1073
+ * 概念域级 URN — 仅含 domain,无 resourceType 和 resourceId
1054
1074
  *
1055
- * 可通过 `withResource()` 衍生出 `ResourceUrn`。
1056
- * 禁止直接调用 `withIdentifier()`(跳层派生)。
1075
+ * 可通过 `withResourceType()` 衍生出 `ResourceTypeUrn`。
1076
+ * 禁止直接调用 `withResourceId()`(跳层派生)。
1057
1077
  */
1058
- interface NamespaceUrn extends Urn {
1059
- readonly resource: undefined;
1060
- readonly identifier: undefined;
1061
- /** @deprecated 禁止跳层派生,请先调用 withResource() */
1062
- withIdentifier: never;
1078
+ interface DomainUrn extends Urn {
1079
+ readonly resourceType: undefined;
1080
+ readonly resourceId: undefined;
1081
+ /** @deprecated 禁止跳层派生,请先调用 withResourceType() */
1082
+ withResourceId: never;
1063
1083
  }
1064
1084
  /**
1065
- * 资源类型级 URN — 含 namespace 和 resource,无 identifier
1085
+ * 资源类型级 URN — 含 domain 和 resourceType,无 resourceId
1066
1086
  *
1067
- * 可通过 `withIdentifier()` 衍生出 `IdentifierUrn`。
1068
- * 禁止调用 `withResource()`(横向衍生另一个资源类型)。
1087
+ * 可通过 `withResourceId()` 衍生出 `ResourceIdUrn`。
1088
+ * 禁止调用 `withResourceType()`(横向衍生另一个资源类型)。
1069
1089
  */
1070
- interface ResourceUrn extends Urn {
1071
- readonly resource: string;
1072
- readonly identifier: undefined;
1073
- /** @deprecated 禁止横向衍生,ResourceUrn 不能再衍生另一个资源类型 */
1074
- withResource: never;
1090
+ interface ResourceTypeUrn extends Urn {
1091
+ readonly resourceType: string;
1092
+ readonly resourceId: undefined;
1093
+ /** @deprecated 禁止横向衍生,ResourceTypeUrn 不能再衍生另一个资源类型 */
1094
+ withResourceType: never;
1075
1095
  }
1076
1096
  /**
1077
- * 实例级 URN — 含完整三段:namespace、resource 和 identifier
1097
+ * 实例级 URN — 含完整三段:domain、resourceType 和 resourceId
1078
1098
  *
1079
1099
  * 终态 URN,不可继续衍生。
1080
1100
  */
1081
- interface IdentifierUrn extends Urn {
1082
- readonly resource: string;
1083
- readonly identifier: string;
1101
+ interface ResourceIdUrn extends Urn {
1102
+ readonly resourceType: string;
1103
+ readonly resourceId: string;
1084
1104
  /** @deprecated 终态 URN,不可继续衍生 */
1085
- withResource: never;
1105
+ withResourceType: never;
1086
1106
  /** @deprecated 终态 URN,不可继续衍生 */
1087
- withIdentifier: never;
1107
+ withResourceId: never;
1088
1108
  }
1089
1109
  //#endregion
1090
1110
  //#region src/modules/core/converters/eager-type/eager-type.d.ts
@@ -18472,6 +18492,10 @@ interface LoggerModuleOptions {
18472
18492
  level?: 'fatal' | 'error' | 'warn' | 'info' | 'debug' | 'trace';
18473
18493
  /** 开发模式——启用 pino-pretty 彩色输出 */
18474
18494
  pretty?: boolean;
18495
+ /** pino-http autoLogging 配置,用于跳过指定路由的成功日志(错误日志不受影响) */
18496
+ autoLogging?: {
18497
+ ignore: (req: IncomingMessage) => boolean;
18498
+ };
18475
18499
  }
18476
18500
  //#endregion
18477
18501
  //#region src/modules/logger/logger.module.d.ts
@@ -18655,5 +18679,5 @@ declare class ObjectStorageService implements OnModuleInit {
18655
18679
  */
18656
18680
  declare function stableStringify(value: unknown): string;
18657
18681
  //#endregion
18658
- export { AssociationMetadata, AuthException, BUKA_MODULE_OPTIONS_TOKEN, Base32, BlindIndex, BlindIndexHasher, BlindIndexModule, BlindIndexService, BlindIndexV1Hasher, BukaConfigurableModuleClass, BukaExceptions, BukaModule, BukaModuleOptions, BukaPageQueryValidationPipe, BukaValidationPipe, BusinessException, Cardinality, type CipherMetadata, CollectionAssociationMetadata, Column, Composite, CompositePropertyMetadata, ConfigurableModuleClass, ConflictException, CursorPagination, DatabaseConfig, type DecryptCommand, DegradeException, Dictionary, DictionaryPropertyMetadata, DiscreteEntity, EagerType, type EncryptCommand, EncryptedPayload, EntityRef, Enum, EnumPropertyMetadata, EnvelopeEncryptionModule, type EnvelopeEncryptionModuleOptions, EnvelopeEncryptionService, ErrorCategory, ErrorCode, ErrorCodeController, ErrorCodeExceptionFilter, ErrorCodeDefinitionDto as ErrorCodeItemDto, ErrorCodeMetadataDto, type ErrorCodeOptions, ErrorCodePartsDto, ErrorCodeRegistry, ErrorResponseSchema, type ExceptionConstructor, type ExceptionConstructorWithArgs, type ExceptionDetail, ExceptionDetailSchema, ExceptionModule, type ExceptionModuleOptions as ExceptionNestModuleOptions, type ExceptionOptions, type ExceptionOptionsWithFactory, type ExceptionOptionsWithMessage, ExcludeDefinedOpt, ExcludeHidden, ExcludeOpt, ExcludeRef, ExcludeScalarClass, FeatureException, FilterQuery, FilterQueryOperator, FilterQueryOperators, FilterQueryOperatorsMetadataKey, FilterQueryTransformPipe, HAS_ANY_KEY, HasAnyKey, HttpException, type HttpExceptionOptions, IEntityPrimaryKey, IFilter, IFilterQuery, IFilterQueryCollectionCondition, IFilterQueryCondition, IFilterQueryNestedProperty, IFilterQueryObject, IFilterQueryProperty, IListResponseBody, IListResponseBodyMeta, INextCursorPageParameters, IOffsetPageParameters, IOrderQuery, IPageQuery, IPreviousCursorPageParameters, IResponseBody, IS_CROCKFORD_BASE32, IS_IDENTIFIER_URN, IS_NAMESPACE_URN, IS_RESOURCE_URN, IS_SCALAR_DICTIONARY, IS_URN, IdentifierUrn, InjectLogger, IsBrowserRequest, IsCrockfordBase32, IsHidden, IsIdentifierUrn, IsNamespaceUrn, IsOpt, IsResourceUrn, IsScalar, IsScalarDictionary, IsUrn, KeyEnvelope, LinearEntity, List, ListErrorCodesResponseDto, ListPropertyMetadata, ListResponseBodyType, Logger, LoggerConfig, LoggerErrorInterceptor, LoggerModule, type LoggerModuleOptions, MATCH_JSON_SCHEMA, MODULE_OPTIONS_TOKEN, MatchJsonSchema, Model, ModelMetadata, ModelOptions, ModelRegister, ModelSchemaOptions, ModuleExceptions, type ExceptionModuleOptions$1 as ModuleExceptionsOptions, NamespaceUrn, NextCursorPageSchema, ObjectStorageModule, ObjectStorageModuleConfig, ObjectStorageModuleOptions, ObjectStorageOptions, ObjectStorageService, OffsetPageSchema, OffsetPagination, OmitType, OpenBaoAppRoleAuth, OpenBaoAppRoleAuthConfig, OpenBaoAuthMethod, OpenBaoAuthResponse, OpenBaoHttpClient, OpenBaoKubernetesAuth, OpenBaoKubernetesAuthConfig, OpenBaoModule, OpenBaoModuleConfig, OpenBaoModuleOptions, OpenBaoTokenAuth, OpenBaoTokenAuthConfig, OpenBaoTokenLookupSelfResponse, OpenBaoTokenManager, OpenBaoUserpassAuth, OpenBaoUserpassAuthConfig, OptionalPageQuery, OrderQueryType, PageQuery, ParseUUIDv7Pipe, PartialType, PendingException, PickType, PreviousCursorPageSchema, PrimaryKeyType, PrimaryKeyTypeClassMetadataPropertyKey, Property, PropertyKind, PropertyMetadata, RateLimitException, type ReencryptCommand, RefAssociationMetadata, type ResolveExceptions, ResourceUrn, ResponseBodyType, SaltedHash, SaltedHashHasher, SaltedHashModule, SaltedHashService, SaltedHashV1Hasher, ScalarClass, ScalarPropertyMetadata, type SchemaObject, Slice, SwaggerPatcher, SystemException, ThirdPartyException, TimestampedEntity, type UnifyExceptionResponsesOptions, Urn, VALIDATE_NESTED_DICTIONARY, ValidateNestedDictionary, ValidationException, getExceptionModuleId, getFilterQueryOperators, isScalarClass, serializeModel, setOpenBaoToken, stableStringify };
18682
+ export { AssociationMetadata, AuthException, BUKA_MODULE_OPTIONS_TOKEN, Base32, BlindIndex, BlindIndexHasher, BlindIndexModule, BlindIndexService, BlindIndexV1Hasher, BukaConfigurableModuleClass, BukaExceptions, BukaModule, BukaModuleOptions, BukaPageQueryValidationPipe, BukaValidationPipe, BusinessException, Cardinality, type CipherMetadata, CollectionAssociationMetadata, Column, Composite, CompositePropertyMetadata, ConfigurableModuleClass, ConflictException, CursorPagination, DatabaseConfig, type DecryptCommand, DegradeException, Dictionary, DictionaryPropertyMetadata, DiscreteEntity, DomainUrn, EagerType, type EncryptCommand, EncryptedPayload, EntityRef, Enum, EnumPropertyMetadata, EnvelopeEncryptionModule, type EnvelopeEncryptionModuleOptions, EnvelopeEncryptionService, ErrorCategory, ErrorCode, ErrorCodeController, ErrorCodeExceptionFilter, ErrorCodeDefinitionDto as ErrorCodeItemDto, ErrorCodeMetadataDto, type ErrorCodeOptions, ErrorCodePartsDto, ErrorCodeRegistry, ErrorResponseSchema, type ExceptionConstructor, type ExceptionConstructorWithArgs, type ExceptionDetail, ExceptionDetailSchema, ExceptionModule, type ExceptionModuleOptions as ExceptionNestModuleOptions, type ExceptionOptions, type ExceptionOptionsWithFactory, type ExceptionOptionsWithMessage, ExcludeDefinedOpt, ExcludeHidden, ExcludeOpt, ExcludeRef, ExcludeScalarClass, FeatureException, FilterQuery, FilterQueryOperator, FilterQueryOperators, FilterQueryOperatorsMetadataKey, FilterQueryTransformPipe, HAS_ANY_KEY, HasAnyKey, HttpException, type HttpExceptionOptions, IEntityPrimaryKey, IFilter, IFilterQuery, IFilterQueryCollectionCondition, IFilterQueryCondition, IFilterQueryNestedProperty, IFilterQueryObject, IFilterQueryProperty, IListResponseBody, IListResponseBodyMeta, INextCursorPageParameters, IOffsetPageParameters, IOrderQuery, IPageQuery, IPreviousCursorPageParameters, IResponseBody, IS_CROCKFORD_BASE32, IS_DOMAIN_URN, IS_RESOURCE_ID_URN, IS_RESOURCE_TYPE_URN, IS_SCALAR_DICTIONARY, IS_URN, InjectLogger, IsBrowserRequest, IsCrockfordBase32, IsDomainUrn, IsHidden, IsOpt, IsResourceIdUrn, IsResourceTypeUrn, IsScalar, IsScalarDictionary, IsUrn, KeyEnvelope, LinearEntity, List, ListErrorCodesResponseDto, ListPropertyMetadata, ListResponseBodyType, Logger, LoggerConfig, LoggerErrorInterceptor, LoggerModule, type LoggerModuleOptions, MATCH_JSON_SCHEMA, MODULE_OPTIONS_TOKEN, MatchJsonSchema, Model, ModelMetadata, ModelOptions, ModelRegister, ModelSchemaOptions, ModuleExceptions, type ExceptionModuleOptions$1 as ModuleExceptionsOptions, NextCursorPageSchema, ObjectStorageModule, ObjectStorageModuleConfig, ObjectStorageModuleOptions, ObjectStorageOptions, ObjectStorageService, OffsetPageSchema, OffsetPagination, OmitType, OpenBaoAppRoleAuth, OpenBaoAppRoleAuthConfig, OpenBaoAuthMethod, OpenBaoAuthResponse, OpenBaoHttpClient, OpenBaoKubernetesAuth, OpenBaoKubernetesAuthConfig, OpenBaoModule, OpenBaoModuleConfig, OpenBaoModuleOptions, OpenBaoTokenAuth, OpenBaoTokenAuthConfig, OpenBaoTokenLookupSelfResponse, OpenBaoTokenManager, OpenBaoUserpassAuth, OpenBaoUserpassAuthConfig, OptionalPageQuery, OrderQueryType, PageQuery, ParseUUIDv7Pipe, PartialType, PendingException, PickType, PreviousCursorPageSchema, PrimaryKeyType, PrimaryKeyTypeClassMetadataPropertyKey, Property, PropertyKind, PropertyMetadata, RateLimitException, type ReencryptCommand, RefAssociationMetadata, type ResolveExceptions, ResourceIdUrn, ResourceTypeUrn, ResponseBodyType, SaltedHash, SaltedHashHasher, SaltedHashModule, SaltedHashService, SaltedHashV1Hasher, ScalarClass, ScalarPropertyMetadata, type SchemaObject, Slice, SwaggerPatcher, SystemException, ThirdPartyException, TimestampedEntity, type UnifyExceptionResponsesOptions, Urn, VALIDATE_NESTED_DICTIONARY, ValidateNestedDictionary, ValidationException, getExceptionModuleId, getFilterQueryOperators, isScalarClass, serializeModel, setOpenBaoToken, stableStringify };
18659
18683
  //# sourceMappingURL=index.d.mts.map
package/dist/index.d.ts CHANGED
@@ -9,6 +9,7 @@ import { Keq, KeqMiddleware, KeqOperation, KeqPathParameterInit, KeqQueryInit, K
9
9
  import { Base32, ErrorCategory, ErrorCategory as ErrorCategory$1, ErrorCode, ErrorCodeOptions } from "@buka/error-codes";
10
10
  import { Exception, ExceptionDetail, ExceptionDetail as ExceptionDetail$1, ExceptionOptions as ExceptionOptions$1 } from "@buka/exception";
11
11
  import { Logger, LoggerErrorInterceptor } from "nestjs-pino";
12
+ import { IncomingMessage } from "http";
12
13
  import { Readable } from "node:stream";
13
14
 
14
15
  //#region src/swagger-patcher/deep-objectify-queries.d.ts
@@ -226,9 +227,9 @@ declare function IsScalarDictionary(ctor: ScalarClass, validationOptions?: Valid
226
227
  //#endregion
227
228
  //#region src/modules/core/decorators/class-validator/is-urn.d.ts
228
229
  declare const IS_URN = "isUrn";
229
- declare const IS_NAMESPACE_URN = "isNamespaceUrn";
230
- declare const IS_RESOURCE_URN = "isResourceUrn";
231
- declare const IS_IDENTIFIER_URN = "isIdentifierUrn";
230
+ declare const IS_DOMAIN_URN = "isDomainUrn";
231
+ declare const IS_RESOURCE_TYPE_URN = "isResourceTypeUrn";
232
+ declare const IS_RESOURCE_ID_URN = "isResourceIdUrn";
232
233
  /**
233
234
  * 验证字符串是否为合法的 URN(任意层级)。
234
235
  *
@@ -242,41 +243,41 @@ declare const IS_IDENTIFIER_URN = "isIdentifierUrn";
242
243
  */
243
244
  declare function IsUrn(validationOptions?: ValidationOptions): (object: object, propertyName: string) => void;
244
245
  /**
245
- * 验证字符串是否为 namespace 级 URN(仅含 namespace,无 resource 和 identifier)。
246
+ * 验证字符串是否为概念域级 URN(仅含 domain,无 resourceType 和 resourceId)。
246
247
  *
247
248
  * @example
248
249
  * ```typescript
249
250
  * class TokenPayloadDTO {
250
- * @IsNamespaceUrn()
251
+ * @IsDomainUrn()
251
252
  * aud: string
252
253
  * }
253
254
  * ```
254
255
  */
255
- declare function IsNamespaceUrn(validationOptions?: ValidationOptions): (object: object, propertyName: string) => void;
256
+ declare function IsDomainUrn(validationOptions?: ValidationOptions): (object: object, propertyName: string) => void;
256
257
  /**
257
- * 验证字符串是否为资源类型级 URN(含 namespace 和 resource,无 identifier)。
258
+ * 验证字符串是否为资源类型级 URN(含 domain 和 resourceType,无 resourceId)。
258
259
  *
259
260
  * @example
260
261
  * ```typescript
261
262
  * class ResourceDTO {
262
- * @IsResourceUrn()
263
+ * @IsResourceTypeUrn()
263
264
  * resourceType: string
264
265
  * }
265
266
  * ```
266
267
  */
267
- declare function IsResourceUrn(validationOptions?: ValidationOptions): (object: object, propertyName: string) => void;
268
+ declare function IsResourceTypeUrn(validationOptions?: ValidationOptions): (object: object, propertyName: string) => void;
268
269
  /**
269
- * 验证字符串是否为实例级 URN(含完整三段:namespace、resource 和 identifier)。
270
+ * 验证字符串是否为实例级 URN(含完整三段:domain、resourceType 和 resourceId)。
270
271
  *
271
272
  * @example
272
273
  * ```typescript
273
274
  * class TokenPayloadDTO {
274
- * @IsIdentifierUrn()
275
+ * @IsResourceIdUrn()
275
276
  * sub: string
276
277
  * }
277
278
  * ```
278
279
  */
279
- declare function IsIdentifierUrn(validationOptions?: ValidationOptions): (object: object, propertyName: string) => void;
280
+ declare function IsResourceIdUrn(validationOptions?: ValidationOptions): (object: object, propertyName: string) => void;
280
281
  //#endregion
281
282
  //#region src/modules/core/decorators/class-validator/match-json-schema.d.ts
282
283
  declare const MATCH_JSON_SCHEMA = "matchJsonSchema";
@@ -968,123 +969,142 @@ declare class Slice<T extends object> {
968
969
  /**
969
970
  * 统一资源名称(URN)
970
971
  *
971
- * 格式: urn:buka:<namespace>[:<resource>[:<identifier>]]
972
+ * 格式: urn:buka:<domain>:<resource-type>[:<resource-id>]
972
973
  *
973
974
  * 支持三种粒度:
974
- * - namespace 级: urn:buka:galaxy
975
+ * - 概念域级: urn:buka:galaxy
975
976
  * - 资源类型级: urn:buka:galaxy:principal
976
977
  * - 实例级: urn:buka:galaxy:principal:550e8400-e29b-41d4-a716-446655440000
977
978
  *
978
- * namespace 划分原则:按资源类型的定义权归属划分,非按部署单元。
979
+ * domain 划分原则:按资源类型的定义权归属划分,非按部署单元。
980
+ * resource-type 第一级推荐用于 env(环境),这是一个语义约定,不强制。
979
981
  *
980
982
  * 推荐通过静态工厂方法或派生方法构建层级 URN:
981
983
  * ```ts
982
- * Urn.of('galaxy') // → NamespaceUrn
983
- * Urn.of('galaxy', 'principal') // → ResourceUrn
984
- * Urn.of('galaxy', 'principal', '550e8400-...') // → IdentifierUrn
984
+ * Urn.of('galaxy') // → DomainUrn
985
+ * Urn.of('galaxy', 'principal') // → ResourceTypeUrn
986
+ * Urn.of('galaxy', 'principal', '550e8400-...') // → ResourceIdUrn
985
987
  *
986
988
  * // 或通过派生方法逐层构建
987
989
  * Urn.of('galaxy')
988
- * .withResource('principal') // → ResourceUrn
989
- * .withIdentifier('550e8400-...') // → IdentifierUrn
990
+ * .withResourceType('principal') // → ResourceTypeUrn
991
+ * .withResourceId('550e8400-...') // → ResourceIdUrn
990
992
  * ```
991
993
  */
992
994
  declare class Urn {
993
- /** 资源类型所有者(概念域/平台),如 galaxy、infra */
994
- readonly namespace: string;
995
- /** 资源类型,如 principal、oauth2-client */
996
- readonly resource?: string | undefined;
997
- /** 资源唯一标识 */
998
- readonly identifier?: string | undefined;
995
+ /** 概念域 — 资源类型定义权归属,通常为系统名 */
996
+ readonly domain: string;
997
+ /** 资源类型,可多级。第一级推荐用于 env */
998
+ readonly resourceType?: string | undefined;
999
+ /** 资源实例唯一标识 */
1000
+ readonly resourceId?: string | undefined;
999
1001
  private constructor();
1000
1002
  /**
1001
1003
  * 序列化为 URN 字符串
1002
1004
  */
1003
1005
  toString(): string;
1006
+ /**
1007
+ * 返回 resourceType 按 `:` 拆分后的层级数组
1008
+ */
1009
+ get resourceTypeSegments(): string[];
1010
+ private toSegments;
1004
1011
  /**
1005
1012
  * 衍生出资源类型级 URN
1006
1013
  *
1007
- * @throws Error 当前 URN 已有 resource 时抛出
1014
+ * @throws Error 当前 URN 已有 resourceType 时抛出
1008
1015
  */
1009
- withResource(resource: string): ResourceUrn;
1016
+ withResourceType(resourceType: string): ResourceTypeUrn;
1010
1017
  /**
1011
1018
  * 衍生出实例级 URN
1012
1019
  *
1013
- * @throws Error 当前 URN 无 resource 或已有 identifier 时抛出
1020
+ * @throws Error 当前 URN 无 resourceType 或已有 resourceId 时抛出
1014
1021
  */
1015
- withIdentifier(identifier: string): IdentifierUrn;
1022
+ withResourceId(resourceId: string): ResourceIdUrn;
1016
1023
  /**
1017
- * 类型守卫:判断是否为 namespace 级 URN
1024
+ * 类型守卫:判断是否为概念域级 URN
1018
1025
  */
1019
- isNamespaceUrn(): this is NamespaceUrn;
1026
+ isDomainUrn(): this is DomainUrn;
1020
1027
  /**
1021
1028
  * 类型守卫:判断是否为资源类型级 URN
1022
1029
  */
1023
- isResourceUrn(): this is ResourceUrn;
1030
+ isResourceTypeUrn(): this is ResourceTypeUrn;
1024
1031
  /**
1025
1032
  * 类型守卫:判断是否为实例级 URN
1026
1033
  */
1027
- isIdentifierUrn(): this is IdentifierUrn;
1034
+ isResourceIdUrn(): this is ResourceIdUrn;
1028
1035
  /**
1029
1036
  * 根据参数创建对应层级的 URN
1030
1037
  *
1031
1038
  * 重载签名使返回类型随参数数量自动窄化:
1032
- * - 仅 namespace → NamespaceUrn
1033
- * - namespace + resource → ResourceUrn
1034
- * - namespace + resource + identifier → IdentifierUrn
1039
+ * - 仅 domain → DomainUrn
1040
+ * - domain + resourceType → ResourceTypeUrn
1041
+ * - domain + resourceType + resourceId → ResourceIdUrn
1035
1042
  */
1036
- static of(namespace: string): NamespaceUrn;
1037
- static of(namespace: string, resource: string): ResourceUrn;
1038
- static of(namespace: string, resource: string, identifier: string): IdentifierUrn;
1043
+ static of(domain: string): DomainUrn;
1044
+ static of(domain: string, resourceType: string): ResourceTypeUrn;
1045
+ static of(domain: string, resourceType: string, resourceId: string): ResourceIdUrn;
1039
1046
  /**
1040
- * 从 URN 字符串解析
1047
+ * 从 URN 字符串解析,支持通配符 `*` 和 `**`
1048
+ *
1049
+ * - `*` 匹配恰好一个段
1050
+ * - `**` 匹配零个或多个尾部段(仅允许出现在末尾)
1041
1051
  *
1042
1052
  * @throws Error URN 格式不合法时抛出
1043
1053
  */
1044
1054
  static parse(urn: string): Urn;
1045
1055
  /**
1046
- * 判断是否匹配指定的 namespace、resource 和 identifier
1056
+ * 判断是否匹配指定的 domain、resourceType 和 resourceId
1047
1057
  *
1048
1058
  * 仅比较传入的参数,未传入的参数不参与比较。
1049
1059
  */
1050
- is(namespace: string, resource?: string, identifier?: string): boolean;
1060
+ is(domain: string, resourceType?: string, resourceId?: string): boolean;
1061
+ /**
1062
+ * 判断当前 URN 是否包含另一个 URN
1063
+ *
1064
+ * 当前 URN 含通配符(`*` 或 `**`)时,作为集合模式判断:
1065
+ * - `*` 匹配恰好一个段
1066
+ * - `**` 匹配零个或多个尾部段(仅末尾有效)
1067
+ *
1068
+ * 当前 URN 为具体 URN(无通配符)时,仅包含自身(严格相等)。
1069
+ */
1070
+ contains(other: Urn): boolean;
1051
1071
  }
1052
1072
  /**
1053
- * namespace 级 URN — 仅含 namespace,无 resource 和 identifier
1073
+ * 概念域级 URN — 仅含 domain,无 resourceType 和 resourceId
1054
1074
  *
1055
- * 可通过 `withResource()` 衍生出 `ResourceUrn`。
1056
- * 禁止直接调用 `withIdentifier()`(跳层派生)。
1075
+ * 可通过 `withResourceType()` 衍生出 `ResourceTypeUrn`。
1076
+ * 禁止直接调用 `withResourceId()`(跳层派生)。
1057
1077
  */
1058
- interface NamespaceUrn extends Urn {
1059
- readonly resource: undefined;
1060
- readonly identifier: undefined;
1061
- /** @deprecated 禁止跳层派生,请先调用 withResource() */
1062
- withIdentifier: never;
1078
+ interface DomainUrn extends Urn {
1079
+ readonly resourceType: undefined;
1080
+ readonly resourceId: undefined;
1081
+ /** @deprecated 禁止跳层派生,请先调用 withResourceType() */
1082
+ withResourceId: never;
1063
1083
  }
1064
1084
  /**
1065
- * 资源类型级 URN — 含 namespace 和 resource,无 identifier
1085
+ * 资源类型级 URN — 含 domain 和 resourceType,无 resourceId
1066
1086
  *
1067
- * 可通过 `withIdentifier()` 衍生出 `IdentifierUrn`。
1068
- * 禁止调用 `withResource()`(横向衍生另一个资源类型)。
1087
+ * 可通过 `withResourceId()` 衍生出 `ResourceIdUrn`。
1088
+ * 禁止调用 `withResourceType()`(横向衍生另一个资源类型)。
1069
1089
  */
1070
- interface ResourceUrn extends Urn {
1071
- readonly resource: string;
1072
- readonly identifier: undefined;
1073
- /** @deprecated 禁止横向衍生,ResourceUrn 不能再衍生另一个资源类型 */
1074
- withResource: never;
1090
+ interface ResourceTypeUrn extends Urn {
1091
+ readonly resourceType: string;
1092
+ readonly resourceId: undefined;
1093
+ /** @deprecated 禁止横向衍生,ResourceTypeUrn 不能再衍生另一个资源类型 */
1094
+ withResourceType: never;
1075
1095
  }
1076
1096
  /**
1077
- * 实例级 URN — 含完整三段:namespace、resource 和 identifier
1097
+ * 实例级 URN — 含完整三段:domain、resourceType 和 resourceId
1078
1098
  *
1079
1099
  * 终态 URN,不可继续衍生。
1080
1100
  */
1081
- interface IdentifierUrn extends Urn {
1082
- readonly resource: string;
1083
- readonly identifier: string;
1101
+ interface ResourceIdUrn extends Urn {
1102
+ readonly resourceType: string;
1103
+ readonly resourceId: string;
1084
1104
  /** @deprecated 终态 URN,不可继续衍生 */
1085
- withResource: never;
1105
+ withResourceType: never;
1086
1106
  /** @deprecated 终态 URN,不可继续衍生 */
1087
- withIdentifier: never;
1107
+ withResourceId: never;
1088
1108
  }
1089
1109
  //#endregion
1090
1110
  //#region src/modules/core/converters/eager-type/eager-type.d.ts
@@ -18472,6 +18492,10 @@ interface LoggerModuleOptions {
18472
18492
  level?: 'fatal' | 'error' | 'warn' | 'info' | 'debug' | 'trace';
18473
18493
  /** 开发模式——启用 pino-pretty 彩色输出 */
18474
18494
  pretty?: boolean;
18495
+ /** pino-http autoLogging 配置,用于跳过指定路由的成功日志(错误日志不受影响) */
18496
+ autoLogging?: {
18497
+ ignore: (req: IncomingMessage) => boolean;
18498
+ };
18475
18499
  }
18476
18500
  //#endregion
18477
18501
  //#region src/modules/logger/logger.module.d.ts
@@ -18655,5 +18679,5 @@ declare class ObjectStorageService implements OnModuleInit {
18655
18679
  */
18656
18680
  declare function stableStringify(value: unknown): string;
18657
18681
  //#endregion
18658
- export { AssociationMetadata, AuthException, BUKA_MODULE_OPTIONS_TOKEN, Base32, BlindIndex, BlindIndexHasher, BlindIndexModule, BlindIndexService, BlindIndexV1Hasher, BukaConfigurableModuleClass, BukaExceptions, BukaModule, BukaModuleOptions, BukaPageQueryValidationPipe, BukaValidationPipe, BusinessException, Cardinality, type CipherMetadata, CollectionAssociationMetadata, Column, Composite, CompositePropertyMetadata, ConfigurableModuleClass, ConflictException, CursorPagination, DatabaseConfig, type DecryptCommand, DegradeException, Dictionary, DictionaryPropertyMetadata, DiscreteEntity, EagerType, type EncryptCommand, EncryptedPayload, EntityRef, Enum, EnumPropertyMetadata, EnvelopeEncryptionModule, type EnvelopeEncryptionModuleOptions, EnvelopeEncryptionService, ErrorCategory, ErrorCode, ErrorCodeController, ErrorCodeExceptionFilter, ErrorCodeDefinitionDto as ErrorCodeItemDto, ErrorCodeMetadataDto, type ErrorCodeOptions, ErrorCodePartsDto, ErrorCodeRegistry, ErrorResponseSchema, type ExceptionConstructor, type ExceptionConstructorWithArgs, type ExceptionDetail, ExceptionDetailSchema, ExceptionModule, type ExceptionModuleOptions as ExceptionNestModuleOptions, type ExceptionOptions, type ExceptionOptionsWithFactory, type ExceptionOptionsWithMessage, ExcludeDefinedOpt, ExcludeHidden, ExcludeOpt, ExcludeRef, ExcludeScalarClass, FeatureException, FilterQuery, FilterQueryOperator, FilterQueryOperators, FilterQueryOperatorsMetadataKey, FilterQueryTransformPipe, HAS_ANY_KEY, HasAnyKey, HttpException, type HttpExceptionOptions, IEntityPrimaryKey, IFilter, IFilterQuery, IFilterQueryCollectionCondition, IFilterQueryCondition, IFilterQueryNestedProperty, IFilterQueryObject, IFilterQueryProperty, IListResponseBody, IListResponseBodyMeta, INextCursorPageParameters, IOffsetPageParameters, IOrderQuery, IPageQuery, IPreviousCursorPageParameters, IResponseBody, IS_CROCKFORD_BASE32, IS_IDENTIFIER_URN, IS_NAMESPACE_URN, IS_RESOURCE_URN, IS_SCALAR_DICTIONARY, IS_URN, IdentifierUrn, InjectLogger, IsBrowserRequest, IsCrockfordBase32, IsHidden, IsIdentifierUrn, IsNamespaceUrn, IsOpt, IsResourceUrn, IsScalar, IsScalarDictionary, IsUrn, KeyEnvelope, LinearEntity, List, ListErrorCodesResponseDto, ListPropertyMetadata, ListResponseBodyType, Logger, LoggerConfig, LoggerErrorInterceptor, LoggerModule, type LoggerModuleOptions, MATCH_JSON_SCHEMA, MODULE_OPTIONS_TOKEN, MatchJsonSchema, Model, ModelMetadata, ModelOptions, ModelRegister, ModelSchemaOptions, ModuleExceptions, type ExceptionModuleOptions$1 as ModuleExceptionsOptions, NamespaceUrn, NextCursorPageSchema, ObjectStorageModule, ObjectStorageModuleConfig, ObjectStorageModuleOptions, ObjectStorageOptions, ObjectStorageService, OffsetPageSchema, OffsetPagination, OmitType, OpenBaoAppRoleAuth, OpenBaoAppRoleAuthConfig, OpenBaoAuthMethod, OpenBaoAuthResponse, OpenBaoHttpClient, OpenBaoKubernetesAuth, OpenBaoKubernetesAuthConfig, OpenBaoModule, OpenBaoModuleConfig, OpenBaoModuleOptions, OpenBaoTokenAuth, OpenBaoTokenAuthConfig, OpenBaoTokenLookupSelfResponse, OpenBaoTokenManager, OpenBaoUserpassAuth, OpenBaoUserpassAuthConfig, OptionalPageQuery, OrderQueryType, PageQuery, ParseUUIDv7Pipe, PartialType, PendingException, PickType, PreviousCursorPageSchema, PrimaryKeyType, PrimaryKeyTypeClassMetadataPropertyKey, Property, PropertyKind, PropertyMetadata, RateLimitException, type ReencryptCommand, RefAssociationMetadata, type ResolveExceptions, ResourceUrn, ResponseBodyType, SaltedHash, SaltedHashHasher, SaltedHashModule, SaltedHashService, SaltedHashV1Hasher, ScalarClass, ScalarPropertyMetadata, type SchemaObject, Slice, SwaggerPatcher, SystemException, ThirdPartyException, TimestampedEntity, type UnifyExceptionResponsesOptions, Urn, VALIDATE_NESTED_DICTIONARY, ValidateNestedDictionary, ValidationException, getExceptionModuleId, getFilterQueryOperators, isScalarClass, serializeModel, setOpenBaoToken, stableStringify };
18682
+ export { AssociationMetadata, AuthException, BUKA_MODULE_OPTIONS_TOKEN, Base32, BlindIndex, BlindIndexHasher, BlindIndexModule, BlindIndexService, BlindIndexV1Hasher, BukaConfigurableModuleClass, BukaExceptions, BukaModule, BukaModuleOptions, BukaPageQueryValidationPipe, BukaValidationPipe, BusinessException, Cardinality, type CipherMetadata, CollectionAssociationMetadata, Column, Composite, CompositePropertyMetadata, ConfigurableModuleClass, ConflictException, CursorPagination, DatabaseConfig, type DecryptCommand, DegradeException, Dictionary, DictionaryPropertyMetadata, DiscreteEntity, DomainUrn, EagerType, type EncryptCommand, EncryptedPayload, EntityRef, Enum, EnumPropertyMetadata, EnvelopeEncryptionModule, type EnvelopeEncryptionModuleOptions, EnvelopeEncryptionService, ErrorCategory, ErrorCode, ErrorCodeController, ErrorCodeExceptionFilter, ErrorCodeDefinitionDto as ErrorCodeItemDto, ErrorCodeMetadataDto, type ErrorCodeOptions, ErrorCodePartsDto, ErrorCodeRegistry, ErrorResponseSchema, type ExceptionConstructor, type ExceptionConstructorWithArgs, type ExceptionDetail, ExceptionDetailSchema, ExceptionModule, type ExceptionModuleOptions as ExceptionNestModuleOptions, type ExceptionOptions, type ExceptionOptionsWithFactory, type ExceptionOptionsWithMessage, ExcludeDefinedOpt, ExcludeHidden, ExcludeOpt, ExcludeRef, ExcludeScalarClass, FeatureException, FilterQuery, FilterQueryOperator, FilterQueryOperators, FilterQueryOperatorsMetadataKey, FilterQueryTransformPipe, HAS_ANY_KEY, HasAnyKey, HttpException, type HttpExceptionOptions, IEntityPrimaryKey, IFilter, IFilterQuery, IFilterQueryCollectionCondition, IFilterQueryCondition, IFilterQueryNestedProperty, IFilterQueryObject, IFilterQueryProperty, IListResponseBody, IListResponseBodyMeta, INextCursorPageParameters, IOffsetPageParameters, IOrderQuery, IPageQuery, IPreviousCursorPageParameters, IResponseBody, IS_CROCKFORD_BASE32, IS_DOMAIN_URN, IS_RESOURCE_ID_URN, IS_RESOURCE_TYPE_URN, IS_SCALAR_DICTIONARY, IS_URN, InjectLogger, IsBrowserRequest, IsCrockfordBase32, IsDomainUrn, IsHidden, IsOpt, IsResourceIdUrn, IsResourceTypeUrn, IsScalar, IsScalarDictionary, IsUrn, KeyEnvelope, LinearEntity, List, ListErrorCodesResponseDto, ListPropertyMetadata, ListResponseBodyType, Logger, LoggerConfig, LoggerErrorInterceptor, LoggerModule, type LoggerModuleOptions, MATCH_JSON_SCHEMA, MODULE_OPTIONS_TOKEN, MatchJsonSchema, Model, ModelMetadata, ModelOptions, ModelRegister, ModelSchemaOptions, ModuleExceptions, type ExceptionModuleOptions$1 as ModuleExceptionsOptions, NextCursorPageSchema, ObjectStorageModule, ObjectStorageModuleConfig, ObjectStorageModuleOptions, ObjectStorageOptions, ObjectStorageService, OffsetPageSchema, OffsetPagination, OmitType, OpenBaoAppRoleAuth, OpenBaoAppRoleAuthConfig, OpenBaoAuthMethod, OpenBaoAuthResponse, OpenBaoHttpClient, OpenBaoKubernetesAuth, OpenBaoKubernetesAuthConfig, OpenBaoModule, OpenBaoModuleConfig, OpenBaoModuleOptions, OpenBaoTokenAuth, OpenBaoTokenAuthConfig, OpenBaoTokenLookupSelfResponse, OpenBaoTokenManager, OpenBaoUserpassAuth, OpenBaoUserpassAuthConfig, OptionalPageQuery, OrderQueryType, PageQuery, ParseUUIDv7Pipe, PartialType, PendingException, PickType, PreviousCursorPageSchema, PrimaryKeyType, PrimaryKeyTypeClassMetadataPropertyKey, Property, PropertyKind, PropertyMetadata, RateLimitException, type ReencryptCommand, RefAssociationMetadata, type ResolveExceptions, ResourceIdUrn, ResourceTypeUrn, ResponseBodyType, SaltedHash, SaltedHashHasher, SaltedHashModule, SaltedHashService, SaltedHashV1Hasher, ScalarClass, ScalarPropertyMetadata, type SchemaObject, Slice, SwaggerPatcher, SystemException, ThirdPartyException, TimestampedEntity, type UnifyExceptionResponsesOptions, Urn, VALIDATE_NESTED_DICTIONARY, ValidateNestedDictionary, ValidationException, getExceptionModuleId, getFilterQueryOperators, isScalarClass, serializeModel, setOpenBaoToken, stableStringify };
18659
18683
  //# sourceMappingURL=index.d.ts.map