Hierarchy

  • ISessionCapabilityObject

Accessors

Methods

  • Add an arbitrary attenuation to the session capability object.

    Description

    We do NOT recommend using this unless with the LIT specific abilities. Use this ONLY if you know what you are doing.

    Parameters

    • resource: string
    • Optional namespace: string
    • Optional name: string
    • Optional restriction: {
          [key: string]: PlainJSON;
      }

    Returns void

  • Add a LIT-specific capability to the session capability object for the specified resource.

    Example

    If the ability is LitAbility.AccessControlConditionDecryption, then the resource should be the hashed key value of the access control condition.

    Example

    If the ability is LitAbility.AccessControlConditionSigning, then the resource should be the hashed key value of the access control condition.

    Example

    If the ability is LitAbility.PKPSigning, then the resource should be the PKP token ID.

    Example

    If the ability is LitAbility.RateLimitIncreaseAuth, then the resource should be the RLI token ID.

    Example

    If the ability is LitAbility.LitActionExecution, then the resource should be the Lit Action IPFS CID.

    Throws

    If the ability is not a LIT-specific ability.

    Parameters

    • litResource: ILitResource

      The LIT-specific resource being added.

    • ability: LitAbility

      The LIT-specific ability being added.

    Returns void

Generated using TypeDoc