Reference Schemas User

Schema

User

object

Properties

id
UserId Required
type
string Required
anonymous
boolean Required
avatar
string
email
string
name
string
phone
string Phone number in E.164 format
roles
object
meta
object

JSON Schema

{ "type": "object", "required": [ "id", "type", "anonymous" ], "properties": { "id": { "$ref": "#/components/schemas/UserId" }, "type": { "type": "string", "const": "User" }, "anonymous": { "type": "boolean" }, "avatar": { "type": "string", "format": "uri" }, "email": { "type": "string", "format": "email" }, "name": { "type": "string" }, "phone": { "type": "string", "description": "Phone number in E.164 format", "pattern": "^\\+[1-9]\\d{1,14}$", "examples": [ "+14155552671" ] }, "roles": { "type": "object", "patternProperties": { "^org_[a-zA-Z0-9]{27}$": { "$ref": "#/components/schemas/OrganizationRole" }, "^[a-zA-Z0-9]{10}$": { "$ref": "#/components/schemas/OrganizationRole" } }, "examples": [ { "org_2nBd8dNvWBtStYMoRLT5sGK76hW": "owner", "org_2nBd8eL4pXtVoWzlYcnenP8VrBh": "viewer", "NvsCXqe1zb": "editor" } ] }, "meta": { "type": "object", "properties": { "createdBy": { "$ref": "#/components/schemas/ActorId" }, "createdAt": { "$ref": "#/components/schemas/Timestamp" }, "updatedBy": { "$ref": "#/components/schemas/ActorId" }, "updatedAt": { "$ref": "#/components/schemas/Timestamp" } } } } }