/* eslint-disable */ /* tslint:disable */ // @ts-nocheck /* * --------------------------------------------------------------- * ## THIS FILE WAS GENERATED VIA SWAGGER-TYPESCRIPT-API ## * ## ## * ## AUTHOR: acacode ## * ## SOURCE: https://github.com/acacode/swagger-typescript-api ## * --------------------------------------------------------------- */ /** @format int32 */ import type { PronounsType, Tenant, User, PostqueryUserData, SqlNullTime } from './common' export interface AppInfo { ID?: number; has_workflow?: boolean; icon_color?: string; icon_name?: string; name?: string; task_count?: number; } export interface EmailChangeRecord { content?: string; created_at?: number; id?: string; } export interface EmbeddedApp { address?: string; icon_address?: string; name?: string; path?: string; } export interface GlobalActionAcceptInvitationLinkReqVO { id?: string; } export interface GlobalActionAcceptInvitationLinkRespVO { result?: string; status?: string; tenant?: Tenant; } export interface GlobalActionAcceptInvitationReqVO { id?: number; } export interface GlobalActionAcceptInvitationRespVO { color_schema?: string; createdAt?: string; currency?: string; deletedAt?: SqlNullTime; /** not in db */ hashID?: string; icon_assets_id?: number; icon_url?: string; id?: number; join_able?: boolean; locale?: string; logo_assets_id?: number; logo_url?: string; name?: string; timezone?: string; updatedAt?: string; } export interface GlobalActionCreateTenantReqVO { name?: string; } export interface GlobalActionCreateTenantRespVO { color_schema?: string; createdAt?: string; currency?: string; deletedAt?: SqlNullTime; /** not in db */ hashID?: string; icon_assets_id?: number; icon_url?: string; id?: number; join_able?: boolean; locale?: string; logo_assets_id?: number; logo_url?: string; name?: string; timezone?: string; updatedAt?: string; } export interface GlobalActionEmailVerifyReqVO { code?: string; locale?: string; } export interface GlobalActionEmailVerifyResendReqVO { locale?: string; } export interface GlobalActionEmailVerifyResendRespVO { email?: string; validation_expired?: number; validation_send_at?: number; verified?: boolean; } export interface GlobalActionEmailVerifyRespVO { addon?: { validation_expired?: number; }; auth?: string; tenants?: Tenant[]; token?: string; user?: User; } export interface GlobalActionEmailVerifyStatusRespVO { email?: string; validation_expired?: number; validation_send_at?: number; verified?: boolean; } export interface GlobalActionEntryRespVO { account_name?: string; apps?: AppInfo[]; config?: GlobalConfig; default_tenant_id?: number; embedded_apps?: EmbeddedApp[]; invitations?: InvitationInfo[]; is_tenant_admin?: boolean; lockin_tenant?: number; multi_tenant?: boolean; tenant_id?: number; tenant_name?: string; tenants?: TenantInfo[]; user?: PostqueryUserData; } export interface GlobalActionGetInvitationLinkRespVO { invitation?: InvitationLinkInfo; } export interface GlobalActionProfileSetEmailCancelRespVO { id?: number; } export interface GlobalActionProfileSetEmailReqVO { email?: string; reset_password?: boolean; } export interface GlobalActionProfileSetEmailRespVO { content?: string; id?: string; } export interface GlobalActionSetDefaultTenantReqVO { tenant_id?: number; } export interface GlobalActionSetDefaultTenantRespVO { success?: boolean; } export interface GlobalConfig { currency?: string[]; locales?: string[]; prefer_currency?: string; prefer_local?: string; site_icon?: string; site_logo?: string; timezone?: string; } export interface InvitationInfo { id?: number; tenant_icon?: string; tenant_id?: number; tenant_name?: string; } export interface InvitationLinkInfo { expired_at?: number; tenant_icon?: string; tenant_name?: string; } export interface TenantInfo { ID?: number; IconUrl?: string; /** Whether user is admin of this tenant */ IsAdmin?: boolean; Name?: string; SiteLogoUrl?: string; }