The equation defines a conic with a rational point (0,0,1). The other rational solutions can be parametrized by lines through that point. As with $x^2+y^2 = z^2$ the integer solutions can be deduced from the rational ones, and the quadratic form $x^2+y^2 - z^2$ has a large linear symmetry group allowing one to move between solutions. In these respects the theory is the same as the one for Pythagorean triples.

There is a difference in the structure of the symmetry group. For $a=0$ the hyperboloid $x^2+y^2 - z^2 = a$ becomes a cone, with additional scaling symmetries in addition to the linear transformations of the hyperboloid; in effect the $O(2,1)$ symmetry group of the rational solutions collapses into a product of scalings and circle isometries. For integer solutions, with Pythagorean triples there is a reduction to the case of primitive triples, but when $a \neq 0$ there is a bound on the shared factors of $(x,y,z)$, and for $a = \pm 1$ all integer solutions are primitive. The organization of Pythagorean triples using several 3x3 integer matrices as transformations connecting different solutions does use the $O(2,1)$ structure, and the solution set for the equation with $a \neq 0$ could be presented in the same way (possibly with more than one connected component when $|a| > 1$).


Note: This is not a complete answer. First, I want to point out that both $x$ and $y$ must be even.

We can trivially get one infinitely family of solutions from the following: Consider triplets of the form $$(x,y,z)=(2r^2,2r,2r^2+1).$$ Then they satisfy the above as $$(2r^2 )^2 +(2r)^2+1=(2r^2+1)^2.$$ This gives rise to $$(2,2,3), \ (4,8,9), \ (6,18,19),\ \cdots$$


the equation: $X^2+Y^2=Z^2-1$

Solutions can be written using the solutions of Pell's equation: $p^2-2k(k-1)s^2=1$

$k$ - given by us.

Solutions have form:

$X=2kps-2(k-1)s^2$

$Y=2(k-1)ps+2ks^2$

$Z=p^2+2(k^2-k+1)s^2$

And more:

$X=2p^2-2(3k-2)ps+2(2k-1)(k-1)s^2$

$Y=2p^2-2(3k-1)ps+2k(2k-1)s^2$

$Z=3p^2-4(2k-1)ps+2(3k^2-3k+1)s^2$

Although it should be a more general solution to record.