feat(client): Add account refetch endpoint

This commit is contained in:
Jesse Wierzbinski 2024-07-21 19:56:23 +02:00
parent de01d3ff73
commit 8a4b246f01
No known key found for this signature in database

View file

@ -2048,6 +2048,25 @@ export class LysandClient extends BaseClient {
); );
} }
/**
* POST /api/v1/accounts/:id/refetch
*
* Starts a refetch of an account from a remote source.
* Lysand API only.
* @param id The account ID.
* @return Account with updated data.
*/
public refetchAccount(
id: string,
extra?: RequestInit,
): Promise<Output<Account>> {
return this.post<Account>(
`/api/v1/accounts/${id}/refetch`,
undefined,
extra,
);
}
/** /**
* POST /oauth/token * POST /oauth/token
* *