@buka/nestjs-kit 4.8.0 → 4.9.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/CHANGELOG.md +14 -0
- package/dist/index.d.mts +31 -1
- package/dist/index.d.ts +31 -1
- package/dist/index.js +23 -8
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +23 -8
- package/dist/index.mjs.map +1 -1
- package/docs/exception.md +1 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [4.9.1](https://github.com/buka-ltd/npm.nestjs-kit/compare/v4.9.0...v4.9.1) (2026-11-30)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* 并发解密共享 DEK 时不再被清零 ([63d3395](https://github.com/buka-ltd/npm.nestjs-kit/commit/63d33958f3c1c1b097fcb82fb28d8ac34d9378d4))
|
|
9
|
+
|
|
10
|
+
## [4.9.0](https://github.com/buka-ltd/npm.nestjs-kit/compare/v4.8.0...v4.9.0) (2026-11-28)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Features
|
|
14
|
+
|
|
15
|
+
* 新增协议签署门禁错误码 ([233dddc](https://github.com/buka-ltd/npm.nestjs-kit/commit/233dddcfbaa1c40859718172b69b9106dbaf8282))
|
|
16
|
+
|
|
3
17
|
## [4.8.0](https://github.com/buka-ltd/npm.nestjs-kit/compare/v4.7.1...v4.8.0) (2026-11-22)
|
|
4
18
|
|
|
5
19
|
|
package/dist/index.d.mts
CHANGED
|
@@ -17525,6 +17525,28 @@ interface PlanLimitDetail extends ClientGateDetail {
|
|
|
17525
17525
|
/** 方案允许的上限 */
|
|
17526
17526
|
readonly max: number;
|
|
17527
17527
|
}
|
|
17528
|
+
/** 待签署的一份协议(当前生效版本的摘要) */
|
|
17529
|
+
interface AgreementSignatureRequirement {
|
|
17530
|
+
/** 协议版本 ID,提交签署时原样回传 */
|
|
17531
|
+
readonly agreementVersionId: string;
|
|
17532
|
+
/** 协议标识(slug) */
|
|
17533
|
+
readonly slug: string;
|
|
17534
|
+
/** 协议标题 */
|
|
17535
|
+
readonly title: string;
|
|
17536
|
+
/** 版本号 */
|
|
17537
|
+
readonly version: number;
|
|
17538
|
+
/** 正文的内容寻址地址(含 hash 段,可直接打开) */
|
|
17539
|
+
readonly href: string;
|
|
17540
|
+
/** 正文内容指纹(已编译 HTML 的 SHA-256) */
|
|
17541
|
+
readonly contentHash: string;
|
|
17542
|
+
/** 版本发布时间(ISO 8601) */
|
|
17543
|
+
readonly publishedAt?: string;
|
|
17544
|
+
}
|
|
17545
|
+
/** 协议签署未完成 */
|
|
17546
|
+
interface AgreementSignatureRequiredDetail extends ClientGateDetail {
|
|
17547
|
+
/** 当前账户待签署的协议,至少一项 */
|
|
17548
|
+
readonly agreements: readonly AgreementSignatureRequirement[];
|
|
17549
|
+
}
|
|
17528
17550
|
/**
|
|
17529
17551
|
* 客户端门禁(moduleId: 1)
|
|
17530
17552
|
*
|
|
@@ -17578,6 +17600,14 @@ declare class ClientGateExceptions {
|
|
|
17578
17600
|
* 资源名与资源标识都由调用方给出:库只提供文案模板,不持有任何产品的资源词汇。
|
|
17579
17601
|
*/
|
|
17580
17602
|
static readonly PlanLimitReached: ExceptionConstructorWithArgs<[resourceLabel: string, current: number, max: number]>;
|
|
17603
|
+
/**
|
|
17604
|
+
* 协议签署未完成
|
|
17605
|
+
*
|
|
17606
|
+
* 协议发布新版本、或登录入口新绑定协议后,当前账户尚未签署生效版本时抛出。
|
|
17607
|
+
* 客户端应展示不可关闭的协议签署页:列出待签署的协议、允许打开正文、
|
|
17608
|
+
* 「同意并继续」提交签署,「不同意并退出登录」结束会话。
|
|
17609
|
+
*/
|
|
17610
|
+
static readonly AgreementSignatureRequired: ExceptionConstructorWithArgs<[]>;
|
|
17581
17611
|
}
|
|
17582
17612
|
//#endregion
|
|
17583
17613
|
//#region src/modules/exception/filters/exception.filter.d.ts
|
|
@@ -18138,5 +18168,5 @@ declare function throwOnResponseError(options?: ThrowOnResponseErrorOptions): Ke
|
|
|
18138
18168
|
*/
|
|
18139
18169
|
declare function stableStringify(value: unknown): string;
|
|
18140
18170
|
//#endregion
|
|
18141
|
-
export { AssociationMetadata, AuthException, BUKA_MODULE_OPTIONS_TOKEN, Base32, BlindIndex, BlindIndexHasher, BlindIndexModule, BlindIndexService, BlindIndexV1Hasher, BukaConfigurableModuleClass, BukaExceptions, BukaModule, BukaModuleOptions, BukaPageQueryValidationPipe, BukaRequestException, type BukaRequestExceptionOptions, BukaValidationPipe, BusinessException, type CapabilityUnavailableDetail, Cardinality, type CipherMetadata, type ClientGateDetail, ClientGateExceptions, type ClientVersionRejectedDetail, CollectionAssociationMetadata, Column, Composite, CompositePropertyMetadata, ConfigurableModuleClass, ConflictException, CursorPagination, DatabaseConfig, type DecryptCommand, DegradeException, Dictionary, DictionaryPropertyMetadata, DiscreteEntity, type EncryptCommand, EncryptedPayload, type EntitlementDetail, EntityDto, EntityDtoShape, 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, ICollectionOperator, IEntityPrimaryKey, IFilter, IFilterQuery, IListResponseBody, IListResponseBodyMeta, INestedOperator, INextCursorPageParameters, IObjectOperator, IOffsetPageParameters, IOrderQuery, IPageQuery, IPreviousCursorPageParameters, IPropertyOperator, IResponseBody, IS_CROCKFORD_BASE32, IS_DOMAIN_URN, IS_ENUM_COLUMN, IS_SCALAR_DICTIONARY, IS_URN, IScalarOperator, InjectLogger, IntersectionType, IsBrowserRequest, IsCrockfordBase32, IsDomainUrn, IsEnumColumn, IsHidden, IsOpt, IsScalar, IsScalarDictionary, IsUrn, KeyEnvelope, LinearEntity, List, ListErrorCodesResponseDto, ListPropertyMetadata, ListResponseBodyType, Logger, LoggerConfig, LoggerErrorInterceptor, LoggerModule, type LoggerModuleOptions, MATCH_JSON_SCHEMA, MODULE_OPTIONS_TOKEN, type MaintenanceDetail, MatchJsonSchema, MatchesUrn, 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, type OperationObject, OptionalPageQuery, OrderQueryType, PageQuery, ParseUUIDv7Pipe, PartialType, PendingException, PickType, type PlanLimitDetail, PreviousCursorPageSchema, PrimaryKeyType, PrimaryKeyTypeClassMetadataPropertyKey, Property, PropertyKind, PropertyMetadata, RateLimitException, type ReencryptCommand, RefAssociationMetadata, type ResolveExceptions, ResponseBodyType, SKIP_UNIFIED_EXCEPTION_RESPONSE_EXTENSION, SaltedHash, SaltedHashHasher, SaltedHashModule, SaltedHashService, SaltedHashV1Hasher, ScalarClass, ScalarPropertyMetadata, type SchemaObject, SkipUnifiedExceptionResponse, Slice, type SwaggerHttpMethod, SwaggerPatcher, SystemException, ThirdPartyException, type ThrowOnResponseErrorOptions, TimestampedEntity, type UnifyExceptionResponsesFilterContext, type UnifyExceptionResponsesOptions, Urn, VALIDATE_NESTED_DICTIONARY, ValidateNestedDictionary, ValidationException, getExceptionModuleId, getFilterQueryOperators, isScalarClass, serializeModel, setOpenBaoToken, stableStringify, throwOnResponseError };
|
|
18171
|
+
export { type AgreementSignatureRequiredDetail, type AgreementSignatureRequirement, AssociationMetadata, AuthException, BUKA_MODULE_OPTIONS_TOKEN, Base32, BlindIndex, BlindIndexHasher, BlindIndexModule, BlindIndexService, BlindIndexV1Hasher, BukaConfigurableModuleClass, BukaExceptions, BukaModule, BukaModuleOptions, BukaPageQueryValidationPipe, BukaRequestException, type BukaRequestExceptionOptions, BukaValidationPipe, BusinessException, type CapabilityUnavailableDetail, Cardinality, type CipherMetadata, type ClientGateDetail, ClientGateExceptions, type ClientVersionRejectedDetail, CollectionAssociationMetadata, Column, Composite, CompositePropertyMetadata, ConfigurableModuleClass, ConflictException, CursorPagination, DatabaseConfig, type DecryptCommand, DegradeException, Dictionary, DictionaryPropertyMetadata, DiscreteEntity, type EncryptCommand, EncryptedPayload, type EntitlementDetail, EntityDto, EntityDtoShape, 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, ICollectionOperator, IEntityPrimaryKey, IFilter, IFilterQuery, IListResponseBody, IListResponseBodyMeta, INestedOperator, INextCursorPageParameters, IObjectOperator, IOffsetPageParameters, IOrderQuery, IPageQuery, IPreviousCursorPageParameters, IPropertyOperator, IResponseBody, IS_CROCKFORD_BASE32, IS_DOMAIN_URN, IS_ENUM_COLUMN, IS_SCALAR_DICTIONARY, IS_URN, IScalarOperator, InjectLogger, IntersectionType, IsBrowserRequest, IsCrockfordBase32, IsDomainUrn, IsEnumColumn, IsHidden, IsOpt, IsScalar, IsScalarDictionary, IsUrn, KeyEnvelope, LinearEntity, List, ListErrorCodesResponseDto, ListPropertyMetadata, ListResponseBodyType, Logger, LoggerConfig, LoggerErrorInterceptor, LoggerModule, type LoggerModuleOptions, MATCH_JSON_SCHEMA, MODULE_OPTIONS_TOKEN, type MaintenanceDetail, MatchJsonSchema, MatchesUrn, 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, type OperationObject, OptionalPageQuery, OrderQueryType, PageQuery, ParseUUIDv7Pipe, PartialType, PendingException, PickType, type PlanLimitDetail, PreviousCursorPageSchema, PrimaryKeyType, PrimaryKeyTypeClassMetadataPropertyKey, Property, PropertyKind, PropertyMetadata, RateLimitException, type ReencryptCommand, RefAssociationMetadata, type ResolveExceptions, ResponseBodyType, SKIP_UNIFIED_EXCEPTION_RESPONSE_EXTENSION, SaltedHash, SaltedHashHasher, SaltedHashModule, SaltedHashService, SaltedHashV1Hasher, ScalarClass, ScalarPropertyMetadata, type SchemaObject, SkipUnifiedExceptionResponse, Slice, type SwaggerHttpMethod, SwaggerPatcher, SystemException, ThirdPartyException, type ThrowOnResponseErrorOptions, TimestampedEntity, type UnifyExceptionResponsesFilterContext, type UnifyExceptionResponsesOptions, Urn, VALIDATE_NESTED_DICTIONARY, ValidateNestedDictionary, ValidationException, getExceptionModuleId, getFilterQueryOperators, isScalarClass, serializeModel, setOpenBaoToken, stableStringify, throwOnResponseError };
|
|
18142
18172
|
//# sourceMappingURL=index.d.mts.map
|
package/dist/index.d.ts
CHANGED
|
@@ -17525,6 +17525,28 @@ interface PlanLimitDetail extends ClientGateDetail {
|
|
|
17525
17525
|
/** 方案允许的上限 */
|
|
17526
17526
|
readonly max: number;
|
|
17527
17527
|
}
|
|
17528
|
+
/** 待签署的一份协议(当前生效版本的摘要) */
|
|
17529
|
+
interface AgreementSignatureRequirement {
|
|
17530
|
+
/** 协议版本 ID,提交签署时原样回传 */
|
|
17531
|
+
readonly agreementVersionId: string;
|
|
17532
|
+
/** 协议标识(slug) */
|
|
17533
|
+
readonly slug: string;
|
|
17534
|
+
/** 协议标题 */
|
|
17535
|
+
readonly title: string;
|
|
17536
|
+
/** 版本号 */
|
|
17537
|
+
readonly version: number;
|
|
17538
|
+
/** 正文的内容寻址地址(含 hash 段,可直接打开) */
|
|
17539
|
+
readonly href: string;
|
|
17540
|
+
/** 正文内容指纹(已编译 HTML 的 SHA-256) */
|
|
17541
|
+
readonly contentHash: string;
|
|
17542
|
+
/** 版本发布时间(ISO 8601) */
|
|
17543
|
+
readonly publishedAt?: string;
|
|
17544
|
+
}
|
|
17545
|
+
/** 协议签署未完成 */
|
|
17546
|
+
interface AgreementSignatureRequiredDetail extends ClientGateDetail {
|
|
17547
|
+
/** 当前账户待签署的协议,至少一项 */
|
|
17548
|
+
readonly agreements: readonly AgreementSignatureRequirement[];
|
|
17549
|
+
}
|
|
17528
17550
|
/**
|
|
17529
17551
|
* 客户端门禁(moduleId: 1)
|
|
17530
17552
|
*
|
|
@@ -17578,6 +17600,14 @@ declare class ClientGateExceptions {
|
|
|
17578
17600
|
* 资源名与资源标识都由调用方给出:库只提供文案模板,不持有任何产品的资源词汇。
|
|
17579
17601
|
*/
|
|
17580
17602
|
static readonly PlanLimitReached: ExceptionConstructorWithArgs<[resourceLabel: string, current: number, max: number]>;
|
|
17603
|
+
/**
|
|
17604
|
+
* 协议签署未完成
|
|
17605
|
+
*
|
|
17606
|
+
* 协议发布新版本、或登录入口新绑定协议后,当前账户尚未签署生效版本时抛出。
|
|
17607
|
+
* 客户端应展示不可关闭的协议签署页:列出待签署的协议、允许打开正文、
|
|
17608
|
+
* 「同意并继续」提交签署,「不同意并退出登录」结束会话。
|
|
17609
|
+
*/
|
|
17610
|
+
static readonly AgreementSignatureRequired: ExceptionConstructorWithArgs<[]>;
|
|
17581
17611
|
}
|
|
17582
17612
|
//#endregion
|
|
17583
17613
|
//#region src/modules/exception/filters/exception.filter.d.ts
|
|
@@ -18138,5 +18168,5 @@ declare function throwOnResponseError(options?: ThrowOnResponseErrorOptions): Ke
|
|
|
18138
18168
|
*/
|
|
18139
18169
|
declare function stableStringify(value: unknown): string;
|
|
18140
18170
|
//#endregion
|
|
18141
|
-
export { AssociationMetadata, AuthException, BUKA_MODULE_OPTIONS_TOKEN, Base32, BlindIndex, BlindIndexHasher, BlindIndexModule, BlindIndexService, BlindIndexV1Hasher, BukaConfigurableModuleClass, BukaExceptions, BukaModule, BukaModuleOptions, BukaPageQueryValidationPipe, BukaRequestException, type BukaRequestExceptionOptions, BukaValidationPipe, BusinessException, type CapabilityUnavailableDetail, Cardinality, type CipherMetadata, type ClientGateDetail, ClientGateExceptions, type ClientVersionRejectedDetail, CollectionAssociationMetadata, Column, Composite, CompositePropertyMetadata, ConfigurableModuleClass, ConflictException, CursorPagination, DatabaseConfig, type DecryptCommand, DegradeException, Dictionary, DictionaryPropertyMetadata, DiscreteEntity, type EncryptCommand, EncryptedPayload, type EntitlementDetail, EntityDto, EntityDtoShape, 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, ICollectionOperator, IEntityPrimaryKey, IFilter, IFilterQuery, IListResponseBody, IListResponseBodyMeta, INestedOperator, INextCursorPageParameters, IObjectOperator, IOffsetPageParameters, IOrderQuery, IPageQuery, IPreviousCursorPageParameters, IPropertyOperator, IResponseBody, IS_CROCKFORD_BASE32, IS_DOMAIN_URN, IS_ENUM_COLUMN, IS_SCALAR_DICTIONARY, IS_URN, IScalarOperator, InjectLogger, IntersectionType, IsBrowserRequest, IsCrockfordBase32, IsDomainUrn, IsEnumColumn, IsHidden, IsOpt, IsScalar, IsScalarDictionary, IsUrn, KeyEnvelope, LinearEntity, List, ListErrorCodesResponseDto, ListPropertyMetadata, ListResponseBodyType, Logger, LoggerConfig, LoggerErrorInterceptor, LoggerModule, type LoggerModuleOptions, MATCH_JSON_SCHEMA, MODULE_OPTIONS_TOKEN, type MaintenanceDetail, MatchJsonSchema, MatchesUrn, 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, type OperationObject, OptionalPageQuery, OrderQueryType, PageQuery, ParseUUIDv7Pipe, PartialType, PendingException, PickType, type PlanLimitDetail, PreviousCursorPageSchema, PrimaryKeyType, PrimaryKeyTypeClassMetadataPropertyKey, Property, PropertyKind, PropertyMetadata, RateLimitException, type ReencryptCommand, RefAssociationMetadata, type ResolveExceptions, ResponseBodyType, SKIP_UNIFIED_EXCEPTION_RESPONSE_EXTENSION, SaltedHash, SaltedHashHasher, SaltedHashModule, SaltedHashService, SaltedHashV1Hasher, ScalarClass, ScalarPropertyMetadata, type SchemaObject, SkipUnifiedExceptionResponse, Slice, type SwaggerHttpMethod, SwaggerPatcher, SystemException, ThirdPartyException, type ThrowOnResponseErrorOptions, TimestampedEntity, type UnifyExceptionResponsesFilterContext, type UnifyExceptionResponsesOptions, Urn, VALIDATE_NESTED_DICTIONARY, ValidateNestedDictionary, ValidationException, getExceptionModuleId, getFilterQueryOperators, isScalarClass, serializeModel, setOpenBaoToken, stableStringify, throwOnResponseError };
|
|
18171
|
+
export { type AgreementSignatureRequiredDetail, type AgreementSignatureRequirement, AssociationMetadata, AuthException, BUKA_MODULE_OPTIONS_TOKEN, Base32, BlindIndex, BlindIndexHasher, BlindIndexModule, BlindIndexService, BlindIndexV1Hasher, BukaConfigurableModuleClass, BukaExceptions, BukaModule, BukaModuleOptions, BukaPageQueryValidationPipe, BukaRequestException, type BukaRequestExceptionOptions, BukaValidationPipe, BusinessException, type CapabilityUnavailableDetail, Cardinality, type CipherMetadata, type ClientGateDetail, ClientGateExceptions, type ClientVersionRejectedDetail, CollectionAssociationMetadata, Column, Composite, CompositePropertyMetadata, ConfigurableModuleClass, ConflictException, CursorPagination, DatabaseConfig, type DecryptCommand, DegradeException, Dictionary, DictionaryPropertyMetadata, DiscreteEntity, type EncryptCommand, EncryptedPayload, type EntitlementDetail, EntityDto, EntityDtoShape, 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, ICollectionOperator, IEntityPrimaryKey, IFilter, IFilterQuery, IListResponseBody, IListResponseBodyMeta, INestedOperator, INextCursorPageParameters, IObjectOperator, IOffsetPageParameters, IOrderQuery, IPageQuery, IPreviousCursorPageParameters, IPropertyOperator, IResponseBody, IS_CROCKFORD_BASE32, IS_DOMAIN_URN, IS_ENUM_COLUMN, IS_SCALAR_DICTIONARY, IS_URN, IScalarOperator, InjectLogger, IntersectionType, IsBrowserRequest, IsCrockfordBase32, IsDomainUrn, IsEnumColumn, IsHidden, IsOpt, IsScalar, IsScalarDictionary, IsUrn, KeyEnvelope, LinearEntity, List, ListErrorCodesResponseDto, ListPropertyMetadata, ListResponseBodyType, Logger, LoggerConfig, LoggerErrorInterceptor, LoggerModule, type LoggerModuleOptions, MATCH_JSON_SCHEMA, MODULE_OPTIONS_TOKEN, type MaintenanceDetail, MatchJsonSchema, MatchesUrn, 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, type OperationObject, OptionalPageQuery, OrderQueryType, PageQuery, ParseUUIDv7Pipe, PartialType, PendingException, PickType, type PlanLimitDetail, PreviousCursorPageSchema, PrimaryKeyType, PrimaryKeyTypeClassMetadataPropertyKey, Property, PropertyKind, PropertyMetadata, RateLimitException, type ReencryptCommand, RefAssociationMetadata, type ResolveExceptions, ResponseBodyType, SKIP_UNIFIED_EXCEPTION_RESPONSE_EXTENSION, SaltedHash, SaltedHashHasher, SaltedHashModule, SaltedHashService, SaltedHashV1Hasher, ScalarClass, ScalarPropertyMetadata, type SchemaObject, SkipUnifiedExceptionResponse, Slice, type SwaggerHttpMethod, SwaggerPatcher, SystemException, ThirdPartyException, type ThrowOnResponseErrorOptions, TimestampedEntity, type UnifyExceptionResponsesFilterContext, type UnifyExceptionResponsesOptions, Urn, VALIDATE_NESTED_DICTIONARY, ValidateNestedDictionary, ValidationException, getExceptionModuleId, getFilterQueryOperators, isScalarClass, serializeModel, setOpenBaoToken, stableStringify, throwOnResponseError };
|
|
18142
18172
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.js
CHANGED
|
@@ -8013,6 +8013,18 @@ let ClientGateExceptions = class ClientGateExceptions {
|
|
|
8013
8013
|
messageFactory: (resourceLabel, current, max) => `${resourceLabel}数量已达上限(${current}/${max}),请提升方案后继续操作`,
|
|
8014
8014
|
description: "资源数量达到当前方案上限;需要提升方案或清理存量"
|
|
8015
8015
|
});
|
|
8016
|
+
/**
|
|
8017
|
+
* 协议签署未完成
|
|
8018
|
+
*
|
|
8019
|
+
* 协议发布新版本、或登录入口新绑定协议后,当前账户尚未签署生效版本时抛出。
|
|
8020
|
+
* 客户端应展示不可关闭的协议签署页:列出待签署的协议、允许打开正文、
|
|
8021
|
+
* 「同意并继续」提交签署,「不同意并退出登录」结束会话。
|
|
8022
|
+
*/
|
|
8023
|
+
static AgreementSignatureRequired = FeatureException({
|
|
8024
|
+
sequenceId: 7,
|
|
8025
|
+
messageFactory: () => "需要签署最新的协议后才能继续使用",
|
|
8026
|
+
description: "当前账户尚未签署登录入口要求的最新协议版本;完成协议签署后才能继续使用"
|
|
8027
|
+
});
|
|
8016
8028
|
};
|
|
8017
8029
|
ClientGateExceptions = __decorate([ModuleExceptions({ moduleId: 1 })], ClientGateExceptions);
|
|
8018
8030
|
//#endregion
|
|
@@ -8274,14 +8286,17 @@ let EnvelopeEncryptionV1Cipher = _EnvelopeEncryptionV1Cipher = class EnvelopeEnc
|
|
|
8274
8286
|
}
|
|
8275
8287
|
async decrypt(cmd) {
|
|
8276
8288
|
if (cmd.payload.cipherVersion !== this.version) throw new Error(`Cipher version mismatch: expected ${this.version}, got ${cmd.payload.cipherVersion}`);
|
|
8277
|
-
const
|
|
8278
|
-
const
|
|
8279
|
-
|
|
8280
|
-
|
|
8281
|
-
|
|
8282
|
-
|
|
8283
|
-
|
|
8284
|
-
|
|
8289
|
+
const sharedDek = await this.kmsProvider.decryptDek(cmd.envelope.kekId, cmd.envelope.kekVersion, cmd.envelope.dek);
|
|
8290
|
+
const dek = Buffer.from(sharedDek);
|
|
8291
|
+
try {
|
|
8292
|
+
const decipher = (0, crypto$1.createDecipheriv)(this.algorithm, dek, cmd.payload.cipherIv, { authTagLength: 16 });
|
|
8293
|
+
const aad = this.buildAad(cmd.envelope.kekId, cmd.extraAad);
|
|
8294
|
+
decipher.setAAD(aad);
|
|
8295
|
+
decipher.setAuthTag(cmd.payload.cipherTag);
|
|
8296
|
+
return Buffer.concat([decipher.update(cmd.payload.ciphertext), decipher.final()]);
|
|
8297
|
+
} finally {
|
|
8298
|
+
dek.fill(0);
|
|
8299
|
+
}
|
|
8285
8300
|
}
|
|
8286
8301
|
};
|
|
8287
8302
|
EnvelopeEncryptionV1Cipher = _EnvelopeEncryptionV1Cipher = __decorate([(0, _nestjs_common.Injectable)(), __decorateMetadata("design:paramtypes", [typeof (_ref$1 = typeof KmsProvider !== "undefined" && KmsProvider) === "function" ? _ref$1 : Object])], EnvelopeEncryptionV1Cipher);
|