• Verify and return Abilities.

    Given a list of strings representing capability names (Abilities), verify that all the strings are valid Abilities and return Abilities[].

    Abilities[] is still just a list of strings, but this helps us play nice with Typescript.

    Parameters

    • abilities: string[]

    Returns ("*" | "provider/add" | "space/*" | "space/info" | "store/add" | "store/remove" | "store/list" | "upload/add" | "upload/remove" | "upload/list" | "upload/*" | "upload/get" | "store/*" | "store/get" | "access/*" | "access/authorize" | "ucan/attest" | "ucan/conclude" | "customer/get" | "consumer/has" | "consumer/get" | "subscription/get" | "subscription/list" | "rate-limit/add" | "rate-limit/remove" | "rate-limit/list" | "filecoin/offer" | "filecoin/submit" | "filecoin/accept" | "filecoin/info" | "piece/offer" | "piece/accept" | "aggregate/offer" | "aggregate/accept" | "deal/info" | "admin/*" | "admin/upload/inspect" | "admin/store/inspect" | "plan/get" | "usage/*" | "usage/report" | "blob/*" | "blob/add" | "blob/remove" | "blob/list" | "web3.storage/blob/*" | "web3.storage/blob/allocate" | "web3.storage/blob/accept" | "http/put" | "index/*" | "index/add")[]

Generated using TypeDoc