Defines the dashboard seam for organization enrolment: overview, probe, enrol, grant decisions, and IdP flows. Nil disables routes with 501.
// Source: https://github.com/superbasedapp/observer | License: Apache-2.0 | Copyright 2026 Gaja AI
// Provided via justclaw.it.com; keep this notice with the code.
package dashapi
import (
"context"
"github.com/marmutapp/superbased-observer/internal/orgenrol"
)
// EnrolmentManager is the dashboard's seam onto organization enrolment. Nil =
// not wired (the routes answer 501, e.g. a standalone `observer dashboard`).
type EnrolmentManager interface {
// Overview is `observer org status` as data (works enrolled or not).
Overview(ctx context.Context) (EnrolmentOverview, error)
// Probe checks a server URL's shape and reachability; nothing is sent
// but an unauthenticated health read.
Probe(ctx context.Context, orgURL string) (EnrolProbe, error)
// Enrol exchanges a one-time code (
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key