@coopenomics/innercoop 2026.12.1 → 2026.12.3-dev.10

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.d.cts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { InnerAccountType, InnerProgramRegistration, InnerAgreementRegistration, InnerOrganizationType } from './core-ports/index.cjs';
2
- export { ACCESS_TOKEN_PORT, ACCOUNTING_REGISTRY_PORT, ACCOUNT_PORT, AGREEMENT_CATALOG_PORT, BRANCH_PORT, CANDIDATE_PORT, CHAIN_CHANGES_PORT, CHAIN_DELTA_WAIT_PORT, CHAIN_PORT, CHAIN_RESOURCES_PORT, CHAIN_RESOURCE_SHORTAGE_EVENT, COOPERATIVE_LOGO_PORT, COOPERATIVE_VARS_PORT, COOP_CREDENTIAL_PORT, COUNCIL_PORT, ChainResourceKind, ChainResourceShortagePayload, CreateTrackingRuleInput, DECISION_DECLINE_REASON_PORT, DECISION_TRACKING_PORT, DOCUMENT_APPROVAL_PORT, DOCUMENT_DECLARATION_PORT, DOCUMENT_PORT, DecisionEventType, DecisionEventTypeString, DecisionProcessedResult, DecisionTrackedEvent, EXTENSION_CONFIG_PORT, EXTENSION_DATABASE_PORT, ExtendedMeetStatus, FILE_STORAGE_PORT, FREE_DECISION_PORT, IAccessTokenPort, IAccountPort, IAccountingRegistryPort, IAgreementCatalogPort, IBranchPort, ICandidatePort, IChainChangesPort, IChainDeltaWaitPort, IChainPort, IChainResourcesPort, ICoopCredentialPort, ICooperativeLogoPort, ICooperativeVarsPort, ICouncilPort, IDecisionDeclineReasonPort, IDecisionTrackingPort, IDocumentApprovalPort, IDocumentDeclarationPort, IDocumentPort, IExtensionConfigPort, IExtensionDatabasePort, IFileStoragePort, IFreeDecisionPort, IIndividualPort, IIntegrationSettingsPort, ILedger2HistoryPort, ILoggerPort, IMeetPort, IMemberExitRegistryPort, IMessageChannelPort, IMetaDocument, IMonoAccount, IMutationLogPort, INDIVIDUAL_PORT, INTEGRATION_SETTINGS_PORT, INotificationPort, IOnboardingStepRegistryPort, IOrganizationPort, IPaymentDeskPort, IPaymentMethodPort, IPaymentNoticeLogPort, IPaymentPollingStatePort, IPaymentPort, IPaymentProvider, IPaymentProviderRegistryPort, IProgramAgreementPort, IProgramWalletPort, IProviderAppsPort, IProviderTariffPort, IRealtimeChannelPort, IRegistrationRegistryPort, IRoleAssignmentsPort, ISecretCipherPort, ISignatureInfo, ISignedDocument, IUserAvatarPort, IUserCertificatePort, IUserDataPort, IUserDirectoryPort, IUserWalletPort, IVaultPort, IVerificationPort, IWalletWithdrawPort, InnerAccessIdentity, InnerAccount, InnerAgreementCatalogItem, InnerAppCancelOutcome, InnerAppLiveChange, InnerAppOffer, InnerAppSubscribeOutcome, InnerAppSubscription, InnerAppSubscriptionStatus, InnerAssignableRole, InnerAttachedRole, InnerBankTransferData, InnerBillingSummary, InnerBranch, InnerCandidate, InnerCandidateDocument, InnerCandidateFilter, InnerChainAccountResources, InnerChainAccountRow, InnerChainAction, InnerChainActionRecord, InnerChainChangesTable, InnerChainDelta, InnerChainDeltaWaitQuery, InnerChainTxWait, InnerCoopAgreement, InnerCoopProgram, InnerCoopUser, InnerCooperativeVars, InnerCouncilDecision, InnerCreateWithdrawInput, InnerCreateWithdrawResult, InnerDocumentAggregate, InnerDocumentApproval, InnerDocumentDeclaration, InnerDocumentKind, InnerDocumentValidation, InnerEndorsementCredential, InnerEnsureProgramParams, InnerEnsureProgramResult, InnerExitBlockersProvider, InnerExitPendingReturn, InnerExtensionDatabaseConnection, InnerFileStorageBackendUnavailableError, InnerFileStorageBody, InnerFileStorageBucket, InnerFileStorageBucketNotConfiguredError, InnerFileStorageBucketSpec, InnerFileStorageError, InnerFileStorageGetReadUrlOptions, InnerFileStorageMetadataValidationError, InnerFileStorageMimeRejectedError, InnerFileStorageObjectMetadata, InnerFileStorageObjectNotFoundError, InnerFileStorageObjectTooLargeError, InnerFileStoragePutOptions, InnerFileStoragePutResult, InnerFreeDecisionDocument, InnerFreeDecisionProject, InnerGenerateDocumentData, InnerGenerateDocumentOptions, InnerGenerateDocumentRequest, InnerGenerateProjectFreeDecisionData, InnerGeneratedDocument, InnerGetAccountsFilter, InnerGetMeetInput, InnerGetMeetsInput, InnerIndividual, InnerIntakeFormRegistration, InnerIntakeJsonSchema, InnerIntakeJsonSchemaProperty, InnerKeyPermission, InnerLedger2Account, InnerLedger2HistoryFilter, InnerLedger2HistoryResult, InnerLedger2Operation, InnerLedger2Wallet, InnerLogMeta, InnerMeet, InnerMeetDraft, InnerMeetForm, InnerMeetProcessing, InnerMeetRow, InnerMutationLogEntry, InnerMutationLogFilter, InnerNotifyActor, InnerNotifyDelivery, InnerNotifyDeliveryState, InnerNotifyInput, InnerNotifyRecipient, InnerNotifyResult, InnerOnboardingCompletedPayload, InnerOnboardingDecisionKind, InnerOnboardingGenerator, InnerOnboardingStep, InnerOnboardingStepProposal, InnerOrganization, InnerOrganizationDetails, InnerPage, InnerPageRequest, InnerPaginatedAccounts, InnerPaginationOptions, InnerParticipantProfileUpdatedEvent, InnerParticipantRegisteredEvent, InnerPassport, InnerPayment, InnerPaymentDetails, InnerPaymentDraft, InnerPaymentFilters, InnerPaymentMethod, InnerPaymentMethodDraft, InnerPaymentMethodQuery, InnerPaymentMethodType, InnerPaymentNotice, InnerPaymentPollingState, InnerPayoutRequest, InnerPayoutRequestStatus, InnerPrivateAccount, InnerProgramSignature, InnerProgramWallet, InnerProgramWalletFilter, InnerProposeOnboardingStepInput, InnerProviderSubscription, InnerProviderTariff, InnerPublishProjectFreeDecisionInput, InnerRegistryRecord, InnerRepresentative, InnerRolePermission, InnerSbpData, InnerSetPaymentStatusInput, InnerSignProgramAgreementInput, InnerSystemOutgoingPaymentInput, InnerTransactResult, InnerUserCertificate, InnerUserDataDraft, InnerUserDataFilters, InnerUserDataRecord, InnerUserWallet, InnerVerificationCheck, InnerVerificationEntry, LEDGER2_HISTORY_PORT, LOGGER_PORT, MEET_PORT, MEMBER_EXIT_REGISTRY_PORT, MESSAGE_CHANNEL_PORT, MUTATION_LOG_PORT, MonoAccountStatus, NOTIFICATION_PORT, ONBOARDING_COMPLETED_EVENT, ONBOARDING_STEP_REGISTRY_PORT, ORGANIZATION_PORT, PARTICIPANT_PROFILE_UPDATED_EVENT, PARTICIPANT_REGISTERED_EVENT, PAYMENT_DESK_PORT, PAYMENT_METHOD_PORT, PAYMENT_NOTICE_LOG_PORT, PAYMENT_POLLING_STATE_PORT, PAYMENT_PORT, PAYMENT_PROVIDER_REGISTRY_PORT, PROGRAM_AGREEMENT_PORT, PROGRAM_ID_BY_TYPE, PROGRAM_TYPE_BY_ID, PROGRAM_WALLET_PORT, PROVIDER_APPS_PORT, PROVIDER_TARIFF_PORT, PaymentDirection, PaymentStatus, PaymentType, ProgramKey, ProgramType, REALTIME_CHANNEL_PORT, REGISTRATION_REGISTRY_PORT, ROLE_ASSIGNMENTS_PORT, ROLE_ASSIGNMENT_CHANGED_EVENT, RoleAssignmentChangedEvent, SECRET_CIPHER_PORT, TrackingRule, USER_AVATAR_PORT, USER_CERTIFICATE_PORT, USER_DATA_PORT, USER_DIRECTORY_PORT, USER_WALLET_PORT, VAT_EXEMPT_NOTE, VAULT_PORT, VERIFICATION_PORT, WALLET_WITHDRAW_PORT, getProgramId, getProgramType, isEligibleForParticipantMassNotification } from './core-ports/index.cjs';
3
- export { CAPITAL_PROJECT_CREATED_EVENT, CAPITAL_PROJECT_MATRIX_ROOM_ASSIGNED_EVENT, CHAIRMAN_APPROVALS_PORT, CHATCOOP_CALENDAR_PORT, CHATCOOP_CAPITAL_PROJECT_ROOM_ENSURE_MEMBER_EVENT, CHATCOOP_MATRIX_USER_LINKED_FOR_CAPITAL_PROJECT_ROOMS_EVENT, COOP_CALENDAR_EVENT_NOTIFICATION_PORT, EXPENSE_CHASSIS_PORT, ICapitalProjectCreatedPayload, ICapitalProjectMatrixRoomAssignedPayload, IChairmanApprovalsPort, IChatCoopCalendarPort, IChatCoopCapitalProjectRoomEnsureMemberPayload, IChatCoopMatrixUserLinkedForCapitalProjectRoomsPayload, ICoopCalendarEventNotificationPort, IExpenseChassisPort, IMatrixRoomMessagingPort, IPowersOfAttorneyPort, IProjectCapitalClearancePort, IProjectCommunicationArtifactsPort, ISovietRobotPort, InnerCalendarEventWindow, InnerChairmanApproval, InnerChairmanApprovalStatus, InnerChairmanApprovalsQuery, InnerCompletedCallTranscriptionHead, InnerCoopCalendarEventNotificationInput, InnerCoopCalendarEventRead, InnerCoopCalendarNotificationRoomKind, InnerExpenseCallbackHandler, InnerExpenseItem, InnerExpenseItemInput, InnerExpenseItemState, InnerExpenseMechanics, InnerExpensePaginatedResult, InnerExpensePagination, InnerExpensePlan, InnerExpensePlannedReserve, InnerExpenseProposalRead, InnerExpenseProposalState, InnerExpenseProposalStatus, InnerExpenseRecipientType, InnerExpenseRequisiteItemInput, InnerLapsedAuthority, InnerMatrixReplaceTextMessageInput, InnerMatrixSendTextAndPinInput, InnerMatrixSendTextMessageInput, InnerMatrixUnpinAndRedactAnnouncementInput, InnerNonProjectCommunicationRoomRef, InnerNonProjectRoomKind, InnerPowerOfAttorneyStatus, InnerPowerOfAttorneyType, InnerProjectCommunicationRoomRef, InnerRobotDecisionOutcome, InnerRobotDecisionRequest, InnerRobotDecisionResult, InnerRoomMessageKind, InnerRoomMessageLine, MATRIX_ROOM_MESSAGING_PORT, POWERS_OF_ATTORNEY_PORT, PROJECT_CAPITAL_CLEARANCE_PORT, PROJECT_COMMUNICATION_ARTIFACTS_PORT, SOVIET_ROBOT_PORT } from './cross-plugin-ports/index.cjs';
2
+ export { ACCESS_TOKEN_PORT, ACCOUNTING_REGISTRY_PORT, ACCOUNT_PORT, AGREEMENT_CATALOG_PORT, APP_BRANCH_CARD_PORT, APP_POWERS_OF_ATTORNEY_PORT, BRANCH_PORT, CANDIDATE_PORT, CHAIN_CHANGES_PORT, CHAIN_DELTA_WAIT_PORT, CHAIN_PORT, CHAIN_RESOURCES_PORT, CHAIN_RESOURCE_SHORTAGE_EVENT, COOPERATIVE_LOGO_PORT, COOPERATIVE_VARS_PORT, COOP_CREDENTIAL_PORT, COUNCIL_PORT, ChainResourceKind, ChainResourceShortagePayload, CreateTrackingRuleInput, DECISION_DECLINE_REASON_PORT, DECISION_TRACKING_PORT, DOCUMENT_APPROVAL_PORT, DOCUMENT_DECLARATION_PORT, DOCUMENT_PORT, DecisionEventType, DecisionEventTypeString, DecisionProcessedResult, DecisionTrackedEvent, EXTENSION_CONFIG_PORT, EXTENSION_DATABASE_PORT, ExtendedMeetStatus, FILE_STORAGE_PORT, FREE_DECISION_PORT, IAccessTokenPort, IAccountPort, IAccountingRegistryPort, IAgreementCatalogPort, IAppBranchCardPort, IAppPowersOfAttorneyPort, IBranchPort, ICandidatePort, IChainChangesPort, IChainDeltaWaitPort, IChainPort, IChainResourcesPort, ICoopCredentialPort, ICooperativeLogoPort, ICooperativeVarsPort, ICouncilPort, IDecisionDeclineReasonPort, IDecisionTrackingPort, IDocumentApprovalPort, IDocumentDeclarationPort, IDocumentPort, IExtensionConfigPort, IExtensionDatabasePort, IFileStoragePort, IFreeDecisionPort, IIndividualPort, IIntegrationSettingsPort, ILedger2HistoryPort, ILoggerPort, IMeetPort, IMemberExitRegistryPort, IMessageChannelPort, IMetaDocument, IMonoAccount, IMutationLogPort, INDIVIDUAL_PORT, INTEGRATION_SETTINGS_PORT, INotificationPort, IOnboardingStepRegistryPort, IOrganizationPort, IPaymentDeskPort, IPaymentMethodPort, IPaymentNoticeLogPort, IPaymentPollingStatePort, IPaymentPort, IPaymentProvider, IPaymentProviderRegistryPort, IPowersOfAttorneyPort, IProgramAgreementPort, IProgramWalletPort, IProviderAppsPort, IProviderTariffPort, IRealtimeChannelPort, IRegistrationRegistryPort, IRoleAssignmentsPort, ISecretCipherPort, ISignatureInfo, ISignedDocument, IUserAvatarPort, IUserCertificatePort, IUserDataPort, IUserDirectoryPort, IUserWalletPort, IVaultPort, IVerificationPort, IWalletWithdrawPort, InnerAccessIdentity, InnerAccount, InnerAgreementCatalogItem, InnerAppBranchCard, InnerAppBranchCardInput, InnerAppBranchCertificate, InnerAppCancelOutcome, InnerAppLiveChange, InnerAppOffer, InnerAppPowerOfAttorneyFilter, InnerAppPowerOfAttorneyRegistration, InnerAppPowerOfAttorneyResolution, InnerAppPowerOfAttorneyRow, InnerAppSubscribeOutcome, InnerAppSubscription, InnerAppSubscriptionStatus, InnerAssignableRole, InnerAttachedRole, InnerBankTransferData, InnerBillingSummary, InnerBranch, InnerCandidate, InnerCandidateDocument, InnerCandidateFilter, InnerChainAccountResources, InnerChainAccountRow, InnerChainAction, InnerChainActionRecord, InnerChainChangesTable, InnerChainDelta, InnerChainDeltaWaitQuery, InnerChainSignedDocument, InnerChainTxWait, InnerCoopAgreement, InnerCoopProgram, InnerCoopUser, InnerCooperativeVars, InnerCouncilDecision, InnerCreateWithdrawInput, InnerCreateWithdrawResult, InnerDocumentAggregate, InnerDocumentApproval, InnerDocumentDeclaration, InnerDocumentKind, InnerDocumentValidation, InnerEndorsementCredential, InnerEnsureProgramParams, InnerEnsureProgramResult, InnerExitBlockersProvider, InnerExitPendingReturn, InnerExtensionDatabaseConnection, InnerFileStorageBackendUnavailableError, InnerFileStorageBody, InnerFileStorageBucket, InnerFileStorageBucketNotConfiguredError, InnerFileStorageBucketSpec, InnerFileStorageError, InnerFileStorageGetReadUrlOptions, InnerFileStorageMetadataValidationError, InnerFileStorageMimeRejectedError, InnerFileStorageObjectMetadata, InnerFileStorageObjectNotFoundError, InnerFileStorageObjectTooLargeError, InnerFileStoragePutOptions, InnerFileStoragePutResult, InnerFreeDecisionDocument, InnerFreeDecisionProject, InnerGenerateDocumentData, InnerGenerateDocumentOptions, InnerGenerateDocumentRequest, InnerGenerateProjectFreeDecisionData, InnerGeneratedDocument, InnerGetAccountsFilter, InnerGetMeetInput, InnerGetMeetsInput, InnerIndividual, InnerIntakeFormRegistration, InnerIntakeJsonSchema, InnerIntakeJsonSchemaProperty, InnerKeyPermission, InnerLapsedAuthority, InnerLedger2Account, InnerLedger2HistoryFilter, InnerLedger2HistoryResult, InnerLedger2Operation, InnerLedger2Wallet, InnerLogMeta, InnerMeet, InnerMeetDraft, InnerMeetForm, InnerMeetProcessing, InnerMeetRow, InnerMutationLogEntry, InnerMutationLogFilter, InnerNotifyActor, InnerNotifyDelivery, InnerNotifyDeliveryState, InnerNotifyInput, InnerNotifyRecipient, InnerNotifyResult, InnerOnboardingCompletedPayload, InnerOnboardingDecisionKind, InnerOnboardingGenerator, InnerOnboardingStep, InnerOnboardingStepProposal, InnerOrganization, InnerOrganizationDetails, InnerPage, InnerPageRequest, InnerPaginatedAccounts, InnerPaginationOptions, InnerParticipantProfileUpdatedEvent, InnerParticipantRegisteredEvent, InnerPassport, InnerPayment, InnerPaymentDetails, InnerPaymentDraft, InnerPaymentFilters, InnerPaymentMethod, InnerPaymentMethodDraft, InnerPaymentMethodQuery, InnerPaymentMethodType, InnerPaymentNotice, InnerPaymentPollingState, InnerPayoutRequest, InnerPayoutRequestStatus, InnerPowerOfAttorneyStatus, InnerPowerOfAttorneyType, InnerPrivateAccount, InnerProgramSignature, InnerProgramWallet, InnerProgramWalletFilter, InnerProposeOnboardingStepInput, InnerProviderSubscription, InnerProviderTariff, InnerPublishProjectFreeDecisionInput, InnerRegistryRecord, InnerRepresentative, InnerRolePermission, InnerSbpData, InnerSetPaymentStatusInput, InnerSignProgramAgreementInput, InnerSystemOutgoingPaymentInput, InnerTransactResult, InnerUserCertificate, InnerUserDataDraft, InnerUserDataFilters, InnerUserDataRecord, InnerUserWallet, InnerVerificationCheck, InnerVerificationEntry, LEDGER2_HISTORY_PORT, LOGGER_PORT, MEET_PORT, MEMBER_EXIT_REGISTRY_PORT, MESSAGE_CHANNEL_PORT, MUTATION_LOG_PORT, MonoAccountStatus, NOTIFICATION_PORT, ONBOARDING_COMPLETED_EVENT, ONBOARDING_STEP_REGISTRY_PORT, ORGANIZATION_PORT, PARTICIPANT_PROFILE_UPDATED_EVENT, PARTICIPANT_REGISTERED_EVENT, PAYMENT_DESK_PORT, PAYMENT_METHOD_PORT, PAYMENT_NOTICE_LOG_PORT, PAYMENT_POLLING_STATE_PORT, PAYMENT_PORT, PAYMENT_PROVIDER_REGISTRY_PORT, POWERS_OF_ATTORNEY_PORT, PROGRAM_AGREEMENT_PORT, PROGRAM_ID_BY_TYPE, PROGRAM_TYPE_BY_ID, PROGRAM_WALLET_PORT, PROVIDER_APPS_PORT, PROVIDER_TARIFF_PORT, PaymentDirection, PaymentStatus, PaymentType, ProgramKey, ProgramType, REALTIME_CHANNEL_PORT, REGISTRATION_REGISTRY_PORT, ROLE_ASSIGNMENTS_PORT, ROLE_ASSIGNMENT_CHANGED_EVENT, RoleAssignmentChangedEvent, SECRET_CIPHER_PORT, TrackingRule, USER_AVATAR_PORT, USER_CERTIFICATE_PORT, USER_DATA_PORT, USER_DIRECTORY_PORT, USER_WALLET_PORT, VAT_EXEMPT_NOTE, VAULT_PORT, VERIFICATION_PORT, WALLET_WITHDRAW_PORT, getProgramId, getProgramType, isEligibleForParticipantMassNotification } from './core-ports/index.cjs';
3
+ export { CAPITAL_PROJECT_CREATED_EVENT, CAPITAL_PROJECT_MATRIX_ROOM_ASSIGNED_EVENT, CHAIRMAN_APPROVALS_PORT, CHATCOOP_CAPITAL_PROJECT_ROOM_ENSURE_MEMBER_EVENT, CHATCOOP_MATRIX_USER_LINKED_FOR_CAPITAL_PROJECT_ROOMS_EVENT, EXPENSE_CHASSIS_PORT, ICapitalProjectCreatedPayload, ICapitalProjectMatrixRoomAssignedPayload, IChairmanApprovalsPort, IChatCoopCapitalProjectRoomEnsureMemberPayload, IChatCoopMatrixUserLinkedForCapitalProjectRoomsPayload, IExpenseChassisPort, IMatrixRoomMessagingPort, IProjectCapitalClearancePort, IProjectCommunicationArtifactsPort, ISovietRobotPort, InnerChairmanApproval, InnerChairmanApprovalStatus, InnerChairmanApprovalsQuery, InnerCompletedCallTranscriptionHead, InnerExpenseCallbackHandler, InnerExpenseItem, InnerExpenseItemInput, InnerExpenseItemState, InnerExpenseMechanics, InnerExpensePaginatedResult, InnerExpensePagination, InnerExpensePlan, InnerExpensePlannedReserve, InnerExpenseProposalRead, InnerExpenseProposalState, InnerExpenseProposalStatus, InnerExpenseRecipientType, InnerExpenseRequisiteItemInput, InnerMatrixReplaceTextMessageInput, InnerMatrixSendTextAndPinInput, InnerMatrixSendTextMessageInput, InnerMatrixUnpinAndRedactAnnouncementInput, InnerNonProjectCommunicationRoomRef, InnerNonProjectRoomKind, InnerProjectCommunicationRoomRef, InnerRobotDecisionOutcome, InnerRobotDecisionRequest, InnerRobotDecisionResult, InnerRoomMessageKind, InnerRoomMessageLine, MATRIX_ROOM_MESSAGING_APP_PORT_NAME, MATRIX_ROOM_MESSAGING_PORT, PROJECT_CAPITAL_CLEARANCE_PORT, PROJECT_COMMUNICATION_ARTIFACTS_APP_PORT_NAME, PROJECT_COMMUNICATION_ARTIFACTS_PORT, SOVIET_ROBOT_APP_PORT_NAME, SOVIET_ROBOT_PORT } from './cross-plugin-ports/index.cjs';
4
4
 
