import { RpcMethod } from './commonTypes'; import { BillingAddress as pushwoosh_rpc_v2_accounts_BillingAddress } from './accounts'; import { RestrictionValue as pushwoosh_objects_restrictionValues_v1_RestrictionValue } from './pushwoosh_objects_restrictionValues_v1'; export type GetAuthInfoService_GetAuthInfo = RpcMethod; /** * Прям отдельный сервис под этот один запрос. Потому что он страшный и должен быть разобран. * Пока что просто переношу как есть. */ export interface GetAuthInfoService { /** Returns the current authenticated session context: the signed-in user's profile and notification preferences plus the active account's plan, permissions (ACE flags), restrictions and per-entity counts. Use to resolve who is logged in and what the account can do before other calls. */ GetAuthInfo: GetAuthInfoService_GetAuthInfo; } export type GetAuthInfoRequest = {}; export type GetAuthInfoResponse = { user: User; account: Account; }; export type User = { username: string; email: string; isActive: boolean; timezone: string; timezoneOffset: string; accountsCount: number; allowNewsletters: boolean; allowDailyStatsGlobal: boolean; allowNotificationSubscribers: boolean; allowNotificationIosLicense: boolean; allowNotificationUserInactivity: boolean; allowNotificationDisablePlatform: boolean; intercomUserHash: string; }; export type Account = { id: number; name: string; isEnterprise: boolean; expireDate: string; frozen: boolean; productType: string; domain: string; admin: boolean; restriction: string; canUsePacks: boolean; hasPersonalizationPack: boolean; hasMarketingPack: boolean; isUnderSu: boolean; isAccountLocked: boolean; isTwoFactorAuthEnabled: boolean; hasActiveOrder: boolean; registrationDate: Date; appGroupsCount: number; applicationsCount: number; filtersCount: number; tagsCount: number; geoZonesCount: number; campaignsCount: number; presetsCount: number; testDevicesCount: number; rssFeedsCount: number; inAppsCount: number; eventsCount: number; deeplinksCount: number; richMediaCount: number; emailTemplatesCount: number; accountMailsCount: number; accountDomainsCount: number; pushAvailableSubscribers: number; pushNotAvailableSubscribers: number; isDeviceLimitReached: boolean; aceSeeApplications: boolean; aceModifyApplications: boolean; aceSeeAppGroups: boolean; aceModifyAppGroups: boolean; aceSeeMessages: boolean; aceModifyMessages: boolean; aceSendMessages: boolean; aceSeeFilters: boolean; aceModifyFilters: boolean; aceSeeTags: boolean; aceModifyTags: boolean; aceSeeRichMedia: boolean; aceModifyRichMedia: boolean; aceSeeEmailTemplates: boolean; aceModifyEmailTemplates: boolean; aceSuperRight: boolean; aceManageUsers: boolean; aceManageSubscription: boolean; aceSeeApiAccess: boolean; aceDomainAndEmailVerification: boolean; freeEmailLimitUpdateDate: string; paidEmailExpireDate: string; allowedPlatforms: number[]; billingAddress: pushwoosh_rpc_v2_accounts_BillingAddress; restrictions: pushwoosh_objects_restrictionValues_v1_RestrictionValue; userCentricStorageUsed: boolean; allowProductCommunication: boolean; suspended: boolean; };