@coopenomics/extension-kit 2026.10.15 → 2026.10.22

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/index.cjs CHANGED
@@ -1209,6 +1209,8 @@ exports.ExpenseProposalStatementSignedDocumentInputDTO = __decorateClass$j([
1209
1209
  graphql.InputType("ExpenseProposalStatementSignedDocumentInput")
1210
1210
  ], exports.ExpenseProposalStatementSignedDocumentInputDTO);
1211
1211
 
1212
+ const DOCUMENT_GENERATION_THROTTLE = { default: { limit: 60, ttl: 6e4 } };
1213
+
1212
1214
  var __defProp$i = Object.defineProperty;
1213
1215
  var __getOwnPropDesc$i = Object.getOwnPropertyDescriptor;
1214
1216
  var __decorateClass$i = (decorators, target, key, kind) => {
@@ -1342,6 +1344,10 @@ function isExtensionAvailable(availability, isMainnet) {
1342
1344
  }
1343
1345
  }
1344
1346
 
1347
+ function describeConfigField(description) {
1348
+ return JSON.stringify(description);
1349
+ }
1350
+
1345
1351
  let migrations;
1346
1352
  function registerExtensionDatabaseMigrations(list) {
1347
1353
  if (migrations) {
@@ -3193,6 +3199,7 @@ exports.CouncilField = CouncilField;
3193
3199
  exports.CurrencyValidationUtil = CurrencyValidationUtil;
3194
3200
  exports.CurrentUser = CurrentUser;
3195
3201
  exports.DEFAULT_DOCUMENT_VERSION = DEFAULT_DOCUMENT_VERSION;
3202
+ exports.DOCUMENT_GENERATION_THROTTLE = DOCUMENT_GENERATION_THROTTLE;
3196
3203
  exports.DateUtils = DateUtils;
3197
3204
  exports.DomainError = DomainError;
3198
3205
  exports.EMPTY_HASH = EMPTY_HASH;
@@ -3240,6 +3247,7 @@ exports.configureExtensionAuth = configureExtensionAuth;
3240
3247
  exports.configurePlatformSettings = configurePlatformSettings;
3241
3248
  exports.councilRolesOf = councilRolesOf;
3242
3249
  exports.createPaginationResult = createPaginationResult;
3250
+ exports.describeConfigField = describeConfigField;
3243
3251
  exports.desktopGrants = desktopGrants;
3244
3252
  exports.desktopGrantsOf = desktopGrantsOf;
3245
3253
  exports.domainErrorMessage = domainErrorMessage;
package/dist/index.d.cts CHANGED
@@ -790,6 +790,23 @@ declare class ExpenseProposalStatementSignedDocumentInputDTO extends SignedDigit
790
790
  readonly meta: ExpenseProposalStatementSignedMetaDocumentInputDTO;
791
791
  }
792
792
 
793
+ /**
794
+ * Предел частоты сборки документов на одного пайщика — общий для ядра и
795
+ * расширений, чтобы не держать число в полусотне резолверов.
796
+ *
797
+ * Сборка документа — показ текста перед подписью, а не действие с
798
+ * последствиями: совет, утверждающий подряд несколько решений, собирает их
799
+ * десятками. До 19.10.2026 предел был три в минуту, и председатель упирался в
800
+ * «Слишком часто» на четвёртом решении. Предел страхует узел от перебора, а не
801
+ * от работы человека.
802
+ */
803
+ declare const DOCUMENT_GENERATION_THROTTLE: {
804
+ default: {
805
+ limit: number;
806
+ ttl: number;
807
+ };
808
+ };
809
+
793
810
  /**
794
811
  * Состояние заявки на вступление.
795
812
  *
@@ -1248,6 +1265,11 @@ interface DeserializedDescriptionOfExtension {
1248
1265
  */
1249
1266
  copyable?: boolean;
1250
1267
  }
1268
+ /**
1269
+ * Описание поля конфигурации для `.describe()` zod-схемы: форма настроек
1270
+ * расширения берёт отсюда подпись, подсказку и вид поля.
1271
+ */
1272
+ declare function describeConfigField(description: DeserializedDescriptionOfExtension): string;
1251
1273
 
1252
1274
  /**
1253
1275
  * Миграции таблиц установленных расширений — то, что контроллер отдаёт TypeORM
@@ -2335,5 +2357,5 @@ declare function chainRefusalOf(error: unknown): DomainError | null;
2335
2357
  */
2336
2358
  declare function rethrowChainError(error: unknown): never;
2337
2359
 
