// Create a delegation for a specific DID
const audience = DID.parse(did)
const abilities = ['space/blob/add', 'space/index/add', 'filecoin/offer', 'upload/add']
const expiration = Math.floor(Date.now() / 1000) + (60 * 60 * 24) // 24 hours from now
const delegation = await client.createDelegation(audience, abilities, { expiration })
Is it possible to limit the rights of a delegated domain to the file size?
For example, I want to give the client the opportunity to upload a file of no more than 50MB.