chore(client): 🏷️ Update client types, add TOS and Privacy Policy APIs

This commit is contained in:
Jesse Wierzbinski 2024-06-11 14:54:21 -10:00
parent 24c5f3effd
commit 6f717fcccd
No known key found for this signature in database
4 changed files with 34 additions and 3 deletions

View file

@ -1039,6 +1039,33 @@ export class LysandClient extends BaseClient {
return this.get<string[]>("/api/v1/instance/peers", extra);
}
/**
* GET /api/v1/instance/privacy_policy
*
* Lysand API only.
* @returns
*/
public getInstancePrivacyPolicy(
extra?: RequestInit,
): Promise<Output<ExtendedDescription>> {
return this.get<ExtendedDescription>(
"/api/v1/instance/privacy_policy",
extra,
);
}
/**
* GET /api/v1/instance/tos
*
* Lysand API only.
* @returns
*/
public getInstanceTermsOfService(
extra?: RequestInit,
): Promise<Output<ExtendedDescription>> {
return this.get<ExtendedDescription>("/api/v1/instance/tos", extra);
}
/**
* GET /api/v1/trends
*