pass instance domain

This commit is contained in:
Felix Ableitner 2024-11-26 11:48:46 +01:00
parent c9159d89ec
commit 36d0e69391
4 changed files with 2 additions and 11 deletions

View file

@ -140,7 +140,6 @@ export { HidePost } from "./types/HidePost";
export { ImageDetails } from "./types/ImageDetails";
export { Instance } from "./types/Instance";
export { InstanceId } from "./types/InstanceId";
export { InstanceIdOrDomain } from "./types/InstanceIdOrDomain";
export { InstanceWithFederationState } from "./types/InstanceWithFederationState";
export { Language } from "./types/Language";
export { LanguageId } from "./types/LanguageId";

View file

@ -1,8 +1,7 @@
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
import type { InstanceIdOrDomain } from "./InstanceIdOrDomain";
export type AdminAllowInstanceParams = {
instance: InstanceIdOrDomain;
instance: string;
allow: boolean;
reason?: string;
};

View file

@ -1,8 +1,7 @@
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
import type { InstanceIdOrDomain } from "./InstanceIdOrDomain";
export type AdminBlockInstanceParams = {
instance: InstanceIdOrDomain;
instance: string;
block: boolean;
reason?: string;
expires?: string;

View file

@ -1,6 +0,0 @@
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
import type { InstanceId } from "./InstanceId";
export type InstanceIdOrDomain =
| { InstanceId: InstanceId }
| { Domain: string };