{
  "manifest": {
    "spekkr": 1,
    "id": "kato/team-permissions",
    "name": "Team accounts and permissions",
    "summary": "Workspaces, roles, invitations and an audit log for a multi-tenant app, with a test for every permission rule.",
    "keywords": [
      "rbac",
      "organizations",
      "orgs",
      "members",
      "access control",
      "tenants",
      "auth"
    ],
    "kind": "app part",
    "version": "0.1.2",
    "author": {
      "id": "kato",
      "name": "Kato"
    },
    "targets": {
      "platforms": [
        "web",
        "backend"
      ]
    },
    "customize": {
      "settings": [
        {
          "key": "app_name",
          "label": "App name",
          "default": "Acme",
          "help": "Shown in the interface and in invitation emails."
        },
        {
          "key": "workspace_noun",
          "label": "What a tenant is called",
          "default": "workspace",
          "help": "For example workspace, team or organization."
        }
      ],
      "options": [
        {
          "key": "audit_log",
          "label": "Audit log",
          "default": true,
          "help": "Records who changed members, roles and settings."
        },
        {
          "key": "invite_links",
          "label": "Shareable invite links",
          "default": false,
          "help": "Lets an admin create a link that anyone can use to join until it expires."
        }
      ],
      "swaps": [
        {
          "key": "database",
          "label": "Database",
          "choices": [
            "postgres",
            "sqlite"
          ],
          "default": "postgres"
        },
        {
          "key": "sign_in",
          "label": "Sign-in method",
          "choices": [
            "email_link",
            "password"
          ],
          "default": "email_link"
        }
      ]
    },
    "files": [
      {
        "path": "spec.md",
        "about": "Requirements and acceptance criteria."
      },
      {
        "path": "design.md",
        "about": "Data model, permission rules and the request flow."
      },
      {
        "path": "tasks.md",
        "about": "Build tasks in order, each with a check."
      }
    ],
    "needs": {
      "accounts": [
        "An email-sending service for invitations"
      ],
      "permissions": [
        "shell",
        "network"
      ]
    },
    "demo": {
      "screenshots": [
        "shots/notes.png",
        "shots/members.png",
        "shots/audit.png",
        "shots/sign-in.png"
      ]
    },
    "safety": {
      "secrets": [
        "DATABASE_URL",
        "SESSION_SECRET",
        "EMAIL_API_KEY"
      ]
    },
    "lineage": {},
    "changelog": [
      {
        "version": "0.1.2",
        "date": "2026-11-15",
        "note": "Names what it builds."
      },
      {
        "version": "0.1.1",
        "date": "2026-11-14",
        "note": "Says \"person\" where it said \"buyer\"."
      },
      {
        "version": "0.1.0",
        "date": "2026-11-14",
        "note": "Moved from dwrtz/team-permissions."
      }
    ]
  },
  "links": {
    "page": "./",
    "bundle": "bundle.tar.gz",
    "files": {
      "design.md": "files/design.md",
      "shots/audit.png": "files/shots/audit.png",
      "shots/members.png": "files/shots/members.png",
      "shots/notes.png": "files/shots/notes.png",
      "shots/sign-in.png": "files/shots/sign-in.png",
      "spec.md": "files/spec.md",
      "tasks.md": "files/tasks.md"
    }
  },
  "publishedBy": "kato",
  "uploaded": {
    "shots/audit.png": {
      "bytes": 31008,
      "type": "image/png"
    },
    "shots/members.png": {
      "bytes": 29565,
      "type": "image/png"
    },
    "shots/notes.png": {
      "bytes": 41707,
      "type": "image/png"
    },
    "shots/sign-in.png": {
      "bytes": 43119,
      "type": "image/png"
    }
  }
}