5
5
  /**
6
6
  * Параметры оферты, которые расширение выдаёт вступающему пайщику.
@@ -70,6 +70,12 @@ interface IRegistrationDocumentParametersRegistryPort {
70
70
  registerProgramOfferHook(hook: IProgramOfferParametersHook): void;
71
71
  }
72
72
  declare const REGISTRATION_DOCUMENT_PARAMETERS_REGISTRY_PORT: unique symbol;
73
+ /**
74
+ * Порт приложения «Стол заказов», через который ядро зовёт хук оферты после
75
+ * выноса Стола заказов из монолита (03.12.2026, 487-46). Приложение объявляет
76
+ * его в `coopenomics.provides` с методом `generateMarketplaceOfferParameters`.
77
+ */
78
+ declare const MARKETPLACE_OFFER_APP_PORT_NAME = "marketplace-offer";
73
79
 
74
80
  /**
75
81
  * Права пайщика на рабочем столе расширения.
@@ -116,6 +122,12 @@ interface IDesktopGrantsRegistryPort {
116
122
  register(provider: IDesktopGrantsHook): void;
117
123
  }
118
124
  declare const DESKTOP_GRANTS_REGISTRY_PORT: unique symbol;
125
+ /**
126
+ * Имя порта приложения «Стол заказов» с правами страниц его стола (03.12.2026,
127
+ * 487-46). Права зависят от пайщика (поставщик, председатель участка, подписал
128
+ * ли оферту), поэтому манифест их не перечисляет: ядро спрашивает приложение.
129
+ */
130
+ declare const MARKETPLACE_DESKTOP_GRANTS_APP_PORT_NAME = "marketplace-desktop-grants";
119
131
 
120
132
  /**
121
133
  * Сужение прав пайщика на столах ЧУЖОГО расширения.
@@ -338,10 +350,100 @@ interface IOrganizationLookupHook {
338
350
  * Реестр поставщиков. Расширение кладёт себя сюда при запуске, ядро
339
351
  * спрашивает по стране. Остановленное расширение ядро снимает само.
340
352
  */
353
+ /**
354
+ * Порт приложений «поиск организаций» (01.12.2026): приложение каталога
355
+ * (для России — «Анкета по ИНН») даёт его ядру через посредника
356
+ * оркестратора. Имя стоит в манифесте поставщика (`coopenomics.provides`).
357
+ */
358
+ declare const ORGANIZATION_LOOKUP_APP_PORT_NAME = "organization-lookup";
359
+ /** Методы порта, открытые посреднику. */
360
+ declare const ORGANIZATION_LOOKUP_APP_PORT_METHODS: readonly ["countries", "findByInn", "findEntrepreneurByInn"];
361
+ /** Порт приложения-поставщика сведений по ИНН: страна передаётся в каждом вызове. */
362
+ interface IOrganizationLookupAppPort {
363
+ /** Страны, чей реестр читает поставщик; ключа сервиса нет — пусто. */
364
+ countries(): Promise<string[]>;
365
+ findByInn(country: string, inn: string): Promise<InnerOrganizationLookupRecord | null>;
366
+ findEntrepreneurByInn(country: string, inn: string): Promise<InnerEntrepreneurLookupRecord | null>;
367
+ }
341
368
  interface IOrganizationLookupRegistryPort {
342
369
  register(provider: IOrganizationLookupHook): void;
370
+ /**
371
+ * Подключить приложение каталога — поставщика сведений по ИНН (01.12.2026).
372
+ * Ядро спрашивает его через посредника оркестратора, когда своего
373
+ * расширения для страны нет.
374
+ */
375
+ registerRemote?(source: IOrganizationLookupAppPort): void;
343
376
  }
344
377
  declare const ORGANIZATION_LOOKUP_REGISTRY_PORT: unique symbol;
345
378
 
