@web3-storage/content-claims
Version:
Implementation of the Content Claims Protocol.
25 lines • 1.47 kB
TypeScript
export const serviceURL: URL;
/** @type {import('@ucanto/interface').Principal} */
export const servicePrincipal: import("@ucanto/interface").Principal;
/** @type {import('@ucanto/interface').ConnectionView<import('../server/service/api.js').Service>} */
export const connection: import("@ucanto/interface").ConnectionView<import("../server/service/api.js").Service>;
export function decode(bytes: Uint8Array): Promise<import("./api.js").Claim>;
export function decodeDelegation(delegation: import("@ucanto/interface").Delegation): Promise<import("./api.js").Claim>;
export function fetch(content: import("multiformats").MultihashDigest, options?: FetchOptions | undefined): Promise<Response>;
export function read(content: import("multiformats").MultihashDigest, options?: FetchOptions | undefined): Promise<import("./api.js").Claim[]>;
export function contentMultihash(claim: import("./api.js").Claim): import("multiformats").MultihashDigest<number>;
/**
* Fetch a CAR archive of claims from the service. Note: no verification is
* performed on the response data.
*/
export type FetchOptions = {
walk?: Array<"parts" | "includes" | "children">;
serviceURL?: URL;
};
import { connect } from '@ucanto/client';
import { invoke } from '@ucanto/client';
import { delegate } from '@ucanto/client';
import { CAR } from '@ucanto/transport';
import { HTTP } from '@ucanto/transport';
export { connect, invoke, delegate, CAR, HTTP };
//# sourceMappingURL=index.d.ts.map