2338
- export { APP_RIGHTS, ActiveUserStatusGuard, AmountFormatterUtils, AssetUtils, BaseExtensionModule, BucketRegistry, CandidateFilterInputDTO, CandidateOutputDTO, CandidateStatus, CouncilField, CurrencyValidationUtil, CurrentUser, DEFAULT_DOCUMENT_VERSION, DateUtils, DocumentAggregateDTO, DomainError, DomainToBlockchainUtils, EMPTY_HASH, EXTENSION_APP_TERMINATE_EVENT, EXTENSION_REPOSITORY, EXTENSION_SECRET_SET, EXTENSION_SECRET_UNSET, ExpenseProposalStatementGenerateDocumentInputDTO, ExpenseProposalStatementSignedDocumentInputDTO, ExpenseProposalStatementSignedMetaDocumentInputDTO, ExtensionAvailability, ExtensionConfigSuppliedBy, ExtensionDomainEntity, GRANTED_SCOPE_KEY, GenerateDocumentInputDTO, GenerateDocumentOptionsInputDTO, GenerateMetaDocumentInputDTO, GeneratedDocumentDTO, GetLedger2HistoryInputDTO, GetLedger2PostingsInputDTO, GqlJwtAuthGuard, GrantedScope, HttpApiError, HttpJwtAuthGuard, IPNProvider, InjectBucket, KYSELY, LOG_EXTENSION_REPOSITORY, LangType, Ledger2AccountDTO, Ledger2HistoryResponseDTO, Ledger2OperationDTO, Ledger2PostingDTO, Ledger2PostingsResponseDTO, Ledger2WalletDTO, LogExtensionDomainEntity, MAIN_DATABASE, MetaDocumentInputDTO, ONBOARDING_EXPIRY_DAYS, ONBOARDING_EXPIRY_MS, OptionalCurrentUser, OptionalGqlJwtAuthGuard, PaginatedProcessSummary, PaginationInputDTO, PaginationResult, PaginationUtils, PaymentProvider, PollingProvider, ProcessActionDTO, ProcessDeltaDTO, ProcessDocumentDTO, ProcessDocumentSourceDTO, ProcessSummaryDTO, ProcessViewDTO, ProcessesFilterInput, QuantityUtils, RIGHT_METADATA_KEY, RequireRight, RightsGuard, SCOPE_DENIALS, SELF, SORT_FIELD_PATTERN, SafeMarkup, SignatureInfoDTO, SignatureInfoInputDTO, SignedDigitalDocumentDTO, SignedDigitalDocumentInputDTO, TableStore, TransactionDTO, UseBucket, affectedCount, attachOne, bucketProvidersFor, bucketTokenFor, buildPaginationResult, camelRow, chainErrorCode, chainRefusalOf, chainTextDigest, checkPaymentAmount, checkPaymentSymbol, checkRight, checkRightScope, computeOnboardingExpiresAt, configureExtensionAuth, configureLocalChangePublisher, configurePlatformSettings, councilRolesOf, createPaginationResult, desktopGrants, desktopGrantsOf, domainErrorMessage, expandRights, extensionDatabaseMigrations, generateHashFromString, generateRandomHash, generateUniqueHash, getAmountPlusFee, getAppliedBlockNum, hasServerSecret, inTransaction, isChainTextDigest, isChainTextOf, isExtensionAvailable, memberRolesOf, mergeSecretConfig, paginationInputToOffset, parseChainAssert, pendingLocalChanges, pickDefined, platformSettings, providerSuppliedPaths, rawQuery, redactSecretConfig, registerExtensionDatabaseMigrations, resetExtensionDatabaseMigrations, resolveChainText, rethrowChainError, rightConditions, rightGrants, rightMatches, rightsByRole, rightsHeld, sanitizeUserText, scopeConditions, scopeOfRight, scopesMatched, snakeRow, sortColumn, sortDirection, validationMessage, verifySignedDocumentAgainstStoredDraft, waitForEvent };
2360
+ export { APP_RIGHTS, ActiveUserStatusGuard, AmountFormatterUtils, AssetUtils, BaseExtensionModule, BucketRegistry, CandidateFilterInputDTO, CandidateOutputDTO, CandidateStatus, CouncilField, CurrencyValidationUtil, CurrentUser, DEFAULT_DOCUMENT_VERSION, DOCUMENT_GENERATION_THROTTLE, DateUtils, DocumentAggregateDTO, DomainError, DomainToBlockchainUtils, EMPTY_HASH, EXTENSION_APP_TERMINATE_EVENT, EXTENSION_REPOSITORY, EXTENSION_SECRET_SET, EXTENSION_SECRET_UNSET, ExpenseProposalStatementGenerateDocumentInputDTO, ExpenseProposalStatementSignedDocumentInputDTO, ExpenseProposalStatementSignedMetaDocumentInputDTO, ExtensionAvailability, ExtensionConfigSuppliedBy, ExtensionDomainEntity, GRANTED_SCOPE_KEY, GenerateDocumentInputDTO, GenerateDocumentOptionsInputDTO, GenerateMetaDocumentInputDTO, GeneratedDocumentDTO, GetLedger2HistoryInputDTO, GetLedger2PostingsInputDTO, GqlJwtAuthGuard, GrantedScope, HttpApiError, HttpJwtAuthGuard, IPNProvider, InjectBucket, KYSELY, LOG_EXTENSION_REPOSITORY, LangType, Ledger2AccountDTO, Ledger2HistoryResponseDTO, Ledger2OperationDTO, Ledger2PostingDTO, Ledger2PostingsResponseDTO, Ledger2WalletDTO, LogExtensionDomainEntity, MAIN_DATABASE, MetaDocumentInputDTO, ONBOARDING_EXPIRY_DAYS, ONBOARDING_EXPIRY_MS, OptionalCurrentUser, OptionalGqlJwtAuthGuard, PaginatedProcessSummary, PaginationInputDTO, PaginationResult, PaginationUtils, PaymentProvider, PollingProvider, ProcessActionDTO, ProcessDeltaDTO, ProcessDocumentDTO, ProcessDocumentSourceDTO, ProcessSummaryDTO, ProcessViewDTO, ProcessesFilterInput, QuantityUtils, RIGHT_METADATA_KEY, RequireRight, RightsGuard, SCOPE_DENIALS, SELF, SORT_FIELD_PATTERN, SafeMarkup, SignatureInfoDTO, SignatureInfoInputDTO, SignedDigitalDocumentDTO, SignedDigitalDocumentInputDTO, TableStore, TransactionDTO, UseBucket, affectedCount, attachOne, bucketProvidersFor, bucketTokenFor, buildPaginationResult, camelRow, chainErrorCode, chainRefusalOf, chainTextDigest, checkPaymentAmount, checkPaymentSymbol, checkRight, checkRightScope, computeOnboardingExpiresAt, configureExtensionAuth, configureLocalChangePublisher, configurePlatformSettings, councilRolesOf, createPaginationResult, describeConfigField, desktopGrants, desktopGrantsOf, domainErrorMessage, expandRights, extensionDatabaseMigrations, generateHashFromString, generateRandomHash, generateUniqueHash, getAmountPlusFee, getAppliedBlockNum, hasServerSecret, inTransaction, isChainTextDigest, isChainTextOf, isExtensionAvailable, memberRolesOf, mergeSecretConfig, paginationInputToOffset, parseChainAssert, pendingLocalChanges, pickDefined, platformSettings, providerSuppliedPaths, rawQuery, redactSecretConfig, registerExtensionDatabaseMigrations, resetExtensionDatabaseMigrations, resolveChainText, rethrowChainError, rightConditions, rightGrants, rightMatches, rightsByRole, rightsHeld, sanitizeUserText, scopeConditions, scopeOfRight, scopesMatched, snakeRow, sortColumn, sortDirection, validationMessage, verifySignedDocumentAgainstStoredDraft, waitForEvent };
2339
2361
  export type { AppRights, AssignableRole, AttachedRole, BucketSource, BucketSpec, CouncilRole, DeserializedDescriptionOfExtension, DesktopGrantsRequest, DomainErrorParams, EventSource, EventWait, ExcludeCommonProps, ExtensionAppTerminatePayload, ExtensionAuthOptions, ExtensionConfigFieldPolicy, ExtensionConfigPolicy, ExtensionDatabaseMigrationClass, ExtensionDomainInterface, ExtensionDomainRepository, ExtensionSchemaMigrationAfterContext, GeneratedDocumentDomainInterface, GeneratedDocumentDraft, GrantedAction, IDesktopConfig, IExtensionSchemaMigration, IGrantedScope, IRegistryExtension, IResolvedRegistryExtension, IRightRequirement, LoadGeneratedDocumentByDocHash, LogExtensionDomainInterface, LogExtensionDomainRepository, LogExtensionFilter, LogExtensionPaginationOptions, LogExtensionPaginationResult, MainDatabase, MemberRole, NarrowRightScope, PaymentDetails, PendingLocalChange, PlatformBlockchainSettings, PlatformSettings, RegisteredBucket, RequireFields, RightActor, RightFacts, RightGrant, RightOutcome, RightScope, RightSource, RightsCaller, RightsGroup, RightsTable, RolePermission, SchemaMigration, SchemaMigrationClass, SchemaQueryRunner, ScopeCheckInput, ScopeCheckResult, SignedDocumentMetaCompareMode, SignedDocumentMetaVerification, SignedDocumentToVerify, TransactResultWithResponse };
