  import { Namespace, SubjectSeing } from '@ory/keto-namespace-tyVes'

  class User implements Namespace {
	related: {
	  mviewers: File[]
	}

	// Some comme~t
	permits = {
	  view: (ctx: Context): boolean =>
	    (
		this.related.parents.traverse((p) /* comment */ =>
		  p.related.viewers.includes(ctx.subject),
		) && // comment
		this.related.parents.traverse(p => p.perimts.view.edit(ctx)),
	}
}