346
- export { DESKTOP_GRANTS_FILTER_REGISTRY_PORT, DESKTOP_GRANTS_REGISTRY_PORT, GLOBAL_SEARCH_REGISTRY_PORT, InnerAccountType, InnerAgreementRegistration, InnerOrganizationType, InnerProgramRegistration, ORGANIZATION_LOOKUP_REGISTRY_PORT, REGISTRATION_DOCUMENT_PARAMETERS_REGISTRY_PORT, REGISTRATION_OFFER_FILTER_REGISTRY_PORT };
347
- export type { IDesktopGrantsFilterHook, IDesktopGrantsFilterRegistryPort, IDesktopGrantsHook, IDesktopGrantsRegistryPort, IGlobalSearchHook, IGlobalSearchRegistryPort, IMarketplaceDocumentParametersHook, IOrganizationLookupHook, IOrganizationLookupRegistryPort, IProgramDocumentParametersHook, IProgramOfferParametersHook, IRegistrationDocumentParametersRegistryPort, IRegistrationOfferFilterHook, IRegistrationOfferFilterRegistryPort, InnerDesktopGrantsContext, InnerDesktopGrantsFilterTarget, InnerEntrepreneurLookupRecord, InnerGlobalSearchContext, InnerGlobalSearchHit, InnerGlobalSearchRoute, InnerOrganizationLookupRecord, InnerOrganizationLookupRepresentative, InnerRegistrationOfferFilterContext };
379
+ /**
380
+ * Настройки приложения каталога (01.12.2026, 487-48).
381
+ *
382
+ * Настройки (ключи внешних сервисов, адреса, флаги) председатель вводит на
383
+ * странице приложения в каталоге — тем же путём, что у встроенных расширений:
384
+ * сразу после установки, пока обязательные поля не заполнены, установка не
385
+ * завершена. Отдельной страницы настроек на столе приложения нет.
386
+ *
387
+ * Приложение даёт ядру служебный порт `app-settings` (имя — в манифесте,
388
+ * `coopenomics.provides`). Ядро вызывает его адресно — у названного пакета —
389
+ * через посредника оркестратора. Значения хранит само приложение (секреты —
390
+ * шифротекстом `AppSecrets`); ядру приложение отдаёт только признаки «задано».
391
+ *
392
+ * Форма описывается той же JSON-схемой, что настройки встроенных расширений:
393
+ * стол рисует её общим компонентом формы.
394
+ */
395
+ /**
396
+ * Настройки приложения: форма по JSON-схеме и сохранение значений (01.12.2026,
397
+ * 487-48). Председатель заполняет форму на странице приложения в каталоге
398
+ * сразу после установки. Значения хранит приложение, секреты — шифротекстом;
399
+ * ядру приложение отдаёт только признак «задано». Ядро зовёт порт адресно, у
400
+ * названного пакета.
401
+ */
402
+ declare const APP_SETTINGS_APP_PORT_NAME = "app-settings";
403
+ /** Методы порта, открытые посреднику. */
404
+ declare const APP_SETTINGS_APP_PORT_METHODS: readonly ["form", "save"];
405
+ /**
406
+ * Значение секретного поля в ответе `form`: секрет задан, но не показывается.
407
+ * Стол показывает «задано»; то же значение, присланное в `save`, означает
408
+ * «оставить прежний секрет».
409
+ */
410
+ declare const APP_SETTINGS_SECRET_SET = "__secret_set__";
411
+ /** Подпись и поведение поля формы — те же ключи, что у настроек встроенных расширений. */
412
+ interface AppSettingsFieldDescription {
413
+ /** Подпись поля. */
414
+ label: string;
415
+ /** Пояснение под полем. */
416
+ note?: string;
417
+ /** Скрытый ввод: ключи и пароли. */
418
+ password?: boolean;
419
+ placeholder?: string;
420
+ }
421
+ interface AppSettingsField {
422
+ type: 'string' | 'number' | 'boolean';
423
+ description: AppSettingsFieldDescription;
424
+ }
425
+ /** JSON-схема формы: объект с перечнем полей и обязательными полями. */
426
+ interface AppSettingsSchema {
427
+ type: 'object';
428
+ properties: Record<string, AppSettingsField>;
429
+ required: string[];
430
+ }
431
+ interface AppSettingsForm {
432
+ schema: AppSettingsSchema;
433
+ /** Текущие значения; секретное заданное поле — `APP_SETTINGS_SECRET_SET`. */
434
+ values: Record<string, unknown>;
435
+ /** Обязательное заполнено — приложение работает, установка завершена. */
436
+ configured: boolean;
437
+ }
438
+ /** Порт настроек, который приложение даёт ядру. */
439
+ interface IAppSettingsAppPort {
440
+ form(): Promise<AppSettingsForm>;
441
+ /**
442
+ * Сохранить настройки. Пустое значение стирает поле, `APP_SETTINGS_SECRET_SET`
443
+ * оставляет прежний секрет. `username` — председатель, сохранивший настройки.
444
+ */
445
+ save(values: Record<string, unknown>, username: string): Promise<AppSettingsForm>;
446
+ }
447
+
448
+ export { APP_SETTINGS_APP_PORT_METHODS, APP_SETTINGS_APP_PORT_NAME, APP_SETTINGS_SECRET_SET, DESKTOP_GRANTS_FILTER_REGISTRY_PORT, DESKTOP_GRANTS_REGISTRY_PORT, GLOBAL_SEARCH_REGISTRY_PORT, InnerAccountType, InnerAgreementRegistration, InnerOrganizationType, InnerProgramRegistration, MARKETPLACE_DESKTOP_GRANTS_APP_PORT_NAME, MARKETPLACE_OFFER_APP_PORT_NAME, ORGANIZATION_LOOKUP_APP_PORT_METHODS, ORGANIZATION_LOOKUP_APP_PORT_NAME, ORGANIZATION_LOOKUP_REGISTRY_PORT, REGISTRATION_DOCUMENT_PARAMETERS_REGISTRY_PORT, REGISTRATION_OFFER_FILTER_REGISTRY_PORT };
449
+ export type { AppSettingsField, AppSettingsFieldDescription, AppSettingsForm, AppSettingsSchema, IAppSettingsAppPort, IDesktopGrantsFilterHook, IDesktopGrantsFilterRegistryPort, IDesktopGrantsHook, IDesktopGrantsRegistryPort, IGlobalSearchHook, IGlobalSearchRegistryPort, IMarketplaceDocumentParametersHook, IOrganizationLookupAppPort, IOrganizationLookupHook, IOrganizationLookupRegistryPort, IProgramDocumentParametersHook, IProgramOfferParametersHook, IRegistrationDocumentParametersRegistryPort, IRegistrationOfferFilterHook, IRegistrationOfferFilterRegistryPort, InnerDesktopGrantsContext, InnerDesktopGrantsFilterTarget, InnerEntrepreneurLookupRecord, InnerGlobalSearchContext, InnerGlobalSearchHit, InnerGlobalSearchRoute, InnerOrganizationLookupRecord, InnerOrganizationLookupRepresentative, InnerRegistrationOfferFilterContext };
package/dist/index.d.mts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { InnerAccountType, InnerProgramRegistration, InnerAgreementRegistration, InnerOrganizationType } from './core-ports/index.mjs';
2
- export { ACCESS_TOKEN_PORT, ACCOUNTING_REGISTRY_PORT, ACCOUNT_PORT, AGREEMENT_CATALOG_PORT, BRANCH_PORT, CANDIDATE_PORT, CHAIN_CHANGES_PORT, CHAIN_DELTA_WAIT_PORT, CHAIN_PORT, CHAIN_RESOURCES_PORT, CHAIN_RESOURCE_SHORTAGE_EVENT, COOPERATIVE_LOGO_PORT, COOPERATIVE_VARS_PORT, COOP_CREDENTIAL_PORT, COUNCIL_PORT, ChainResourceKind, ChainResourceShortagePayload, CreateTrackingRuleInput, DECISION_DECLINE_REASON_PORT, DECISION_TRACKING_PORT, DOCUMENT_APPROVAL_PORT, DOCUMENT_DECLARATION_PORT, DOCUMENT_PORT, DecisionEventType, DecisionEventTypeString, DecisionProcessedResult, DecisionTrackedEvent, EXTENSION_CONFIG_PORT, EXTENSION_DATABASE_PORT, ExtendedMeetStatus, FILE_STORAGE_PORT, FREE_DECISION_PORT, IAccessTokenPort, IAccountPort, IAccountingRegistryPort, IAgreementCatalogPort, IBranchPort, ICandidatePort, IChainChangesPort, IChainDeltaWaitPort, IChainPort, IChainResourcesPort, ICoopCredentialPort, ICooperativeLogoPort, ICooperativeVarsPort, ICouncilPort, IDecisionDeclineReasonPort, IDecisionTrackingPort, IDocumentApprovalPort, IDocumentDeclarationPort, IDocumentPort, IExtensionConfigPort, IExtensionDatabasePort, IFileStoragePort, IFreeDecisionPort, IIndividualPort, IIntegrationSettingsPort, ILedger2HistoryPort, ILoggerPort, IMeetPort, IMemberExitRegistryPort, IMessageChannelPort, IMetaDocument, IMonoAccount, IMutationLogPort, INDIVIDUAL_PORT, INTEGRATION_SETTINGS_PORT, INotificationPort, IOnboardingStepRegistryPort, IOrganizationPort, IPaymentDeskPort, IPaymentMethodPort, IPaymentNoticeLogPort, IPaymentPollingStatePort, IPaymentPort, IPaymentProvider, IPaymentProviderRegistryPort, IProgramAgreementPort, IProgramWalletPort, IProviderAppsPort, IProviderTariffPort, IRealtimeChannelPort, IRegistrationRegistryPort, IRoleAssignmentsPort, ISecretCipherPort, ISignatureInfo, ISignedDocument, IUserAvatarPort, IUserCertificatePort, IUserDataPort, IUserDirectoryPort, IUserWalletPort, IVaultPort, IVerificationPort, IWalletWithdrawPort, InnerAccessIdentity, InnerAccount, InnerAgreementCatalogItem, InnerAppCancelOutcome, InnerAppLiveChange, InnerAppOffer, InnerAppSubscribeOutcome, InnerAppSubscription, InnerAppSubscriptionStatus, InnerAssignableRole, InnerAttachedRole, InnerBankTransferData, InnerBillingSummary, InnerBranch, InnerCandidate, InnerCandidateDocument, InnerCandidateFilter, InnerChainAccountResources, InnerChainAccountRow, InnerChainAction, InnerChainActionRecord, InnerChainChangesTable, InnerChainDelta, InnerChainDeltaWaitQuery, InnerChainTxWait, InnerCoopAgreement, InnerCoopProgram, InnerCoopUser, InnerCooperativeVars, InnerCouncilDecision, InnerCreateWithdrawInput, InnerCreateWithdrawResult, InnerDocumentAggregate, InnerDocumentApproval, InnerDocumentDeclaration, InnerDocumentKind, InnerDocumentValidation, InnerEndorsementCredential, InnerEnsureProgramParams, InnerEnsureProgramResult, InnerExitBlockersProvider, InnerExitPendingReturn, InnerExtensionDatabaseConnection, InnerFileStorageBackendUnavailableError, InnerFileStorageBody, InnerFileStorageBucket, InnerFileStorageBucketNotConfiguredError, InnerFileStorageBucketSpec, InnerFileStorageError, InnerFileStorageGetReadUrlOptions, InnerFileStorageMetadataValidationError, InnerFileStorageMimeRejectedError, InnerFileStorageObjectMetadata, InnerFileStorageObjectNotFoundError, InnerFileStorageObjectTooLargeError, InnerFileStoragePutOptions, InnerFileStoragePutResult, InnerFreeDecisionDocument, InnerFreeDecisionProject, InnerGenerateDocumentData, InnerGenerateDocumentOptions, InnerGenerateDocumentRequest, InnerGenerateProjectFreeDecisionData, InnerGeneratedDocument, InnerGetAccountsFilter, InnerGetMeetInput, InnerGetMeetsInput, InnerIndividual, InnerIntakeFormRegistration, InnerIntakeJsonSchema, InnerIntakeJsonSchemaProperty, InnerKeyPermission, InnerLedger2Account, InnerLedger2HistoryFilter, InnerLedger2HistoryResult, InnerLedger2Operation, InnerLedger2Wallet, InnerLogMeta, InnerMeet, InnerMeetDraft, InnerMeetForm, InnerMeetProcessing, InnerMeetRow, InnerMutationLogEntry, InnerMutationLogFilter, InnerNotifyActor, InnerNotifyDelivery, InnerNotifyDeliveryState, InnerNotifyInput, InnerNotifyRecipient, InnerNotifyResult, InnerOnboardingCompletedPayload, InnerOnboardingDecisionKind, InnerOnboardingGenerator, InnerOnboardingStep, InnerOnboardingStepProposal, InnerOrganization, InnerOrganizationDetails, InnerPage, InnerPageRequest, InnerPaginatedAccounts, InnerPaginationOptions, InnerParticipantProfileUpdatedEvent, InnerParticipantRegisteredEvent, InnerPassport, InnerPayment, InnerPaymentDetails, InnerPaymentDraft, InnerPaymentFilters, InnerPaymentMethod, InnerPaymentMethodDraft, InnerPaymentMethodQuery, InnerPaymentMethodType, InnerPaymentNotice, InnerPaymentPollingState, InnerPayoutRequest, InnerPayoutRequestStatus, InnerPrivateAccount, InnerProgramSignature, InnerProgramWallet, InnerProgramWalletFilter, InnerProposeOnboardingStepInput, InnerProviderSubscription, InnerProviderTariff, InnerPublishProjectFreeDecisionInput, InnerRegistryRecord, InnerRepresentative, InnerRolePermission, InnerSbpData, InnerSetPaymentStatusInput, InnerSignProgramAgreementInput, InnerSystemOutgoingPaymentInput, InnerTransactResult, InnerUserCertificate, InnerUserDataDraft, InnerUserDataFilters, InnerUserDataRecord, InnerUserWallet, InnerVerificationCheck, InnerVerificationEntry, LEDGER2_HISTORY_PORT, LOGGER_PORT, MEET_PORT, MEMBER_EXIT_REGISTRY_PORT, MESSAGE_CHANNEL_PORT, MUTATION_LOG_PORT, MonoAccountStatus, NOTIFICATION_PORT, ONBOARDING_COMPLETED_EVENT, ONBOARDING_STEP_REGISTRY_PORT, ORGANIZATION_PORT, PARTICIPANT_PROFILE_UPDATED_EVENT, PARTICIPANT_REGISTERED_EVENT, PAYMENT_DESK_PORT, PAYMENT_METHOD_PORT, PAYMENT_NOTICE_LOG_PORT, PAYMENT_POLLING_STATE_PORT, PAYMENT_PORT, PAYMENT_PROVIDER_REGISTRY_PORT, PROGRAM_AGREEMENT_PORT, PROGRAM_ID_BY_TYPE, PROGRAM_TYPE_BY_ID, PROGRAM_WALLET_PORT, PROVIDER_APPS_PORT, PROVIDER_TARIFF_PORT, PaymentDirection, PaymentStatus, PaymentType, ProgramKey, ProgramType, REALTIME_CHANNEL_PORT, REGISTRATION_REGISTRY_PORT, ROLE_ASSIGNMENTS_PORT, ROLE_ASSIGNMENT_CHANGED_EVENT, RoleAssignmentChangedEvent, SECRET_CIPHER_PORT, TrackingRule, USER_AVATAR_PORT, USER_CERTIFICATE_PORT, USER_DATA_PORT, USER_DIRECTORY_PORT, USER_WALLET_PORT, VAT_EXEMPT_NOTE, VAULT_PORT, VERIFICATION_PORT, WALLET_WITHDRAW_PORT, getProgramId, getProgramType, isEligibleForParticipantMassNotification } from './core-ports/index.mjs';
3
- export { CAPITAL_PROJECT_CREATED_EVENT, CAPITAL_PROJECT_MATRIX_ROOM_ASSIGNED_EVENT, CHAIRMAN_APPROVALS_PORT, CHATCOOP_CALENDAR_PORT, CHATCOOP_CAPITAL_PROJECT_ROOM_ENSURE_MEMBER_EVENT, CHATCOOP_MATRIX_USER_LINKED_FOR_CAPITAL_PROJECT_ROOMS_EVENT, COOP_CALENDAR_EVENT_NOTIFICATION_PORT, EXPENSE_CHASSIS_PORT, ICapitalProjectCreatedPayload, ICapitalProjectMatrixRoomAssignedPayload, IChairmanApprovalsPort, IChatCoopCalendarPort, IChatCoopCapitalProjectRoomEnsureMemberPayload, IChatCoopMatrixUserLinkedForCapitalProjectRoomsPayload, ICoopCalendarEventNotificationPort, IExpenseChassisPort, IMatrixRoomMessagingPort, IPowersOfAttorneyPort, IProjectCapitalClearancePort, IProjectCommunicationArtifactsPort, ISovietRobotPort, InnerCalendarEventWindow, InnerChairmanApproval, InnerChairmanApprovalStatus, InnerChairmanApprovalsQuery, InnerCompletedCallTranscriptionHead, InnerCoopCalendarEventNotificationInput, InnerCoopCalendarEventRead, InnerCoopCalendarNotificationRoomKind, InnerExpenseCallbackHandler, InnerExpenseItem, InnerExpenseItemInput, InnerExpenseItemState, InnerExpenseMechanics, InnerExpensePaginatedResult, InnerExpensePagination, InnerExpensePlan, InnerExpensePlannedReserve, InnerExpenseProposalRead, InnerExpenseProposalState, InnerExpenseProposalStatus, InnerExpenseRecipientType, InnerExpenseRequisiteItemInput, InnerLapsedAuthority, InnerMatrixReplaceTextMessageInput, InnerMatrixSendTextAndPinInput, InnerMatrixSendTextMessageInput, InnerMatrixUnpinAndRedactAnnouncementInput, InnerNonProjectCommunicationRoomRef, InnerNonProjectRoomKind, InnerPowerOfAttorneyStatus, InnerPowerOfAttorneyType, InnerProjectCommunicationRoomRef, InnerRobotDecisionOutcome, InnerRobotDecisionRequest, InnerRobotDecisionResult, InnerRoomMessageKind, InnerRoomMessageLine, MATRIX_ROOM_MESSAGING_PORT, POWERS_OF_ATTORNEY_PORT, PROJECT_CAPITAL_CLEARANCE_PORT, PROJECT_COMMUNICATION_ARTIFACTS_PORT, SOVIET_ROBOT_PORT } from './cross-plugin-ports/index.mjs';
2
+ export { ACCESS_TOKEN_PORT, ACCOUNTING_REGISTRY_PORT, ACCOUNT_PORT, AGREEMENT_CATALOG_PORT, APP_BRANCH_CARD_PORT, APP_POWERS_OF_ATTORNEY_PORT, BRANCH_PORT, CANDIDATE_PORT, CHAIN_CHANGES_PORT, CHAIN_DELTA_WAIT_PORT, CHAIN_PORT, CHAIN_RESOURCES_PORT, CHAIN_RESOURCE_SHORTAGE_EVENT, COOPERATIVE_LOGO_PORT, COOPERATIVE_VARS_PORT, COOP_CREDENTIAL_PORT, COUNCIL_PORT, ChainResourceKind, ChainResourceShortagePayload, CreateTrackingRuleInput, DECISION_DECLINE_REASON_PORT, DECISION_TRACKING_PORT, DOCUMENT_APPROVAL_PORT, DOCUMENT_DECLARATION_PORT, DOCUMENT_PORT, DecisionEventType, DecisionEventTypeString, DecisionProcessedResult, DecisionTrackedEvent, EXTENSION_CONFIG_PORT, EXTENSION_DATABASE_PORT, ExtendedMeetStatus, FILE_STORAGE_PORT, FREE_DECISION_PORT, IAccessTokenPort, IAccountPort, IAccountingRegistryPort, IAgreementCatalogPort, IAppBranchCardPort, IAppPowersOfAttorneyPort, IBranchPort, ICandidatePort, IChainChangesPort, IChainDeltaWaitPort, IChainPort, IChainResourcesPort, ICoopCredentialPort, ICooperativeLogoPort, ICooperativeVarsPort, ICouncilPort, IDecisionDeclineReasonPort, IDecisionTrackingPort, IDocumentApprovalPort, IDocumentDeclarationPort, IDocumentPort, IExtensionConfigPort, IExtensionDatabasePort, IFileStoragePort, IFreeDecisionPort, IIndividualPort, IIntegrationSettingsPort, ILedger2HistoryPort, ILoggerPort, IMeetPort, IMemberExitRegistryPort, IMessageChannelPort, IMetaDocument, IMonoAccount, IMutationLogPort, INDIVIDUAL_PORT, INTEGRATION_SETTINGS_PORT, INotificationPort, IOnboardingStepRegistryPort, IOrganizationPort, IPaymentDeskPort, IPaymentMethodPort, IPaymentNoticeLogPort, IPaymentPollingStatePort, IPaymentPort, IPaymentProvider, IPaymentProviderRegistryPort, IPowersOfAttorneyPort, IProgramAgreementPort, IProgramWalletPort, IProviderAppsPort, IProviderTariffPort, IRealtimeChannelPort, IRegistrationRegistryPort, IRoleAssignmentsPort, ISecretCipherPort, ISignatureInfo, ISignedDocument, IUserAvatarPort, IUserCertificatePort, IUserDataPort, IUserDirectoryPort, IUserWalletPort, IVaultPort, IVerificationPort, IWalletWithdrawPort, InnerAccessIdentity, InnerAccount, InnerAgreementCatalogItem, InnerAppBranchCard, InnerAppBranchCardInput, InnerAppBranchCertificate, InnerAppCancelOutcome, InnerAppLiveChange, InnerAppOffer, InnerAppPowerOfAttorneyFilter, InnerAppPowerOfAttorneyRegistration, InnerAppPowerOfAttorneyResolution, InnerAppPowerOfAttorneyRow, InnerAppSubscribeOutcome, InnerAppSubscription, InnerAppSubscriptionStatus, InnerAssignableRole, InnerAttachedRole, InnerBankTransferData, InnerBillingSummary, InnerBranch, InnerCandidate, InnerCandidateDocument, InnerCandidateFilter, InnerChainAccountResources, InnerChainAccountRow, InnerChainAction, InnerChainActionRecord, InnerChainChangesTable, InnerChainDelta, InnerChainDeltaWaitQuery, InnerChainSignedDocument, InnerChainTxWait, InnerCoopAgreement, InnerCoopProgram, InnerCoopUser, InnerCooperativeVars, InnerCouncilDecision, InnerCreateWithdrawInput, InnerCreateWithdrawResult, InnerDocumentAggregate, InnerDocumentApproval, InnerDocumentDeclaration, InnerDocumentKind, InnerDocumentValidation, InnerEndorsementCredential, InnerEnsureProgramParams, InnerEnsureProgramResult, InnerExitBlockersProvider, InnerExitPendingReturn, InnerExtensionDatabaseConnection, InnerFileStorageBackendUnavailableError, InnerFileStorageBody, InnerFileStorageBucket, InnerFileStorageBucketNotConfiguredError, InnerFileStorageBucketSpec, InnerFileStorageError, InnerFileStorageGetReadUrlOptions, InnerFileStorageMetadataValidationError, InnerFileStorageMimeRejectedError, InnerFileStorageObjectMetadata, InnerFileStorageObjectNotFoundError, InnerFileStorageObjectTooLargeError, InnerFileStoragePutOptions, InnerFileStoragePutResult, InnerFreeDecisionDocument, InnerFreeDecisionProject, InnerGenerateDocumentData, InnerGenerateDocumentOptions, InnerGenerateDocumentRequest, InnerGenerateProjectFreeDecisionData, InnerGeneratedDocument, InnerGetAccountsFilter, InnerGetMeetInput, InnerGetMeetsInput, InnerIndividual, InnerIntakeFormRegistration, InnerIntakeJsonSchema, InnerIntakeJsonSchemaProperty, InnerKeyPermission, InnerLapsedAuthority, InnerLedger2Account, InnerLedger2HistoryFilter, InnerLedger2HistoryResult, InnerLedger2Operation, InnerLedger2Wallet, InnerLogMeta, InnerMeet, InnerMeetDraft, InnerMeetForm, InnerMeetProcessing, InnerMeetRow, InnerMutationLogEntry, InnerMutationLogFilter, InnerNotifyActor, InnerNotifyDelivery, InnerNotifyDeliveryState, InnerNotifyInput, InnerNotifyRecipient, InnerNotifyResult, InnerOnboardingCompletedPayload, InnerOnboardingDecisionKind, InnerOnboardingGenerator, InnerOnboardingStep, InnerOnboardingStepProposal, InnerOrganization, InnerOrganizationDetails, InnerPage, InnerPageRequest, InnerPaginatedAccounts, InnerPaginationOptions, InnerParticipantProfileUpdatedEvent, InnerParticipantRegisteredEvent, InnerPassport, InnerPayment, InnerPaymentDetails, InnerPaymentDraft, InnerPaymentFilters, InnerPaymentMethod, InnerPaymentMethodDraft, InnerPaymentMethodQuery, InnerPaymentMethodType, InnerPaymentNotice, InnerPaymentPollingState, InnerPayoutRequest, InnerPayoutRequestStatus, InnerPowerOfAttorneyStatus, InnerPowerOfAttorneyType, InnerPrivateAccount, InnerProgramSignature, InnerProgramWallet, InnerProgramWalletFilter, InnerProposeOnboardingStepInput, InnerProviderSubscription, InnerProviderTariff, InnerPublishProjectFreeDecisionInput, InnerRegistryRecord, InnerRepresentative, InnerRolePermission, InnerSbpData, InnerSetPaymentStatusInput, InnerSignProgramAgreementInput, InnerSystemOutgoingPaymentInput, InnerTransactResult, InnerUserCertificate, InnerUserDataDraft, InnerUserDataFilters, InnerUserDataRecord, InnerUserWallet, InnerVerificationCheck, InnerVerificationEntry, LEDGER2_HISTORY_PORT, LOGGER_PORT, MEET_PORT, MEMBER_EXIT_REGISTRY_PORT, MESSAGE_CHANNEL_PORT, MUTATION_LOG_PORT, MonoAccountStatus, NOTIFICATION_PORT, ONBOARDING_COMPLETED_EVENT, ONBOARDING_STEP_REGISTRY_PORT, ORGANIZATION_PORT, PARTICIPANT_PROFILE_UPDATED_EVENT, PARTICIPANT_REGISTERED_EVENT, PAYMENT_DESK_PORT, PAYMENT_METHOD_PORT, PAYMENT_NOTICE_LOG_PORT, PAYMENT_POLLING_STATE_PORT, PAYMENT_PORT, PAYMENT_PROVIDER_REGISTRY_PORT, POWERS_OF_ATTORNEY_PORT, PROGRAM_AGREEMENT_PORT, PROGRAM_ID_BY_TYPE, PROGRAM_TYPE_BY_ID, PROGRAM_WALLET_PORT, PROVIDER_APPS_PORT, PROVIDER_TARIFF_PORT, PaymentDirection, PaymentStatus, PaymentType, ProgramKey, ProgramType, REALTIME_CHANNEL_PORT, REGISTRATION_REGISTRY_PORT, ROLE_ASSIGNMENTS_PORT, ROLE_ASSIGNMENT_CHANGED_EVENT, RoleAssignmentChangedEvent, SECRET_CIPHER_PORT, TrackingRule, USER_AVATAR_PORT, USER_CERTIFICATE_PORT, USER_DATA_PORT, USER_DIRECTORY_PORT, USER_WALLET_PORT, VAT_EXEMPT_NOTE, VAULT_PORT, VERIFICATION_PORT, WALLET_WITHDRAW_PORT, getProgramId, getProgramType, isEligibleForParticipantMassNotification } from './core-ports/index.mjs';
3
+ export { CAPITAL_PROJECT_CREATED_EVENT, CAPITAL_PROJECT_MATRIX_ROOM_ASSIGNED_EVENT, CHAIRMAN_APPROVALS_PORT, CHATCOOP_CAPITAL_PROJECT_ROOM_ENSURE_MEMBER_EVENT, CHATCOOP_MATRIX_USER_LINKED_FOR_CAPITAL_PROJECT_ROOMS_EVENT, EXPENSE_CHASSIS_PORT, ICapitalProjectCreatedPayload, ICapitalProjectMatrixRoomAssignedPayload, IChairmanApprovalsPort, IChatCoopCapitalProjectRoomEnsureMemberPayload, IChatCoopMatrixUserLinkedForCapitalProjectRoomsPayload, IExpenseChassisPort, IMatrixRoomMessagingPort, IProjectCapitalClearancePort, IProjectCommunicationArtifactsPort, ISovietRobotPort, InnerChairmanApproval, InnerChairmanApprovalStatus, InnerChairmanApprovalsQuery, InnerCompletedCallTranscriptionHead, InnerExpenseCallbackHandler, InnerExpenseItem, InnerExpenseItemInput, InnerExpenseItemState, InnerExpenseMechanics, InnerExpensePaginatedResult, InnerExpensePagination, InnerExpensePlan, InnerExpensePlannedReserve, InnerExpenseProposalRead, InnerExpenseProposalState, InnerExpenseProposalStatus, InnerExpenseRecipientType, InnerExpenseRequisiteItemInput, InnerMatrixReplaceTextMessageInput, InnerMatrixSendTextAndPinInput, InnerMatrixSendTextMessageInput, InnerMatrixUnpinAndRedactAnnouncementInput, InnerNonProjectCommunicationRoomRef, InnerNonProjectRoomKind, InnerProjectCommunicationRoomRef, InnerRobotDecisionOutcome, InnerRobotDecisionRequest, InnerRobotDecisionResult, InnerRoomMessageKind, InnerRoomMessageLine, MATRIX_ROOM_MESSAGING_APP_PORT_NAME, MATRIX_ROOM_MESSAGING_PORT, PROJECT_CAPITAL_CLEARANCE_PORT, PROJECT_COMMUNICATION_ARTIFACTS_APP_PORT_NAME, PROJECT_COMMUNICATION_ARTIFACTS_PORT, SOVIET_ROBOT_APP_PORT_NAME, SOVIET_ROBOT_PORT } from './cross-plugin-ports/index.mjs';
4
4
 
