Permissions-related schemas¶
- pydantic model horizon.commons.schemas.v1.permission.PermissionResponseItemV1¶
Represents a single permission entry in a response, linking a user with their role within a namespace.
- field username: str [Required]¶
- field role: NamespaceUserRole [Required]¶
- pydantic model horizon.commons.schemas.v1.permission.PermissionsResponseV1¶
Wraps a list of permission entries for a namespace, returned by the GET endpoint.
- field permissions: List[PermissionResponseItemV1] [Required]¶
- pydantic model horizon.commons.schemas.v1.permission.PermissionUpdateRequestItemV1¶
Represents a single permission entry in a request, specifying a desired role for a user within a namespace.
- field username: str [Required]¶
- field role: NamespaceUserRole | None = None¶
The role to be assigned to the user within the namespace. A value of None indicates that the permission should be removed.
- pydantic model horizon.commons.schemas.v1.permission.PermissionsUpdateRequestV1¶
Wraps a list of permission modification requests for a namespace, used by the PATCH endpoint.
- field permissions: List[PermissionUpdateRequestItemV1] [Required]¶
A list of modifications to the namespace’s permissions. Each entry specifies a user and the role they should have or be removed from.