package/dist/index.d.mts CHANGED
@@ -790,6 +790,23 @@ declare class ExpenseProposalStatementSignedDocumentInputDTO extends SignedDigit
790
790
  readonly meta: ExpenseProposalStatementSignedMetaDocumentInputDTO;
791
791
  }
792
792
 
793
+ /**
794
+ * Предел частоты сборки документов на одного пайщика — общий для ядра и
795
+ * расширений, чтобы не держать число в полусотне резолверов.
796
+ *
797
+ * Сборка документа — показ текста перед подписью, а не действие с
798
+ * последствиями: совет, утверждающий подряд несколько решений, собирает их
799
+ * десятками. До 19.10.2026 предел был три в минуту, и председатель упирался в
800
+ * «Слишком часто» на четвёртом решении. Предел страхует узел от перебора, а не
801
+ * от работы человека.
802
+ */
803
+ declare const DOCUMENT_GENERATION_THROTTLE: {
804
+ default: {
805
+ limit: number;
806
+ ttl: number;
807
+ };
808
+ };
809
+
793
810
  /**
794
811
  * Состояние заявки на вступление.
795
812
  *
@@ -1248,6 +1265,11 @@ interface DeserializedDescriptionOfExtension {
1248
1265
  */
1249
1266
  copyable?: boolean;
1250
1267
  }
1268
+ /**
1269
+ * Описание поля конфигурации для `.describe()` zod-схемы: форма настроек
1270
+ * расширения берёт отсюда подпись, подсказку и вид поля.
1271
+ */
1272
+ declare function describeConfigField(description: DeserializedDescriptionOfExtension): string;
1251
1273
 
1252
1274
  /**
1253
1275
  * Миграции таблиц установленных расширений — то, что контроллер отдаёт TypeORM
@@ -2335,5 +2357,5 @@ declare function chainRefusalOf(error: unknown): DomainError | null;
2335
2357
  */
2336
2358
  declare function rethrowChainError(error: unknown): never;
2337
2359
 