5
5
  /**
6
6
  * Параметры оферты, которые расширение выдаёт вступающему пайщику.
@@ -70,6 +70,12 @@ interface IRegistrationDocumentParametersRegistryPort {
70
70
  registerProgramOfferHook(hook: IProgramOfferParametersHook): void;
71
71
  }
72
72
  declare const REGISTRATION_DOCUMENT_PARAMETERS_REGISTRY_PORT: unique symbol;
73
+ /**
74
+ * Порт приложения «Стол заказов», через который ядро зовёт хук оферты после
75
+ * выноса Стола заказов из монолита (03.12.2026, 487-46). Приложение объявляет
76
+ * его в `coopenomics.provides` с методом `generateMarketplaceOfferParameters`.
77
+ */
78
+ declare const MARKETPLACE_OFFER_APP_PORT_NAME = "marketplace-offer";
73
79
 
74
80
  /**
75
81
  * Права пайщика на рабочем столе расширения.
@@ -116,6 +122,12 @@ interface IDesktopGrantsRegistryPort {
116
122
  register(provider: IDesktopGrantsHook): void;
117
123
  }
118
124
  declare const DESKTOP_GRANTS_REGISTRY_PORT: unique symbol;
125
+ /**
126
+ * Имя порта приложения «Стол заказов» с правами страниц его стола (03.12.2026,
127
+ * 487-46). Права зависят от пайщика (поставщик, председатель участка, подписал
128
+ * ли оферту), поэтому манифест их не перечисляет: ядро спрашивает приложение.
129
+ */
130
+ declare const MARKETPLACE_DESKTOP_GRANTS_APP_PORT_NAME = "marketplace-desktop-grants";
119
131
 
