/** * Lead Scraping Service API * Vector Lead Scraping Service API - Manages Lead Scraping Jobs * * The version of the OpenAPI document: 1.0 * Contact: yoanyomba@vector.ai * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import type { AccountSettings } from './AccountSettings'; import type { Role } from './Role'; import type { Timezone } from './Timezone'; import type { AccountStatus } from './AccountStatus'; import type { Permission } from './Permission'; import type { Workspace } from './Workspace'; /** * Account represents a user account within the workspace service. * It serves as the top-level container for all user-specific workspaces and settings. * * Key features: * - Unique identification via Auth0 * - Organization and tenant context * - Audit timestamps * - Associated scraping jobs * * Database considerations: * - Uses GORM for ORM mapping * - Includes indexes for efficient querying * - Supports soft deletes via deleted_at * * Usage example: * ```go * account := &Account{ * AuthPlatformUserId: "auth0|123", * OrgId: "org_123", * TenantId: "tenant_456", * } * ``` * @export * @interface Account */ export interface Account { /** * * @type {string} * @memberof Account */ id?: string; /** * * @type {string} * @memberof Account */ authPlatformUserId?: string; /** * * @type {string} * @memberof Account */ email?: string; /** * * @type {Date} * @memberof Account */ deletedAt?: Date; /** * * @type {Date} * @memberof Account */ createdAt?: Date; /** * * @type {AccountStatus} * @memberof Account */ accountStatus?: AccountStatus; /** * * @type {Array} * @memberof Account */ roles?: Array; /** * * @type {Array} * @memberof Account */ permissions?: Array; /** * * @type {boolean} * @memberof Account */ mfaEnabled?: boolean; /** * * @type {Date} * @memberof Account */ lastLoginAt?: Date; /** * * @type {Timezone} * @memberof Account */ timezone?: Timezone; /** * * @type {number} * @memberof Account */ totalJobsRun?: number; /** * * @type {number} * @memberof Account */ monthlyJobLimit?: number; /** * * @type {number} * @memberof Account */ concurrentJobLimit?: number; /** * * @type {Array} * @memberof Account */ workspaces?: Array; /** * * @type {AccountSettings} * @memberof Account */ settings?: AccountSettings; } /** * Check if a given object implements the Account interface. */ export declare function instanceOfAccount(value: object): value is Account; export declare function AccountFromJSON(json: any): Account; export declare function AccountFromJSONTyped(json: any, ignoreDiscriminator: boolean): Account; export declare function AccountToJSON(json: any): Account; export declare function AccountToJSONTyped(value?: Account | null, ignoreDiscriminator?: boolean): any;