Skip to main content

Namespace: Store

@web3-storage/upload-client.Store

Functions

add

add(conf, car, options?): Promise<CARLink>

Store a DAG encoded as a CAR file. The issuer needs the store/add delegated capability.

Required delegated capability proofs: store/add

Parameters

NameTypeDescription
confInvocationConfigConfiguration for the UCAN invocation. An object with issuer, with and proofs. The issuer is the signing authority that is issuing the UCAN invocation(s). It is typically the user agent. The with is the resource the invocation applies to. It is typically the DID of a space. The proofs are a set of capability delegations that prove the issuer has the capability to perform the action. The issuer needs the store/add delegated capability.
carBlobCAR file data.
options?RequestOptions

Returns

Promise<CARLink>

Defined in

packages/upload-client/src/store.js:30


list

list(conf, options?): Promise<ListResponse<StoreListResult>>

List CAR files stored by the issuer.

Parameters

NameTypeDescription
confInvocationConfigConfiguration for the UCAN invocation. An object with issuer, with and proofs. The issuer is the signing authority that is issuing the UCAN invocation(s). It is typically the user agent. The with is the resource the invocation applies to. It is typically the DID of a space. The proofs are a set of capability delegations that prove the issuer has the capability to perform the action. The issuer needs the store/list delegated capability.
options?ListRequestOptions

Returns

Promise<ListResponse<StoreListResult>>

Defined in

packages/upload-client/src/store.js:123


remove

remove(conf, link, options?): Promise<void>

Remove a stored CAR file by CAR CID.

Parameters

NameTypeDescription
confInvocationConfigConfiguration for the UCAN invocation. An object with issuer, with and proofs. The issuer is the signing authority that is issuing the UCAN invocation(s). It is typically the user agent. The with is the resource the invocation applies to. It is typically the DID of a space. The proofs are a set of capability delegations that prove the issuer has the capability to perform the action. The issuer needs the store/remove delegated capability.
linkCARLinkCID of CAR file to remove.
options?RequestOptions

Returns

Promise<void>

Defined in

packages/upload-client/src/store.js:171