2338
- export { APP_RIGHTS, ActiveUserStatusGuard, AmountFormatterUtils, AssetUtils, BaseExtensionModule, BucketRegistry, CandidateFilterInputDTO, CandidateOutputDTO, CandidateStatus, CouncilField, CurrencyValidationUtil, CurrentUser, DEFAULT_DOCUMENT_VERSION, DateUtils, DocumentAggregateDTO, DomainError, DomainToBlockchainUtils, EMPTY_HASH, EXTENSION_APP_TERMINATE_EVENT, EXTENSION_REPOSITORY, EXTENSION_SECRET_SET, EXTENSION_SECRET_UNSET, ExpenseProposalStatementGenerateDocumentInputDTO, ExpenseProposalStatementSignedDocumentInputDTO, ExpenseProposalStatementSignedMetaDocumentInputDTO, ExtensionAvailability, ExtensionConfigSuppliedBy, ExtensionDomainEntity, GRANTED_SCOPE_KEY, GenerateDocumentInputDTO, GenerateDocumentOptionsInputDTO, GenerateMetaDocumentInputDTO, GeneratedDocumentDTO, GetLedger2HistoryInputDTO, GetLedger2PostingsInputDTO, GqlJwtAuthGuard, GrantedScope, HttpApiError, HttpJwtAuthGuard, IPNProvider, InjectBucket, KYSELY, LOG_EXTENSION_REPOSITORY, LangType, Ledger2AccountDTO, Ledger2HistoryResponseDTO, Ledger2OperationDTO, Ledger2PostingDTO, Ledger2PostingsResponseDTO, Ledger2WalletDTO, LogExtensionDomainEntity, MAIN_DATABASE, MetaDocumentInputDTO, ONBOARDING_EXPIRY_DAYS, ONBOARDING_EXPIRY_MS, OptionalCurrentUser, OptionalGqlJwtAuthGuard, PaginatedProcessSummary, PaginationInputDTO, PaginationResult, PaginationUtils, PaymentProvider, PollingProvider, ProcessActionDTO, ProcessDeltaDTO, ProcessDocumentDTO, ProcessDocumentSourceDTO, ProcessSummaryDTO, ProcessViewDTO, ProcessesFilterInput, QuantityUtils, RIGHT_METADATA_KEY, RequireRight, RightsGuard, SCOPE_DENIALS, SELF, SORT_FIELD_PATTERN, SafeMarkup, SignatureInfoDTO, SignatureInfoInputDTO, SignedDigitalDocumentDTO, SignedDigitalDocumentInputDTO, TableStore, TransactionDTO, UseBucket, affectedCount, attachOne, bucketProvidersFor, bucketTokenFor, buildPaginationResult, camelRow, chainErrorCode, chainRefusalOf, chainTextDigest, checkPaymentAmount, checkPaymentSymbol, checkRight, checkRightScope, computeOnboardingExpiresAt, configureExtensionAuth, configureLocalChangePublisher, configurePlatformSettings, councilRolesOf, createPaginationResult, desktopGrants, desktopGrantsOf, domainErrorMessage, expandRights, extensionDatabaseMigrations, generateHashFromString, generateRandomHash, generateUniqueHash, getAmountPlusFee, getAppliedBlockNum, hasServerSecret, inTransaction, isChainTextDigest, isChainTextOf, isExtensionAvailable, memberRolesOf, mergeSecretConfig, paginationInputToOffset, parseChainAssert, pendingLocalChanges, pickDefined, platformSettings, providerSuppliedPaths, rawQuery, redactSecretConfig, registerExtensionDatabaseMigrations, resetExtensionDatabaseMigrations, resolveChainText, rethrowChainError, rightConditions, rightGrants, rightMatches, rightsByRole, rightsHeld, sanitizeUserText, scopeConditions, scopeOfRight, scopesMatched, snakeRow, sortColumn, sortDirection, validationMessage, verifySignedDocumentAgainstStoredDraft, waitForEvent };
2360
+ export { APP_RIGHTS, ActiveUserStatusGuard, AmountFormatterUtils, AssetUtils, BaseExtensionModule, BucketRegistry, CandidateFilterInputDTO, CandidateOutputDTO, CandidateStatus, CouncilField, CurrencyValidationUtil, CurrentUser, DEFAULT_DOCUMENT_VERSION, DOCUMENT_GENERATION_THROTTLE, DateUtils, DocumentAggregateDTO, DomainError, DomainToBlockchainUtils, EMPTY_HASH, EXTENSION_APP_TERMINATE_EVENT, EXTENSION_REPOSITORY, EXTENSION_SECRET_SET, EXTENSION_SECRET_UNSET, ExpenseProposalStatementGenerateDocumentInputDTO, ExpenseProposalStatementSignedDocumentInputDTO, ExpenseProposalStatementSignedMetaDocumentInputDTO, ExtensionAvailability, ExtensionConfigSuppliedBy, ExtensionDomainEntity, GRANTED_SCOPE_KEY, GenerateDocumentInputDTO, GenerateDocumentOptionsInputDTO, GenerateMetaDocumentInputDTO, GeneratedDocumentDTO, GetLedger2HistoryInputDTO, GetLedger2PostingsInputDTO, GqlJwtAuthGuard, GrantedScope, HttpApiError, HttpJwtAuthGuard, IPNProvider, InjectBucket, KYSELY, LOG_EXTENSION_REPOSITORY, LangType, Ledger2AccountDTO, Ledger2HistoryResponseDTO, Ledger2OperationDTO, Ledger2PostingDTO, Ledger2PostingsResponseDTO, Ledger2WalletDTO, LogExtensionDomainEntity, MAIN_DATABASE, MetaDocumentInputDTO, ONBOARDING_EXPIRY_DAYS, ONBOARDING_EXPIRY_MS, OptionalCurrentUser, OptionalGqlJwtAuthGuard, PaginatedProcessSummary, PaginationInputDTO, PaginationResult, PaginationUtils, PaymentProvider, PollingProvider, ProcessActionDTO, ProcessDeltaDTO, ProcessDocumentDTO, ProcessDocumentSourceDTO, ProcessSummaryDTO, ProcessViewDTO, ProcessesFilterInput, QuantityUtils, RIGHT_METADATA_KEY, RequireRight, RightsGuard, SCOPE_DENIALS, SELF, SORT_FIELD_PATTERN, SafeMarkup, SignatureInfoDTO, SignatureInfoInputDTO, SignedDigitalDocumentDTO, SignedDigitalDocumentInputDTO, TableStore, TransactionDTO, UseBucket, affectedCount, attachOne, bucketProvidersFor, bucketTokenFor, buildPaginationResult, camelRow, chainErrorCode, chainRefusalOf, chainTextDigest, checkPaymentAmount, checkPaymentSymbol, checkRight, checkRightScope, computeOnboardingExpiresAt, configureExtensionAuth, configureLocalChangePublisher, configurePlatformSettings, councilRolesOf, createPaginationResult, describeConfigField, desktopGrants, desktopGrantsOf, domainErrorMessage, expandRights, extensionDatabaseMigrations, generateHashFromString, generateRandomHash, generateUniqueHash, getAmountPlusFee, getAppliedBlockNum, hasServerSecret, inTransaction, isChainTextDigest, isChainTextOf, isExtensionAvailable, memberRolesOf, mergeSecretConfig, paginationInputToOffset, parseChainAssert, pendingLocalChanges, pickDefined, platformSettings, providerSuppliedPaths, rawQuery, redactSecretConfig, registerExtensionDatabaseMigrations, resetExtensionDatabaseMigrations, resolveChainText, rethrowChainError, rightConditions, rightGrants, rightMatches, rightsByRole, rightsHeld, sanitizeUserText, scopeConditions, scopeOfRight, scopesMatched, snakeRow, sortColumn, sortDirection, validationMessage, verifySignedDocumentAgainstStoredDraft, waitForEvent };
2339
2361
  export type { AppRights, AssignableRole, AttachedRole, BucketSource, BucketSpec, CouncilRole, DeserializedDescriptionOfExtension, DesktopGrantsRequest, DomainErrorParams, EventSource, EventWait, ExcludeCommonProps, ExtensionAppTerminatePayload, ExtensionAuthOptions, ExtensionConfigFieldPolicy, ExtensionConfigPolicy, ExtensionDatabaseMigrationClass, ExtensionDomainInterface, ExtensionDomainRepository, ExtensionSchemaMigrationAfterContext, GeneratedDocumentDomainInterface, GeneratedDocumentDraft, GrantedAction, IDesktopConfig, IExtensionSchemaMigration, IGrantedScope, IRegistryExtension, IResolvedRegistryExtension, IRightRequirement, LoadGeneratedDocumentByDocHash, LogExtensionDomainInterface, LogExtensionDomainRepository, LogExtensionFilter, LogExtensionPaginationOptions, LogExtensionPaginationResult, MainDatabase, MemberRole, NarrowRightScope, PaymentDetails, PendingLocalChange, PlatformBlockchainSettings, PlatformSettings, RegisteredBucket, RequireFields, RightActor, RightFacts, RightGrant, RightOutcome, RightScope, RightSource, RightsCaller, RightsGroup, RightsTable, RolePermission, SchemaMigration, SchemaMigrationClass, SchemaQueryRunner, ScopeCheckInput, ScopeCheckResult, SignedDocumentMetaCompareMode, SignedDocumentMetaVerification, SignedDocumentToVerify, TransactResultWithResponse };
