{"$schema":"https://json-schema.org/draft/2020-12/schema","title":"EBSI Verifiable Delegated Authorisation","description":"The schema defines a delegated Verifiable Authorisation","type":"object","allOf":[{"$ref":"https://api-pilot.ebsi.eu/trusted-schemas-registry/v3/schemas/0x6dd1a7ef4d7706a3c2b3ee1c5ae1e9d96ec777016f95c2768836c01818cf5729"},{"properties":{"credentialSubject":{"$ref":"#/$defs/credentialSubject"},"evidence":{"$ref":"https://api-pilot.ebsi.eu/trusted-schemas-registry/v3/schemas/0xc0a0826d048fa7a45f25d64e7509547af066d21dd068bc622a5930fb76a39b8e#/properties/evidence"}}}],"required":["@context","id","type","issuer","validFrom","validUntil","credentialSubject","credentialSchema"],"$defs":{"permission":{"description":"Permission instance","type":"object","properties":{"scope":{"description":"Scope for which the claims are being defined. Authorisation server MUST understand the scope.","type":"string"},"claims":{"description":"One or more permission claims for the given scope. If authorisation server is unable to process the claims, access MUST be rejected.","oneOf":[{"type":"array","items":{"type":"string"}},{"type":"array","items":{"type":"object"}}]}},"required":["scope"]},"credentialSubject":{"description":"Defines information about the subject that is defined by the type chain","type":"object","properties":{"id":{"description":"Defines the DID of the subject that is described by the issued credential","type":"string","format":"uri"},"permissions":{"oneOf":[{"$ref":"#/$defs/permission"},{"type":"array","items":{"$ref":"#/$defs/permission"}}]},"maxDelegationCount":{"description":"CONDITIONAL. MUST be present if isDelegate == true. Defines the possible delegation count from the top-level authorisation.","type":"integer"},"isDelegated":{"description":"OPTIONAL. Defines whether the authorisation is delegated.","type":"boolean","default":"false"},"evidenceId":{"description":"CONDITIONAL. If delegationPolicy is present and if there are more than one evidences in the evidence property, the evidenceId is used to identify the evidence based on which this delegated authorisation VC has been issued.","type":"string"}}}}}