To make your question more readable, I define variables with the same letter as each mathematical object's first letter. Your question becomes : how to find $p$ permutations of $t_1, t_2, \cdots, t_{k - 1}, t_k$ things. $t_k$ entails $k$ kinds of $t$ things.
To deduce the formula for all the unique permutations of length $\color{red}{L}$ of $\{t_1,t_2,...,t_k\}$, we must find all combinations $=\{c_1,c_2,...,c_k\}$ where $0 \leq c_k \leq t_k$, such that
$
\color{red}{c_1 + \cdots + c_k = L}
$.
What we need, is the product of the factorials of the elements of that combination:
$
\color{limegreen}{\prod_{i=1}^k c_i!}
$
Define the number of combinations as $J$. In closing, to answer your question, the number of permutations is
$$
= \sum_{j=1}^J \frac{\color{red}{L}!}{\color{limegreen}{\prod_{i=1}^k c_i!}}
= \sum_{\color{red}{c_1 + \cdots + c_n = L}} \binom{\color{red}{L}}{c_1,c_2, \cdots, c_n},
$$
as a closed form expression with a Multinomial Coefficient. QED.
Remark
Originally, OP worded this question too verbosely as follows.
How can I find the number of k-permutations of n objects, where there are x types of objects, and $r_1, r_2, r_3 ... r_x$ give the number of each type of object?
But it's pleonastic to moot $n$ at all, because $n \stackrel{\text{def}}{=} r_1 + r_2 + r_3 + \cdots + r_x.$
"where there are x types of objects" is redundant too! $r_x$ itself entails $x$ types, because by definition, $r_x$ means $x$ types of $r$ objects.