120
132
  /**
121
133
  * Сужение прав пайщика на столах ЧУЖОГО расширения.
@@ -338,10 +350,100 @@ interface IOrganizationLookupHook {
338
350
  * Реестр поставщиков. Расширение кладёт себя сюда при запуске, ядро
339
351
  * спрашивает по стране. Остановленное расширение ядро снимает само.
340
352
  */
353
+ /**
354
+ * Порт приложений «поиск организаций» (01.12.2026): приложение каталога
355
+ * (для России — «Анкета по ИНН») даёт его ядру через посредника
356
+ * оркестратора. Имя стоит в манифесте поставщика (`coopenomics.provides`).
357
+ */
358
+ declare const ORGANIZATION_LOOKUP_APP_PORT_NAME = "organization-lookup";
359
+ /** Методы порта, открытые посреднику. */
360
+ declare const ORGANIZATION_LOOKUP_APP_PORT_METHODS: readonly ["countries", "findByInn", "findEntrepreneurByInn"];
361
+ /** Порт приложения-поставщика сведений по ИНН: страна передаётся в каждом вызове. */
362
+ interface IOrganizationLookupAppPort {
363
+ /** Страны, чей реестр читает поставщик; ключа сервиса нет — пусто. */
364
+ countries(): Promise<string[]>;
365
+ findByInn(country: string, inn: string): Promise<InnerOrganizationLookupRecord | null>;
366
+ findEntrepreneurByInn(country: string, inn: string): Promise<InnerEntrepreneurLookupRecord | null>;
367
+ }
341
368
  interface IOrganizationLookupRegistryPort {
342
369
  register(provider: IOrganizationLookupHook): void;
370
+ /**
371
+ * Подключить приложение каталога — поставщика сведений по ИНН (01.12.2026).
372
+ * Ядро спрашивает его через посредника оркестратора, когда своего
373
+ * расширения для страны нет.
374
+ */
375
+ registerRemote?(source: IOrganizationLookupAppPort): void;
343
376
  }
344
377
  declare const ORGANIZATION_LOOKUP_REGISTRY_PORT: unique symbol;
345
378
 