package/dist/index.d.ts CHANGED
@@ -790,6 +790,23 @@ declare class ExpenseProposalStatementSignedDocumentInputDTO extends SignedDigit
790
790
  readonly meta: ExpenseProposalStatementSignedMetaDocumentInputDTO;
791
791
  }
792
792
 
793
+ /**
794
+ * Предел частоты сборки документов на одного пайщика — общий для ядра и
795
+ * расширений, чтобы не держать число в полусотне резолверов.
796
+ *
797
+ * Сборка документа — показ текста перед подписью, а не действие с
798
+ * последствиями: совет, утверждающий подряд несколько решений, собирает их
799
+ * десятками. До 19.10.2026 предел был три в минуту, и председатель упирался в
800
+ * «Слишком часто» на четвёртом решении. Предел страхует узел от перебора, а не
801
+ * от работы человека.
802
+ */
803
+ declare const DOCUMENT_GENERATION_THROTTLE: {
804
+ default: {
805
+ limit: number;
806
+ ttl: number;
807
+ };
808
+ };
809
+
793
810
  /**
794
811
  * Состояние заявки на вступление.
795
812
  *
@@ -1248,6 +1265,11 @@ interface DeserializedDescriptionOfExtension {
1248
1265
  */
1249
1266
  copyable?: boolean;
1250
1267
  }
1268
+ /**
1269
+ * Описание поля конфигурации для `.describe()` zod-схемы: форма настроек
1270
+ * расширения берёт отсюда подпись, подсказку и вид поля.
1271
+ */
1272
+ declare function describeConfigField(description: DeserializedDescriptionOfExtension): string;
1251
1273
 
1252
1274
  /**
1253
1275
  * Миграции таблиц установленных расширений — то, что контроллер отдаёт TypeORM
@@ -2335,5 +2357,5 @@ declare function chainRefusalOf(error: unknown): DomainError | null;
2335
2357
  */
2336
2358
  declare function rethrowChainError(error: unknown): never;
2337
2359
 
