@web3-storage/capabilities
Advanced tools
Comparing version 18.0.0 to 18.0.1
@@ -1,2 +0,2 @@ | ||
export { filecoinOffer as offer, filecoinSubmit as submit, filecoinAccept as accept, filecoinInfo as info } from "./storefront.js"; | ||
export { filecoinOffer as offer, filecoinSubmit as submit, filecoinAccept as accept, filecoinInfo as info, filecoin } from "./storefront.js"; | ||
//# sourceMappingURL=index.d.ts.map |
/** | ||
* Top-level capability for Filecoin operations. | ||
*/ | ||
export const filecoin: import("@ucanto/interface").TheCapabilityParser<import("@ucanto/interface").CapabilityMatch<"filecoin/*", `did:${string}:${string}` & `did:${string}` & import("@ucanto/interface").Phantom<{ | ||
protocol: "did:"; | ||
}>, any>>; | ||
/** | ||
* Capability allowing an agent to _request_ storing a content piece in | ||
@@ -3,0 +9,0 @@ * Filecoin. |
@@ -601,2 +601,3 @@ import type { TupleToUnion } from 'type-fest'; | ||
export type AdminStoreInspectFailure = Ucanto.Failure; | ||
export type Filecoin = InferInvokedCapability<typeof StorefrontCaps.filecoin>; | ||
export type FilecoinOffer = InferInvokedCapability<typeof StorefrontCaps.filecoinOffer>; | ||
@@ -674,2 +675,3 @@ export type FilecoinSubmit = InferInvokedCapability<typeof StorefrontCaps.filecoinSubmit>; | ||
RateLimitList['can'], | ||
Filecoin['can'], | ||
FilecoinOffer['can'], | ||
@@ -676,0 +678,0 @@ FilecoinSubmit['can'], |
{ | ||
"name": "@web3-storage/capabilities", | ||
"version": "18.0.0", | ||
"version": "18.0.1", | ||
"description": "UCAN Capabilities provided by web3.storage", | ||
@@ -136,2 +136,3 @@ "homepage": "https://web3.storage", | ||
"lint": "tsc && eslint '**/*.{js,ts}' && prettier --check '**/*.{js,ts,yml,json}' --ignore-path ../../.gitignore", | ||
"lint:fix": "tsc && eslint '**/*.{js,ts}' --fix && prettier --write '**/*.{js,ts,yml,json}' --ignore-path ../../.gitignore", | ||
"build": "tsc --build", | ||
@@ -138,0 +139,0 @@ "dev": "tsc --build --watch", |
@@ -20,2 +20,3 @@ /** | ||
filecoinInfo as info, | ||
filecoin as filecoin, | ||
} from './storefront.js' |
@@ -17,2 +17,14 @@ /** | ||
/** | ||
* Top-level capability for Filecoin operations. | ||
*/ | ||
export const filecoin = capability({ | ||
can: 'filecoin/*', | ||
/** | ||
* DID of the space the content is stored in. | ||
*/ | ||
with: Schema.did(), | ||
derives: equalWith, | ||
}) | ||
/** | ||
* Capability allowing an agent to _request_ storing a content piece in | ||
@@ -19,0 +31,0 @@ * Filecoin. |
@@ -811,2 +811,3 @@ import type { TupleToUnion } from 'type-fest' | ||
// Filecoin | ||
export type Filecoin = InferInvokedCapability<typeof StorefrontCaps.filecoin> | ||
export type FilecoinOffer = InferInvokedCapability< | ||
@@ -925,2 +926,3 @@ typeof StorefrontCaps.filecoinOffer | ||
RateLimitList['can'], | ||
Filecoin['can'], | ||
FilecoinOffer['can'], | ||
@@ -927,0 +929,0 @@ FilecoinSubmit['can'], |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
202823
4755