346
- export { DESKTOP_GRANTS_FILTER_REGISTRY_PORT, DESKTOP_GRANTS_REGISTRY_PORT, GLOBAL_SEARCH_REGISTRY_PORT, InnerAccountType, InnerAgreementRegistration, InnerOrganizationType, InnerProgramRegistration, ORGANIZATION_LOOKUP_REGISTRY_PORT, REGISTRATION_DOCUMENT_PARAMETERS_REGISTRY_PORT, REGISTRATION_OFFER_FILTER_REGISTRY_PORT };
347
- export type { IDesktopGrantsFilterHook, IDesktopGrantsFilterRegistryPort, IDesktopGrantsHook, IDesktopGrantsRegistryPort, IGlobalSearchHook, IGlobalSearchRegistryPort, IMarketplaceDocumentParametersHook, IOrganizationLookupHook, IOrganizationLookupRegistryPort, IProgramDocumentParametersHook, IProgramOfferParametersHook, IRegistrationDocumentParametersRegistryPort, IRegistrationOfferFilterHook, IRegistrationOfferFilterRegistryPort, InnerDesktopGrantsContext, InnerDesktopGrantsFilterTarget, InnerEntrepreneurLookupRecord, InnerGlobalSearchContext, InnerGlobalSearchHit, InnerGlobalSearchRoute, InnerOrganizationLookupRecord, InnerOrganizationLookupRepresentative, InnerRegistrationOfferFilterContext };
379
+ /**
380
+ * Настройки приложения каталога (01.12.2026, 487-48).
381
+ *
382
+ * Настройки (ключи внешних сервисов, адреса, флаги) председатель вводит на
383
+ * странице приложения в каталоге — тем же путём, что у встроенных расширений:
384
+ * сразу после установки, пока обязательные поля не заполнены, установка не
385
+ * завершена. Отдельной страницы настроек на столе приложения нет.
386
+ *
387
+ * Приложение даёт ядру служебный порт `app-settings` (имя — в манифесте,
388
+ * `coopenomics.provides`). Ядро вызывает его адресно — у названного пакета —
389
+ * через посредника оркестратора. Значения хранит само приложение (секреты —
390
+ * шифротекстом `AppSecrets`); ядру приложение отдаёт только признаки «задано».
391
+ *
392
+ * Форма описывается той же JSON-схемой, что настройки встроенных расширений:
393
+ * стол рисует её общим компонентом формы.
394
+ */
395
+ /**
396
+ * Настройки приложения: форма по JSON-схеме и сохранение значений (01.12.2026,
397
+ * 487-48). Председатель заполняет форму на странице приложения в каталоге
398
+ * сразу после установки. Значения хранит приложение, секреты — шифротекстом;
399
+ * ядру приложение отдаёт только признак «задано». Ядро зовёт порт адресно, у
400
+ * названного пакета.
401
+ */
402
+ declare const APP_SETTINGS_APP_PORT_NAME = "app-settings";
403
+ /** Методы порта, открытые посреднику. */
404
+ declare const APP_SETTINGS_APP_PORT_METHODS: readonly ["form", "save"];
405
+ /**
406
+ * Значение секретного поля в ответе `form`: секрет задан, но не показывается.
407
+ * Стол показывает «задано»; то же значение, присланное в `save`, означает
408
+ * «оставить прежний секрет».
409
+ */
410
+ declare const APP_SETTINGS_SECRET_SET = "__secret_set__";
411
+ /** Подпись и поведение поля формы — те же ключи, что у настроек встроенных расширений. */
412
+ interface AppSettingsFieldDescription {
413
+ /** Подпись поля. */
414
+ label: string;
415
+ /** Пояснение под полем. */
416
+ note?: string;
417
+ /** Скрытый ввод: ключи и пароли. */
418
+ password?: boolean;
419
+ placeholder?: string;
420
+ }
421
+ interface AppSettingsField {
422
+ type: 'string' | 'number' | 'boolean';
423
+ description: AppSettingsFieldDescription;
424
+ }
425
+ /** JSON-схема формы: объект с перечнем полей и обязательными полями. */
426
+ interface AppSettingsSchema {
427
+ type: 'object';
428
+ properties: Record<string, AppSettingsField>;
429
+ required: string[];
430
+ }
431
+ interface AppSettingsForm {
432
+ schema: AppSettingsSchema;
433
+ /** Текущие значения; секретное заданное поле — `APP_SETTINGS_SECRET_SET`. */
434
+ values: Record<string, unknown>;
435
+ /** Обязательное заполнено — приложение работает, установка завершена. */
436
+ configured: boolean;
437
+ }
438
+ /** Порт настроек, который приложение даёт ядру. */
439
+ interface IAppSettingsAppPort {
440
+ form(): Promise<AppSettingsForm>;
441
+ /**
442
+ * Сохранить настройки. Пустое значение стирает поле, `APP_SETTINGS_SECRET_SET`
443
+ * оставляет прежний секрет. `username` — председатель, сохранивший настройки.
444
+ */
445
+ save(values: Record<string, unknown>, username: string): Promise<AppSettingsForm>;
446
+ }
447
+
448
+ export { APP_SETTINGS_APP_PORT_METHODS, APP_SETTINGS_APP_PORT_NAME, APP_SETTINGS_SECRET_SET, DESKTOP_GRANTS_FILTER_REGISTRY_PORT, DESKTOP_GRANTS_REGISTRY_PORT, GLOBAL_SEARCH_REGISTRY_PORT, InnerAccountType, InnerAgreementRegistration, InnerOrganizationType, InnerProgramRegistration, MARKETPLACE_DESKTOP_GRANTS_APP_PORT_NAME, MARKETPLACE_OFFER_APP_PORT_NAME, ORGANIZATION_LOOKUP_APP_PORT_METHODS, ORGANIZATION_LOOKUP_APP_PORT_NAME, ORGANIZATION_LOOKUP_REGISTRY_PORT, REGISTRATION_DOCUMENT_PARAMETERS_REGISTRY_PORT, REGISTRATION_OFFER_FILTER_REGISTRY_PORT };
449
+ export type { AppSettingsField, AppSettingsFieldDescription, AppSettingsForm, AppSettingsSchema, IAppSettingsAppPort, IDesktopGrantsFilterHook, IDesktopGrantsFilterRegistryPort, IDesktopGrantsHook, IDesktopGrantsRegistryPort, IGlobalSearchHook, IGlobalSearchRegistryPort, IMarketplaceDocumentParametersHook, IOrganizationLookupAppPort, IOrganizationLookupHook, IOrganizationLookupRegistryPort, IProgramDocumentParametersHook, IProgramOfferParametersHook, IRegistrationDocumentParametersRegistryPort, IRegistrationOfferFilterHook, IRegistrationOfferFilterRegistryPort, InnerDesktopGrantsContext, InnerDesktopGrantsFilterTarget, InnerEntrepreneurLookupRecord, InnerGlobalSearchContext, InnerGlobalSearchHit, InnerGlobalSearchRoute, InnerOrganizationLookupRecord, InnerOrganizationLookupRepresentative, InnerRegistrationOfferFilterContext };
package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { InnerAccountType, InnerProgramRegistration, InnerAgreementRegistration, InnerOrganizationType } from './core-ports/index.js';
2
- export { ACCESS_TOKEN_PORT, ACCOUNTING_REGISTRY_PORT, ACCOUNT_PORT, AGREEMENT_CATALOG_PORT, BRANCH_PORT, CANDIDATE_PORT, CHAIN_CHANGES_PORT, CHAIN_DELTA_WAIT_PORT, CHAIN_PORT, CHAIN_RESOURCES_PORT, CHAIN_RESOURCE_SHORTAGE_EVENT, COOPERATIVE_LOGO_PORT, COOPERATIVE_VARS_PORT, COOP_CREDENTIAL_PORT, COUNCIL_PORT, ChainResourceKind, ChainResourceShortagePayload, CreateTrackingRuleInput, DECISION_DECLINE_REASON_PORT, DECISION_TRACKING_PORT, DOCUMENT_APPROVAL_PORT, DOCUMENT_DECLARATION_PORT, DOCUMENT_PORT, DecisionEventType, DecisionEventTypeString, DecisionProcessedResult, DecisionTrackedEvent, EXTENSION_CONFIG_PORT, EXTENSION_DATABASE_PORT, ExtendedMeetStatus, FILE_STORAGE_PORT, FREE_DECISION_PORT, IAccessTokenPort, IAccountPort, IAccountingRegistryPort, IAgreementCatalogPort, IBranchPort, ICandidatePort, IChainChangesPort, IChainDeltaWaitPort, IChainPort, IChainResourcesPort, ICoopCredentialPort, ICooperativeLogoPort, ICooperativeVarsPort, ICouncilPort, IDecisionDeclineReasonPort, IDecisionTrackingPort, IDocumentApprovalPort, IDocumentDeclarationPort, IDocumentPort, IExtensionConfigPort, IExtensionDatabasePort, IFileStoragePort, IFreeDecisionPort, IIndividualPort, IIntegrationSettingsPort, ILedger2HistoryPort, ILoggerPort, IMeetPort, IMemberExitRegistryPort, IMessageChannelPort, IMetaDocument, IMonoAccount, IMutationLogPort, INDIVIDUAL_PORT, INTEGRATION_SETTINGS_PORT, INotificationPort, IOnboardingStepRegistryPort, IOrganizationPort, IPaymentDeskPort, IPaymentMethodPort, IPaymentNoticeLogPort, IPaymentPollingStatePort, IPaymentPort, IPaymentProvider, IPaymentProviderRegistryPort, IProgramAgreementPort, IProgramWalletPort, IProviderAppsPort, IProviderTariffPort, IRealtimeChannelPort, IRegistrationRegistryPort, IRoleAssignmentsPort, ISecretCipherPort, ISignatureInfo, ISignedDocument, IUserAvatarPort, IUserCertificatePort, IUserDataPort, IUserDirectoryPort, IUserWalletPort, IVaultPort, IVerificationPort, IWalletWithdrawPort, InnerAccessIdentity, InnerAccount, InnerAgreementCatalogItem, InnerAppCancelOutcome, InnerAppLiveChange, InnerAppOffer, InnerAppSubscribeOutcome, InnerAppSubscription, InnerAppSubscriptionStatus, InnerAssignableRole, InnerAttachedRole, InnerBankTransferData, InnerBillingSummary, InnerBranch, InnerCandidate, InnerCandidateDocument, InnerCandidateFilter, InnerChainAccountResources, InnerChainAccountRow, InnerChainAction, InnerChainActionRecord, InnerChainChangesTable, InnerChainDelta, InnerChainDeltaWaitQuery, InnerChainTxWait, InnerCoopAgreement, InnerCoopProgram, InnerCoopUser, InnerCooperativeVars, InnerCouncilDecision, InnerCreateWithdrawInput, InnerCreateWithdrawResult, InnerDocumentAggregate, InnerDocumentApproval, InnerDocumentDeclaration, InnerDocumentKind, InnerDocumentValidation, InnerEndorsementCredential, InnerEnsureProgramParams, InnerEnsureProgramResult, InnerExitBlockersProvider, InnerExitPendingReturn, InnerExtensionDatabaseConnection, InnerFileStorageBackendUnavailableError, InnerFileStorageBody, InnerFileStorageBucket, InnerFileStorageBucketNotConfiguredError, InnerFileStorageBucketSpec, InnerFileStorageError, InnerFileStorageGetReadUrlOptions, InnerFileStorageMetadataValidationError, InnerFileStorageMimeRejectedError, InnerFileStorageObjectMetadata, InnerFileStorageObjectNotFoundError, InnerFileStorageObjectTooLargeError, InnerFileStoragePutOptions, InnerFileStoragePutResult, InnerFreeDecisionDocument, InnerFreeDecisionProject, InnerGenerateDocumentData, InnerGenerateDocumentOptions, InnerGenerateDocumentRequest, InnerGenerateProjectFreeDecisionData, InnerGeneratedDocument, InnerGetAccountsFilter, InnerGetMeetInput, InnerGetMeetsInput, InnerIndividual, InnerIntakeFormRegistration, InnerIntakeJsonSchema, InnerIntakeJsonSchemaProperty, InnerKeyPermission, InnerLedger2Account, InnerLedger2HistoryFilter, InnerLedger2HistoryResult, InnerLedger2Operation, InnerLedger2Wallet, InnerLogMeta, InnerMeet, InnerMeetDraft, InnerMeetForm, InnerMeetProcessing, InnerMeetRow, InnerMutationLogEntry, InnerMutationLogFilter, InnerNotifyActor, InnerNotifyDelivery, InnerNotifyDeliveryState, InnerNotifyInput, InnerNotifyRecipient, InnerNotifyResult, InnerOnboardingCompletedPayload, InnerOnboardingDecisionKind, InnerOnboardingGenerator, InnerOnboardingStep, InnerOnboardingStepProposal, InnerOrganization, InnerOrganizationDetails, InnerPage, InnerPageRequest, InnerPaginatedAccounts, InnerPaginationOptions, InnerParticipantProfileUpdatedEvent, InnerParticipantRegisteredEvent, InnerPassport, InnerPayment, InnerPaymentDetails, InnerPaymentDraft, InnerPaymentFilters, InnerPaymentMethod, InnerPaymentMethodDraft, InnerPaymentMethodQuery, InnerPaymentMethodType, InnerPaymentNotice, InnerPaymentPollingState, InnerPayoutRequest, InnerPayoutRequestStatus, InnerPrivateAccount, InnerProgramSignature, InnerProgramWallet, InnerProgramWalletFilter, InnerProposeOnboardingStepInput, InnerProviderSubscription, InnerProviderTariff, InnerPublishProjectFreeDecisionInput, InnerRegistryRecord, InnerRepresentative, InnerRolePermission, InnerSbpData, InnerSetPaymentStatusInput, InnerSignProgramAgreementInput, InnerSystemOutgoingPaymentInput, InnerTransactResult, InnerUserCertificate, InnerUserDataDraft, InnerUserDataFilters, InnerUserDataRecord, InnerUserWallet, InnerVerificationCheck, InnerVerificationEntry, LEDGER2_HISTORY_PORT, LOGGER_PORT, MEET_PORT, MEMBER_EXIT_REGISTRY_PORT, MESSAGE_CHANNEL_PORT, MUTATION_LOG_PORT, MonoAccountStatus, NOTIFICATION_PORT, ONBOARDING_COMPLETED_EVENT, ONBOARDING_STEP_REGISTRY_PORT, ORGANIZATION_PORT, PARTICIPANT_PROFILE_UPDATED_EVENT, PARTICIPANT_REGISTERED_EVENT, PAYMENT_DESK_PORT, PAYMENT_METHOD_PORT, PAYMENT_NOTICE_LOG_PORT, PAYMENT_POLLING_STATE_PORT, PAYMENT_PORT, PAYMENT_PROVIDER_REGISTRY_PORT, PROGRAM_AGREEMENT_PORT, PROGRAM_ID_BY_TYPE, PROGRAM_TYPE_BY_ID, PROGRAM_WALLET_PORT, PROVIDER_APPS_PORT, PROVIDER_TARIFF_PORT, PaymentDirection, PaymentStatus, PaymentType, ProgramKey, ProgramType, REALTIME_CHANNEL_PORT, REGISTRATION_REGISTRY_PORT, ROLE_ASSIGNMENTS_PORT, ROLE_ASSIGNMENT_CHANGED_EVENT, RoleAssignmentChangedEvent, SECRET_CIPHER_PORT, TrackingRule, USER_AVATAR_PORT, USER_CERTIFICATE_PORT, USER_DATA_PORT, USER_DIRECTORY_PORT, USER_WALLET_PORT, VAT_EXEMPT_NOTE, VAULT_PORT, VERIFICATION_PORT, WALLET_WITHDRAW_PORT, getProgramId, getProgramType, isEligibleForParticipantMassNotification } from './core-ports/index.js';
3
- export { CAPITAL_PROJECT_CREATED_EVENT, CAPITAL_PROJECT_MATRIX_ROOM_ASSIGNED_EVENT, CHAIRMAN_APPROVALS_PORT, CHATCOOP_CALENDAR_PORT, CHATCOOP_CAPITAL_PROJECT_ROOM_ENSURE_MEMBER_EVENT, CHATCOOP_MATRIX_USER_LINKED_FOR_CAPITAL_PROJECT_ROOMS_EVENT, COOP_CALENDAR_EVENT_NOTIFICATION_PORT, EXPENSE_CHASSIS_PORT, ICapitalProjectCreatedPayload, ICapitalProjectMatrixRoomAssignedPayload, IChairmanApprovalsPort, IChatCoopCalendarPort, IChatCoopCapitalProjectRoomEnsureMemberPayload, IChatCoopMatrixUserLinkedForCapitalProjectRoomsPayload, ICoopCalendarEventNotificationPort, IExpenseChassisPort, IMatrixRoomMessagingPort, IPowersOfAttorneyPort, IProjectCapitalClearancePort, IProjectCommunicationArtifactsPort, ISovietRobotPort, InnerCalendarEventWindow, InnerChairmanApproval, InnerChairmanApprovalStatus, InnerChairmanApprovalsQuery, InnerCompletedCallTranscriptionHead, InnerCoopCalendarEventNotificationInput, InnerCoopCalendarEventRead, InnerCoopCalendarNotificationRoomKind, InnerExpenseCallbackHandler, InnerExpenseItem, InnerExpenseItemInput, InnerExpenseItemState, InnerExpenseMechanics, InnerExpensePaginatedResult, InnerExpensePagination, InnerExpensePlan, InnerExpensePlannedReserve, InnerExpenseProposalRead, InnerExpenseProposalState, InnerExpenseProposalStatus, InnerExpenseRecipientType, InnerExpenseRequisiteItemInput, InnerLapsedAuthority, InnerMatrixReplaceTextMessageInput, InnerMatrixSendTextAndPinInput, InnerMatrixSendTextMessageInput, InnerMatrixUnpinAndRedactAnnouncementInput, InnerNonProjectCommunicationRoomRef, InnerNonProjectRoomKind, InnerPowerOfAttorneyStatus, InnerPowerOfAttorneyType, InnerProjectCommunicationRoomRef, InnerRobotDecisionOutcome, InnerRobotDecisionRequest, InnerRobotDecisionResult, InnerRoomMessageKind, InnerRoomMessageLine, MATRIX_ROOM_MESSAGING_PORT, POWERS_OF_ATTORNEY_PORT, PROJECT_CAPITAL_CLEARANCE_PORT, PROJECT_COMMUNICATION_ARTIFACTS_PORT, SOVIET_ROBOT_PORT } from './cross-plugin-ports/index.js';
2
+ export { ACCESS_TOKEN_PORT, ACCOUNTING_REGISTRY_PORT, ACCOUNT_PORT, AGREEMENT_CATALOG_PORT, APP_BRANCH_CARD_PORT, APP_POWERS_OF_ATTORNEY_PORT, BRANCH_PORT, CANDIDATE_PORT, CHAIN_CHANGES_PORT, CHAIN_DELTA_WAIT_PORT, CHAIN_PORT, CHAIN_RESOURCES_PORT, CHAIN_RESOURCE_SHORTAGE_EVENT, COOPERATIVE_LOGO_PORT, COOPERATIVE_VARS_PORT, COOP_CREDENTIAL_PORT, COUNCIL_PORT, ChainResourceKind, ChainResourceShortagePayload, CreateTrackingRuleInput, DECISION_DECLINE_REASON_PORT, DECISION_TRACKING_PORT, DOCUMENT_APPROVAL_PORT, DOCUMENT_DECLARATION_PORT, DOCUMENT_PORT, DecisionEventType, DecisionEventTypeString, DecisionProcessedResult, DecisionTrackedEvent, EXTENSION_CONFIG_PORT, EXTENSION_DATABASE_PORT, ExtendedMeetStatus, FILE_STORAGE_PORT, FREE_DECISION_PORT, IAccessTokenPort, IAccountPort, IAccountingRegistryPort, IAgreementCatalogPort, IAppBranchCardPort, IAppPowersOfAttorneyPort, IBranchPort, ICandidatePort, IChainChangesPort, IChainDeltaWaitPort, IChainPort, IChainResourcesPort, ICoopCredentialPort, ICooperativeLogoPort, ICooperativeVarsPort, ICouncilPort, IDecisionDeclineReasonPort, IDecisionTrackingPort, IDocumentApprovalPort, IDocumentDeclarationPort, IDocumentPort, IExtensionConfigPort, IExtensionDatabasePort, IFileStoragePort, IFreeDecisionPort, IIndividualPort, IIntegrationSettingsPort, ILedger2HistoryPort, ILoggerPort, IMeetPort, IMemberExitRegistryPort, IMessageChannelPort, IMetaDocument, IMonoAccount, IMutationLogPort, INDIVIDUAL_PORT, INTEGRATION_SETTINGS_PORT, INotificationPort, IOnboardingStepRegistryPort, IOrganizationPort, IPaymentDeskPort, IPaymentMethodPort, IPaymentNoticeLogPort, IPaymentPollingStatePort, IPaymentPort, IPaymentProvider, IPaymentProviderRegistryPort, IPowersOfAttorneyPort, IProgramAgreementPort, IProgramWalletPort, IProviderAppsPort, IProviderTariffPort, IRealtimeChannelPort, IRegistrationRegistryPort, IRoleAssignmentsPort, ISecretCipherPort, ISignatureInfo, ISignedDocument, IUserAvatarPort, IUserCertificatePort, IUserDataPort, IUserDirectoryPort, IUserWalletPort, IVaultPort, IVerificationPort, IWalletWithdrawPort, InnerAccessIdentity, InnerAccount, InnerAgreementCatalogItem, InnerAppBranchCard, InnerAppBranchCardInput, InnerAppBranchCertificate, InnerAppCancelOutcome, InnerAppLiveChange, InnerAppOffer, InnerAppPowerOfAttorneyFilter, InnerAppPowerOfAttorneyRegistration, InnerAppPowerOfAttorneyResolution, InnerAppPowerOfAttorneyRow, InnerAppSubscribeOutcome, InnerAppSubscription, InnerAppSubscriptionStatus, InnerAssignableRole, InnerAttachedRole, InnerBankTransferData, InnerBillingSummary, InnerBranch, InnerCandidate, InnerCandidateDocument, InnerCandidateFilter, InnerChainAccountResources, InnerChainAccountRow, InnerChainAction, InnerChainActionRecord, InnerChainChangesTable, InnerChainDelta, InnerChainDeltaWaitQuery, InnerChainSignedDocument, InnerChainTxWait, InnerCoopAgreement, InnerCoopProgram, InnerCoopUser, InnerCooperativeVars, InnerCouncilDecision, InnerCreateWithdrawInput, InnerCreateWithdrawResult, InnerDocumentAggregate, InnerDocumentApproval, InnerDocumentDeclaration, InnerDocumentKind, InnerDocumentValidation, InnerEndorsementCredential, InnerEnsureProgramParams, InnerEnsureProgramResult, InnerExitBlockersProvider, InnerExitPendingReturn, InnerExtensionDatabaseConnection, InnerFileStorageBackendUnavailableError, InnerFileStorageBody, InnerFileStorageBucket, InnerFileStorageBucketNotConfiguredError, InnerFileStorageBucketSpec, InnerFileStorageError, InnerFileStorageGetReadUrlOptions, InnerFileStorageMetadataValidationError, InnerFileStorageMimeRejectedError, InnerFileStorageObjectMetadata, InnerFileStorageObjectNotFoundError, InnerFileStorageObjectTooLargeError, InnerFileStoragePutOptions, InnerFileStoragePutResult, InnerFreeDecisionDocument, InnerFreeDecisionProject, InnerGenerateDocumentData, InnerGenerateDocumentOptions, InnerGenerateDocumentRequest, InnerGenerateProjectFreeDecisionData, InnerGeneratedDocument, InnerGetAccountsFilter, InnerGetMeetInput, InnerGetMeetsInput, InnerIndividual, InnerIntakeFormRegistration, InnerIntakeJsonSchema, InnerIntakeJsonSchemaProperty, InnerKeyPermission, InnerLapsedAuthority, InnerLedger2Account, InnerLedger2HistoryFilter, InnerLedger2HistoryResult, InnerLedger2Operation, InnerLedger2Wallet, InnerLogMeta, InnerMeet, InnerMeetDraft, InnerMeetForm, InnerMeetProcessing, InnerMeetRow, InnerMutationLogEntry, InnerMutationLogFilter, InnerNotifyActor, InnerNotifyDelivery, InnerNotifyDeliveryState, InnerNotifyInput, InnerNotifyRecipient, InnerNotifyResult, InnerOnboardingCompletedPayload, InnerOnboardingDecisionKind, InnerOnboardingGenerator, InnerOnboardingStep, InnerOnboardingStepProposal, InnerOrganization, InnerOrganizationDetails, InnerPage, InnerPageRequest, InnerPaginatedAccounts, InnerPaginationOptions, InnerParticipantProfileUpdatedEvent, InnerParticipantRegisteredEvent, InnerPassport, InnerPayment, InnerPaymentDetails, InnerPaymentDraft, InnerPaymentFilters, InnerPaymentMethod, InnerPaymentMethodDraft, InnerPaymentMethodQuery, InnerPaymentMethodType, InnerPaymentNotice, InnerPaymentPollingState, InnerPayoutRequest, InnerPayoutRequestStatus, InnerPowerOfAttorneyStatus, InnerPowerOfAttorneyType, InnerPrivateAccount, InnerProgramSignature, InnerProgramWallet, InnerProgramWalletFilter, InnerProposeOnboardingStepInput, InnerProviderSubscription, InnerProviderTariff, InnerPublishProjectFreeDecisionInput, InnerRegistryRecord, InnerRepresentative, InnerRolePermission, InnerSbpData, InnerSetPaymentStatusInput, InnerSignProgramAgreementInput, InnerSystemOutgoingPaymentInput, InnerTransactResult, InnerUserCertificate, InnerUserDataDraft, InnerUserDataFilters, InnerUserDataRecord, InnerUserWallet, InnerVerificationCheck, InnerVerificationEntry, LEDGER2_HISTORY_PORT, LOGGER_PORT, MEET_PORT, MEMBER_EXIT_REGISTRY_PORT, MESSAGE_CHANNEL_PORT, MUTATION_LOG_PORT, MonoAccountStatus, NOTIFICATION_PORT, ONBOARDING_COMPLETED_EVENT, ONBOARDING_STEP_REGISTRY_PORT, ORGANIZATION_PORT, PARTICIPANT_PROFILE_UPDATED_EVENT, PARTICIPANT_REGISTERED_EVENT, PAYMENT_DESK_PORT, PAYMENT_METHOD_PORT, PAYMENT_NOTICE_LOG_PORT, PAYMENT_POLLING_STATE_PORT, PAYMENT_PORT, PAYMENT_PROVIDER_REGISTRY_PORT, POWERS_OF_ATTORNEY_PORT, PROGRAM_AGREEMENT_PORT, PROGRAM_ID_BY_TYPE, PROGRAM_TYPE_BY_ID, PROGRAM_WALLET_PORT, PROVIDER_APPS_PORT, PROVIDER_TARIFF_PORT, PaymentDirection, PaymentStatus, PaymentType, ProgramKey, ProgramType, REALTIME_CHANNEL_PORT, REGISTRATION_REGISTRY_PORT, ROLE_ASSIGNMENTS_PORT, ROLE_ASSIGNMENT_CHANGED_EVENT, RoleAssignmentChangedEvent, SECRET_CIPHER_PORT, TrackingRule, USER_AVATAR_PORT, USER_CERTIFICATE_PORT, USER_DATA_PORT, USER_DIRECTORY_PORT, USER_WALLET_PORT, VAT_EXEMPT_NOTE, VAULT_PORT, VERIFICATION_PORT, WALLET_WITHDRAW_PORT, getProgramId, getProgramType, isEligibleForParticipantMassNotification } from './core-ports/index.js';
3
+ export { CAPITAL_PROJECT_CREATED_EVENT, CAPITAL_PROJECT_MATRIX_ROOM_ASSIGNED_EVENT, CHAIRMAN_APPROVALS_PORT, CHATCOOP_CAPITAL_PROJECT_ROOM_ENSURE_MEMBER_EVENT, CHATCOOP_MATRIX_USER_LINKED_FOR_CAPITAL_PROJECT_ROOMS_EVENT, EXPENSE_CHASSIS_PORT, ICapitalProjectCreatedPayload, ICapitalProjectMatrixRoomAssignedPayload, IChairmanApprovalsPort, IChatCoopCapitalProjectRoomEnsureMemberPayload, IChatCoopMatrixUserLinkedForCapitalProjectRoomsPayload, IExpenseChassisPort, IMatrixRoomMessagingPort, IProjectCapitalClearancePort, IProjectCommunicationArtifactsPort, ISovietRobotPort, InnerChairmanApproval, InnerChairmanApprovalStatus, InnerChairmanApprovalsQuery, InnerCompletedCallTranscriptionHead, InnerExpenseCallbackHandler, InnerExpenseItem, InnerExpenseItemInput, InnerExpenseItemState, InnerExpenseMechanics, InnerExpensePaginatedResult, InnerExpensePagination, InnerExpensePlan, InnerExpensePlannedReserve, InnerExpenseProposalRead, InnerExpenseProposalState, InnerExpenseProposalStatus, InnerExpenseRecipientType, InnerExpenseRequisiteItemInput, InnerMatrixReplaceTextMessageInput, InnerMatrixSendTextAndPinInput, InnerMatrixSendTextMessageInput, InnerMatrixUnpinAndRedactAnnouncementInput, InnerNonProjectCommunicationRoomRef, InnerNonProjectRoomKind, InnerProjectCommunicationRoomRef, InnerRobotDecisionOutcome, InnerRobotDecisionRequest, InnerRobotDecisionResult, InnerRoomMessageKind, InnerRoomMessageLine, MATRIX_ROOM_MESSAGING_APP_PORT_NAME, MATRIX_ROOM_MESSAGING_PORT, PROJECT_CAPITAL_CLEARANCE_PORT, PROJECT_COMMUNICATION_ARTIFACTS_APP_PORT_NAME, PROJECT_COMMUNICATION_ARTIFACTS_PORT, SOVIET_ROBOT_APP_PORT_NAME, SOVIET_ROBOT_PORT } from './cross-plugin-ports/index.js';
4
4
 
