Workspace
The tenant: one company or one person, holding exactly one of these records, its first. Holds the installed packs and the members, identities, policies, shares, tags and records.
| Pack | System |
| Version | v1 (latest) |
| URN | urn:postware:system:workspace |
| Identity | slug |
| Status categories | active, paused, suspended, deleted |
Fields
| Field | Type | Req | Notes |
|---|---|---|---|
slug | string | yes | URL-safe, unique per server or platform; pattern ^[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?$ |
name | string | yes | |
kind | enum(business| | no | default business |
status | Status(active| | yes | default map[category:active] |
avatar | Ref<File> | no | |
packs | string[] | yes | installed packs; default [] |
auth | object | no | sign-in settings; {allowed_email_domains?: string[], allowed_redirect_uris?: string[], allowed_origins?: string[], magic_link_from_name?: string, signup?: enum(open|invite_only), issuers?: {issuer: string, audience: string, jwks_uri?: string, claims?: {subject?: string, email?: string, email_verified?: string, name?: string, roles?: string}, principal?: {kind: enum(end_user|member), member_role_claim_values?: , auto_join?: bool}}} |