Importing users from API


I have an existing set of users, with their corresponding credentials (stored in a similar format to keycloak, with pbkdf2).
How can I import them with the admin API ?
The CredentialRepresentation object now has many deprecated fields, and the only accessible field is ‘value’. So how do I provide the hash, and the hash algorithm and its configuration (salt, hash iterations, …) ?