5
5
  /**
6
6
  * Параметры оферты, которые расширение выдаёт вступающему пайщику.
@@ -70,6 +70,12 @@ interface IRegistrationDocumentParametersRegistryPort {
70
70
  registerProgramOfferHook(hook: IProgramOfferParametersHook): void;
71
71
  }
72
72
  declare const REGISTRATION_DOCUMENT_PARAMETERS_REGISTRY_PORT: unique symbol;
73
+ /**
74
+ * Порт приложения «Стол заказов», через который ядро зовёт хук оферты после
75
+ * выноса Стола заказов из монолита (03.12.2026, 487-46). Приложение объявляет
76
+ * его в `coopenomics.provides` с методом `generateMarketplaceOfferParameters`.
77
+ */
78
+ declare const MARKETPLACE_OFFER_APP_PORT_NAME = "marketplace-offer";
73
79
 
74
80
  /**
75
81
  * Права пайщика на рабочем столе расширения.
@@ -116,6 +122,12 @@ interface IDesktopGrantsRegistryPort {
116
122
  register(provider: IDesktopGrantsHook): void;
117
123
  }
118
124
  declare const DESKTOP_GRANTS_REGISTRY_PORT: unique symbol;
125
+ /**
126
+ * Имя порта приложения «Стол заказов» с правами страниц его стола (03.12.2026,
127
+ * 487-46). Права зависят от пайщика (поставщик, председатель участка, подписал
128
+ * ли оферту), поэтому манифест их не перечисляет: ядро спрашивает приложение.
129
+ */
130
+ declare const MARKETPLACE_DESKTOP_GRANTS_APP_PORT_NAME = "marketplace-desktop-grants";
119
131
 
120
132
  /**
121
133
  * Сужение прав пайщика на столах ЧУЖОГО расширения.
@@ -338,10 +350,100 @@ interface IOrganizationLookupHook {
338
350
  * Реестр поставщиков. Расширение кладёт себя сюда при запуске, ядро
339
351
  * спрашивает по стране. Остановленное расширение ядро снимает само.
340
352
  */
353
+ /**
354
+ * Порт приложений «поиск организаций» (01.12.2026): приложение каталога
355
+ * (для России — «Анкета по ИНН») даёт его ядру через посредника
356
+ * оркестратора. Имя стоит в манифесте поставщика (`coopenomics.provides`).
357
+ */
358
+ declare const ORGANIZATION_LOOKUP_APP_PORT_NAME = "organization-lookup";
359
+ /** Методы порта, открытые посреднику. */
360
+ declare const ORGANIZATION_LOOKUP_APP_PORT_METHODS: readonly ["countries", "findByInn", "findEntrepreneurByInn"];
361
+ /** Порт приложения-поставщика сведений по ИНН: страна передаётся в каждом вызове. */
362
+ interface IOrganizationLookupAppPort {
363
+ /** Страны, чей реестр читает поставщик; ключа сервиса нет — пусто. */
364
+ countries(): Promise<string[]>;
365
+ findByInn(country: string, inn: string): Promise<InnerOrganizationLookupRecord | null>;
366
+ findEntrepreneurByInn(country: string, inn: string): Promise<InnerEntrepreneurLookupRecord | null>;
367
+ }
341
368
  interface IOrganizationLookupRegistryPort {
342
369
  register(provider: IOrganizationLookupHook): void;
370
+ /**
371
+ * Подключить приложение каталога — поставщика сведений по ИНН (01.12.2026).
372
+ * Ядро спрашивает его через посредника оркестратора, когда своего
373
+ * расширения для страны нет.
374
+ */
375
+ registerRemote?(source: IOrganizationLookupAppPort): void;
343
376
  }
344
377
  declare const ORGANIZATION_LOOKUP_REGISTRY_PORT: unique symbol;
345
378
 