2338
- export { APP_RIGHTS, ActiveUserStatusGuard, AmountFormatterUtils, AssetUtils, BaseExtensionModule, BucketRegistry, CandidateFilterInputDTO, CandidateOutputDTO, CandidateStatus, CouncilField, CurrencyValidationUtil, CurrentUser, DEFAULT_DOCUMENT_VERSION, DateUtils, DocumentAggregateDTO, DomainError, DomainToBlockchainUtils, EMPTY_HASH, EXTENSION_APP_TERMINATE_EVENT, EXTENSION_REPOSITORY, EXTENSION_SECRET_SET, EXTENSION_SECRET_UNSET, ExpenseProposalStatementGenerateDocumentInputDTO, ExpenseProposalStatementSignedDocumentInputDTO, ExpenseProposalStatementSignedMetaDocumentInputDTO, ExtensionAvailability, ExtensionConfigSuppliedBy, ExtensionDomainEntity, GRANTED_SCOPE_KEY, GenerateDocumentInputDTO, GenerateDocumentOptionsInputDTO, GenerateMetaDocumentInputDTO, GeneratedDocumentDTO, GetLedger2HistoryInputDTO, GetLedger2PostingsInputDTO, GqlJwtAuthGuard, GrantedScope, HttpApiError, HttpJwtAuthGuard, IPNProvider, InjectBucket, KYSELY, LOG_EXTENSION_REPOSITORY, LangType, Ledger2AccountDTO, Ledger2HistoryResponseDTO, Ledger2OperationDTO, Ledger2PostingDTO, Ledger2PostingsResponseDTO, Ledger2WalletDTO, LogExtensionDomainEntity, MAIN_DATABASE, MetaDocumentInputDTO, ONBOARDING_EXPIRY_DAYS, ONBOARDING_EXPIRY_MS, OptionalCurrentUser, OptionalGqlJwtAuthGuard, PaginatedProcessSummary, PaginationInputDTO, PaginationResult, PaginationUtils, PaymentProvider, PollingProvider, ProcessActionDTO, ProcessDeltaDTO, ProcessDocumentDTO, ProcessDocumentSourceDTO, ProcessSummaryDTO, ProcessViewDTO, ProcessesFilterInput, QuantityUtils, RIGHT_METADATA_KEY, RequireRight, RightsGuard, SCOPE_DENIALS, SELF, SORT_FIELD_PATTERN, SafeMarkup, SignatureInfoDTO, SignatureInfoInputDTO, SignedDigitalDocumentDTO, SignedDigitalDocumentInputDTO, TableStore, TransactionDTO, UseBucket, affectedCount, attachOne, bucketProvidersFor, bucketTokenFor, buildPaginationResult, camelRow, chainErrorCode, chainRefusalOf, chainTextDigest, checkPaymentAmount, checkPaymentSymbol, checkRight, checkRightScope, computeOnboardingExpiresAt, configureExtensionAuth, configureLocalChangePublisher, configurePlatformSettings, councilRolesOf, createPaginationResult, desktopGrants, desktopGrantsOf, domainErrorMessage, expandRights, extensionDatabaseMigrations, generateHashFromString, generateRandomHash, generateUniqueHash, getAmountPlusFee, getAppliedBlockNum, hasServerSecret, inTransaction, isChainTextDigest, isChainTextOf, isExtensionAvailable, memberRolesOf, mergeSecretConfig, paginationInputToOffset, parseChainAssert, pendingLocalChanges, pickDefined, platformSettings, providerSuppliedPaths, rawQuery, redactSecretConfig, registerExtensionDatabaseMigrations, resetExtensionDatabaseMigrations, resolveChainText, rethrowChainError, rightConditions, rightGrants, rightMatches, rightsByRole, rightsHeld, sanitizeUserText, scopeConditions, scopeOfRight, scopesMatched, snakeRow, sortColumn, sortDirection, validationMessage, verifySignedDocumentAgainstStoredDraft, waitForEvent };
2360
+ export { APP_RIGHTS, ActiveUserStatusGuard, AmountFormatterUtils, AssetUtils, BaseExtensionModule, BucketRegistry, CandidateFilterInputDTO, CandidateOutputDTO, CandidateStatus, CouncilField, CurrencyValidationUtil, CurrentUser, DEFAULT_DOCUMENT_VERSION, DOCUMENT_GENERATION_THROTTLE, DateUtils, DocumentAggregateDTO, DomainError, DomainToBlockchainUtils, EMPTY_HASH, EXTENSION_APP_TERMINATE_EVENT, EXTENSION_REPOSITORY, EXTENSION_SECRET_SET, EXTENSION_SECRET_UNSET, ExpenseProposalStatementGenerateDocumentInputDTO, ExpenseProposalStatementSignedDocumentInputDTO, ExpenseProposalStatementSignedMetaDocumentInputDTO, ExtensionAvailability, ExtensionConfigSuppliedBy, ExtensionDomainEntity, GRANTED_SCOPE_KEY, GenerateDocumentInputDTO, GenerateDocumentOptionsInputDTO, GenerateMetaDocumentInputDTO, GeneratedDocumentDTO, GetLedger2HistoryInputDTO, GetLedger2PostingsInputDTO, GqlJwtAuthGuard, GrantedScope, HttpApiError, HttpJwtAuthGuard, IPNProvider, InjectBucket, KYSELY, LOG_EXTENSION_REPOSITORY, LangType, Ledger2AccountDTO, Ledger2HistoryResponseDTO, Ledger2OperationDTO, Ledger2PostingDTO, Ledger2PostingsResponseDTO, Ledger2WalletDTO, LogExtensionDomainEntity, MAIN_DATABASE, MetaDocumentInputDTO, ONBOARDING_EXPIRY_DAYS, ONBOARDING_EXPIRY_MS, OptionalCurrentUser, OptionalGqlJwtAuthGuard, PaginatedProcessSummary, PaginationInputDTO, PaginationResult, PaginationUtils, PaymentProvider, PollingProvider, ProcessActionDTO, ProcessDeltaDTO, ProcessDocumentDTO, ProcessDocumentSourceDTO, ProcessSummaryDTO, ProcessViewDTO, ProcessesFilterInput, QuantityUtils, RIGHT_METADATA_KEY, RequireRight, RightsGuard, SCOPE_DENIALS, SELF, SORT_FIELD_PATTERN, SafeMarkup, SignatureInfoDTO, SignatureInfoInputDTO, SignedDigitalDocumentDTO, SignedDigitalDocumentInputDTO, TableStore, TransactionDTO, UseBucket, affectedCount, attachOne, bucketProvidersFor, bucketTokenFor, buildPaginationResult, camelRow, chainErrorCode, chainRefusalOf, chainTextDigest, checkPaymentAmount, checkPaymentSymbol, checkRight, checkRightScope, computeOnboardingExpiresAt, configureExtensionAuth, configureLocalChangePublisher, configurePlatformSettings, councilRolesOf, createPaginationResult, describeConfigField, desktopGrants, desktopGrantsOf, domainErrorMessage, expandRights, extensionDatabaseMigrations, generateHashFromString, generateRandomHash, generateUniqueHash, getAmountPlusFee, getAppliedBlockNum, hasServerSecret, inTransaction, isChainTextDigest, isChainTextOf, isExtensionAvailable, memberRolesOf, mergeSecretConfig, paginationInputToOffset, parseChainAssert, pendingLocalChanges, pickDefined, platformSettings, providerSuppliedPaths, rawQuery, redactSecretConfig, registerExtensionDatabaseMigrations, resetExtensionDatabaseMigrations, resolveChainText, rethrowChainError, rightConditions, rightGrants, rightMatches, rightsByRole, rightsHeld, sanitizeUserText, scopeConditions, scopeOfRight, scopesMatched, snakeRow, sortColumn, sortDirection, validationMessage, verifySignedDocumentAgainstStoredDraft, waitForEvent };
2339
2361
  export type { AppRights, AssignableRole, AttachedRole, BucketSource, BucketSpec, CouncilRole, DeserializedDescriptionOfExtension, DesktopGrantsRequest, DomainErrorParams, EventSource, EventWait, ExcludeCommonProps, ExtensionAppTerminatePayload, ExtensionAuthOptions, ExtensionConfigFieldPolicy, ExtensionConfigPolicy, ExtensionDatabaseMigrationClass, ExtensionDomainInterface, ExtensionDomainRepository, ExtensionSchemaMigrationAfterContext, GeneratedDocumentDomainInterface, GeneratedDocumentDraft, GrantedAction, IDesktopConfig, IExtensionSchemaMigration, IGrantedScope, IRegistryExtension, IResolvedRegistryExtension, IRightRequirement, LoadGeneratedDocumentByDocHash, LogExtensionDomainInterface, LogExtensionDomainRepository, LogExtensionFilter, LogExtensionPaginationOptions, LogExtensionPaginationResult, MainDatabase, MemberRole, NarrowRightScope, PaymentDetails, PendingLocalChange, PlatformBlockchainSettings, PlatformSettings, RegisteredBucket, RequireFields, RightActor, RightFacts, RightGrant, RightOutcome, RightScope, RightSource, RightsCaller, RightsGroup, RightsTable, RolePermission, SchemaMigration, SchemaMigrationClass, SchemaQueryRunner, ScopeCheckInput, ScopeCheckResult, SignedDocumentMetaCompareMode, SignedDocumentMetaVerification, SignedDocumentToVerify, TransactResultWithResponse };
