@web3-storage/capabilities
Advanced tools
Comparing version 12.0.3 to 12.1.0
@@ -248,7 +248,18 @@ import type { TupleToUnion } from 'type-fest'; | ||
piece: PieceLink; | ||
aggregates: FilecoinInfoAcceptedAggregate[]; | ||
deals: FilecoinInfoAcceptedDeal[]; | ||
} | ||
export interface FilecoinInfoAcceptedDeal extends DataAggregationProof, DealDetails { | ||
export interface FilecoinInfoAcceptedAggregate { | ||
/** | ||
* Aggregate piece CID. | ||
*/ | ||
aggregate: PieceLink; | ||
/** | ||
* Proof the piece is included in the aggregate. | ||
*/ | ||
inclusion: InclusionProof; | ||
} | ||
export interface FilecoinInfoAcceptedDeal extends Omit<DataAggregationProof, 'inclusion'>, DealDetails { | ||
aggregate: PieceLink; | ||
} | ||
export type FilecoinInfoFailure = ContentNotFound | InvalidContentPiece | Ucanto.Failure; | ||
@@ -255,0 +266,0 @@ export interface PieceOfferSuccess { |
{ | ||
"name": "@web3-storage/capabilities", | ||
"version": "12.0.3", | ||
"version": "12.1.0", | ||
"description": "UCAN Capabilities provided by web3.storage", | ||
@@ -5,0 +5,0 @@ "homepage": "https://web3.storage", |
@@ -323,6 +323,19 @@ import type { TupleToUnion } from 'type-fest' | ||
piece: PieceLink | ||
aggregates: FilecoinInfoAcceptedAggregate[] | ||
deals: FilecoinInfoAcceptedDeal[] | ||
} | ||
export interface FilecoinInfoAcceptedAggregate { | ||
/** | ||
* Aggregate piece CID. | ||
*/ | ||
aggregate: PieceLink | ||
/** | ||
* Proof the piece is included in the aggregate. | ||
*/ | ||
inclusion: InclusionProof | ||
} | ||
export interface FilecoinInfoAcceptedDeal | ||
extends DataAggregationProof, | ||
extends Omit<DataAggregationProof, 'inclusion'>, | ||
DealDetails { | ||
@@ -329,0 +342,0 @@ aggregate: PieceLink |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
148902
3463