UNPKG

@web3-storage/content-claims

Version:
78 lines 4.8 kB
export const assert: import("@ucanto/server").TheCapabilityParser<import("@ucanto/server").CapabilityMatch<"assert/*", import("@ucanto/interface").URI<"did:">, {}>>; /** * Claims that a CID is available at a URL. */ export const location: import("@ucanto/server").TheCapabilityParser<import("@ucanto/server").CapabilityMatch<"assert/location", import("@ucanto/interface").URI<"did:">, Schema.InferStruct<{ content: Schema.Schema<import("@ucanto/server").IPLDLink<unknown, number, number, 0 | 1> | Schema.InferStruct<{ digest: Schema.Schema<Uint8Array, unknown>; }>, any>; location: Schema.ArraySchema<import("@ucanto/interface").URI<`${string}:`>, unknown>; range: Schema.Schema<Schema.InferStruct<{ offset: Schema.NumberSchema<number & import("@ucanto/server").Phantom<{ typeof: "integer"; }>, unknown>; length: Schema.Schema<(number & import("@ucanto/server").Phantom<{ typeof: "integer"; }>) | undefined, unknown>; }> | undefined, unknown>; space: Schema.Schema<import("@ucanto/server").PrincipalView<`did:${string}:${string}` & `did:${string}` & import("@ucanto/server").Phantom<{ protocol: "did:"; }>> | undefined, any>; }>>>; /** * Claims that a CID includes the contents claimed in another CID. */ export const inclusion: import("@ucanto/server").TheCapabilityParser<import("@ucanto/server").CapabilityMatch<"assert/inclusion", import("@ucanto/interface").URI<"did:">, Schema.InferStruct<{ content: Schema.Schema<import("@ucanto/server").IPLDLink<unknown, number, number, 0 | 1> | Schema.InferStruct<{ digest: Schema.Schema<Uint8Array, unknown>; }>, any>; includes: Schema.Schema<import("@ucanto/server").IPLDLink<unknown, number, number, 1>, any>; proof: Schema.Schema<import("@ucanto/server").IPLDLink<unknown, number, number, 1> | undefined, any>; }>>>; /** * Claims that a content graph can be found in blob(s) that are identified and * indexed in the given index CID. */ export const index: import("@ucanto/server").TheCapabilityParser<import("@ucanto/server").CapabilityMatch<"assert/index", import("@ucanto/interface").URI<"did:">, Schema.InferStruct<{ content: Schema.Schema<import("@ucanto/server").IPLDLink<unknown, number, number, 0 | 1> | Schema.InferStruct<{ digest: Schema.Schema<Uint8Array, unknown>; }>, any>; index: Schema.Schema<import("@ucanto/server").IPLDLink<unknown, number, number, 1>, any>; }>>>; /** * Claims that a CID's graph can be read from the blocks found in parts. */ export const partition: import("@ucanto/server").TheCapabilityParser<import("@ucanto/server").CapabilityMatch<"assert/partition", import("@ucanto/interface").URI<"did:">, Schema.InferStruct<{ content: Schema.Schema<import("@ucanto/server").IPLDLink<unknown, number, number, 0 | 1> | Schema.InferStruct<{ digest: Schema.Schema<Uint8Array, unknown>; }>, any>; blocks: Schema.Schema<import("@ucanto/server").IPLDLink<unknown, number, number, 1> | undefined, any>; parts: Schema.ArraySchema<import("@ucanto/server").IPLDLink<unknown, number, number, 1>, any>; }>>>; /** * Claims that a CID links to other CIDs. */ export const relation: import("@ucanto/server").TheCapabilityParser<import("@ucanto/server").CapabilityMatch<"assert/relation", import("@ucanto/interface").URI<"did:">, Schema.InferStruct<{ content: Schema.Schema<import("@ucanto/server").IPLDLink<unknown, number, number, 0 | 1> | Schema.InferStruct<{ digest: Schema.Schema<Uint8Array, unknown>; }>, any>; children: Schema.ArraySchema<import("@ucanto/server").IPLDLink<unknown, number, number, 0 | 1>, any>; parts: Schema.ArraySchema<Schema.InferStruct<{ content: Schema.Schema<import("@ucanto/server").IPLDLink<unknown, number, number, 1>, any>; includes: Schema.Schema<Schema.InferStruct<{ content: Schema.Schema<import("@ucanto/server").IPLDLink<unknown, number, number, 1>, any>; parts: Schema.Schema<import("@ucanto/server").IPLDLink<unknown, number, number, 1>[] | undefined, any>; }> | undefined, unknown>; }>, any>; }>>>; /** * Claim data is referred to by another CID and/or multihash. e.g CAR CID & CommP CID */ export const equals: import("@ucanto/server").TheCapabilityParser<import("@ucanto/server").CapabilityMatch<"assert/equals", import("@ucanto/interface").URI<"did:">, Schema.InferStruct<{ content: Schema.Schema<import("@ucanto/server").IPLDLink<unknown, number, number, 0 | 1> | Schema.InferStruct<{ digest: Schema.Schema<Uint8Array, unknown>; }>, any>; equals: Schema.Schema<import("@ucanto/server").IPLDLink<unknown, number, number, 0 | 1>, any>; }>>>; import { Schema } from '@ucanto/server'; //# sourceMappingURL=assert.d.ts.map