@brightchain/brightchain-lib 0.22.0 → 0.23.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -2
- package/src/browser.d.ts +2 -0
- package/src/browser.d.ts.map +1 -1
- package/src/browser.js +4 -1
- package/src/browser.js.map +1 -1
- package/src/lib/blocks/tcbl/tcblAttachmentUtils.js +1 -1
- package/src/lib/blocks/tcbl/tcblAttachmentUtils.js.map +1 -1
- package/src/lib/blocks/tcbl/tcblBuilder.js +1 -1
- package/src/lib/blocks/tcbl/tcblBuilder.js.map +1 -1
- package/src/lib/blocks/tcbl/tcblReader.js +1 -1
- package/src/lib/blocks/tcbl/tcblReader.js.map +1 -1
- package/src/lib/documents/member/memberDocument.d.ts +3 -3
- package/src/lib/documents/member/memberDocument.d.ts.map +1 -1
- package/src/lib/documents/member/memberDocument.js +2 -2
- package/src/lib/documents/member/memberDocument.js.map +1 -1
- package/src/lib/documents/member/memberHydration.js +3 -3
- package/src/lib/documents/member/memberHydration.js.map +1 -1
- package/src/lib/documents/member/memberOperational.d.ts.map +1 -1
- package/src/lib/documents/member/memberOperational.js +2 -2
- package/src/lib/documents/member/memberOperational.js.map +1 -1
- package/src/lib/documents/member/memberProfileHydration.js +4 -4
- package/src/lib/documents/member/memberProfileHydration.js.map +1 -1
- package/src/lib/interfaces/aliasRecord.d.ts +3 -5
- package/src/lib/interfaces/aliasRecord.d.ts.map +1 -1
- package/src/lib/interfaces/auditLogEntry.d.ts +7 -6
- package/src/lib/interfaces/auditLogEntry.d.ts.map +1 -1
- package/src/lib/interfaces/availability/availabilityService.d.ts +12 -11
- package/src/lib/interfaces/availability/availabilityService.d.ts.map +1 -1
- package/src/lib/interfaces/availability/availabilityService.js.map +1 -1
- package/src/lib/interfaces/availability/blockRegistry.d.ts +8 -7
- package/src/lib/interfaces/availability/blockRegistry.d.ts.map +1 -1
- package/src/lib/interfaces/availability/discoveryProtocol.d.ts +6 -5
- package/src/lib/interfaces/availability/discoveryProtocol.d.ts.map +1 -1
- package/src/lib/interfaces/availability/discoveryProtocol.js.map +1 -1
- package/src/lib/interfaces/availability/gossipService.d.ts +16 -15
- package/src/lib/interfaces/availability/gossipService.d.ts.map +1 -1
- package/src/lib/interfaces/availability/gossipService.js.map +1 -1
- package/src/lib/interfaces/availability/locationRecord.d.ts +2 -1
- package/src/lib/interfaces/availability/locationRecord.d.ts.map +1 -1
- package/src/lib/interfaces/availability/locationRecord.js.map +1 -1
- package/src/lib/interfaces/availability/reconciliationService.d.ts +5 -4
- package/src/lib/interfaces/availability/reconciliationService.d.ts.map +1 -1
- package/src/lib/interfaces/availability/reconciliationService.js.map +1 -1
- package/src/lib/interfaces/blockFetch/blockFetcher.d.ts +2 -1
- package/src/lib/interfaces/blockFetch/blockFetcher.d.ts.map +1 -1
- package/src/lib/interfaces/blockFetch/blockFetcher.js.map +1 -1
- package/src/lib/interfaces/branded/primitives/blockId.d.ts +13 -0
- package/src/lib/interfaces/branded/primitives/blockId.d.ts.map +1 -1
- package/src/lib/interfaces/branded/primitives/blockId.js +13 -0
- package/src/lib/interfaces/branded/primitives/blockId.js.map +1 -1
- package/src/lib/interfaces/brightpass/vaultEntry.d.ts +2 -1
- package/src/lib/interfaces/brightpass/vaultEntry.d.ts.map +1 -1
- package/src/lib/interfaces/brightpass/vaultMetadata.d.ts +2 -1
- package/src/lib/interfaces/brightpass/vaultMetadata.d.ts.map +1 -1
- package/src/lib/interfaces/chainedAuditLogEntry.d.ts +3 -2
- package/src/lib/interfaces/chainedAuditLogEntry.d.ts.map +1 -1
- package/src/lib/interfaces/contentWithIdentity.d.ts +3 -3
- package/src/lib/interfaces/contentWithIdentity.d.ts.map +1 -1
- package/src/lib/interfaces/identityRecoveryRecord.d.ts +5 -7
- package/src/lib/interfaces/identityRecoveryRecord.d.ts.map +1 -1
- package/src/lib/interfaces/member/memberDto.d.ts +4 -4
- package/src/lib/interfaces/member/memberDto.d.ts.map +1 -1
- package/src/lib/interfaces/messaging/attachmentMetadata.d.ts +2 -1
- package/src/lib/interfaces/messaging/attachmentMetadata.d.ts.map +1 -1
- package/src/lib/interfaces/messaging/emailDelivery.d.ts +3 -2
- package/src/lib/interfaces/messaging/emailDelivery.d.ts.map +1 -1
- package/src/lib/interfaces/messaging/emailDelivery.js.map +1 -1
- package/src/lib/interfaces/messaging/emailMetadata.d.ts +7 -3
- package/src/lib/interfaces/messaging/emailMetadata.d.ts.map +1 -1
- package/src/lib/interfaces/messaging/emailMetadata.js.map +1 -1
- package/src/lib/interfaces/messaging/messageMetadata.d.ts +12 -6
- package/src/lib/interfaces/messaging/messageMetadata.d.ts.map +1 -1
- package/src/lib/interfaces/messaging/messageMetadataStore.d.ts +17 -10
- package/src/lib/interfaces/messaging/messageMetadataStore.d.ts.map +1 -1
- package/src/lib/interfaces/messaging/mimePart.d.ts +2 -1
- package/src/lib/interfaces/messaging/mimePart.d.ts.map +1 -1
- package/src/lib/interfaces/messaging/mimePart.js.map +1 -1
- package/src/lib/interfaces/proposal.d.ts +4 -8
- package/src/lib/interfaces/proposal.d.ts.map +1 -1
- package/src/lib/interfaces/quorumDocumentMetadata.d.ts +2 -2
- package/src/lib/interfaces/quorumDocumentMetadata.d.ts.map +1 -1
- package/src/lib/interfaces/quorumEpoch.d.ts +3 -5
- package/src/lib/interfaces/quorumEpoch.d.ts.map +1 -1
- package/src/lib/interfaces/readOnlyDataObjectDto.d.ts +2 -2
- package/src/lib/interfaces/readOnlyDataObjectDto.d.ts.map +1 -1
- package/src/lib/interfaces/redistributionJournalEntry.d.ts +4 -4
- package/src/lib/interfaces/redistributionJournalEntry.d.ts.map +1 -1
- package/src/lib/interfaces/responses/getBlock.d.ts +2 -1
- package/src/lib/interfaces/responses/getBlock.d.ts.map +1 -1
- package/src/lib/interfaces/responses/index.d.ts +1 -0
- package/src/lib/interfaces/responses/index.d.ts.map +1 -1
- package/src/lib/interfaces/responses/memberProfileData.d.ts +51 -0
- package/src/lib/interfaces/responses/memberProfileData.d.ts.map +1 -0
- package/src/lib/interfaces/responses/memberProfileData.js +3 -0
- package/src/lib/interfaces/responses/memberProfileData.js.map +1 -0
- package/src/lib/interfaces/responses/replicateBlockResponse.d.ts +2 -1
- package/src/lib/interfaces/responses/replicateBlockResponse.d.ts.map +1 -1
- package/src/lib/interfaces/responses/storeBlock.d.ts +2 -1
- package/src/lib/interfaces/responses/storeBlock.d.ts.map +1 -1
- package/src/lib/interfaces/services/contentIngestion.d.ts +3 -3
- package/src/lib/interfaces/services/contentIngestion.d.ts.map +1 -1
- package/src/lib/interfaces/services/expirationScheduler.d.ts +2 -2
- package/src/lib/interfaces/services/expirationScheduler.d.ts.map +1 -1
- package/src/lib/interfaces/services/identitySealingPipeline.d.ts +3 -3
- package/src/lib/interfaces/services/identitySealingPipeline.d.ts.map +1 -1
- package/src/lib/interfaces/services/identityValidator.d.ts +2 -2
- package/src/lib/interfaces/services/identityValidator.d.ts.map +1 -1
- package/src/lib/interfaces/services/operatorPrompt.d.ts +4 -4
- package/src/lib/interfaces/services/operatorPrompt.d.ts.map +1 -1
- package/src/lib/interfaces/services/quorumDatabase.d.ts +9 -9
- package/src/lib/interfaces/services/quorumDatabase.d.ts.map +1 -1
- package/src/lib/interfaces/services/quorumService.d.ts +23 -22
- package/src/lib/interfaces/services/quorumService.d.ts.map +1 -1
- package/src/lib/interfaces/services/quorumStateMachine.d.ts +6 -6
- package/src/lib/interfaces/services/quorumStateMachine.d.ts.map +1 -1
- package/src/lib/interfaces/services/redistributionConfig.d.ts +2 -2
- package/src/lib/interfaces/services/redistributionConfig.d.ts.map +1 -1
- package/src/lib/interfaces/storage/blockMetadata.d.ts +7 -6
- package/src/lib/interfaces/storage/blockMetadata.d.ts.map +1 -1
- package/src/lib/interfaces/storage/blockMetadata.js.map +1 -1
- package/src/lib/interfaces/storage/blockMetadataStore.d.ts +5 -4
- package/src/lib/interfaces/storage/blockMetadataStore.d.ts.map +1 -1
- package/src/lib/interfaces/storage/cblIndex.d.ts +5 -4
- package/src/lib/interfaces/storage/cblIndex.d.ts.map +1 -1
- package/src/lib/interfaces/storage/cblIndex.js.map +1 -1
- package/src/lib/interfaces/storage/cblWhitening.d.ts +9 -8
- package/src/lib/interfaces/storage/cblWhitening.d.ts.map +1 -1
- package/src/lib/interfaces/vote.d.ts +5 -9
- package/src/lib/interfaces/vote.d.ts.map +1 -1
- package/src/lib/quorum.d.ts +4 -4
- package/src/lib/quorum.d.ts.map +1 -1
- package/src/lib/quorum.js +1 -1
- package/src/lib/quorum.js.map +1 -1
- package/src/lib/quorumDataRecord.d.ts +4 -4
- package/src/lib/quorumDataRecord.d.ts.map +1 -1
- package/src/lib/quorumDataRecord.js +3 -3
- package/src/lib/quorumDataRecord.js.map +1 -1
- package/src/lib/quorumDataRecordDto.d.ts +5 -5
- package/src/lib/quorumDataRecordDto.d.ts.map +1 -1
- package/src/lib/schemas/messaging/messageMetadataSchema.d.ts.map +1 -1
- package/src/lib/schemas/messaging/messageMetadataSchema.js +1 -1
- package/src/lib/schemas/messaging/messageMetadataSchema.js.map +1 -1
- package/src/lib/schemas/quorumDocument.d.ts +1 -1
- package/src/lib/schemas/quorumDocument.d.ts.map +1 -1
- package/src/lib/schemas/quorumDocument.js +1 -1
- package/src/lib/schemas/quorumDocument.js.map +1 -1
- package/src/lib/services/aliasRegistry.d.ts +3 -3
- package/src/lib/services/aliasRegistry.d.ts.map +1 -1
- package/src/lib/services/aliasRegistry.js +2 -3
- package/src/lib/services/aliasRegistry.js.map +1 -1
- package/src/lib/services/auditLogService.d.ts +3 -3
- package/src/lib/services/auditLogService.d.ts.map +1 -1
- package/src/lib/services/auditLogService.js.map +1 -1
- package/src/lib/services/communication/explodingMessageService.js +7 -7
- package/src/lib/services/communication/explodingMessageService.js.map +1 -1
- package/src/lib/services/identity/memberIdentityProofService.js +2 -2
- package/src/lib/services/identity/memberIdentityProofService.js.map +1 -1
- package/src/lib/services/identity/memberPaperKeyService.js +5 -5
- package/src/lib/services/identity/memberPaperKeyService.js.map +1 -1
- package/src/lib/services/identitySealingPipeline.d.ts +2 -2
- package/src/lib/services/identitySealingPipeline.d.ts.map +1 -1
- package/src/lib/services/identitySealingPipeline.js.map +1 -1
- package/src/lib/services/identityValidator.d.ts +1 -1
- package/src/lib/services/identityValidator.d.ts.map +1 -1
- package/src/lib/services/identityValidator.js +1 -1
- package/src/lib/services/identityValidator.js.map +1 -1
- package/src/lib/services/memberStore.d.ts.map +1 -1
- package/src/lib/services/memberStore.js +7 -6
- package/src/lib/services/memberStore.js.map +1 -1
- package/src/lib/services/messaging/emailMessageService.d.ts.map +1 -1
- package/src/lib/services/messaging/emailMessageService.js +2 -1
- package/src/lib/services/messaging/emailMessageService.js.map +1 -1
- package/src/lib/services/messaging/emailParser.d.ts.map +1 -1
- package/src/lib/services/messaging/emailParser.js.map +1 -1
- package/src/lib/services/messaging/gossipRetryService.d.ts +3 -2
- package/src/lib/services/messaging/gossipRetryService.d.ts.map +1 -1
- package/src/lib/services/messaging/gossipRetryService.js.map +1 -1
- package/src/lib/services/messaging/messageCBLService.d.ts.map +1 -1
- package/src/lib/services/messaging/messageCBLService.js +2 -1
- package/src/lib/services/messaging/messageCBLService.js.map +1 -1
- package/src/lib/services/quorumService.d.ts +16 -16
- package/src/lib/services/quorumService.d.ts.map +1 -1
- package/src/lib/services/quorumService.js +72 -39
- package/src/lib/services/quorumService.js.map +1 -1
- package/src/lib/services/quorumStateMachine.d.ts +7 -7
- package/src/lib/services/quorumStateMachine.d.ts.map +1 -1
- package/src/lib/services/quorumStateMachine.js +31 -24
- package/src/lib/services/quorumStateMachine.js.map +1 -1
- package/src/lib/services/sealing.service.d.ts +4 -4
- package/src/lib/services/sealing.service.d.ts.map +1 -1
- package/src/lib/services/sealing.service.js +2 -2
- package/src/lib/services/sealing.service.js.map +1 -1
- package/src/lib/stores/energyAccountStore.d.ts.map +1 -1
- package/src/lib/stores/energyAccountStore.js.map +1 -1
- package/src/lib/stores/energyLedger.d.ts.map +1 -1
- package/src/lib/stores/energyLedger.js.map +1 -1
- package/src/lib/stores/memoryBlockMetadataStore.d.ts +6 -5
- package/src/lib/stores/memoryBlockMetadataStore.d.ts.map +1 -1
- package/src/lib/stores/memoryBlockMetadataStore.js.map +1 -1
- package/src/lib/stores/memoryBlockStore.d.ts.map +1 -1
- package/src/lib/stores/memoryBlockStore.js +38 -22
- package/src/lib/stores/memoryBlockStore.js.map +1 -1
- package/src/lib/stores/messaging/memoryMessageMetadataStore.d.ts.map +1 -1
- package/src/lib/stores/messaging/memoryMessageMetadataStore.js.map +1 -1
- package/src/lib/stores/pooledMemoryBlockStore.d.ts.map +1 -1
- package/src/lib/stores/pooledMemoryBlockStore.js +17 -7
- package/src/lib/stores/pooledMemoryBlockStore.js.map +1 -1
|
@@ -17,6 +17,7 @@ export type * from './healthResponse';
|
|
|
17
17
|
export type * from './identityProofResponses';
|
|
18
18
|
export type * from './listNodesResponse';
|
|
19
19
|
export type * from './loginResponseData';
|
|
20
|
+
export type * from './memberProfileData';
|
|
20
21
|
export type * from './membersResponseData';
|
|
21
22
|
export type * from './mnemonicResponseData';
|
|
22
23
|
export type * from './passwordChangeResponse';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../brightchain-lib/src/lib/interfaces/responses/index.ts"],"names":[],"mappings":"AAAA,mBAAmB,2BAA2B,CAAC;AAC/C,mBAAmB,yBAAyB,CAAC;AAC7C,mBAAmB,0BAA0B,CAAC;AAI9C,mBAAmB,yBAAyB,CAAC;AAC7C,mBAAmB,mBAAmB,CAAC;AACvC,mBAAmB,0BAA0B,CAAC;AAC9C,mBAAmB,mBAAmB,CAAC;AACvC,mBAAmB,sBAAsB,CAAC;AAC1C,mBAAmB,yBAAyB,CAAC;AAC7C,mBAAmB,kBAAkB,CAAC;AACtC,mBAAmB,6BAA6B,CAAC;AACjD,mBAAmB,YAAY,CAAC;AAChC,mBAAmB,UAAU,CAAC;AAC9B,mBAAmB,sBAAsB,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AmB,qBAAqB,CAAC;AACzC,mBAAmB,qBAAqB,CAAC;AACzC,mBAAmB,qBAAqB,CAAC;AACzC,mBAAmB,uBAAuB,CAAC;AAC3C,mBAAmB,wBAAwB,CAAC;AAC5C,mBAAmB,0BAA0B,CAAC;AAC9C,mBAAmB,wBAAwB,CAAC;AAC5C,mBAAmB,qBAAqB,CAAC;AACzC,mBAAmB,oBAAoB,CAAC;AACxC,mBAAmB,wBAAwB,CAAC;AAC5C,mBAAmB,4BAA4B,CAAC;AAChD,mBAAmB,0BAA0B,CAAC;AAC9C,mBAAmB,2BAA2B,CAAC;AAC/C,mBAAmB,wBAAwB,CAAC;AAC5C,mBAAmB,uBAAuB,CAAC;AAC3C,mBAAmB,cAAc,CAAC;AAClC,mBAAmB,YAAY,CAAC;AAChC,mBAAmB,qBAAqB,CAAC;AACzC,mBAAmB,uBAAuB,CAAC"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { MemberStatusType } from '../../enumerations/memberStatusType';
|
|
2
|
+
/**
|
|
3
|
+
* Platform-agnostic base DTO for public member profile data.
|
|
4
|
+
*
|
|
5
|
+
* Follows the IBaseData<TData> workspace convention so that:
|
|
6
|
+
* - Frontend uses `IMemberPublicProfileData<string>` (default)
|
|
7
|
+
* - Backend uses `IMemberPublicProfileData<GuidV4Uint8Array>` or `IMemberPublicProfileData<string>`
|
|
8
|
+
* after serialization at the API boundary via `idProvider.idToString()`
|
|
9
|
+
*
|
|
10
|
+
* All date and bigint fields are pre-serialized to strings for JSON transport.
|
|
11
|
+
*
|
|
12
|
+
* @template TID - ID type. Defaults to `string` for frontend/JSON compatibility.
|
|
13
|
+
*/
|
|
14
|
+
export interface IMemberPublicProfileData<TID = string> {
|
|
15
|
+
id: TID;
|
|
16
|
+
status: MemberStatusType;
|
|
17
|
+
reputation: number;
|
|
18
|
+
storageQuota: string;
|
|
19
|
+
storageUsed: string;
|
|
20
|
+
lastActive: string;
|
|
21
|
+
dateCreated: string;
|
|
22
|
+
dateUpdated: string;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Platform-agnostic base DTO for private member profile data.
|
|
26
|
+
*
|
|
27
|
+
* @template TID - ID type. Defaults to `string` for frontend/JSON compatibility.
|
|
28
|
+
*/
|
|
29
|
+
export interface IMemberPrivateProfileData<TID = string> {
|
|
30
|
+
id: TID;
|
|
31
|
+
trustedPeers: TID[];
|
|
32
|
+
blockedPeers: TID[];
|
|
33
|
+
settings: Record<string, unknown>;
|
|
34
|
+
activityLog: Array<{
|
|
35
|
+
action: string;
|
|
36
|
+
timestamp: string;
|
|
37
|
+
details?: Record<string, unknown>;
|
|
38
|
+
}>;
|
|
39
|
+
dateCreated: string;
|
|
40
|
+
dateUpdated: string;
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* Combined platform-agnostic member profile DTO.
|
|
44
|
+
*
|
|
45
|
+
* @template TID - ID type. Defaults to `string` for frontend/JSON compatibility.
|
|
46
|
+
*/
|
|
47
|
+
export interface IMemberProfileData<TID = string> {
|
|
48
|
+
publicProfile: IMemberPublicProfileData<TID>;
|
|
49
|
+
privateProfile?: IMemberPrivateProfileData<TID>;
|
|
50
|
+
}
|
|
51
|
+
//# sourceMappingURL=memberProfileData.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"memberProfileData.d.ts","sourceRoot":"","sources":["../../../../../../brightchain-lib/src/lib/interfaces/responses/memberProfileData.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,qCAAqC,CAAC;AAEvE;;;;;;;;;;;GAWG;AACH,MAAM,WAAW,wBAAwB,CAAC,GAAG,GAAG,MAAM;IACpD,EAAE,EAAE,GAAG,CAAC;IACR,MAAM,EAAE,gBAAgB,CAAC;IACzB,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,EAAE,MAAM,CAAC;IACrB,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;CACrB;AAED;;;;GAIG;AACH,MAAM,WAAW,yBAAyB,CAAC,GAAG,GAAG,MAAM;IACrD,EAAE,EAAE,GAAG,CAAC;IACR,YAAY,EAAE,GAAG,EAAE,CAAC;IACpB,YAAY,EAAE,GAAG,EAAE,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAClC,WAAW,EAAE,KAAK,CAAC;QACjB,MAAM,EAAE,MAAM,CAAC;QACf,SAAS,EAAE,MAAM,CAAC;QAClB,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;KACnC,CAAC,CAAC;IACH,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;CACrB;AAED;;;;GAIG;AACH,MAAM,WAAW,kBAAkB,CAAC,GAAG,GAAG,MAAM;IAC9C,aAAa,EAAE,wBAAwB,CAAC,GAAG,CAAC,CAAC;IAC7C,cAAc,CAAC,EAAE,yBAAyB,CAAC,GAAG,CAAC,CAAC;CACjD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"memberProfileData.js","sourceRoot":"","sources":["../../../../../../brightchain-lib/src/lib/interfaces/responses/memberProfileData.ts"],"names":[],"mappings":""}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
+
import type { BlockId } from '../branded/primitives/blockId';
|
|
1
2
|
import { IReplicationNodeResult } from '../replicationNodeResult';
|
|
2
3
|
/**
|
|
3
4
|
* Replicate block response data
|
|
4
5
|
*/
|
|
5
6
|
export interface IReplicateBlockResponseData {
|
|
6
|
-
blockId:
|
|
7
|
+
blockId: BlockId;
|
|
7
8
|
replicationResults: IReplicationNodeResult[];
|
|
8
9
|
}
|
|
9
10
|
//# sourceMappingURL=replicateBlockResponse.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"replicateBlockResponse.d.ts","sourceRoot":"","sources":["../../../../../../brightchain-lib/src/lib/interfaces/responses/replicateBlockResponse.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAElE;;GAEG;AACH,MAAM,WAAW,2BAA2B;IAC1C,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"replicateBlockResponse.d.ts","sourceRoot":"","sources":["../../../../../../brightchain-lib/src/lib/interfaces/responses/replicateBlockResponse.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,+BAA+B,CAAC;AAC7D,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAElE;;GAEG;AACH,MAAM,WAAW,2BAA2B;IAC1C,OAAO,EAAE,OAAO,CAAC;IACjB,kBAAkB,EAAE,sBAAsB,EAAE,CAAC;CAC9C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"storeBlock.d.ts","sourceRoot":"","sources":["../../../../../../brightchain-lib/src/lib/interfaces/responses/storeBlock.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,uBAAuB;IACtC,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"storeBlock.d.ts","sourceRoot":"","sources":["../../../../../../brightchain-lib/src/lib/interfaces/responses/storeBlock.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,+BAA+B,CAAC;AAE7D,MAAM,WAAW,uBAAuB;IACtC,OAAO,EAAE,OAAO,CAAC;CAClB"}
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* @see Requirements 16
|
|
8
8
|
* @see Design: Content Ingestion Pipeline Integration (Task 19)
|
|
9
9
|
*/
|
|
10
|
-
import {
|
|
10
|
+
import { HexString, PlatformID } from '@digitaldefiance/ecies-lib';
|
|
11
11
|
import { IdentityValidationErrorType } from '../../enumerations/identityValidationErrorType';
|
|
12
12
|
import { ContentWithIdentity, IdentityMode } from '../contentWithIdentity';
|
|
13
13
|
/**
|
|
@@ -20,11 +20,11 @@ export interface ContentIngestionResult<TID extends PlatformID = Uint8Array> {
|
|
|
20
20
|
/** The content with identity replaced (after sealing) */
|
|
21
21
|
processedContent: ContentWithIdentity<TID>;
|
|
22
22
|
/** The identity recovery record ID (from sealing pipeline) */
|
|
23
|
-
recoveryRecordId:
|
|
23
|
+
recoveryRecordId: HexString;
|
|
24
24
|
/** The detected identity mode */
|
|
25
25
|
identityMode: IdentityMode;
|
|
26
26
|
/** The resolved real member ID (for real/alias modes) */
|
|
27
|
-
resolvedMemberId?:
|
|
27
|
+
resolvedMemberId?: HexString;
|
|
28
28
|
}
|
|
29
29
|
/**
|
|
30
30
|
* Rejection result when content ingestion fails.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contentIngestion.d.ts","sourceRoot":"","sources":["../../../../../../brightchain-lib/src/lib/interfaces/services/contentIngestion.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"contentIngestion.d.ts","sourceRoot":"","sources":["../../../../../../brightchain-lib/src/lib/interfaces/services/contentIngestion.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AACnE,OAAO,EAAE,2BAA2B,EAAE,MAAM,gDAAgD,CAAC;AAC7F,OAAO,EAAE,mBAAmB,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAE3E;;;GAGG;AACH,MAAM,WAAW,sBAAsB,CAAC,GAAG,SAAS,UAAU,GAAG,UAAU;IACzE,uCAAuC;IACvC,QAAQ,EAAE,OAAO,CAAC;IAClB,yDAAyD;IACzD,gBAAgB,EAAE,mBAAmB,CAAC,GAAG,CAAC,CAAC;IAC3C,8DAA8D;IAC9D,gBAAgB,EAAE,SAAS,CAAC;IAC5B,iCAAiC;IACjC,YAAY,EAAE,YAAY,CAAC;IAC3B,yDAAyD;IACzD,gBAAgB,CAAC,EAAE,SAAS,CAAC;CAC9B;AAED;;GAEG;AACH,MAAM,WAAW,yBAAyB;IACxC,sDAAsD;IACtD,QAAQ,EAAE,KAAK,CAAC;IAChB,+BAA+B;IAC/B,MAAM,EAAE,MAAM,CAAC;IACf,wDAAwD;IACxD,SAAS,EAAE,2BAA2B,GAAG,yBAAyB,CAAC;CACpE;AAED;;;;;;;;;GASG;AACH,MAAM,WAAW,wBAAwB,CAAC,GAAG,SAAS,UAAU,GAAG,UAAU;IAC3E;;;;;;;OAOG;IACH,cAAc,CACZ,OAAO,EAAE,mBAAmB,CAAC,GAAG,CAAC,GAChC,OAAO,CAAC,sBAAsB,CAAC,GAAG,CAAC,CAAC,CAAC;CACzC"}
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*
|
|
7
7
|
* @see Requirements 17
|
|
8
8
|
*/
|
|
9
|
-
import {
|
|
9
|
+
import { HexString } from '@digitaldefiance/ecies-lib';
|
|
10
10
|
/**
|
|
11
11
|
* Configuration for the expiration scheduler.
|
|
12
12
|
*/
|
|
@@ -23,7 +23,7 @@ export interface ExpirationResult {
|
|
|
23
23
|
/** Number of identity recovery records successfully deleted */
|
|
24
24
|
deletedCount: number;
|
|
25
25
|
/** IDs of records that failed to delete */
|
|
26
|
-
failedIds:
|
|
26
|
+
failedIds: HexString[];
|
|
27
27
|
/** True if the batch was full, indicating more expired records may exist */
|
|
28
28
|
nextBatchAvailable: boolean;
|
|
29
29
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"expirationScheduler.d.ts","sourceRoot":"","sources":["../../../../../../brightchain-lib/src/lib/interfaces/services/expirationScheduler.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"expirationScheduler.d.ts","sourceRoot":"","sources":["../../../../../../brightchain-lib/src/lib/interfaces/services/expirationScheduler.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AAEvD;;GAEG;AACH,MAAM,WAAW,yBAAyB;IACxC,uFAAuF;IACvF,UAAU,EAAE,MAAM,CAAC;IACnB,mEAAmE;IACnE,SAAS,EAAE,MAAM,CAAC;CACnB;AAED;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B,+DAA+D;IAC/D,YAAY,EAAE,MAAM,CAAC;IACrB,2CAA2C;IAC3C,SAAS,EAAE,SAAS,EAAE,CAAC;IACvB,4EAA4E;IAC5E,kBAAkB,EAAE,OAAO,CAAC;CAC7B;AAED;;;;;;GAMG;AACH,MAAM,WAAW,oBAAoB;IACnC;;;OAGG;IACH,KAAK,IAAI,IAAI,CAAC;IAEd;;OAEG;IACH,IAAI,IAAI,IAAI,CAAC;IAEb;;;;;OAKG;IACH,OAAO,IAAI,OAAO,CAAC,gBAAgB,CAAC,CAAC;CACtC"}
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*
|
|
8
8
|
* @see Requirements 14
|
|
9
9
|
*/
|
|
10
|
-
import {
|
|
10
|
+
import { HexString, PlatformID } from '@digitaldefiance/ecies-lib';
|
|
11
11
|
import { ContentWithIdentity, IdentityMode } from '../contentWithIdentity';
|
|
12
12
|
/**
|
|
13
13
|
* Result of the identity sealing pipeline.
|
|
@@ -17,7 +17,7 @@ export interface IdentitySealingResult<TID extends PlatformID = Uint8Array> {
|
|
|
17
17
|
/** Content with identity field replaced according to the selected mode */
|
|
18
18
|
modifiedContent: ContentWithIdentity<TID>;
|
|
19
19
|
/** ID of the stored identity recovery record */
|
|
20
|
-
recoveryRecordId:
|
|
20
|
+
recoveryRecordId: HexString;
|
|
21
21
|
}
|
|
22
22
|
/**
|
|
23
23
|
* Interface for the identity sealing pipeline.
|
|
@@ -51,6 +51,6 @@ export interface IIdentitySealingPipeline<TID extends PlatformID = Uint8Array> {
|
|
|
51
51
|
* @returns The recovered real identity
|
|
52
52
|
* @throws QuorumError with InsufficientSharesForReconstruction if not enough shares
|
|
53
53
|
*/
|
|
54
|
-
recoverIdentity(recoveryRecordId:
|
|
54
|
+
recoverIdentity(recoveryRecordId: HexString, decryptedShares: Map<HexString, string>): Promise<TID>;
|
|
55
55
|
}
|
|
56
56
|
//# sourceMappingURL=identitySealingPipeline.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"identitySealingPipeline.d.ts","sourceRoot":"","sources":["../../../../../../brightchain-lib/src/lib/interfaces/services/identitySealingPipeline.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"identitySealingPipeline.d.ts","sourceRoot":"","sources":["../../../../../../brightchain-lib/src/lib/interfaces/services/identitySealingPipeline.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AACnE,OAAO,EAAE,mBAAmB,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAE3E;;;GAGG;AACH,MAAM,WAAW,qBAAqB,CAAC,GAAG,SAAS,UAAU,GAAG,UAAU;IACxE,0EAA0E;IAC1E,eAAe,EAAE,mBAAmB,CAAC,GAAG,CAAC,CAAC;IAC1C,gDAAgD;IAChD,gBAAgB,EAAE,SAAS,CAAC;CAC7B;AAED;;;;;;;;;;;;GAYG;AACH,MAAM,WAAW,wBAAwB,CAAC,GAAG,SAAS,UAAU,GAAG,UAAU;IAC3E;;;;;;;;;OASG;IACH,YAAY,CACV,OAAO,EAAE,mBAAmB,CAAC,GAAG,CAAC,EACjC,IAAI,EAAE,YAAY,EAClB,SAAS,CAAC,EAAE,MAAM,GACjB,OAAO,CAAC,qBAAqB,CAAC,GAAG,CAAC,CAAC,CAAC;IAEvC;;;;;;OAMG;IACH,eAAe,CACb,gBAAgB,EAAE,SAAS,EAC3B,eAAe,EAAE,GAAG,CAAC,SAAS,EAAE,MAAM,CAAC,GACtC,OAAO,CAAC,GAAG,CAAC,CAAC;CACjB"}
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*
|
|
7
7
|
* @see Requirements 16
|
|
8
8
|
*/
|
|
9
|
-
import {
|
|
9
|
+
import { HexString, PlatformID } from '@digitaldefiance/ecies-lib';
|
|
10
10
|
import { IdentityValidationErrorType } from '../../enumerations/identityValidationErrorType';
|
|
11
11
|
import { ContentWithIdentity, IdentityMode } from '../contentWithIdentity';
|
|
12
12
|
/**
|
|
@@ -18,7 +18,7 @@ export interface IdentityValidationResult {
|
|
|
18
18
|
/** The detected identity mode */
|
|
19
19
|
identityMode: IdentityMode;
|
|
20
20
|
/** The resolved real member ID (for real/alias modes) */
|
|
21
|
-
resolvedMemberId?:
|
|
21
|
+
resolvedMemberId?: HexString;
|
|
22
22
|
/** Validation error type if valid is false */
|
|
23
23
|
errorType?: IdentityValidationErrorType;
|
|
24
24
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"identityValidator.d.ts","sourceRoot":"","sources":["../../../../../../brightchain-lib/src/lib/interfaces/services/identityValidator.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"identityValidator.d.ts","sourceRoot":"","sources":["../../../../../../brightchain-lib/src/lib/interfaces/services/identityValidator.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AACnE,OAAO,EAAE,2BAA2B,EAAE,MAAM,gDAAgD,CAAC;AAC7F,OAAO,EAAE,mBAAmB,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAE3E;;GAEG;AACH,MAAM,WAAW,wBAAwB;IACvC,4CAA4C;IAC5C,KAAK,EAAE,OAAO,CAAC;IACf,iCAAiC;IACjC,YAAY,EAAE,YAAY,CAAC;IAC3B,yDAAyD;IACzD,gBAAgB,CAAC,EAAE,SAAS,CAAC;IAC7B,8CAA8C;IAC9C,SAAS,CAAC,EAAE,2BAA2B,CAAC;CACzC;AAED;;;;;;;;;GASG;AACH,MAAM,WAAW,kBAAkB,CAAC,GAAG,SAAS,UAAU,GAAG,UAAU;IACrE;;;;;OAKG;IACH,eAAe,CACb,OAAO,EAAE,mBAAmB,CAAC,GAAG,CAAC,GAChC,OAAO,CAAC,wBAAwB,CAAC,CAAC;CACtC"}
|
|
@@ -6,14 +6,14 @@
|
|
|
6
6
|
*
|
|
7
7
|
* @see Requirements 6
|
|
8
8
|
*/
|
|
9
|
-
import {
|
|
9
|
+
import { HexString } from '@digitaldefiance/ecies-lib';
|
|
10
10
|
import { ProposalActionType } from '../../enumerations/proposalActionType';
|
|
11
11
|
/**
|
|
12
12
|
* Display format for presenting a proposal to the operator for voting.
|
|
13
13
|
*/
|
|
14
14
|
export interface ProposalDisplay {
|
|
15
15
|
/** Unique proposal identifier */
|
|
16
|
-
proposalId:
|
|
16
|
+
proposalId: HexString;
|
|
17
17
|
/** Human-readable proposal description */
|
|
18
18
|
description: string;
|
|
19
19
|
/** The type of action this proposal triggers */
|
|
@@ -21,7 +21,7 @@ export interface ProposalDisplay {
|
|
|
21
21
|
/** Machine-readable action payload */
|
|
22
22
|
actionPayload: Record<string, unknown>;
|
|
23
23
|
/** ID of the member who submitted the proposal */
|
|
24
|
-
proposerMemberId:
|
|
24
|
+
proposerMemberId: HexString;
|
|
25
25
|
/** Timestamp after which the proposal expires */
|
|
26
26
|
expiresAt: Date;
|
|
27
27
|
/** Optional CBL reference for attached documentation */
|
|
@@ -63,6 +63,6 @@ export interface IOperatorPrompt {
|
|
|
63
63
|
* @param proposalId - The proposal ID to check
|
|
64
64
|
* @returns True if voting is locked for this proposal
|
|
65
65
|
*/
|
|
66
|
-
isLocked(proposalId:
|
|
66
|
+
isLocked(proposalId: HexString): boolean;
|
|
67
67
|
}
|
|
68
68
|
//# sourceMappingURL=operatorPrompt.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"operatorPrompt.d.ts","sourceRoot":"","sources":["../../../../../../brightchain-lib/src/lib/interfaces/services/operatorPrompt.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"operatorPrompt.d.ts","sourceRoot":"","sources":["../../../../../../brightchain-lib/src/lib/interfaces/services/operatorPrompt.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AACvD,OAAO,EAAE,kBAAkB,EAAE,MAAM,uCAAuC,CAAC;AAE3E;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B,iCAAiC;IACjC,UAAU,EAAE,SAAS,CAAC;IACtB,0CAA0C;IAC1C,WAAW,EAAE,MAAM,CAAC;IACpB,gDAAgD;IAChD,UAAU,EAAE,kBAAkB,CAAC;IAC/B,sCAAsC;IACtC,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACvC,kDAAkD;IAClD,gBAAgB,EAAE,SAAS,CAAC;IAC5B,iDAAiD;IACjD,SAAS,EAAE,IAAI,CAAC;IAChB,wDAAwD;IACxD,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,kDAAkD;IAClD,iBAAiB,CAAC,EAAE,UAAU,CAAC;CAChC;AAED;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC,mCAAmC;IACnC,QAAQ,EAAE,SAAS,GAAG,QAAQ,CAAC;IAC/B,yCAAyC;IACzC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,mEAAmE;IACnE,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED;;;;;;GAMG;AACH,MAAM,WAAW,eAAe;IAC9B;;;;;;OAMG;IACH,aAAa,CAAC,QAAQ,EAAE,eAAe,GAAG,OAAO,CAAC,kBAAkB,CAAC,CAAC;IAEtE;;;;;;OAMG;IACH,QAAQ,CAAC,UAAU,EAAE,SAAS,GAAG,OAAO,CAAC;CAC1C"}
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
*
|
|
9
9
|
* @see Requirements 9, 10
|
|
10
10
|
*/
|
|
11
|
-
import { PlatformID
|
|
11
|
+
import { PlatformID } from '@digitaldefiance/ecies-lib';
|
|
12
12
|
import { QuorumDataRecord } from '../../quorumDataRecord';
|
|
13
13
|
import { AliasRecord } from '../aliasRecord';
|
|
14
14
|
import { QuorumAuditLogEntry } from '../auditLogEntry';
|
|
@@ -56,7 +56,7 @@ export interface IQuorumDatabase<TID extends PlatformID = Uint8Array> {
|
|
|
56
56
|
* @param memberId - The member ID
|
|
57
57
|
* @returns The member, or null if not found
|
|
58
58
|
*/
|
|
59
|
-
getMember(memberId:
|
|
59
|
+
getMember(memberId: TID): Promise<IQuorumMember<TID> | null>;
|
|
60
60
|
/**
|
|
61
61
|
* List all active members in the quorum.
|
|
62
62
|
* @returns Array of active quorum members
|
|
@@ -72,7 +72,7 @@ export interface IQuorumDatabase<TID extends PlatformID = Uint8Array> {
|
|
|
72
72
|
* @param docId - The document ID
|
|
73
73
|
* @returns The document, or null if not found
|
|
74
74
|
*/
|
|
75
|
-
getDocument(docId:
|
|
75
|
+
getDocument(docId: TID): Promise<QuorumDataRecord<TID> | null>;
|
|
76
76
|
/**
|
|
77
77
|
* List documents sealed under a specific epoch with pagination.
|
|
78
78
|
* @param epochNumber - The epoch number to filter by
|
|
@@ -91,7 +91,7 @@ export interface IQuorumDatabase<TID extends PlatformID = Uint8Array> {
|
|
|
91
91
|
* @param proposalId - The proposal ID
|
|
92
92
|
* @returns The proposal, or null if not found
|
|
93
93
|
*/
|
|
94
|
-
getProposal(proposalId:
|
|
94
|
+
getProposal(proposalId: TID): Promise<Proposal<TID> | null>;
|
|
95
95
|
/**
|
|
96
96
|
* Persist a vote.
|
|
97
97
|
* @param vote - The vote to save
|
|
@@ -102,7 +102,7 @@ export interface IQuorumDatabase<TID extends PlatformID = Uint8Array> {
|
|
|
102
102
|
* @param proposalId - The proposal ID
|
|
103
103
|
* @returns Array of votes for the proposal
|
|
104
104
|
*/
|
|
105
|
-
getVotesForProposal(proposalId:
|
|
105
|
+
getVotesForProposal(proposalId: TID): Promise<Vote<TID>[]>;
|
|
106
106
|
/**
|
|
107
107
|
* Persist an identity recovery record.
|
|
108
108
|
* @param record - The record to save
|
|
@@ -113,12 +113,12 @@ export interface IQuorumDatabase<TID extends PlatformID = Uint8Array> {
|
|
|
113
113
|
* @param recordId - The record ID
|
|
114
114
|
* @returns The record, or null if not found
|
|
115
115
|
*/
|
|
116
|
-
getIdentityRecord(recordId:
|
|
116
|
+
getIdentityRecord(recordId: TID): Promise<IdentityRecoveryRecord<TID> | null>;
|
|
117
117
|
/**
|
|
118
118
|
* Delete an identity recovery record (used by expiration scheduler).
|
|
119
119
|
* @param recordId - The record ID to delete
|
|
120
120
|
*/
|
|
121
|
-
deleteIdentityRecord(recordId:
|
|
121
|
+
deleteIdentityRecord(recordId: TID): Promise<void>;
|
|
122
122
|
/**
|
|
123
123
|
* List expired identity recovery records with pagination.
|
|
124
124
|
* @param before - Records with expiresAt before this date are considered expired
|
|
@@ -148,12 +148,12 @@ export interface IQuorumDatabase<TID extends PlatformID = Uint8Array> {
|
|
|
148
148
|
* Append an audit log entry.
|
|
149
149
|
* @param entry - The audit log entry to append
|
|
150
150
|
*/
|
|
151
|
-
appendAuditEntry(entry: QuorumAuditLogEntry): Promise<void>;
|
|
151
|
+
appendAuditEntry(entry: QuorumAuditLogEntry<TID>): Promise<void>;
|
|
152
152
|
/**
|
|
153
153
|
* Get the latest chained audit log entry (needed for chain linking).
|
|
154
154
|
* @returns The latest chained entry, or null if the log is empty
|
|
155
155
|
*/
|
|
156
|
-
getLatestAuditEntry(): Promise<ChainedAuditLogEntry | null>;
|
|
156
|
+
getLatestAuditEntry(): Promise<ChainedAuditLogEntry<TID> | null>;
|
|
157
157
|
/**
|
|
158
158
|
* Save a redistribution journal entry for rollback support.
|
|
159
159
|
* @param entry - The journal entry to save
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"quorumDatabase.d.ts","sourceRoot":"","sources":["../../../../../../brightchain-lib/src/lib/interfaces/services/quorumDatabase.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,EAAE,UAAU,EAAE,
|
|
1
|
+
{"version":3,"file":"quorumDatabase.d.ts","sourceRoot":"","sources":["../../../../../../brightchain-lib/src/lib/interfaces/services/quorumDatabase.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AACxD,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC1D,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAC/D,OAAO,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAC;AACnE,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,0BAA0B,EAAE,MAAM,+BAA+B,CAAC;AAC3E,OAAO,EAAE,0BAA0B,EAAE,MAAM,kBAAkB,CAAC;AAC9D,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAC/B,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAEhD;;;;;;;GAOG;AACH,MAAM,WAAW,eAAe,CAAC,GAAG,SAAS,UAAU,GAAG,UAAU;IAGlE;;;OAGG;IACH,SAAS,CAAC,KAAK,EAAE,WAAW,CAAC,GAAG,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAElD;;;;OAIG;IACH,QAAQ,CAAC,WAA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M,GAAG,OAAO,CAAC,0BAA0B,EAAE,CAAC,CAAC;IAE9E;;;OAGG;IACH,oBAAoB,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAIzD;;;OAGG;IACH,iBAAiB,CAAC,MAAM,EAAE,0BAA0B,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAErE;;;OAGG;IACH,gBAAgB,IAAI,OAAO,CAAC,0BAA0B,GAAG,IAAI,CAAC,CAAC;IAI/D;;;OAGG;IACH,oBAAoB,CAAC,KAAK,EAAE,gBAAgB,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAE7D;;;OAGG;IACH,mBAAmB,IAAI,OAAO,CAAC,gBAAgB,GAAG,IAAI,CAAC,CAAC;IAIxD;;;;;OAKG;IACH,eAAe,CAAC,CAAC,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC;IAIrD;;;;OAIG;IACH,WAAW,IAAI,OAAO,CAAC,OAAO,CAAC,CAAC;CACjC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { GuidV4Uint8Array, Member, PlatformID
|
|
1
|
+
import { GuidV4Uint8Array, Member, PlatformID } from '@digitaldefiance/ecies-lib';
|
|
2
2
|
import { MemberStatusType } from '../../enumerations/memberStatusType';
|
|
3
3
|
/**
|
|
4
4
|
* Metadata for a quorum member
|
|
@@ -13,7 +13,7 @@ export interface QuorumMemberMetadata {
|
|
|
13
13
|
* @template TID - Platform ID type (string, Uint8Array, or Buffer-based types)
|
|
14
14
|
*/
|
|
15
15
|
export interface IQuorumMember<TID extends PlatformID = GuidV4Uint8Array> {
|
|
16
|
-
id:
|
|
16
|
+
id: TID;
|
|
17
17
|
publicKey: Uint8Array;
|
|
18
18
|
metadata: QuorumMemberMetadata;
|
|
19
19
|
isActive: boolean;
|
|
@@ -21,13 +21,13 @@ export interface IQuorumMember<TID extends PlatformID = GuidV4Uint8Array> {
|
|
|
21
21
|
status?: MemberStatusType;
|
|
22
22
|
createdAt: Date;
|
|
23
23
|
updatedAt: Date;
|
|
24
|
-
_platformId?: TID;
|
|
25
24
|
}
|
|
26
25
|
/**
|
|
27
26
|
* A share provided by a member for unsealing
|
|
27
|
+
* @template TID - Platform ID type (string, Uint8Array, or Buffer-based types)
|
|
28
28
|
*/
|
|
29
|
-
export interface MemberShare {
|
|
30
|
-
memberId:
|
|
29
|
+
export interface MemberShare<TID extends PlatformID = GuidV4Uint8Array> {
|
|
30
|
+
memberId: TID;
|
|
31
31
|
decryptedShare: string;
|
|
32
32
|
}
|
|
33
33
|
/**
|
|
@@ -35,31 +35,32 @@ export interface MemberShare {
|
|
|
35
35
|
* @template TID - Platform ID type (string, Uint8Array, or Buffer-based types)
|
|
36
36
|
*/
|
|
37
37
|
export interface SealedDocumentResult<TID extends PlatformID = GuidV4Uint8Array> {
|
|
38
|
-
documentId:
|
|
38
|
+
documentId: TID;
|
|
39
39
|
encryptedData: Uint8Array;
|
|
40
|
-
memberIds:
|
|
40
|
+
memberIds: TID[];
|
|
41
41
|
sharesRequired: number;
|
|
42
42
|
createdAt: Date;
|
|
43
|
-
_platformId?: TID;
|
|
44
43
|
}
|
|
45
44
|
/**
|
|
46
45
|
* Information about a sealed quorum document
|
|
46
|
+
* @template TID - Platform ID type (string, Uint8Array, or Buffer-based types)
|
|
47
47
|
*/
|
|
48
|
-
export interface QuorumDocumentInfo {
|
|
49
|
-
id:
|
|
50
|
-
memberIds:
|
|
48
|
+
export interface QuorumDocumentInfo<TID extends PlatformID = GuidV4Uint8Array> {
|
|
49
|
+
id: TID;
|
|
50
|
+
memberIds: TID[];
|
|
51
51
|
sharesRequired: number;
|
|
52
52
|
createdAt: Date;
|
|
53
|
-
creatorId:
|
|
53
|
+
creatorId: TID;
|
|
54
54
|
}
|
|
55
55
|
/**
|
|
56
56
|
* Result of checking if a document can be unlocked
|
|
57
|
+
* @template TID - Platform ID type (string, Uint8Array, or Buffer-based types)
|
|
57
58
|
*/
|
|
58
|
-
export interface CanUnlockResult {
|
|
59
|
+
export interface CanUnlockResult<TID extends PlatformID = GuidV4Uint8Array> {
|
|
59
60
|
canUnlock: boolean;
|
|
60
61
|
sharesProvided: number;
|
|
61
62
|
sharesRequired: number;
|
|
62
|
-
missingMembers:
|
|
63
|
+
missingMembers: TID[];
|
|
63
64
|
}
|
|
64
65
|
/**
|
|
65
66
|
* Interface for quorum service operations.
|
|
@@ -80,13 +81,13 @@ export interface IQuorumService<TID extends PlatformID = GuidV4Uint8Array> {
|
|
|
80
81
|
* existing documents they are part of.
|
|
81
82
|
* @param memberId - The ID of the member to remove
|
|
82
83
|
*/
|
|
83
|
-
removeMember(memberId:
|
|
84
|
+
removeMember(memberId: TID): Promise<void>;
|
|
84
85
|
/**
|
|
85
86
|
* Get a member by their ID
|
|
86
87
|
* @param memberId - The ID of the member to retrieve
|
|
87
88
|
* @returns The member record, or null if not found
|
|
88
89
|
*/
|
|
89
|
-
getMember(memberId:
|
|
90
|
+
getMember(memberId: TID): Promise<IQuorumMember<TID> | null>;
|
|
90
91
|
/**
|
|
91
92
|
* List all active members in the quorum
|
|
92
93
|
* @returns Array of all active quorum members
|
|
@@ -100,37 +101,37 @@ export interface IQuorumService<TID extends PlatformID = GuidV4Uint8Array> {
|
|
|
100
101
|
* @param sharesRequired - Number of shares required to unseal (defaults to all members)
|
|
101
102
|
* @returns The sealed document result
|
|
102
103
|
*/
|
|
103
|
-
sealDocument<T>(agent: Member<TID>, document: T, memberIds:
|
|
104
|
+
sealDocument<T>(agent: Member<TID>, document: T, memberIds: TID[], sharesRequired?: number): Promise<SealedDocumentResult<TID>>;
|
|
104
105
|
/**
|
|
105
106
|
* Unseal a document using member shares.
|
|
106
107
|
* @param documentId - The ID of the document to unseal
|
|
107
108
|
* @param membersWithPrivateKey - Members with loaded private keys for decryption
|
|
108
109
|
* @returns The unsealed document
|
|
109
110
|
*/
|
|
110
|
-
unsealDocument<T>(documentId:
|
|
111
|
+
unsealDocument<T>(documentId: TID, membersWithPrivateKey: Member<TID>[]): Promise<T>;
|
|
111
112
|
/**
|
|
112
113
|
* Get information about a sealed document
|
|
113
114
|
* @param documentId - The ID of the document
|
|
114
115
|
* @returns Document information, or null if not found
|
|
115
116
|
*/
|
|
116
|
-
getDocument(documentId:
|
|
117
|
+
getDocument(documentId: TID): Promise<QuorumDocumentInfo<TID> | null>;
|
|
117
118
|
/**
|
|
118
119
|
* List all documents, optionally filtered by member
|
|
119
120
|
* @param memberId - Optional member ID to filter by
|
|
120
121
|
* @returns Array of document information
|
|
121
122
|
*/
|
|
122
|
-
listDocuments(memberId?:
|
|
123
|
+
listDocuments(memberId?: TID): Promise<QuorumDocumentInfo<TID>[]>;
|
|
123
124
|
/**
|
|
124
125
|
* Delete a sealed document
|
|
125
126
|
* @param documentId - The ID of the document to delete
|
|
126
127
|
*/
|
|
127
|
-
deleteDocument(documentId:
|
|
128
|
+
deleteDocument(documentId: TID): Promise<void>;
|
|
128
129
|
/**
|
|
129
130
|
* Check if a set of members can unlock a document
|
|
130
131
|
* @param documentId - The ID of the document
|
|
131
132
|
* @param memberIds - IDs of members who would provide shares
|
|
132
133
|
* @returns Result indicating if unlock is possible
|
|
133
134
|
*/
|
|
134
|
-
canUnlock(documentId:
|
|
135
|
+
canUnlock(documentId: TID, memberIds: TID[]): Promise<CanUnlockResult<TID>>;
|
|
135
136
|
}
|
|
136
137
|
//# sourceMappingURL=quorumService.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"quorumService.d.ts","sourceRoot":"","sources":["../../../../../../brightchain-lib/src/lib/interfaces/services/quorumService.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,gBAAgB,EAChB,MAAM,EACN,UAAU,
|
|
1
|
+
{"version":3,"file":"quorumService.d.ts","sourceRoot":"","sources":["../../../../../../brightchain-lib/src/lib/interfaces/services/quorumService.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,gBAAgB,EAChB,MAA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G,OAAO,CAAC,kBAAkB,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;IAElE;;;OAGG;IACH,cAAc,CAAC,UAAU,EAAE,GAAG,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAE/C;;;;;OAKG;IACH,SAAS,CAAC,UAAU,EAAE,GAAG,EAAE,SAAS,EAAE,GAAG,EAAE,GAAG,OAAO,CAAC,eAAe,CAAC,GAAG,CAAC,CAAC,CAAC;CAC7E"}
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*
|
|
8
8
|
* @see Requirements 1-7, 10-13
|
|
9
9
|
*/
|
|
10
|
-
import { Member, PlatformID
|
|
10
|
+
import { Member, PlatformID } from '@digitaldefiance/ecies-lib';
|
|
11
11
|
import { QuorumOperationalMode } from '../../enumerations/quorumOperationalMode';
|
|
12
12
|
import { Proposal, ProposalInput } from '../proposal';
|
|
13
13
|
import { QuorumEpoch } from '../quorumEpoch';
|
|
@@ -67,14 +67,14 @@ export interface IQuorumStateMachine<TID extends PlatformID = Uint8Array> {
|
|
|
67
67
|
* @returns The new QuorumEpoch after member removal
|
|
68
68
|
* @throws QuorumError with InsufficientRemainingMembers if removal would drop below threshold
|
|
69
69
|
*/
|
|
70
|
-
removeMember(memberId:
|
|
70
|
+
removeMember(memberId: TID, redistributionConfig?: Partial<RedistributionConfig>): Promise<QuorumEpoch<TID>>;
|
|
71
71
|
/**
|
|
72
72
|
* Submit a proposal for quorum voting.
|
|
73
73
|
* Validates proposer, assigns ID, stores as pending, announces via gossip.
|
|
74
74
|
* @param proposal - The proposal input
|
|
75
75
|
* @returns The created Proposal with assigned ID and status
|
|
76
76
|
*/
|
|
77
|
-
submitProposal(proposal: ProposalInput
|
|
77
|
+
submitProposal(proposal: ProposalInput): Promise<Proposal<TID>>;
|
|
78
78
|
/**
|
|
79
79
|
* Submit a vote on a pending proposal.
|
|
80
80
|
* Validates voter is active member on proposal, checks for duplicates,
|
|
@@ -87,7 +87,7 @@ export interface IQuorumStateMachine<TID extends PlatformID = Uint8Array> {
|
|
|
87
87
|
* @param proposalId - The proposal ID
|
|
88
88
|
* @returns The proposal, or null if not found
|
|
89
89
|
*/
|
|
90
|
-
getProposal(proposalId:
|
|
90
|
+
getProposal(proposalId: TID): Promise<Proposal<TID> | null>;
|
|
91
91
|
/**
|
|
92
92
|
* Seal a document so it can only be accessed when enough quorum members agree.
|
|
93
93
|
* Delegates to SealingService with bootstrap or quorum parameters.
|
|
@@ -98,7 +98,7 @@ export interface IQuorumStateMachine<TID extends PlatformID = Uint8Array> {
|
|
|
98
98
|
* @param sharesRequired - Optional number of shares required to unseal
|
|
99
99
|
* @returns The sealed document result
|
|
100
100
|
*/
|
|
101
|
-
sealDocument<T>(agent: Member<TID>, document: T, memberIds:
|
|
101
|
+
sealDocument<T>(agent: Member<TID>, document: T, memberIds: TID[], sharesRequired?: number): Promise<SealedDocumentResult<TID>>;
|
|
102
102
|
/**
|
|
103
103
|
* Unseal a document using member shares.
|
|
104
104
|
* Verifies checksum (SHA-3) and creator signature using constant-time
|
|
@@ -107,7 +107,7 @@ export interface IQuorumStateMachine<TID extends PlatformID = Uint8Array> {
|
|
|
107
107
|
* @param membersWithPrivateKey - Members with loaded private keys for decryption
|
|
108
108
|
* @returns The unsealed document
|
|
109
109
|
*/
|
|
110
|
-
unsealDocument<T>(documentId:
|
|
110
|
+
unsealDocument<T>(documentId: TID, membersWithPrivateKey: Member<TID>[]): Promise<T>;
|
|
111
111
|
/**
|
|
112
112
|
* Get the current epoch.
|
|
113
113
|
* @returns The current QuorumEpoch
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"quorumStateMachine.d.ts","sourceRoot":"","sources":["../../../../../../brightchain-lib/src/lib/interfaces/services/quorumStateMachine.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,
|
|
1
|
+
{"version":3,"file":"quorumStateMachine.d.ts","sourceRoot":"","sources":["../../../../../../brightch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-13,7 +13,7 @@ export interface RedistributionConfig {
|
|
|
13
13
|
/** Number of documents to process per batch. Default: 100 */
|
|
14
14
|
batchSize: number;
|
|
15
15
|
/** Callback for progress reporting */
|
|
16
|
-
onProgress?: (processed: number, total: number, failed:
|
|
16
|
+
onProgress?: (processed: number, total: number, failed: HexString[]) => void;
|
|
17
17
|
/** Whether to continue on individual document failure. Default: true */
|
|
18
18
|
continueOnFailure: boolean;
|
|
19
19
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"redistributionConfig.d.ts","sourceRoot":"","sources":["../../../../../../brightchain-lib/src/lib/interfaces/services/redistributionConfig.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"redistributionConfig.d.ts","sourceRoot":"","sources":["../../../../../../brightchain-lib/src/lib/interfaces/services/redistributionConfig.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AAEvD;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC,6DAA6D;IAC7D,SAAS,EAAE,MAAM,CAAC;IAClB,sCAAsC;IACtC,UAAU,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,KAAK,IAAI,CAAC;IAC7E,wEAAwE;IACxE,iBAAiB,EAAE,OAAO,CAAC;CAC5B"}
|