346
- export { DESKTOP_GRANTS_FILTER_REGISTRY_PORT, DESKTOP_GRANTS_REGISTRY_PORT, GLOBAL_SEARCH_REGISTRY_PORT, InnerAccountType, InnerAgreementRegistration, InnerOrganizationType, InnerProgramRegistration, ORGANIZATION_LOOKUP_REGISTRY_PORT, REGISTRATION_DOCUMENT_PARAMETERS_REGISTRY_PORT, REGISTRATION_OFFER_FILTER_REGISTRY_PORT };
347
- export type { IDesktopGrantsFilterHook, IDesktopGrantsFilterRegistryPort, IDesktopGrantsHook, IDesktopGrantsRegistryPort, IGlobalSearchHook, IGlobalSearchRegistryPort, IMarketplaceDocumentParametersHook, IOrganizationLookupHook, IOrganizationLookupRegistryPort, IProgramDocumentParametersHook, IProgramOfferParametersHook, IRegistrationDocumentParametersRegistryPort, IRegistrationOfferFilterHook, IRegistrationOfferFilterRegistryPort, InnerDesktopGrantsContext, InnerDesktopGrantsFilterTarget, InnerEntrepreneurLookupRecord, InnerGlobalSearchContext, InnerGlobalSearchHit, InnerGlobalSearchRoute, InnerOrganizationLookupRecord, InnerOrganizationLookupRepresentative, InnerRegistrationOfferFilterContext };
379
+ /**
380
+ * Настройки приложения каталога (01.12.2026, 487-48).
381
+ *
382
+ * Настройки (ключи внешних сервисов, адреса, флаги) председатель вводит на
383
+ * странице приложения в каталоге — тем же путём, что у встроенных расширений:
384
+ * сразу после установки, пока обязательные поля не заполнены, установка не
385
+ * завершена. Отдельной страницы настроек на столе приложения нет.
386
+ *
387
+ * Приложение даёт ядру служебный порт `app-settings` (имя — в манифесте,
388
+ * `coopenomics.provides`). Ядро вызывает его адресно — у названного пакета —
389
+ * через посредника оркестратора. Значения хранит само приложение (секреты —
390
+ * шифротекстом `AppSecrets`); ядру приложение отдаёт только признаки «задано».
391
+ *
392
+ * Форма описывается той же JSON-схемой, что настройки встроенных расширений:
393
+ * стол рисует её общим компонентом формы.
394
+ */
395
+ /**
396
+ * Настройки приложения: форма по JSON-схеме и сохранение значений (01.12.2026,
397
+ * 487-48). Председатель заполняет форму на странице приложения в каталоге
398
+ * сразу после установки. Значения хранит приложение, секреты — шифротекстом;
399
+ * ядру приложение отдаёт только признак «задано». Ядро зовёт порт адресно, у
400
+ * названного пакета.
401
+ */
402
+ declare const APP_SETTINGS_APP_PORT_NAME = "app-settings";
403
+ /** Методы порта, открытые посреднику. */
404
+ declare const APP_SETTINGS_APP_PORT_METHODS: readonly ["form", "save"];
405
+ /**
406
+ * Значение секретного поля в ответе `form`: секрет задан, но не показывается.
407
+ * Стол показывает «задано»; то же значение, присланное в `save`, означает
408
+ * «оставить прежний секрет».
409
+ */
410
+ declare const APP_SETTINGS_SECRET_SET = "__secret_set__";
411
+ /** Подпись и поведение поля формы — те же ключи, что у настроек встроенных расширений. */
412
+ interface AppSettingsFieldDescription {
413
+ /** Подпись поля. */
414
+ label: string;
415
+ /** Пояснение под полем. */
416
+ note?: string;
417
+ /** Скрытый ввод: ключи и пароли. */
418
+ password?: boolean;
419
+ placeholder?: string;
420
+ }
421
+ interface AppSettingsField {
422
+ type: 'string' | 'number' | 'boolean';
423
+ description: AppSettingsFieldDescription;
424
+ }
425
+ /** JSON-схема формы: объект с перечнем полей и обязательными полями. */
426
+ interface AppSettingsSchema {
427
+ type: 'object';
428
+ properties: Record<string, AppSettingsField>;
429
+ required: string[];
430
+ }
431
+ interface AppSettingsForm {
432
+ schema: AppSettingsSchema;
433
+ /** Текущие значения; секретное заданное поле — `APP_SETTINGS_SECRET_SET`. */
434
+ values: Record<string, unknown>;
435
+ /** Обязательное заполнено — приложение работает, установка завершена. */
436
+ configured: boolean;
437
+ }
438
+ /** Порт настроек, который приложение даёт ядру. */
439
+ interface IAppSettingsAppPort {
440
+ form(): Promise<AppSettingsForm>;
441
+ /**
442
+ * Сохранить настройки. Пустое значение стирает поле, `APP_SETTINGS_SECRET_SET`
443
+ * оставляет прежний секрет. `username` — председатель, сохранивший настройки.
444
+ */
445
+ save(values: Record<string, unknown>, username: string): Promise<AppSettingsForm>;
446
+ }
447
+
448
+ export { APP_SETTINGS_APP_PORT_METHODS, APP_SETTINGS_APP_PORT_NAME, APP_SETTINGS_SECRET_SET, DESKTOP_GRANTS_FILTER_REGISTRY_PORT, DESKTOP_GRANTS_REGISTRY_PORT, GLOBAL_SEARCH_REGISTRY_PORT, InnerAccountType, InnerAgreementRegistration, InnerOrganizationType, InnerProgramRegistration, MARKETPLACE_DESKTOP_GRANTS_APP_PORT_NAME, MARKETPLACE_OFFER_APP_PORT_NAME, ORGANIZATION_LOOKUP_APP_PORT_METHODS, ORGANIZATION_LOOKUP_APP_PORT_NAME, ORGANIZATION_LOOKUP_REGISTRY_PORT, REGISTRATION_DOCUMENT_PARAMETERS_REGISTRY_PORT, REGISTRATION_OFFER_FILTER_REGISTRY_PORT };
449
+ export type { AppSettingsField, AppSettingsFieldDescription, AppSettingsForm, AppSettingsSchema, IAppSettingsAppPort, IDesktopGrantsFilterHook, IDesktopGrantsFilterRegistryPort, IDesktopGrantsHook, IDesktopGrantsRegistryPort, IGlobalSearchHook, IGlobalSearchRegistryPort, IMarketplaceDocumentParametersHook, IOrganizationLookupAppPort, IOrganizationLookupHook, IOrganizationLookupRegistryPort, IProgramDocumentParametersHook, IProgramOfferParametersHook, IRegistrationDocumentParametersRegistryPort, IRegistrationOfferFilterHook, IRegistrationOfferFilterRegistryPort, InnerDesktopGrantsContext, InnerDesktopGrantsFilterTarget, InnerEntrepreneurLookupRecord, InnerGlobalSearchContext, InnerGlobalSearchHit, InnerGlobalSearchRoute, InnerOrganizationLookupRecord, InnerOrganizationLookupRepresentative, InnerRegistrationOfferFilterContext };
package/dist/index.mjs CHANGED
@@ -1,9 +1,11 @@
1
- export { ACCESS_TOKEN_PORT, ACCOUNTING_REGISTRY_PORT, ACCOUNT_PORT, AGREEMENT_CATALOG_PORT, BRANCH_PORT, CANDIDATE_PORT, CHAIN_CHANGES_PORT, CHAIN_DELTA_WAIT_PORT, CHAIN_PORT, CHAIN_RESOURCES_PORT, CHAIN_RESOURCE_SHORTAGE_EVENT, COOPERATIVE_LOGO_PORT, COOPERATIVE_VARS_PORT, COOP_CREDENTIAL_PORT, COUNCIL_PORT, DECISION_DECLINE_REASON_PORT, DECISION_TRACKING_PORT, DOCUMENT_APPROVAL_PORT, DOCUMENT_DECLARATION_PORT, DOCUMENT_PORT, DecisionEventType, DecisionTrackedEvent, EXTENSION_CONFIG_PORT, EXTENSION_DATABASE_PORT, ExtendedMeetStatus, FILE_STORAGE_PORT, FREE_DECISION_PORT, INDIVIDUAL_PORT, INTEGRATION_SETTINGS_PORT, InnerAccountType, InnerAppSubscriptionStatus, InnerFileStorageBackendUnavailableError, InnerFileStorageBucketNotConfiguredError, InnerFileStorageError, InnerFileStorageMetadataValidationError, InnerFileStorageMimeRejectedError, InnerFileStorageObjectNotFoundError, InnerFileStorageObjectTooLargeError, InnerKeyPermission, InnerNotifyDeliveryState, InnerOrganizationType, InnerPayoutRequestStatus, LEDGER2_HISTORY_PORT, LOGGER_PORT, MEET_PORT, MEMBER_EXIT_REGISTRY_PORT, MESSAGE_CHANNEL_PORT, MUTATION_LOG_PORT, MonoAccountStatus, NOTIFICATION_PORT, ONBOARDING_COMPLETED_EVENT, ONBOARDING_STEP_REGISTRY_PORT, ORGANIZATION_PORT, PARTICIPANT_PROFILE_UPDATED_EVENT, PARTICIPANT_REGISTERED_EVENT, PAYMENT_DESK_PORT, PAYMENT_METHOD_PORT, PAYMENT_NOTICE_LOG_PORT, PAYMENT_POLLING_STATE_PORT, PAYMENT_PORT, PAYMENT_PROVIDER_REGISTRY_PORT, PROGRAM_AGREEMENT_PORT, PROGRAM_ID_BY_TYPE, PROGRAM_TYPE_BY_ID, PROGRAM_WALLET_PORT, PROVIDER_APPS_PORT, PROVIDER_TARIFF_PORT, PaymentDirection, PaymentStatus, PaymentType, ProgramKey, ProgramType, REALTIME_CHANNEL_PORT, REGISTRATION_REGISTRY_PORT, ROLE_ASSIGNMENTS_PORT, ROLE_ASSIGNMENT_CHANGED_EVENT, SECRET_CIPHER_PORT, USER_AVATAR_PORT, USER_CERTIFICATE_PORT, USER_DATA_PORT, USER_DIRECTORY_PORT, USER_WALLET_PORT, VAT_EXEMPT_NOTE, VAULT_PORT, VERIFICATION_PORT, WALLET_WITHDRAW_PORT, getProgramId, getProgramType, isEligibleForParticipantMassNotification } from './core-ports/index.mjs';
2
- export { CAPITAL_PROJECT_CREATED_EVENT, CAPITAL_PROJECT_MATRIX_ROOM_ASSIGNED_EVENT, CHAIRMAN_APPROVALS_PORT, CHATCOOP_CALENDAR_PORT, CHATCOOP_CAPITAL_PROJECT_ROOM_ENSURE_MEMBER_EVENT, CHATCOOP_MATRIX_USER_LINKED_FOR_CAPITAL_PROJECT_ROOMS_EVENT, COOP_CALENDAR_EVENT_NOTIFICATION_PORT, EXPENSE_CHASSIS_PORT, InnerExpenseItemState, InnerExpenseMechanics, InnerExpenseProposalState, InnerExpenseRecipientType, MATRIX_ROOM_MESSAGING_PORT, POWERS_OF_ATTORNEY_PORT, PROJECT_CAPITAL_CLEARANCE_PORT, PROJECT_COMMUNICATION_ARTIFACTS_PORT, SOVIET_ROBOT_PORT } from './cross-plugin-ports/index.mjs';
1
+ export { ACCESS_TOKEN_PORT, ACCOUNTING_REGISTRY_PORT, ACCOUNT_PORT, AGREEMENT_CATALOG_PORT, APP_BRANCH_CARD_PORT, APP_POWERS_OF_ATTORNEY_PORT, BRANCH_PORT, CANDIDATE_PORT, CHAIN_CHANGES_PORT, CHAIN_DELTA_WAIT_PORT, CHAIN_PORT, CHAIN_RESOURCES_PORT, CHAIN_RESOURCE_SHORTAGE_EVENT, COOPERATIVE_LOGO_PORT, COOPERATIVE_VARS_PORT, COOP_CREDENTIAL_PORT, COUNCIL_PORT, DECISION_DECLINE_REASON_PORT, DECISION_TRACKING_PORT, DOCUMENT_APPROVAL_PORT, DOCUMENT_DECLARATION_PORT, DOCUMENT_PORT, DecisionEventType, DecisionTrackedEvent, EXTENSION_CONFIG_PORT, EXTENSION_DATABASE_PORT, ExtendedMeetStatus, FILE_STORAGE_PORT, FREE_DECISION_PORT, INDIVIDUAL_PORT, INTEGRATION_SETTINGS_PORT, InnerAccountType, InnerAppSubscriptionStatus, InnerFileStorageBackendUnavailableError, InnerFileStorageBucketNotConfiguredError, InnerFileStorageError, InnerFileStorageMetadataValidationError, InnerFileStorageMimeRejectedError, InnerFileStorageObjectNotFoundError, InnerFileStorageObjectTooLargeError, InnerKeyPermission, InnerNotifyDeliveryState, InnerOrganizationType, InnerPayoutRequestStatus, LEDGER2_HISTORY_PORT, LOGGER_PORT, MEET_PORT, MEMBER_EXIT_REGISTRY_PORT, MESSAGE_CHANNEL_PORT, MUTATION_LOG_PORT, MonoAccountStatus, NOTIFICATION_PORT, ONBOARDING_COMPLETED_EVENT, ONBOARDING_STEP_REGISTRY_PORT, ORGANIZATION_PORT, PARTICIPANT_PROFILE_UPDATED_EVENT, PARTICIPANT_REGISTERED_EVENT, PAYMENT_DESK_PORT, PAYMENT_METHOD_PORT, PAYMENT_NOTICE_LOG_PORT, PAYMENT_POLLING_STATE_PORT, PAYMENT_PORT, PAYMENT_PROVIDER_REGISTRY_PORT, POWERS_OF_ATTORNEY_PORT, PROGRAM_AGREEMENT_PORT, PROGRAM_ID_BY_TYPE, PROGRAM_TYPE_BY_ID, PROGRAM_WALLET_PORT, PROVIDER_APPS_PORT, PROVIDER_TARIFF_PORT, PaymentDirection, PaymentStatus, PaymentType, ProgramKey, ProgramType, REALTIME_CHANNEL_PORT, REGISTRATION_REGISTRY_PORT, ROLE_ASSIGNMENTS_PORT, ROLE_ASSIGNMENT_CHANGED_EVENT, SECRET_CIPHER_PORT, USER_AVATAR_PORT, USER_CERTIFICATE_PORT, USER_DATA_PORT, USER_DIRECTORY_PORT, USER_WALLET_PORT, VAT_EXEMPT_NOTE, VAULT_PORT, VERIFICATION_PORT, WALLET_WITHDRAW_PORT, getProgramId, getProgramType, isEligibleForParticipantMassNotification } from './core-ports/index.mjs';
2
+ export { CAPITAL_PROJECT_CREATED_EVENT, CAPITAL_PROJECT_MATRIX_ROOM_ASSIGNED_EVENT, CHAIRMAN_APPROVALS_PORT, CHATCOOP_CAPITAL_PROJECT_ROOM_ENSURE_MEMBER_EVENT, CHATCOOP_MATRIX_USER_LINKED_FOR_CAPITAL_PROJECT_ROOMS_EVENT, EXPENSE_CHASSIS_PORT, InnerExpenseItemState, InnerExpenseMechanics, InnerExpenseProposalState, InnerExpenseRecipientType, MATRIX_ROOM_MESSAGING_APP_PORT_NAME, MATRIX_ROOM_MESSAGING_PORT, PROJECT_CAPITAL_CLEARANCE_PORT, PROJECT_COMMUNICATION_ARTIFACTS_APP_PORT_NAME, PROJECT_COMMUNICATION_ARTIFACTS_PORT, SOVIET_ROBOT_APP_PORT_NAME, SOVIET_ROBOT_PORT } from './cross-plugin-ports/index.mjs';
3
3
 
4
4
  const REGISTRATION_DOCUMENT_PARAMETERS_REGISTRY_PORT = Symbol.for("Innercoop.CorePort.RegistrationDocumentParametersRegistry");
5
+ const MARKETPLACE_OFFER_APP_PORT_NAME = "marketplace-offer";
5
6
 
6
7
  const DESKTOP_GRANTS_REGISTRY_PORT = Symbol.for("Innercoop.CorePort.DesktopGrantsRegistry");
8
+ const MARKETPLACE_DESKTOP_GRANTS_APP_PORT_NAME = "marketplace-desktop-grants";
7
9
 
8
10
  const DESKTOP_GRANTS_FILTER_REGISTRY_PORT = Symbol.for("Innercoop.CorePort.DesktopGrantsFilterRegistry");
9
11
 
@@ -11,6 +13,12 @@ const REGISTRATION_OFFER_FILTER_REGISTRY_PORT = Symbol.for("Innercoop.CorePort.R
11
13
 
12
14
  const GLOBAL_SEARCH_REGISTRY_PORT = Symbol.for("Innercoop.CorePort.GlobalSearchRegistry");
13
15
 
16
+ const ORGANIZATION_LOOKUP_APP_PORT_NAME = "organization-lookup";
17
+ const ORGANIZATION_LOOKUP_APP_PORT_METHODS = ["countries", "findByInn", "findEntrepreneurByInn"];
14
18
  const ORGANIZATION_LOOKUP_REGISTRY_PORT = Symbol.for("Innercoop.CorePort.OrganizationLookupRegistry");
15
19
 
16
- export { DESKTOP_GRANTS_FILTER_REGISTRY_PORT, DESKTOP_GRANTS_REGISTRY_PORT, GLOBAL_SEARCH_REGISTRY_PORT, ORGANIZATION_LOOKUP_REGISTRY_PORT, REGISTRATION_DOCUMENT_PARAMETERS_REGISTRY_PORT, REGISTRATION_OFFER_FILTER_REGISTRY_PORT };
20
+ const APP_SETTINGS_APP_PORT_NAME = "app-settings";
21
+ const APP_SETTINGS_APP_PORT_METHODS = ["form", "save"];
22
+ const APP_SETTINGS_SECRET_SET = "__secret_set__";
23
+
24
+ export { APP_SETTINGS_APP_PORT_METHODS, APP_SETTINGS_APP_PORT_NAME, APP_SETTINGS_SECRET_SET, DESKTOP_GRANTS_FILTER_REGISTRY_PORT, DESKTOP_GRANTS_REGISTRY_PORT, GLOBAL_SEARCH_REGISTRY_PORT, MARKETPLACE_DESKTOP_GRANTS_APP_PORT_NAME, MARKETPLACE_OFFER_APP_PORT_NAME, ORGANIZATION_LOOKUP_APP_PORT_METHODS, ORGANIZATION_LOOKUP_APP_PORT_NAME, ORGANIZATION_LOOKUP_REGISTRY_PORT, REGISTRATION_DOCUMENT_PARAMETERS_REGISTRY_PORT, REGISTRATION_OFFER_FILTER_REGISTRY_PORT };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@coopenomics/innercoop",
3
3
  "type": "module",
4
- "version": "2026.12.1",
4
+ "version": "2026.12.3-dev.10",
5
5
  "description": "Порты и DI-токены внутренней связи в контуре одного кооператива: ядро ↔ расширение и расширение ↔ расширение, без прямых зависимостей",
6
6
  "author": "Alex Ant <dacom.dark.sun@gmail.com>",
7
7
  "license": "MIT",
@@ -39,5 +39,5 @@
39
39
  "typescript": "^5.4.5",
40
40
  "unbuild": "^2.0.0"
41
41
  },
42
- "gitHead": "404b3d1f9bd49f2cc9b0425401c61a69dc115744"
42
+ "gitHead": "5502beafaa4cad5606d4861953445052fa4012f1"
43
43
  }