package/dist/index.mjs CHANGED
@@ -1201,6 +1201,8 @@ ExpenseProposalStatementSignedDocumentInputDTO = __decorateClass$j([
1201
1201
  InputType("ExpenseProposalStatementSignedDocumentInput")
1202
1202
  ], ExpenseProposalStatementSignedDocumentInputDTO);
1203
1203
 
1204
+ const DOCUMENT_GENERATION_THROTTLE = { default: { limit: 60, ttl: 6e4 } };
1205
+
1204
1206
  var __defProp$i = Object.defineProperty;
1205
1207
  var __getOwnPropDesc$i = Object.getOwnPropertyDescriptor;
1206
1208
  var __decorateClass$i = (decorators, target, key, kind) => {
@@ -1334,6 +1336,10 @@ function isExtensionAvailable(availability, isMainnet) {
1334
1336
  }
1335
1337
  }
1336
1338
 
1339
+ function describeConfigField(description) {
1340
+ return JSON.stringify(description);
1341
+ }
1342
+
1337
1343
  let migrations;
1338
1344
  function registerExtensionDatabaseMigrations(list) {
1339
1345
  if (migrations) {
@@ -3151,4 +3157,4 @@ function rethrowChainError(error) {
3151
3157
  throw DomainError.badRequest(code ?? "CHAIN_ASSERT", { message: text });
3152
3158
  }
3153
3159
 
3154
- export { APP_RIGHTS, ActiveUserStatusGuard, AmountFormatterUtils, AssetUtils, BaseExtensionModule, BucketRegistry, CandidateFilterInputDTO, CandidateOutputDTO, CandidateStatus, CouncilField, CurrencyValidationUtil, CurrentUser, DEFAULT_DOCUMENT_VERSION, DateUtils, DocumentAggregateDTO, DomainError, DomainToBlockchainUtils, EMPTY_HASH, EXTENSION_APP_TERMINATE_EVENT, EXTENSION_REPOSITORY, EXTENSION_SECRET_SET, EXTENSION_SECRET_UNSET, ExpenseProposalStatementGenerateDocumentInputDTO, ExpenseProposalStatementSignedDocumentInputDTO, ExpenseProposalStatementSignedMetaDocumentInputDTO, ExtensionAvailability, ExtensionConfigSuppliedBy, ExtensionDomainEntity, GRANTED_SCOPE_KEY, GenerateDocumentInputDTO, GenerateDocumentOptionsInputDTO, GenerateMetaDocumentInputDTO, GeneratedDocumentDTO, GetLedger2HistoryInputDTO, GetLedger2PostingsInputDTO, GqlJwtAuthGuard, GrantedScope, HttpApiError, HttpJwtAuthGuard, IPNProvider, InjectBucket, LOG_EXTENSION_REPOSITORY, LangType, Ledger2AccountDTO, Ledger2HistoryResponseDTO, Ledger2OperationDTO, Ledger2PostingDTO, Ledger2PostingsResponseDTO, Ledger2WalletDTO, LogExtensionDomainEntity, MetaDocumentInputDTO, ONBOARDING_EXPIRY_DAYS, ONBOARDING_EXPIRY_MS, OptionalCurrentUser, OptionalGqlJwtAuthGuard, PaginatedProcessSummary, PaginationInputDTO, PaginationResult, PaginationUtils, PaymentProvider, PollingProvider, ProcessActionDTO, ProcessDeltaDTO, ProcessDocumentDTO, ProcessDocumentSourceDTO, ProcessSummaryDTO, ProcessViewDTO, ProcessesFilterInput, QuantityUtils, RIGHT_METADATA_KEY, RequireRight, RightsGuard, SCOPE_DENIALS, SELF, SORT_FIELD_PATTERN, SafeMarkup, SignatureInfoDTO, SignatureInfoInputDTO, SignedDigitalDocumentDTO, SignedDigitalDocumentInputDTO, TransactionDTO, UseBucket, attachOne, bucketProvidersFor, bucketTokenFor, buildPaginationResult, chainErrorCode, chainRefusalOf, chainTextDigest, checkPaymentAmount, checkPaymentSymbol, checkRight, checkRightScope, computeOnboardingExpiresAt, configureExtensionAuth, configurePlatformSettings, councilRolesOf, createPaginationResult, desktopGrants, desktopGrantsOf, domainErrorMessage, expandRights, extensionDatabaseMigrations, generateHashFromString, generateRandomHash, generateUniqueHash, getAmountPlusFee, getAppliedBlockNum, hasServerSecret, isChainTextDigest, isChainTextOf, isExtensionAvailable, memberRolesOf, mergeSecretConfig, oneOf, paginationInputToOffset, parseChainAssert, pickDefined, platformSettings, providerSuppliedPaths, redactSecretConfig, registerExtensionDatabaseMigrations, resetExtensionDatabaseMigrations, resolveChainText, rethrowChainError, rightConditions, rightGrants, rightMatches, rightsByRole, rightsHeld, sanitizeUserText, scopeConditions, scopeOfRight, scopesMatched, validationMessage, verifySignedDocumentAgainstStoredDraft, waitForEvent };
3160
+ export { APP_RIGHTS, ActiveUserStatusGuard, AmountFormatterUtils, AssetUtils, BaseExtensionModule, BucketRegistry, CandidateFilterInputDTO, CandidateOutputDTO, CandidateStatus, CouncilField, CurrencyValidationUtil, CurrentUser, DEFAULT_DOCUMENT_VERSION, DOCUMENT_GENERATION_THROTTLE, DateUtils, DocumentAggregateDTO, DomainError, DomainToBlockchainUtils, EMPTY_HASH, EXTENSION_APP_TERMINATE_EVENT, EXTENSION_REPOSITORY, EXTENSION_SECRET_SET, EXTENSION_SECRET_UNSET, ExpenseProposalStatementGenerateDocumentInputDTO, ExpenseProposalStatementSignedDocumentInputDTO, ExpenseProposalStatementSignedMetaDocumentInputDTO, ExtensionAvailability, ExtensionConfigSuppliedBy, ExtensionDomainEntity, GRANTED_SCOPE_KEY, GenerateDocumentInputDTO, GenerateDocumentOptionsInputDTO, GenerateMetaDocumentInputDTO, GeneratedDocumentDTO, GetLedger2HistoryInputDTO, GetLedger2PostingsInputDTO, GqlJwtAuthGuard, GrantedScope, HttpApiError, HttpJwtAuthGuard, IPNProvider, InjectBucket, LOG_EXTENSION_REPOSITORY, LangType, Ledger2AccountDTO, Ledger2HistoryResponseDTO, Ledger2OperationDTO, Ledger2PostingDTO, Ledger2PostingsResponseDTO, Ledger2WalletDTO, LogExtensionDomainEntity, MetaDocumentInputDTO, ONBOARDING_EXPIRY_DAYS, ONBOARDING_EXPIRY_MS, OptionalCurrentUser, OptionalGqlJwtAuthGuard, PaginatedProcessSummary, PaginationInputDTO, PaginationResult, PaginationUtils, PaymentProvider, PollingProvider, ProcessActionDTO, ProcessDeltaDTO, ProcessDocumentDTO, ProcessDocumentSourceDTO, ProcessSummaryDTO, ProcessViewDTO, ProcessesFilterInput, QuantityUtils, RIGHT_METADATA_KEY, RequireRight, RightsGuard, SCOPE_DENIALS, SELF, SORT_FIELD_PATTERN, SafeMarkup, SignatureInfoDTO, SignatureInfoInputDTO, SignedDigitalDocumentDTO, SignedDigitalDocumentInputDTO, TransactionDTO, UseBucket, attachOne, bucketProvidersFor, bucketTokenFor, buildPaginationResult, chainErrorCode, chainRefusalOf, chainTextDigest, checkPaymentAmount, checkPaymentSymbol, checkRight, checkRightScope, computeOnboardingExpiresAt, configureExtensionAuth, configurePlatformSettings, councilRolesOf, createPaginationResult, describeConfigField, desktopGrants, desktopGrantsOf, domainErrorMessage, expandRights, extensionDatabaseMigrations, generateHashFromString, generateRandomHash, generateUniqueHash, getAmountPlusFee, getAppliedBlockNum, hasServerSecret, isChainTextDigest, isChainTextOf, isExtensionAvailable, memberRolesOf, mergeSecretConfig, oneOf, paginationInputToOffset, parseChainAssert, pickDefined, platformSettings, providerSuppliedPaths, redactSecretConfig, registerExtensionDatabaseMigrations, resetExtensionDatabaseMigrations, resolveChainText, rethrowChainError, rightConditions, rightGrants, rightMatches, rightsByRole, rightsHeld, sanitizeUserText, scopeConditions, scopeOfRight, scopesMatched, validationMessage, verifySignedDocumentAgainstStoredDraft, waitForEvent };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@coopenomics/extension-kit",
3
3
  "type": "module",
4
- "version": "2026.10.15",
4
+ "version": "2026.10.22",
5
5
  "description": "Служебный каркас расширения цифрового кооператива: базовый модуль, сущности и репозитории расширения, авторизация, каркас блокчейн-синхронизации, контракт миграций схемы, контракт реестра",
6
6
  "author": "Alex Ant <dacom.dark.sun@gmail.com>",
7
7
  "license": "MIT",
@@ -40,7 +40,7 @@
40
40
  "peerDependencies": {
41
41
  "@casl/ability": "^7.0.0",
42
42
  "@coopenomics/i18n": "workspace:*",
43
- "@coopenomics/sdk": "2026.10.15",
43
+ "@coopenomics/sdk": "2026.10.22",
44
44
  "@nestjs/common": "^10.0.0",
45
45
  "@nestjs/core": "^10.0.0",
46
46
  "@nestjs/graphql": "^12.2.1",
@@ -61,7 +61,7 @@
61
61
  },
62
62
  "devDependencies": {
63
63
  "@casl/ability": "^7.0.0",
64
- "@coopenomics/i18n": "2026.10.15",
64
+ "@coopenomics/i18n": "2026.10.22",
65
65
  "@nestjs/common": "^10.0.0",
66
66
  "@nestjs/core": "^10.0.0",
67
67
  "@nestjs/graphql": "^12.2.1",
@@ -70,7 +70,7 @@
70
70
  "@wharfkit/session": "^1.4.0",
71
71
  "class-transformer": "^0.5.1",
72
72
  "class-validator": "^0.14.1",
73
- "cooptypes": "2026.10.15",
73
+ "cooptypes": "2026.10.22",
74
74
  "graphql": "^16.9.0",
75
75
  "graphql-type-json": "^0.3.2",
76
76
  "kysely": "0.28.17",
@@ -82,5 +82,5 @@
82
82
  "unbuild": "^2.0.0",
83
83
  "zod": "^3.0.0"
84
84
  },
85
- "gitHead": "8b81459760f93fc07335f02f7898310c6366e5c6"
85
+ "gitHead": "3f31f133383617e6e1fa50db51f2bb5fe07ac764"
86
86
  }