w3-store
Version:
web3.storage upload service
33 lines • 2.41 kB
TypeScript
export const Validate: Server.TheCapabilityParser<Server.CapabilityMatch<"identity/validate", Server.API.URI<"did:">, {
as: Server.Decoder<unknown, `mailto:${string}`, Server.API.Failure>;
}>>;
export const Register: Server.TheCapabilityParser<Server.CapabilityMatch<"identity/register", Server.API.URI<"mailto:">, {
as: Server.Decoder<unknown, `did:${string}`, Server.API.Failure>;
}>>;
export const Link: Server.TheCapabilityParser<Server.CapabilityMatch<"identity/link", Server.API.URI<"did:">, {
as: Server.Decoder<unknown, `did:${string}`, Server.API.Failure>;
}>>;
/**
* `identity/identify` can be derived from any of the `store/*`
* capability that has matichng `with`. This allows store service
* to identify account based on any user request.
*/
export const Identify: Server.TheCapabilityParser<Server.DerivedMatch<Server.ParsedCapability<"identity/identify", Server.API.URI<"did:">, Server.InferCaveats<{}>>, Server.CapabilityMatch<"store/add", Server.API.URI<"did:">, {
link: Server.Decoder<unknown, Server.API.UCAN.Link<unknown, number, number, 0 | 1> | undefined, Server.API.Failure>;
}> | Server.CapabilityMatch<"store/remove", Server.API.URI<"did:">, {
link: Server.Decoder<unknown, Server.API.UCAN.Link<unknown, number, number, 0 | 1> | undefined, Server.API.Failure>;
}> | Server.CapabilityMatch<"store/list", Server.API.URI<"did:">, {}>>>;
/**
* Represents `identity/*` capability.
*/
export const Capability: Server.CapabilityParser<Server.CapabilityMatch<"identity/register", Server.API.URI<"mailto:">, {
as: Server.Decoder<unknown, `did:${string}`, Server.API.Failure>;
}> | Server.CapabilityMatch<"identity/link", Server.API.URI<"did:">, {
as: Server.Decoder<unknown, `did:${string}`, Server.API.Failure>;
}> | Server.DerivedMatch<Server.ParsedCapability<"identity/identify", Server.API.URI<"did:">, Server.InferCaveats<{}>>, Server.CapabilityMatch<"store/add", Server.API.URI<"did:">, {
link: Server.Decoder<unknown, Server.API.UCAN.Link<unknown, number, number, 0 | 1> | undefined, Server.API.Failure>;
}> | Server.CapabilityMatch<"store/remove", Server.API.URI<"did:">, {
link: Server.Decoder<unknown, Server.API.UCAN.Link<unknown, number, number, 0 | 1> | undefined, Server.API.Failure>;
}> | Server.CapabilityMatch<"store/list", Server.API.URI<"did:">, {}>>>;
import * as Server from "@ucanto/server";
//# sourceMappingURL=capability.d.ts.map