Interface OpenApiOperations

interface OpenApiOperations {
    addAiPlan: {
        parameters: {
            cookie?: undefined;
            header?: undefined;
            path: { id_client: string; id_organization: string };
            query?: undefined;
        };
        requestBody: {
            content: {
                "application/json": {
                    accounts: string[];
                    options?: {
                        allow_images?: boolean;
                        gallery_uploads?: string[];
                        language?: string;
                        max_images?: number;
                        publish_days?: number[];
                        shared?: boolean;
                        timezone?: string;
                        tone?: string;
                        use_organization_context?: boolean;
                        week_start?: string;
                    };
                    prompt: string;
                };
            };
        };
        responses: {
            "200": {
                content: {
                    "application/json": {
                        ai_plan: {
                            _id: string;
                            accounts: string[];
                            attempts: number;
                            creation_date: string;
                            credits_spent: number;
                            error?: {
                                code: number;
                                data?: { [key: string]: unknown };
                                message: string;
                            };
                            generation_end_date?: string;
                            id_client: string;
                            id_organization: string;
                            keycloak_identifier?: string;
                            options: {
                                allow_images: boolean;
                                gallery_uploads: string[];
                                language: string;
                                max_images?: number;
                                publish_days: number[];
                                shared: boolean;
                                timezone: string;
                                tone?: string;
                                use_organization_context: boolean;
                                week_start: string;
                            };
                            orchestrator_result?: Record<string, never>;
                            organization_context?: {
                                audience?: string;
                                avoid?: string;
                                blog_url?: string;
                                brand_name?: string;
                                default_tone?: string;
                                description?: string;
                                keywords?: string[];
                                notes?: string;
                                products?: string;
                                sector?: string;
                                shop_url?: string;
                                social_urls?: string[];
                                value_proposition?: string;
                                website?: string;
                            };
                            prompt: string;
                            publications: (
                                | string
                                | {
                                    _id: string;
                                    creation_date: string;
                                    engagement_base?: "reach"
                                    | "impressions"
                                    | "followers";
                                    external_identifier?: string;
                                    files: {
                                        _id: ...;
                                        cover_image?: ...;
                                        cover_offset?: ...;
                                        creation_date: ...;
                                        file_externals: ...;
                                        file_format: ...;
                                        file_properties: ...;
                                        file_type: ...;
                                        id_organization: ...;
                                        is_temporal: ...;
                                        name: ...;
                                        public_path: ...;
                                    }[];
                                    id_account: | string
                                    | {
                                        _id: ...;
                                        creation_date: ...;
                                        error_code: ...;
                                        followers_count?: ...;
                                        id_client: ...;
                                        id_organization: ...;
                                        image?: ...;
                                        name: ...;
                                        next_comments_update?: ...;
                                        next_stats_update?: ...;
                                        private_message_link?: ...;
                                        social_network: ...;
                                        username?: ...;
                                    };
                                    id_integration?: string;
                                    id_organization: string;
                                    metrics?: {
                                        clicks?: ...;
                                        comments?: ...;
                                        engagement?: ...;
                                        followers?: ...;
                                        followers_gained?: ...;
                                        impressions?: ...;
                                        likes?: ...;
                                        profile_views?: ...;
                                        reach?: ...;
                                        saves?: ...;
                                        shares?: ...;
                                        video_views?: ...;
                                    };
                                    name?: string;
                                    next_stats_update?: string;
                                    publication_errors: { code: ...; data?: ...; message: ... }[];
                                    publication_type:
                                        | "profile"
                                        | "page"
                                        | "group"
                                        | "reels"
                                        | "stories"
                                        | "message";
                                    publish_date?: string;
                                    retries: number;
                                    social_network: | "facebook"
                                    | "instagram"
                                    | "linkedin"
                                    | "tiktok"
                                    | "twitter"
                                    | "whatsapp"
                                    | "youtube"
                                    | "google_business"
                                    | "bluesky"
                                    | "discord";
                                    state: "ready"
                                    | "withErrors"
                                    | "sended"
                                    | "draft"
                                    | "publishing";
                                    statistics?: {
                                        angers?: ...;
                                        bookmarks?: ...;
                                        clicks?: ...;
                                        comments?: ...;
                                        engagement?: ...;
                                        follows?: ...;
                                        hahas?: ...;
                                        impressions?: ...;
                                        likes?: ...;
                                        loves?: ...;
                                        negative_feedback?: ...;
                                        page_likes?: ...;
                                        playback_0_count?: ...;
                                        playback_100_count?: ...;
                                        playback_25_count?: ...;
                                        playback_50_count?: ...;
                                        playback_75_count?: ...;
                                        profile_activity?: ...;
                                        profile_visits?: ...;
                                        quotes?: ...;
                                        reach?: ...;
                                        replys?: ...;
                                        retwets?: ...;
                                        saved?: ...;
                                        share?: ...;
                                        shareMentions?: ...;
                                        shares?: ...;
                                        sorrys?: ...;
                                        url_link_clicks?: ...;
                                        user_profile_clicks?: ...;
                                        video_views?: ...;
                                        views?: ...;
                                        wows?: ...;
                                    };
                                    stats_updated_date?: string;
                                    text?: string;
                                    title?: string;
                                    url?: string;
                                }
                            )[];
                            state: | "pending"
                            | "generating"
                            | "generated"
                            | "validated"
                            | "failed"
                            | "cancelled";
                        };
                        estimate: {
                            available_credits: number;
                            base_cost: number;
                            estimated_cost: number;
                            images_target: number;
                            texts_target: number;
                        };
                        estimated_cost: number;
                    };
                };
                headers: { [name: string]: unknown };
            };
            "400": {
                content: {
                    "application/json": {
                        code: number;
                        data?: { [key: string]: unknown };
                        message: string;
                    };
                };
                headers: { [name: string]: unknown };
            };
            "500": { content?: undefined; headers: { [name: string]: unknown } };
        };
    };
    addIntegration: {
        parameters: {
            cookie?: undefined;
            header?: undefined;
            path: { id_organization: string };
            query?: undefined;
        };
        requestBody: {
            content: {
                "application/json": | { code: string; provider: "google_drive" }
                | {
                    auto_publish?: boolean;
                    id_accounts: string[];
                    import_image?: boolean;
                    provider: "rss";
                    publication_type?: string;
                    template?: string;
                    url: string;
                };
            };
        };
        responses: {
            "200": {
                content: {
                    "application/json": {
                        integration: {
                            _id: string;
                            config: {
                                auto_publish?: boolean;
                                id_accounts?: string[];
                                import_image?: boolean;
                                last_checked?: string;
                                publication_type?: string;
                                seen_guids?: string[];
                                template?: string;
                                url?: string;
                            };
                            connected: boolean;
                            creation_date: string;
                            enabled: boolean;
                            error_code?: null
                            | number;
                            external_identifier?: string;
                            id_client: string;
                            id_organization: string;
                            last_used_date?: string;
                            name: string;
                            provider: "google_drive" | "rss";
                        };
                    };
                };
                headers: { [name: string]: unknown };
            };
            "400": {
                content: {
                    "application/json": {
                        code: number;
                        data?: { [key: string]: unknown };
                        message: string;
                    };
                };
                headers: { [name: string]: unknown };
            };
        };
    };
    addParentOrganization: {
        parameters: {
            cookie?: undefined;
            header?: undefined;
            path: { id_client: string };
            query?: undefined;
        };
        requestBody: {
            content: {
                "application/json": {
                    actual_plan?: {
                        accounts: number;
                        ai_credits?: number;
                        artificial_inteligence?: boolean;
                        integrations: number;
                        publications: number;
                        space: number;
                        stats?: boolean;
                        twitter_credits?: number;
                        users: number;
                        whatsapp?: boolean;
                    };
                    name: string;
                };
            };
        };
        responses: {
            "200": {
                content: {
                    "application/json": {
                        organization: {
                            _id: string;
                            actual_asigned?: {
                                accounts: number;
                                ai_credits?: number;
                                artificial_inteligence?: boolean;
                                integrations: number;
                                publications: number;
                                space: number;
                                stats?: boolean;
                                twitter_credits?: number;
                                users: number;
                                whatsapp?: boolean;
                            };
                            actual_plan?: {
                                accounts: number;
                                ai_credits?: number;
                                artificial_inteligence?: boolean;
                                integrations: number;
                                publications: number;
                                space: number;
                                stats?: boolean;
                                twitter_credits?: number;
                                users: number;
                                whatsapp?: boolean;
                            };
                            actual_use?: {
                                accounts: number;
                                ai_credits?: number;
                                artificial_inteligence?: boolean;
                                integrations: number;
                                publications: number;
                                space: number;
                                stats?: boolean;
                                twitter_credits?: number;
                                users: number;
                                whatsapp?: boolean;
                            };
                            ai_context?: {
                                audience?: string;
                                avoid?: string;
                                blog_url?: string;
                                brand_name?: string;
                                default_tone?: string;
                                description?: string;
                                keywords?: string[];
                                notes?: string;
                                products?: string;
                                sector?: string;
                                shop_url?: string;
                                social_urls?: string[];
                                value_proposition?: string;
                                website?: string;
                            };
                            creation_date: string;
                            id_client: string;
                            name: string;
                            parent_organization?: string;
                            social_credentials?: {
                                discord?: {
                                    application_name?: (...)
                                    | (...);
                                    client_id?: (...) | (...);
                                    has_bot_token?: (...) | (...) | (...);
                                    has_client_secret?: (...) | (...) | (...);
                                    verified_date?: (...) | (...);
                                };
                            };
                            stats_settings?: { auto_refresh_twitter: boolean };
                        };
                    };
                };
                headers: { [name: string]: unknown };
            };
            "400": {
                content: {
                    "application/json": {
                        code: number;
                        data?: { [key: string]: unknown };
                        message: string;
                    };
                };
                headers: { [name: string]: unknown };
            };
            "500": { content?: undefined; headers: { [name: string]: unknown } };
        };
    };
    addPublication: {
        parameters: {
            cookie?: undefined;
            header?: undefined;
            path: { id_account: string; id_organization: string };
            query?: undefined;
        };
        requestBody: {
            content: {
                "application/json": {
                    files?: string[];
                    name?: string;
                    publication_type?: "profile"
                    | "page"
                    | "group"
                    | "reels"
                    | "stories";
                    publish_date?: string;
                    social_network?:
                        | "facebook"
                        | "instagram"
                        | "linkedin"
                        | "tiktok"
                        | "twitter"
                        | "whatsapp"
                        | "youtube"
                        | "bluesky"
                        | "discord";
                    state?: "ready"
                    | "withErrors"
                    | "sended"
                    | "draft"
                    | "publishing";
                    text?: string;
                    title?: string;
                };
            };
        };
        responses: {
            "200": {
                content: {
                    "application/json": {
                        publication: {
                            _id: string;
                            creation_date: string;
                            engagement_base?: "reach"
                            | "impressions"
                            | "followers";
                            external_identifier?: string;
                            files: {
                                _id: string;
                                cover_image?: { _id: string; cover_image?: ...; cover_offset?: number; creation_date: string; file_externals: { external_identifier: string; external_url: string; social_network: "facebook" | "instagram" | ... 7 more ... | "discord"; }[]; ... 6 more ...; public_path: string; };
                                cover_offset?: number;
                                creation_date: string;
                                file_externals: {
                                    external_identifier: string;
                                    external_url: string;
                                    social_network:
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...);
                                }[];
                                file_format: "mp4"
                                | "jpeg"
                                | "gif"
                                | "png"
                                | "jpg";
                                file_properties: {
                                    allowed_social_networks: string[];
                                    aspect_ratio: { text: string; value: number };
                                    duration: number;
                                    height: number;
                                    size_in_bytes: number;
                                    width: number;
                                };
                                file_type: "video"
                                | "image";
                                id_organization: string;
                                is_temporal: boolean;
                                name: string;
                                public_path: string;
                            }[];
                            id_account: | string
                            | {
                                _id: string;
                                creation_date: string;
                                error_code: number;
                                followers_count?: number;
                                id_client: string;
                                id_organization: string;
                                image?: string;
                                name: string;
                                next_comments_update?: string;
                                next_stats_update?: string;
                                private_message_link?: string;
                                social_network: | "facebook"
                                | "instagram"
                                | "linkedin"
                                | "tiktok"
                                | "twitter"
                                | "whatsapp"
                                | "youtube"
                                | "google_business"
                                | "bluesky"
                                | "discord";
                                username?: string;
                            };
                            id_integration?: string;
                            id_organization: string;
                            metrics?: {
                                clicks?: number;
                                comments?: number;
                                engagement?: number;
                                followers?: number;
                                followers_gained?: number;
                                impressions?: number;
                                likes?: number;
                                profile_views?: number;
                                reach?: number;
                                saves?: number;
                                shares?: number;
                                video_views?: number;
                            };
                            name?: string;
                            next_stats_update?: string;
                            publication_errors: {
                                code: number;
                                data?: { [key: string]: unknown };
                                message: string;
                            }[];
                            publication_type: | "profile"
                            | "page"
                            | "group"
                            | "reels"
                            | "stories"
                            | "message";
                            publish_date?: string;
                            retries: number;
                            social_network: | "facebook"
                            | "instagram"
                            | "linkedin"
                            | "tiktok"
                            | "twitter"
                            | "whatsapp"
                            | "youtube"
                            | "google_business"
                            | "bluesky"
                            | "discord";
                            state: "ready"
                            | "withErrors"
                            | "sended"
                            | "draft"
                            | "publishing";
                            statistics?: {
                                angers?: number;
                                bookmarks?: number;
                                clicks?: number;
                                comments?: number;
                                engagement?: number;
                                follows?: number;
                                hahas?: number;
                                impressions?: number;
                                likes?: number;
                                loves?: number;
                                negative_feedback?: number;
                                page_likes?: number;
                                playback_0_count?: number;
                                playback_100_count?: number;
                                playback_25_count?: number;
                                playback_50_count?: number;
                                playback_75_count?: number;
                                profile_activity?: number;
                                profile_visits?: number;
                                quotes?: number;
                                reach?: number;
                                replys?: number;
                                retwets?: number;
                                saved?: number;
                                share?: number;
                                shareMentions?: number;
                                shares?: number;
                                sorrys?: number;
                                url_link_clicks?: number;
                                user_profile_clicks?: number;
                                video_views?: number;
                                views?: number;
                                wows?: number;
                            };
                            stats_updated_date?: string;
                            text?: string;
                            title?: string;
                            url?: string;
                        };
                    };
                };
                headers: { [name: string]: unknown };
            };
            "400": {
                content: {
                    "application/json": {
                        code: number;
                        data?: { [key: string]: unknown };
                        message: string;
                    };
                };
                headers: { [name: string]: unknown };
            };
            "500": { content?: undefined; headers: { [name: string]: unknown } };
        };
    };
    addUpload: {
        parameters: {
            cookie?: undefined;
            header?: undefined;
            path: { id_organization: string };
            query?: undefined;
        };
        requestBody: { content: { "multipart/form-data": { file: string } } };
        responses: {
            "200": {
                content: {
                    "application/json": {
                        upload: {
                            _id: string;
                            cover_image?: { _id: string; cover_image?: ...; cover_offset?: number; creation_date: string; file_externals: { external_identifier: string; external_url: string; social_network: "facebook" | "instagram" | ... 7 more ... | "discord"; }[]; ... 6 more ...; public_path: string; };
                            cover_offset?: number;
                            creation_date: string;
                            file_externals: {
                                external_identifier: string;
                                external_url: string;
                                social_network:
                                    | "facebook"
                                    | "instagram"
                                    | "linkedin"
                                    | "tiktok"
                                    | "twitter"
                                    | "whatsapp"
                                    | "youtube"
                                    | "google_business"
                                    | "bluesky"
                                    | "discord";
                            }[];
                            file_format: "mp4"
                            | "jpeg"
                            | "gif"
                            | "png"
                            | "jpg";
                            file_properties: {
                                allowed_social_networks: string[];
                                aspect_ratio: { text: string; value: number };
                                duration: number;
                                height: number;
                                size_in_bytes: number;
                                width: number;
                            };
                            file_type: "video"
                            | "image";
                            id_organization: string;
                            is_temporal: boolean;
                            name: string;
                            public_path: string;
                        };
                    };
                };
                headers: { [name: string]: unknown };
            };
            "400": {
                content: {
                    "application/json": {
                        code: number;
                        data?: { [key: string]: unknown };
                        message: string;
                    };
                };
                headers: { [name: string]: unknown };
            };
            "500": { content?: undefined; headers: { [name: string]: unknown } };
        };
    };
    addUserRole: {
        parameters: {
            cookie?: undefined;
            header?: undefined;
            path: { id_client: string; id_rol: string; id_user: string };
            query?: undefined;
        };
        requestBody?: undefined;
        responses: {
            "200": {
                content: { "application/json": { success: boolean } };
                headers: { [name: string]: unknown };
            };
            "400": {
                content: {
                    "application/json": {
                        code: number;
                        data?: { [key: string]: unknown };
                        message: string;
                    };
                };
                headers: { [name: string]: unknown };
            };
            "500": { content?: undefined; headers: { [name: string]: unknown } };
        };
    };
    addUserToOrganizationRole: {
        parameters: {
            cookie?: undefined;
            header?: undefined;
            path: { id_organization: string; id_rol: string; id_user: string };
            query?: undefined;
        };
        requestBody?: undefined;
        responses: {
            "200": {
                content: { "application/json": { success: boolean } };
                headers: { [name: string]: unknown };
            };
            "400": {
                content: {
                    "application/json": {
                        code: number;
                        data?: { [key: string]: unknown };
                        message: string;
                    };
                };
                headers: { [name: string]: unknown };
            };
            "401": {
                content: {
                    "application/json": {
                        code: number;
                        data?: { [key: string]: unknown };
                        message: string;
                    };
                };
                headers: { [name: string]: unknown };
            };
            "500": {
                content: {
                    "application/json": {
                        code: number;
                        data?: { [key: string]: unknown };
                        message: string;
                    };
                };
                headers: { [name: string]: unknown };
            };
        };
    };
    connectAccount: {
        parameters: {
            cookie?: undefined;
            header?: undefined;
            path: {
                id_organization: string;
                social_network: | "facebook"
                | "instagram"
                | "linkedin"
                | "tiktok"
                | "twitter"
                | "whatsapp"
                | "youtube"
                | "google_business"
                | "bluesky"
                | "discord";
            };
            query?: undefined;
        };
        requestBody?: undefined;
        responses: {
            "200": {
                content: {
                    "application/json": {
                        accounts?: {
                            _id: string;
                            creation_date: string;
                            error_code: number;
                            followers_count?: number;
                            id_client: string;
                            id_organization: string;
                            image?: string;
                            name: string;
                            next_comments_update?: string;
                            next_stats_update?: string;
                            private_message_link?: string;
                            social_network: | "facebook"
                            | "instagram"
                            | "linkedin"
                            | "tiktok"
                            | "twitter"
                            | "whatsapp"
                            | "youtube"
                            | "google_business"
                            | "bluesky"
                            | "discord";
                            username?: string;
                        }[];
                        errorCode?: string;
                        errorMsg?: string;
                        redirect_uri?: string;
                    };
                };
                headers: { [name: string]: unknown };
            };
            "400": {
                content: {
                    "application/json": {
                        code: number;
                        data?: { [key: string]: unknown };
                        message: string;
                    };
                };
                headers: { [name: string]: unknown };
            };
            "500": { content?: undefined; headers: { [name: string]: unknown } };
        };
    };
    createClientApp: {
        parameters: {
            cookie?: undefined;
            header?: undefined;
            path: { id_client: string };
            query?: undefined;
        };
        requestBody: {
            content: {
                "application/json": {
                    allowed_domains?: string[];
                    keycloak_client_idenfifier: string;
                    name: string;
                    redirect_urls?: string[];
                    webhook_url?: string;
                };
            };
        };
        responses: {
            "200": {
                content: {
                    "application/json": {
                        client_app: {
                            _id: string;
                            allowed_domains: string[];
                            creation_date: string;
                            deleted: boolean;
                            deleted_date?: string;
                            id_client: string;
                            id_user?: string;
                            keycloak_client_idenfifier: string;
                            name: string;
                            redirect_urls: string[];
                            webhook_url?: string;
                        };
                    };
                };
                headers: { [name: string]: unknown };
            };
            "400": {
                content: {
                    "application/json": {
                        code: number;
                        data?: { [key: string]: unknown };
                        message: string;
                    };
                };
                headers: { [name: string]: unknown };
            };
        };
    };
    createClientRole: {
        parameters: {
            cookie?: undefined;
            header?: undefined;
            path: { id_client: string };
            query?: undefined;
        };
        requestBody: {
            content: {
                "application/json": {
                    name: string;
                    permissions: (
                        | "client:update"
                        | "client:read"
                        | "client:delete"
                        | "client_app:create"
                        | "client_app:update"
                        | "client_app:read"
                        | "client_app:delete"
                        | "client_roles:create"
                        | "client_roles:update"
                        | "client_roles:read"
                        | "client_roles:delete"
                        | "client_roles_users:read"
                        | "client_roles_users:create"
                        | "client_roles_users:delete"
                        | "client_organization:create"
                        | "client_organization:update"
                        | "client_organization:read"
                        | "client_organization:delete"
                        | "client_organization_roles:read"
                        | "client_organization_roles:create"
                        | "client_organization_roles:update"
                        | "client_organization_roles:delete"
                        | "client_organization_users_roles:read"
                        | "client_organization_users_roles:create"
                        | "client_organization_users_roles:delete"
                        | "client_organization_accounts:read"
                        | "client_organization_accounts:create"
                        | "client_organization_accounts:update"
                        | "client_organization_accounts:delete"
                        | "client_organization_files:read"
                        | "client_organization_files:create"
                        | "client_organization_files:update"
                        | "client_organization_files:delete"
                        | "client_organization_publications:read"
                        | "client_organization_publications:create"
                        | "client_organization_publications:update"
                        | "client_organization_publications:delete"
                        | "client_organization_publications_stats:read"
                        | "client_organization_account_stats:read"
                        | "client_organization_products:create"
                        | "client_organization_products:update"
                        | "client_organization_products:read"
                        | "client_organization_products:delete"
                        | "client_organization_messages:create"
                        | "client_organization_messages:read"
                        | "client_organization_messages:delete"
                        | "client_organization_contacts:create"
                        | "client_organization_contacts:read"
                        | "client_organization_contacts:update"
                        | "client_organization_contacts:delete"
                        | "client_organization_ai_plans:create"
                        | "client_organization_ai_plans:read"
                        | "client_organization_ai_plans:update"
                        | "client_organization_ai_plans:delete"
                    )[];
                };
            };
        };
        responses: {
            "200": {
                content: {
                    "application/json": {
                        rol?: {
                            name?: string;
                            permissions?: (
                                | "client:update"
                                | "client:read"
                                | "client:delete"
                                | "client_app:create"
                                | "client_app:update"
                                | "client_app:read"
                                | "client_app:delete"
                                | "client_roles:create"
                                | "client_roles:update"
                                | "client_roles:read"
                                | "client_roles:delete"
                                | "client_roles_users:read"
                                | "client_roles_users:create"
                                | "client_roles_users:delete"
                                | "client_organization:create"
                                | "client_organization:update"
                                | "client_organization:read"
                                | "client_organization:delete"
                                | "client_organization_roles:read"
                                | "client_organization_roles:create"
                                | "client_organization_roles:update"
                                | "client_organization_roles:delete"
                                | "client_organization_users_roles:read"
                                | "client_organization_users_roles:create"
                                | "client_organization_users_roles:delete"
                                | "client_organization_accounts:read"
                                | "client_organization_accounts:create"
                                | "client_organization_accounts:update"
                                | "client_organization_accounts:delete"
                                | "client_organization_files:read"
                                | "client_organization_files:create"
                                | "client_organization_files:update"
                                | "client_organization_files:delete"
                                | "client_organization_publications:read"
                                | "client_organization_publications:create"
                                | "client_organization_publications:update"
                                | "client_organization_publications:delete"
                                | "client_organization_publications_stats:read"
                                | "client_organization_account_stats:read"
                            )[];
                        };
                    };
                };
                headers: { [name: string]: unknown };
            };
            "400": {
                content: {
                    "application/json": {
                        code: number;
                        data?: { [key: string]: unknown };
                        message: string;
                    };
                };
                headers: { [name: string]: unknown };
            };
            "500": { content?: undefined; headers: { [name: string]: unknown } };
        };
    };
    createContact: {
        parameters: {
            cookie?: undefined;
            header?: undefined;
            path: { id_organization: string };
            query?: undefined;
        };
        requestBody: {
            content: {
                "application/json": {
                    extra_data?: {
                        address?: string;
                        boolean_property?: boolean;
                        boolean_property2?: boolean;
                        building?: string
                        | number;
                        city?: string;
                        coords?: number[];
                        country?: string;
                        country_code?: string;
                        door?: string | number;
                        floor?: string | number;
                        number?: string | number;
                        number_property?: number;
                        number_property2?: number;
                        place_id?: string;
                        state?: string;
                        string_property?: string;
                        string_property2?: string;
                        zip_code?: string | number;
                    };
                    name?: string;
                    profile_image?: string;
                    social_identifiers: {
                        _id?: string;
                        external_identifier?: string;
                        social_network: | "facebook"
                        | "instagram"
                        | "linkedin"
                        | "tiktok"
                        | "twitter"
                        | "whatsapp"
                        | "youtube"
                        | "google_business"
                        | "bluesky"
                        | "discord"
                        | "email";
                    }[];
                };
            };
        };
        responses: {
            "200": {
                content: {
                    "application/json": {
                        contact: {
                            _id: string;
                            creation_date: string;
                            creator_keycloak_identifier?: string;
                            extra_data?: {
                                address?: string;
                                boolean_property?: boolean;
                                boolean_property2?: boolean;
                                building?: string
                                | number;
                                city?: string;
                                coords?: number[];
                                country?: string;
                                country_code?: string;
                                door?: string | number;
                                floor?: string | number;
                                number?: string | number;
                                number_property?: number;
                                number_property2?: number;
                                place_id?: string;
                                state?: string;
                                string_property?: string;
                                string_property2?: string;
                                zip_code?: string | number;
                            };
                            id_organization: string;
                            last_contact_update: string;
                            name?: string;
                            profile_image?: string;
                            social_identifiers: {
                                _id: string;
                                external_identifier?: string;
                                last_send_date?: string;
                                social_network: | "facebook"
                                | "instagram"
                                | "linkedin"
                                | "tiktok"
                                | "twitter"
                                | "whatsapp"
                                | "youtube"
                                | "google_business"
                                | "bluesky"
                                | "discord"
                                | "email";
                            }[];
                        };
                    };
                };
                headers: { [name: string]: unknown };
            };
            "400": {
                content: {
                    "application/json": {
                        code: number;
                        data?: { [key: string]: unknown };
                        message: string;
                    };
                };
                headers: { [name: string]: unknown };
            };
        };
    };
    createMessage: {
        parameters: {
            cookie?: undefined;
            header?: undefined;
            path: { id_account: string; id_contact: string; id_organization: string };
            query?: undefined;
        };
        requestBody: {
            content: {
                "application/json": {
                    message_options?: {
                        files: (
                            | string
                            | {
                                _id: string;
                                cover_image?: { _id: string; cover_image?: ...; cover_offset?: number; creation_date: string; file_externals: { external_identifier: string; external_url: string; social_network: "facebook" | "instagram" | ... 7 more ... | "discord"; }[]; ... 6 more ...; public_path: string; };
                                cover_offset?: number;
                                creation_date: string;
                                file_externals: {
                                    external_identifier: ...;
                                    external_url: ...;
                                    social_network: ...;
                                }[];
                                file_format: "mp4"
                                | "jpeg"
                                | "gif"
                                | "png"
                                | "jpg";
                                file_properties: {
                                    allowed_social_networks: (...)[];
                                    aspect_ratio: { text: ...; value: ... };
                                    duration: number;
                                    height: number;
                                    size_in_bytes: number;
                                    width: number;
                                };
                                file_type: "video"
                                | "image";
                                id_organization: string;
                                is_temporal: boolean;
                                name: string;
                                public_path: string;
                            }
                        )[];
                        files_urls: { mime_type?: string; url?: string }[];
                        metaElements?: { [key: string]: unknown }[];
                        metaQuickReplies?: { [key: string]: unknown }[];
                        payload?: string;
                        template_language?: string;
                        template_name?: string;
                        whatsappInteractive?: { [key: string]: unknown };
                    };
                    message_type: | "simple_message"
                    | "file_message"
                    | "comment_message"
                    | "publication_message"
                    | "quick_reply_message"
                    | "button_message"
                    | "elements_message"
                    | "postback_message"
                    | "template_message"
                    | "interactive_message";
                    text?: string;
                };
            };
        };
        responses: {
            "200": {
                content: {
                    "application/json": {
                        message: {
                            _id: string;
                            contact_id?: | string
                            | {
                                _id: string;
                                creation_date: string;
                                creator_keycloak_identifier?: string;
                                extra_data?: {
                                    address?: (...)
                                    | (...);
                                    boolean_property?: (...) | (...) | (...);
                                    boolean_property2?: (...) | (...) | (...);
                                    building?: (...) | (...) | (...);
                                    city?: (...) | (...);
                                    coords?: (...) | (...);
                                    country?: (...) | (...);
                                    country_code?: (...) | (...);
                                    door?: (...) | (...) | (...);
                                    floor?: (...) | (...) | (...);
                                    number?: (...) | (...) | (...);
                                    number_property?: (...) | (...);
                                    number_property2?: (...) | (...);
                                    place_id?: (...) | (...);
                                    state?: (...) | (...);
                                    string_property?: (...) | (...);
                                    string_property2?: (...) | (...);
                                    zip_code?: (...) | (...) | (...);
                                };
                                id_organization: string;
                                last_contact_update: string;
                                name?: string;
                                profile_image?: string;
                                social_identifiers: {
                                    _id: string;
                                    external_identifier?: (...)
                                    | (...);
                                    last_send_date?: (...) | (...);
                                    social_network:
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...);
                                }[];
                            };
                            creation_date: string;
                            element_external_id?: string;
                            from_contact_id?: | string
                            | {
                                _id: string;
                                creation_date: string;
                                creator_keycloak_identifier?: string;
                                extra_data?: {
                                    address?: (...)
                                    | (...);
                                    boolean_property?: (...) | (...) | (...);
                                    boolean_property2?: (...) | (...) | (...);
                                    building?: (...) | (...) | (...);
                                    city?: (...) | (...);
                                    coords?: (...) | (...);
                                    country?: (...) | (...);
                                    country_code?: (...) | (...);
                                    door?: (...) | (...) | (...);
                                    floor?: (...) | (...) | (...);
                                    number?: (...) | (...) | (...);
                                    number_property?: (...) | (...);
                                    number_property2?: (...) | (...);
                                    place_id?: (...) | (...);
                                    state?: (...) | (...);
                                    string_property?: (...) | (...);
                                    string_property2?: (...) | (...);
                                    zip_code?: (...) | (...) | (...);
                                };
                                id_organization: string;
                                last_contact_update: string;
                                name?: string;
                                profile_image?: string;
                                social_identifiers: {
                                    _id: string;
                                    external_identifier?: (...)
                                    | (...);
                                    last_send_date?: (...) | (...);
                                    social_network:
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...);
                                }[];
                            };
                            id_account: string;
                            in_response_external_id?: string;
                            in_response_to?: string;
                            message_errors: {
                                code: number;
                                data?: { [key: string]: unknown };
                                message: string;
                            }[];
                            message_options: {
                                files: (
                                    | string
                                    | {
                                        _id: string;
                                        cover_image?: (...)
                                        | (...);
                                        cover_offset?: (...) | (...);
                                        creation_date: string;
                                        file_externals: (...)[];
                                        file_format: (...) | (...) | (...) | (...) | (...);
                                        file_properties: {
                                            allowed_social_networks: ...;
                                            aspect_ratio: ...;
                                            duration: ...;
                                            height: ...;
                                            size_in_bytes: ...;
                                            width: ...;
                                        };
                                        file_type: (...)
                                        | (...);
                                        id_organization: string;
                                        is_temporal: boolean;
                                        name: string;
                                        public_path: string;
                                    }
                                )[];
                                files_urls: { mime_type?: string; url?: string }[];
                                metaElements?: { [key: string]: unknown }[];
                                metaQuickReplies?: { [key: string]: unknown }[];
                                payload?: string;
                                template_language?: string;
                                template_name?: string;
                                whatsappInteractive?: { [key: string]: unknown };
                            };
                            message_type: | "simple_message"
                            | "file_message"
                            | "comment_message"
                            | "publication_message"
                            | "quick_reply_message"
                            | "button_message"
                            | "elements_message"
                            | "postback_message"
                            | "template_message"
                            | "interactive_message";
                            read: boolean;
                            text?: string;
                        };
                    };
                };
                headers: { [name: string]: unknown };
            };
            "400": {
                content: {
                    "application/json": {
                        code: number;
                        data?: { [key: string]: unknown };
                        message: string;
                    };
                };
                headers: { [name: string]: unknown };
            };
        };
    };
    createMessageTemplate: {
        parameters: {
            cookie?: undefined;
            header?: undefined;
            path: { id_account: string; id_organization: string };
            query?: undefined;
        };
        requestBody: {
            content: { "application/json": { [key: string]: unknown } };
        };
        responses: {
            "200": {
                content: {
                    "application/json": { template: { [key: string]: unknown } };
                };
                headers: { [name: string]: unknown };
            };
            "400": {
                content: {
                    "application/json": {
                        code: number;
                        data?: { [key: string]: unknown };
                        message: string;
                    };
                };
                headers: { [name: string]: unknown };
            };
        };
    };
    createOrganizationInsideOrganization: {
        parameters: {
            cookie?: undefined;
            header?: undefined;
            path: { id_organization: string };
            query?: undefined;
        };
        requestBody: {
            content: {
                "application/json": {
                    actual_plan?: {
                        accounts: number;
                        ai_credits?: number;
                        artificial_inteligence?: boolean;
                        integrations: number;
                        publications: number;
                        space: number;
                        stats?: boolean;
                        twitter_credits?: number;
                        users: number;
                        whatsapp?: boolean;
                    };
                    name: string;
                };
            };
        };
        responses: {
            "200": {
                content: {
                    "application/json": {
                        organization: {
                            _id: string;
                            actual_asigned?: {
                                accounts: number;
                                ai_credits?: number;
                                artificial_inteligence?: boolean;
                                integrations: number;
                                publications: number;
                                space: number;
                                stats?: boolean;
                                twitter_credits?: number;
                                users: number;
                                whatsapp?: boolean;
                            };
                            actual_plan?: {
                                accounts: number;
                                ai_credits?: number;
                                artificial_inteligence?: boolean;
                                integrations: number;
                                publications: number;
                                space: number;
                                stats?: boolean;
                                twitter_credits?: number;
                                users: number;
                                whatsapp?: boolean;
                            };
                            actual_use?: {
                                accounts: number;
                                ai_credits?: number;
                                artificial_inteligence?: boolean;
                                integrations: number;
                                publications: number;
                                space: number;
                                stats?: boolean;
                                twitter_credits?: number;
                                users: number;
                                whatsapp?: boolean;
                            };
                            ai_context?: {
                                audience?: string;
                                avoid?: string;
                                blog_url?: string;
                                brand_name?: string;
                                default_tone?: string;
                                description?: string;
                                keywords?: string[];
                                notes?: string;
                                products?: string;
                                sector?: string;
                                shop_url?: string;
                                social_urls?: string[];
                                value_proposition?: string;
                                website?: string;
                            };
                            creation_date: string;
                            id_client: string;
                            name: string;
                            parent_organization?: string;
                            social_credentials?: {
                                discord?: {
                                    application_name?: (...)
                                    | (...);
                                    client_id?: (...) | (...);
                                    has_bot_token?: (...) | (...) | (...);
                                    has_client_secret?: (...) | (...) | (...);
                                    verified_date?: (...) | (...);
                                };
                            };
                            stats_settings?: { auto_refresh_twitter: boolean };
                        };
                    };
                };
                headers: { [name: string]: unknown };
            };
            "400": {
                content: {
                    "application/json": {
                        code: number;
                        data?: { [key: string]: unknown };
                        message: string;
                    };
                };
                headers: { [name: string]: unknown };
            };
            "500": { content?: undefined; headers: { [name: string]: unknown } };
        };
    };
    createOrganizationRole: {
        parameters: {
            cookie?: undefined;
            header?: undefined;
            path: { id_organization: string };
            query?: undefined;
        };
        requestBody: {
            content: {
                "application/json": {
                    name: string;
                    permissions: (
                        | "organization:create"
                        | "organization:update"
                        | "organization:read"
                        | "organization:delete"
                        | "organization_roles:create"
                        | "organization_roles:update"
                        | "organization_roles:read"
                        | "organization_roles:delete"
                        | "organization_users_roles:read"
                        | "organization_users_roles:create"
                        | "organization_users_roles:delete"
                        | "accounts:create"
                        | "accounts:update"
                        | "accounts:read"
                        | "accounts:delete"
                        | "products:create"
                        | "products:update"
                        | "products:read"
                        | "products:delete"
                        | "files:create"
                        | "files:update"
                        | "files:read"
                        | "files:delete"
                        | "publications:create"
                        | "publications:update"
                        | "publications:read"
                        | "publications:delete"
                        | "account_stats:read"
                        | "publication_stats:read"
                        | "messages:create"
                        | "messages:read"
                        | "messages:delete"
                        | "contacts:create"
                        | "contacts:read"
                        | "contacts:update"
                        | "contacts:delete"
                        | "ai_plans:create"
                        | "ai_plans:read"
                        | "ai_plans:update"
                        | "ai_plans:delete"
                    )[];
                };
            };
        };
        responses: {
            "200": {
                content: {
                    "application/json": {
                        rol?: {
                            _id?: string;
                            creation_date?: string;
                            default?: boolean;
                            id_organization?: string;
                            name?: string;
                            permissions?: (
                                | "organization:create"
                                | "organization:update"
                                | "organization:read"
                                | "organization:delete"
                                | "organization_roles:create"
                                | "organization_roles:update"
                                | "organization_roles:read"
                                | "organization_roles:delete"
                                | "organization_users_roles:read"
                                | "organization_users_roles:create"
                                | "organization_users_roles:delete"
                                | "accounts:create"
                                | "accounts:update"
                                | "accounts:read"
                                | "accounts:delete"
                                | "products:create"
                                | "products:update"
                                | "products:read"
                                | "products:delete"
                                | "files:create"
                                | "files:update"
                                | "files:read"
                                | "files:delete"
                                | "publications:create"
                                | "publications:update"
                                | "publications:read"
                                | "publications:delete"
                                | "account_stats:read"
                                | "publication_stats:read"
                                | "messages:create"
                                | "messages:read"
                                | "messages:delete"
                                | "contacts:create"
                                | "contacts:read"
                                | "contacts:update"
                                | "contacts:delete"
                                | "ai_plans:create"
                                | "ai_plans:read"
                                | "ai_plans:update"
                                | "ai_plans:delete"
                            )[];
                            total_users?: number;
                        };
                    };
                };
                headers: { [name: string]: unknown };
            };
            "400": {
                content: {
                    "application/json": {
                        code: number;
                        data?: { [key: string]: unknown };
                        message: string;
                    };
                };
                headers: { [name: string]: unknown };
            };
            "401": {
                content: {
                    "application/json": {
                        code: number;
                        data?: { [key: string]: unknown };
                        message: string;
                    };
                };
                headers: { [name: string]: unknown };
            };
            "500": {
                content: {
                    "application/json": {
                        code: number;
                        data?: { [key: string]: unknown };
                        message: string;
                    };
                };
                headers: { [name: string]: unknown };
            };
        };
    };
    createProduct: {
        parameters: {
            cookie?: undefined;
            header?: undefined;
            path: { id_account: string; id_organization: string };
            query?: { product_catalog_id?: string };
        };
        requestBody: {
            content: {
                "application/json": {
                    additional_image_urls?: string[];
                    availability?: | "pending"
                    | "in stock"
                    | "out of stock"
                    | "preorder"
                    | "available for order"
                    | "discontinued"
                    | "mark_as_sold";
                    brand?: string;
                    category?: string;
                    color?: string;
                    condition?: | "new"
                    | "refurbished"
                    | "used"
                    | "used_like_new"
                    | "used_good"
                    | "used_fair"
                    | "cpo"
                    | "open_box_new";
                    currency: string;
                    description?: string;
                    id?: string;
                    image_url: string;
                    name: string;
                    price: number;
                    retailer_id: string;
                    url?: string;
                } & { [key: string]: unknown };
            };
        };
        responses: {
            "200": {
                content: { "application/json": { product_id: string } };
                headers: { [name: string]: unknown };
            };
            "400": {
                content: {
                    "application/json": {
                        code: number;
                        data?: { [key: string]: unknown };
                        message: string;
                    };
                };
                headers: { [name: string]: unknown };
            };
        };
    };
    createProductCatalog: {
        parameters: {
            cookie?: undefined;
            header?: undefined;
            path: { id_account: string; id_organization: string };
            query?: undefined;
        };
        requestBody: { content: { "application/json": { name: string } } };
        responses: {
            "200": {
                content: { "application/json": { product_catalog: string } };
                headers: { [name: string]: unknown };
            };
            "400": {
                content: {
                    "application/json": {
                        code: number;
                        data?: { [key: string]: unknown };
                        message: string;
                    };
                };
                headers: { [name: string]: unknown };
            };
        };
    };
    createTemporalConnectToken: {
        parameters: {
            cookie?: undefined;
            header?: undefined;
            path: { id_organization: string };
            query?: {
                redirect_uri?: string;
                social_network?:
                    | "facebook"
                    | "instagram"
                    | "linkedin"
                    | "tiktok"
                    | "twitter"
                    | "whatsapp"
                    | "youtube"
                    | "google_business"
                    | "bluesky"
                    | "discord";
            };
        };
        requestBody?: undefined;
        responses: {
            "200": {
                content: {
                    "application/json": {
                        expires_at: string;
                        token: string;
                        url: string;
                    };
                };
                headers: { [name: string]: unknown };
            };
            "400": {
                content: {
                    "application/json": {
                        code: number;
                        data?: { [key: string]: unknown };
                        message: string;
                    };
                };
                headers: { [name: string]: unknown };
            };
            "500": { content?: undefined; headers: { [name: string]: unknown } };
        };
    };
    deleteAccount: {
        parameters: {
            cookie?: undefined;
            header?: undefined;
            path: { id_account: string; id_organization: string };
            query?: undefined;
        };
        requestBody?: undefined;
        responses: {
            "200": {
                content: { "application/json": { success: boolean } };
                headers: { [name: string]: unknown };
            };
            "400": {
                content: {
                    "application/json": {
                        code: number;
                        data?: { [key: string]: unknown };
                        message: string;
                    };
                };
                headers: { [name: string]: unknown };
            };
            "500": { content?: undefined; headers: { [name: string]: unknown } };
        };
    };
    deleteAiPlan: {
        parameters: {
            cookie?: undefined;
            header?: undefined;
            path: { id_ai_plan: string; id_client: string; id_organization: string };
            query?: undefined;
        };
        requestBody?: undefined;
        responses: {
            "200": {
                content: { "application/json": { success: boolean } };
                headers: { [name: string]: unknown };
            };
            "400": {
                content: {
                    "application/json": {
                        code: number;
                        data?: { [key: string]: unknown };
                        message: string;
                    };
                };
                headers: { [name: string]: unknown };
            };
            "500": { content?: undefined; headers: { [name: string]: unknown } };
        };
    };
    deleteChildOrganization: {
        parameters: {
            cookie?: undefined;
            header?: undefined;
            path: { id_organization: string };
            query?: undefined;
        };
        requestBody?: undefined;
        responses: {
            "200": {
                content: { "application/json": { success: boolean } };
                headers: { [name: string]: unknown };
            };
            "400": {
                content: {
                    "application/json": {
                        code: number;
                        data?: { [key: string]: unknown };
                        message: string;
                    };
                };
                headers: { [name: string]: unknown };
            };
            "500": { content?: undefined; headers: { [name: string]: unknown } };
        };
    };
    deleteClientApp: {
        parameters: {
            cookie?: undefined;
            header?: undefined;
            path: { id_app: string; id_client: string };
            query?: undefined;
        };
        requestBody?: undefined;
        responses: {
            "200": {
                content: { "application/json": { success: boolean } };
                headers: { [name: string]: unknown };
            };
            "400": {
                content: {
                    "application/json": {
                        code: number;
                        data?: { [key: string]: unknown };
                        message: string;
                    };
                };
                headers: { [name: string]: unknown };
            };
        };
    };
    deleteClientOrganization: {
        parameters: {
            cookie?: undefined;
            header?: undefined;
            path: { id_client: string; id_organization: string };
            query?: undefined;
        };
        requestBody?: undefined;
        responses: {
            "200": {
                content: { "application/json": { success: boolean } };
                headers: { [name: string]: unknown };
            };
            "400": {
                content: {
                    "application/json": {
                        code: number;
                        data?: { [key: string]: unknown };
                        message: string;
                    };
                };
                headers: { [name: string]: unknown };
            };
            "500": { content?: undefined; headers: { [name: string]: unknown } };
        };
    };
    deleteComment: {
        parameters: {
            cookie?: undefined;
            header?: undefined;
            path: { id_comment: string; id_organization: string };
            query?: undefined;
        };
        requestBody?: undefined;
        responses: {
            "200": {
                content: { "application/json": { success: boolean } };
                headers: { [name: string]: unknown };
            };
            "400": {
                content: {
                    "application/json": {
                        code: number;
                        data?: { [key: string]: unknown };
                        message: string;
                    };
                };
                headers: { [name: string]: unknown };
            };
        };
    };
    deleteContact: {
        parameters: {
            cookie?: undefined;
            header?: undefined;
            path: { id_contact: string; id_organization: string };
            query?: undefined;
        };
        requestBody?: undefined;
        responses: {
            "200": {
                content: { "application/json": { success: boolean } };
                headers: { [name: string]: unknown };
            };
            "400": {
                content: {
                    "application/json": {
                        code: number;
                        data?: { [key: string]: unknown };
                        message: string;
                    };
                };
                headers: { [name: string]: unknown };
            };
        };
    };
    deleteIntegration: {
        parameters: {
            cookie?: undefined;
            header?: undefined;
            path: { id_integration: string; id_organization: string };
            query?: undefined;
        };
        requestBody?: undefined;
        responses: {
            "200": {
                content: { "application/json": { success: boolean } };
                headers: { [name: string]: unknown };
            };
            "400": {
                content: {
                    "application/json": {
                        code: number;
                        data?: { [key: string]: unknown };
                        message: string;
                    };
                };
                headers: { [name: string]: unknown };
            };
        };
    };
    deleteMessagesByAccount: {
        parameters: {
            cookie?: undefined;
            header?: undefined;
            path: { id_account: string; id_organization: string };
            query?: undefined;
        };
        requestBody?: undefined;
        responses: {
            "200": {
                content: { "application/json": { success: boolean } };
                headers: { [name: string]: unknown };
            };
            "400": {
                content: {
                    "application/json": {
                        code: number;
                        data?: { [key: string]: unknown };
                        message: string;
                    };
                };
                headers: { [name: string]: unknown };
            };
        };
    };
    deleteMessageTemplate: {
        parameters: {
            cookie?: undefined;
            header?: undefined;
            path: { id_account: string; id_organization: string };
            query?: { template_id?: string; template_name?: string };
        };
        requestBody?: undefined;
        responses: {
            "200": {
                content: { "application/json": { success: boolean } };
                headers: { [name: string]: unknown };
            };
            "400": {
                content: {
                    "application/json": {
                        code: number;
                        data?: { [key: string]: unknown };
                        message: string;
                    };
                };
                headers: { [name: string]: unknown };
            };
        };
    };
    deleteOrganizationContacts: {
        parameters: {
            cookie?: undefined;
            header?: undefined;
            path: { id_organization: string };
            query?: undefined;
        };
        requestBody?: undefined;
        responses: {
            "200": {
                content: { "application/json": { success: boolean } };
                headers: { [name: string]: unknown };
            };
            "400": {
                content: {
                    "application/json": {
                        code: number;
                        data?: { [key: string]: unknown };
                        message: string;
                    };
                };
                headers: { [name: string]: unknown };
            };
        };
    };
    deleteOrganizationRole: {
        parameters: {
            cookie?: undefined;
            header?: undefined;
            path: { id_organization: string; id_rol: string };
            query?: undefined;
        };
        requestBody?: undefined;
        responses: {
            "200": {
                content: { "application/json": { success: boolean } };
                headers: { [name: string]: unknown };
            };
            "400": {
                content: {
                    "application/json": {
                        code: number;
                        data?: { [key: string]: unknown };
                        message: string;
                    };
                };
                headers: { [name: string]: unknown };
            };
            "401": {
                content: {
                    "application/json": {
                        code: number;
                        data?: { [key: string]: unknown };
                        message: string;
                    };
                };
                headers: { [name: string]: unknown };
            };
            "500": {
                content: {
                    "application/json": {
                        code: number;
                        data?: { [key: string]: unknown };
                        message: string;
                    };
                };
                headers: { [name: string]: unknown };
            };
        };
    };
    deleteOrganizationSocialCredentials: {
        parameters: {
            cookie?: undefined;
            header?: undefined;
            path: { id_organization: string; social_network: "discord" };
            query?: undefined;
        };
        requestBody?: undefined;
        responses: {
            "200": {
                content: {
                    "application/json": {
                        organization: {
                            _id: string;
                            actual_asigned?: {
                                accounts: number;
                                ai_credits?: number;
                                artificial_inteligence?: boolean;
                                integrations: number;
                                publications: number;
                                space: number;
                                stats?: boolean;
                                twitter_credits?: number;
                                users: number;
                                whatsapp?: boolean;
                            };
                            actual_plan?: {
                                accounts: number;
                                ai_credits?: number;
                                artificial_inteligence?: boolean;
                                integrations: number;
                                publications: number;
                                space: number;
                                stats?: boolean;
                                twitter_credits?: number;
                                users: number;
                                whatsapp?: boolean;
                            };
                            actual_use?: {
                                accounts: number;
                                ai_credits?: number;
                                artificial_inteligence?: boolean;
                                integrations: number;
                                publications: number;
                                space: number;
                                stats?: boolean;
                                twitter_credits?: number;
                                users: number;
                                whatsapp?: boolean;
                            };
                            ai_context?: {
                                audience?: string;
                                avoid?: string;
                                blog_url?: string;
                                brand_name?: string;
                                default_tone?: string;
                                description?: string;
                                keywords?: string[];
                                notes?: string;
                                products?: string;
                                sector?: string;
                                shop_url?: string;
                                social_urls?: string[];
                                value_proposition?: string;
                                website?: string;
                            };
                            creation_date: string;
                            id_client: string;
                            name: string;
                            parent_organization?: string;
                            social_credentials?: {
                                discord?: {
                                    application_name?: (...)
                                    | (...);
                                    client_id?: (...) | (...);
                                    has_bot_token?: (...) | (...) | (...);
                                    has_client_secret?: (...) | (...) | (...);
                                    verified_date?: (...) | (...);
                                };
                            };
                            stats_settings?: { auto_refresh_twitter: boolean };
                        };
                    };
                };
                headers: { [name: string]: unknown };
            };
            "400": {
                content: {
                    "application/json": {
                        code: number;
                        data?: { [key: string]: unknown };
                        message: string;
                    };
                };
                headers: { [name: string]: unknown };
            };
            "500": { content?: undefined; headers: { [name: string]: unknown } };
        };
    };
    deletePublication: {
        parameters: {
            cookie?: undefined;
            header?: undefined;
            path: { id_organization: string; id_publication: string };
            query?: undefined;
        };
        requestBody?: undefined;
        responses: {
            "200": {
                content: { "application/json": { success: boolean } };
                headers: { [name: string]: unknown };
            };
            "400": {
                content: {
                    "application/json": {
                        code: number;
                        data?: { [key: string]: unknown };
                        message: string;
                    };
                };
                headers: { [name: string]: unknown };
            };
            "500": { content?: undefined; headers: { [name: string]: unknown } };
        };
    };
    deleteRole: {
        parameters: {
            cookie?: undefined;
            header?: undefined;
            path: { id_client: string; id_rol: string };
            query?: undefined;
        };
        requestBody?: undefined;
        responses: {
            "200": {
                content: { "application/json": { success: boolean } };
                headers: { [name: string]: unknown };
            };
            "400": {
                content: {
                    "application/json": {
                        code: number;
                        data?: { [key: string]: unknown };
                        message: string;
                    };
                };
                headers: { [name: string]: unknown };
            };
            "500": { content?: undefined; headers: { [name: string]: unknown } };
        };
    };
    deleteUpload: {
        parameters: {
            cookie?: undefined;
            header?: undefined;
            path: { id_organization: string; id_upload: string };
            query?: { forceDelete?: boolean };
        };
        requestBody?: undefined;
        responses: {
            "200": {
                content: { "application/json": { success: boolean } };
                headers: { [name: string]: unknown };
            };
            "400": {
                content: {
                    "application/json": {
                        code: number;
                        data?: { [key: string]: unknown };
                        message: string;
                    };
                };
                headers: { [name: string]: unknown };
            };
            "500": { content?: undefined; headers: { [name: string]: unknown } };
        };
    };
    enableAccount: {
        parameters: {
            cookie?: undefined;
            header?: undefined;
            path: { id_account: string; id_organization: string };
            query?: undefined;
        };
        requestBody?: undefined;
        responses: {
            "200": {
                content: {
                    "application/json": { redirect_uri?: string; success?: boolean };
                };
                headers: { [name: string]: unknown };
            };
            "400": {
                content: {
                    "application/json": {
                        code: number;
                        data?: { [key: string]: unknown };
                        message: string;
                    };
                };
                headers: { [name: string]: unknown };
            };
            "500": { content?: undefined; headers: { [name: string]: unknown } };
        };
    };
    getAccount: {
        parameters: {
            cookie?: undefined;
            header?: undefined;
            path: { id_account: string; id_organization: string };
            query?: undefined;
        };
        requestBody?: undefined;
        responses: {
            "200": {
                content: {
                    "application/json": {
                        account: {
                            _id: string;
                            creation_date: string;
                            error_code: number;
                            followers_count?: number;
                            id_client: string;
                            id_organization: string;
                            image?: string;
                            name: string;
                            next_comments_update?: string;
                            next_stats_update?: string;
                            private_message_link?: string;
                            social_network: | "facebook"
                            | "instagram"
                            | "linkedin"
                            | "tiktok"
                            | "twitter"
                            | "whatsapp"
                            | "youtube"
                            | "google_business"
                            | "bluesky"
                            | "discord";
                            username?: string;
                        };
                    };
                };
                headers: { [name: string]: unknown };
            };
            "400": {
                content: {
                    "application/json": {
                        code: number;
                        data?: { [key: string]: unknown };
                        message: string;
                    };
                };
                headers: { [name: string]: unknown };
            };
            "500": { content?: undefined; headers: { [name: string]: unknown } };
        };
    };
    getAccountComments: {
        parameters: {
            cookie?: undefined;
            header?: undefined;
            path: { id_account: string; id_organization: string };
            query?: { limit?: number; offset?: string };
        };
        requestBody?: undefined;
        responses: {
            "200": {
                content: {
                    "application/json": {
                        comments: {
                            _id: string;
                            author: {
                                external_id: string;
                                is_own: boolean;
                                name?: string;
                                profile_pic?: string;
                            };
                            collected_date: string;
                            creation_date: string;
                            deleted: boolean;
                            external_id: string;
                            hidden: boolean;
                            id_account: | string
                            | {
                                _id: string;
                                creation_date: string;
                                error_code: number;
                                followers_count?: number;
                                id_client: string;
                                id_organization: string;
                                image?: string;
                                name: string;
                                next_comments_update?: string;
                                next_stats_update?: string;
                                private_message_link?: string;
                                social_network: | "facebook"
                                | "instagram"
                                | "linkedin"
                                | "tiktok"
                                | "twitter"
                                | "whatsapp"
                                | "youtube"
                                | "google_business"
                                | "bluesky"
                                | "discord";
                                username?: string;
                            };
                            id_organization: string;
                            id_publication?: | string
                            | {
                                _id: string;
                                creation_date: string;
                                engagement_base?: "reach"
                                | "impressions"
                                | "followers";
                                external_identifier?: string;
                                files: {
                                    _id: ...;
                                    cover_image?: ...;
                                    cover_offset?: ...;
                                    creation_date: ...;
                                    file_externals: ...;
                                    file_format: ...;
                                    file_properties: ...;
                                    file_type: ...;
                                    id_organization: ...;
                                    is_temporal: ...;
                                    name: ...;
                                    public_path: ...;
                                }[];
                                id_account: | string
                                | {
                                    _id: ...;
                                    creation_date: ...;
                                    error_code: ...;
                                    followers_count?: ...;
                                    id_client: ...;
                                    id_organization: ...;
                                    image?: ...;
                                    name: ...;
                                    next_comments_update?: ...;
                                    next_stats_update?: ...;
                                    private_message_link?: ...;
                                    social_network: ...;
                                    username?: ...;
                                };
                                id_integration?: string;
                                id_organization: string;
                                metrics?: {
                                    clicks?: ...;
                                    comments?: ...;
                                    engagement?: ...;
                                    followers?: ...;
                                    followers_gained?: ...;
                                    impressions?: ...;
                                    likes?: ...;
                                    profile_views?: ...;
                                    reach?: ...;
                                    saves?: ...;
                                    shares?: ...;
                                    video_views?: ...;
                                };
                                name?: string;
                                next_stats_update?: string;
                                publication_errors: { code: ...; data?: ...; message: ... }[];
                                publication_type:
                                    | "profile"
                                    | "page"
                                    | "group"
                                    | "reels"
                                    | "stories"
                                    | "message";
                                publish_date?: string;
                                retries: number;
                                social_network: | "facebook"
                                | "instagram"
                                | "linkedin"
                                | "tiktok"
                                | "twitter"
                                | "whatsapp"
                                | "youtube"
                                | "google_business"
                                | "bluesky"
                                | "discord";
                                state: "ready"
                                | "withErrors"
                                | "sended"
                                | "draft"
                                | "publishing";
                                statistics?: {
                                    angers?: ...;
                                    bookmarks?: ...;
                                    clicks?: ...;
                                    comments?: ...;
                                    engagement?: ...;
                                    follows?: ...;
                                    hahas?: ...;
                                    impressions?: ...;
                                    likes?: ...;
                                    loves?: ...;
                                    negative_feedback?: ...;
                                    page_likes?: ...;
                                    playback_0_count?: ...;
                                    playback_100_count?: ...;
                                    playback_25_count?: ...;
                                    playback_50_count?: ...;
                                    playback_75_count?: ...;
                                    profile_activity?: ...;
                                    profile_visits?: ...;
                                    quotes?: ...;
                                    reach?: ...;
                                    replys?: ...;
                                    retwets?: ...;
                                    saved?: ...;
                                    share?: ...;
                                    shareMentions?: ...;
                                    shares?: ...;
                                    sorrys?: ...;
                                    url_link_clicks?: ...;
                                    user_profile_clicks?: ...;
                                    video_views?: ...;
                                    views?: ...;
                                    wows?: ...;
                                };
                                stats_updated_date?: string;
                                text?: string;
                                title?: string;
                                url?: string;
                            };
                            like_count?: number;
                            our_reply_external_id?: string;
                            parent_external_id?: string;
                            publication_external_id: string;
                            rating?: number;
                            read: boolean;
                            replied: boolean;
                            reply_count?: number;
                            social_network: | "facebook"
                            | "instagram"
                            | "linkedin"
                            | "twitter"
                            | "youtube"
                            | "google_business"
                            | "bluesky"
                            | "discord";
                            text: string;
                        }[];
                        credits_consumed: number;
                        next_cursor?: string;
                        total: number;
                    };
                };
                headers: { [name: string]: unknown };
            };
            "400": {
                content: {
                    "application/json": {
                        code: number;
                        data?: { [key: string]: unknown };
                        message: string;
                    };
                };
                headers: { [name: string]: unknown };
            };
        };
    };
    getAccountConversationsTotal: {
        parameters: {
            cookie?: undefined;
            header?: undefined;
            path: { id_account: string; id_organization: string };
            query?: {
                from_date?: string;
                group_by?: "day" | "month" | "year";
                to_date?: string;
            };
        };
        requestBody?: undefined;
        responses: {
            "200": {
                content: {
                    "application/json": | { total: number }
                    | {
                        group: "day" | "month" | "year";
                        stats: { groupValue: number; totalConversations: number }[];
                    };
                };
                headers: { [name: string]: unknown };
            };
            "400": {
                content: {
                    "application/json": {
                        code: number;
                        data?: { [key: string]: unknown };
                        message: string;
                    };
                };
                headers: { [name: string]: unknown };
            };
        };
    };
    getAccountList: {
        parameters: {
            cookie?: undefined;
            header?: undefined;
            path: { id_organization: string };
            query?: {
                accounts?: string[];
                capability?:
                    | "comments"
                    | "publications"
                    | "messages"
                    | "products"
                    | "webhooks"
                    | "persistent_menu";
                limit?: number;
                name?: string;
                offset?: number;
                social_network?: (
                    | "facebook"
                    | "instagram"
                    | "linkedin"
                    | "tiktok"
                    | "twitter"
                    | "whatsapp"
                    | "youtube"
                    | "google_business"
                    | "bluesky"
                    | "discord"
                )[];
            };
        };
        requestBody?: undefined;
        responses: {
            "200": {
                content: {
                    "application/json": {
                        accounts: {
                            _id: string;
                            creation_date: string;
                            error_code: number;
                            followers_count?: number;
                            id_client: string;
                            id_organization: string;
                            image?: string;
                            name: string;
                            next_comments_update?: string;
                            next_stats_update?: string;
                            private_message_link?: string;
                            social_network: | "facebook"
                            | "instagram"
                            | "linkedin"
                            | "tiktok"
                            | "twitter"
                            | "whatsapp"
                            | "youtube"
                            | "google_business"
                            | "bluesky"
                            | "discord";
                            username?: string;
                        }[];
                        total: number;
                    };
                };
                headers: { [name: string]: unknown };
            };
            "400": {
                content: {
                    "application/json": {
                        code: number;
                        data?: { [key: string]: unknown };
                        message: string;
                    };
                };
                headers: { [name: string]: unknown };
            };
            "500": { content?: undefined; headers: { [name: string]: unknown } };
        };
    };
    getAccountPublications: {
        parameters: {
            cookie?: undefined;
            header?: undefined;
            path: { id_account: string; id_organization: string };
            query?: {
                accounts?: string[];
                from_date?: string;
                limit?: number;
                offset?: number;
                orderByPublish?: boolean;
                search?: string;
                social_network?: (
                    | "facebook"
                    | "instagram"
                    | "linkedin"
                    | "tiktok"
                    | "twitter"
                    | "whatsapp"
                    | "youtube"
                    | "google_business"
                    | "bluesky"
                    | "discord"
                )[];
                state?: ("ready" | "withErrors" | "sended" | "draft" | "publishing")[];
                to_date?: string;
            };
        };
        requestBody?: undefined;
        responses: {
            "200": {
                content: {
                    "application/json": {
                        publications: {
                            _id: string;
                            creation_date: string;
                            engagement_base?: "reach"
                            | "impressions"
                            | "followers";
                            external_identifier?: string;
                            files: {
                                _id: string;
                                cover_image?: { _id: string; cover_image?: ...; cover_offset?: number; creation_date: string; file_externals: { external_identifier: string; external_url: string; social_network: "facebook" | "instagram" | ... 7 more ... | "discord"; }[]; ... 6 more ...; public_path: string; };
                                cover_offset?: number;
                                creation_date: string;
                                file_externals: {
                                    external_identifier: ...;
                                    external_url: ...;
                                    social_network: ...;
                                }[];
                                file_format: "mp4"
                                | "jpeg"
                                | "gif"
                                | "png"
                                | "jpg";
                                file_properties: {
                                    allowed_social_networks: (...)[];
                                    aspect_ratio: { text: ...; value: ... };
                                    duration: number;
                                    height: number;
                                    size_in_bytes: number;
                                    width: number;
                                };
                                file_type: "video"
                                | "image";
                                id_organization: string;
                                is_temporal: boolean;
                                name: string;
                                public_path: string;
                            }[];
                            id_account: | string
                            | {
                                _id: string;
                                creation_date: string;
                                error_code: number;
                                followers_count?: number;
                                id_client: string;
                                id_organization: string;
                                image?: string;
                                name: string;
                                next_comments_update?: string;
                                next_stats_update?: string;
                                private_message_link?: string;
                                social_network: | "facebook"
                                | "instagram"
                                | "linkedin"
                                | "tiktok"
                                | "twitter"
                                | "whatsapp"
                                | "youtube"
                                | "google_business"
                                | "bluesky"
                                | "discord";
                                username?: string;
                            };
                            id_integration?: string;
                            id_organization: string;
                            metrics?: {
                                clicks?: number;
                                comments?: number;
                                engagement?: number;
                                followers?: number;
                                followers_gained?: number;
                                impressions?: number;
                                likes?: number;
                                profile_views?: number;
                                reach?: number;
                                saves?: number;
                                shares?: number;
                                video_views?: number;
                            };
                            name?: string;
                            next_stats_update?: string;
                            publication_errors: {
                                code: number;
                                data?: { [key: ...]: ... };
                                message: string;
                            }[];
                            publication_type: | "profile"
                            | "page"
                            | "group"
                            | "reels"
                            | "stories"
                            | "message";
                            publish_date?: string;
                            retries: number;
                            social_network: | "facebook"
                            | "instagram"
                            | "linkedin"
                            | "tiktok"
                            | "twitter"
                            | "whatsapp"
                            | "youtube"
                            | "google_business"
                            | "bluesky"
                            | "discord";
                            state: "ready"
                            | "withErrors"
                            | "sended"
                            | "draft"
                            | "publishing";
                            statistics?: {
                                angers?: number;
                                bookmarks?: number;
                                clicks?: number;
                                comments?: number;
                                engagement?: number;
                                follows?: number;
                                hahas?: number;
                                impressions?: number;
                                likes?: number;
                                loves?: number;
                                negative_feedback?: number;
                                page_likes?: number;
                                playback_0_count?: number;
                                playback_100_count?: number;
                                playback_25_count?: number;
                                playback_50_count?: number;
                                playback_75_count?: number;
                                profile_activity?: number;
                                profile_visits?: number;
                                quotes?: number;
                                reach?: number;
                                replys?: number;
                                retwets?: number;
                                saved?: number;
                                share?: number;
                                shareMentions?: number;
                                shares?: number;
                                sorrys?: number;
                                url_link_clicks?: number;
                                user_profile_clicks?: number;
                                video_views?: number;
                                views?: number;
                                wows?: number;
                            };
                            stats_updated_date?: string;
                            text?: string;
                            title?: string;
                            url?: string;
                        }[];
                        total: number;
                    };
                };
                headers: { [name: string]: unknown };
            };
            "400": {
                content: {
                    "application/json": {
                        code: number;
                        data?: { [key: string]: unknown };
                        message: string;
                    };
                };
                headers: { [name: string]: unknown };
            };
            "500": { content?: undefined; headers: { [name: string]: unknown } };
        };
    };
    getAccountStats: {
        parameters: {
            cookie?: undefined;
            header?: undefined;
            path: { id_account: string; id_organization: string };
            query?: { from_date?: string; names?: string[]; to_date?: string };
        };
        requestBody?: undefined;
        responses: {
            "200": {
                content: {
                    "application/json": {
                        group: "day"
                        | "month"
                        | "year";
                        stats: {
                            date: string;
                            group: "day" | "month" | "year";
                            group_value: number;
                            name: string;
                            value: number;
                        }[];
                    };
                };
                headers: { [name: string]: unknown };
            };
            "400": {
                content: {
                    "application/json": {
                        code: number;
                        data?: { [key: string]: unknown };
                        message: string;
                    };
                };
                headers: { [name: string]: unknown };
            };
            "500": { content?: undefined; headers: { [name: string]: unknown } };
        };
    };
    getAiPlan: {
        parameters: {
            cookie?: undefined;
            header?: undefined;
            path: { id_ai_plan: string; id_client: string; id_organization: string };
            query?: undefined;
        };
        requestBody?: undefined;
        responses: {
            "200": {
                content: {
                    "application/json": {
                        ai_plan: {
                            _id: string;
                            accounts: string[];
                            attempts: number;
                            creation_date: string;
                            credits_spent: number;
                            error?: {
                                code: number;
                                data?: { [key: string]: unknown };
                                message: string;
                            };
                            generation_end_date?: string;
                            id_client: string;
                            id_organization: string;
                            keycloak_identifier?: string;
                            options: {
                                allow_images: boolean;
                                gallery_uploads: string[];
                                language: string;
                                max_images?: number;
                                publish_days: number[];
                                shared: boolean;
                                timezone: string;
                                tone?: string;
                                use_organization_context: boolean;
                                week_start: string;
                            };
                            orchestrator_result?: Record<string, never>;
                            organization_context?: {
                                audience?: string;
                                avoid?: string;
                                blog_url?: string;
                                brand_name?: string;
                                default_tone?: string;
                                description?: string;
                                keywords?: string[];
                                notes?: string;
                                products?: string;
                                sector?: string;
                                shop_url?: string;
                                social_urls?: string[];
                                value_proposition?: string;
                                website?: string;
                            };
                            prompt: string;
                            publications: (
                                | string
                                | {
                                    _id: string;
                                    creation_date: string;
                                    engagement_base?: "reach"
                                    | "impressions"
                                    | "followers";
                                    external_identifier?: string;
                                    files: {
                                        _id: ...;
                                        cover_image?: ...;
                                        cover_offset?: ...;
                                        creation_date: ...;
                                        file_externals: ...;
                                        file_format: ...;
                                        file_properties: ...;
                                        file_type: ...;
                                        id_organization: ...;
                                        is_temporal: ...;
                                        name: ...;
                                        public_path: ...;
                                    }[];
                                    id_account: | string
                                    | {
                                        _id: ...;
                                        creation_date: ...;
                                        error_code: ...;
                                        followers_count?: ...;
                                        id_client: ...;
                                        id_organization: ...;
                                        image?: ...;
                                        name: ...;
                                        next_comments_update?: ...;
                                        next_stats_update?: ...;
                                        private_message_link?: ...;
                                        social_network: ...;
                                        username?: ...;
                                    };
                                    id_integration?: string;
                                    id_organization: string;
                                    metrics?: {
                                        clicks?: ...;
                                        comments?: ...;
                                        engagement?: ...;
                                        followers?: ...;
                                        followers_gained?: ...;
                                        impressions?: ...;
                                        likes?: ...;
                                        profile_views?: ...;
                                        reach?: ...;
                                        saves?: ...;
                                        shares?: ...;
                                        video_views?: ...;
                                    };
                                    name?: string;
                                    next_stats_update?: string;
                                    publication_errors: { code: ...; data?: ...; message: ... }[];
                                    publication_type:
                                        | "profile"
                                        | "page"
                                        | "group"
                                        | "reels"
                                        | "stories"
                                        | "message";
                                    publish_date?: string;
                                    retries: number;
                                    social_network: | "facebook"
                                    | "instagram"
                                    | "linkedin"
                                    | "tiktok"
                                    | "twitter"
                                    | "whatsapp"
                                    | "youtube"
                                    | "google_business"
                                    | "bluesky"
                                    | "discord";
                                    state: "ready"
                                    | "withErrors"
                                    | "sended"
                                    | "draft"
                                    | "publishing";
                                    statistics?: {
                                        angers?: ...;
                                        bookmarks?: ...;
                                        clicks?: ...;
                                        comments?: ...;
                                        engagement?: ...;
                                        follows?: ...;
                                        hahas?: ...;
                                        impressions?: ...;
                                        likes?: ...;
                                        loves?: ...;
                                        negative_feedback?: ...;
                                        page_likes?: ...;
                                        playback_0_count?: ...;
                                        playback_100_count?: ...;
                                        playback_25_count?: ...;
                                        playback_50_count?: ...;
                                        playback_75_count?: ...;
                                        profile_activity?: ...;
                                        profile_visits?: ...;
                                        quotes?: ...;
                                        reach?: ...;
                                        replys?: ...;
                                        retwets?: ...;
                                        saved?: ...;
                                        share?: ...;
                                        shareMentions?: ...;
                                        shares?: ...;
                                        sorrys?: ...;
                                        url_link_clicks?: ...;
                                        user_profile_clicks?: ...;
                                        video_views?: ...;
                                        views?: ...;
                                        wows?: ...;
                                    };
                                    stats_updated_date?: string;
                                    text?: string;
                                    title?: string;
                                    url?: string;
                                }
                            )[];
                            state: | "pending"
                            | "generating"
                            | "generated"
                            | "validated"
                            | "failed"
                            | "cancelled";
                        };
                    };
                };
                headers: { [name: string]: unknown };
            };
            "400": {
                content: {
                    "application/json": {
                        code: number;
                        data?: { [key: string]: unknown };
                        message: string;
                    };
                };
                headers: { [name: string]: unknown };
            };
            "500": { content?: undefined; headers: { [name: string]: unknown } };
        };
    };
    getAiPlans: {
        parameters: {
            cookie?: undefined;
            header?: undefined;
            path: { id_client: string; id_organization: string };
            query?: { limit?: number; offset?: number };
        };
        requestBody?: undefined;
        responses: {
            "200": {
                content: {
                    "application/json": {
                        ai_plans: {
                            _id: string;
                            accounts: string[];
                            attempts: number;
                            creation_date: string;
                            credits_spent: number;
                            error?: { code: number; data?: { [key: ...]: ... }; message: string };
                            generation_end_date?: string;
                            id_client: string;
                            id_organization: string;
                            keycloak_identifier?: string;
                            options: {
                                allow_images: boolean;
                                gallery_uploads: string[];
                                language: string;
                                max_images?: number;
                                publish_days: number[];
                                shared: boolean;
                                timezone: string;
                                tone?: string;
                                use_organization_context: boolean;
                                week_start: string;
                            };
                            orchestrator_result?: Record<string, never>;
                            organization_context?: {
                                audience?: string;
                                avoid?: string;
                                blog_url?: string;
                                brand_name?: string;
                                default_tone?: string;
                                description?: string;
                                keywords?: (...)[];
                                notes?: string;
                                products?: string;
                                sector?: string;
                                shop_url?: string;
                                social_urls?: (...)[];
                                value_proposition?: string;
                                website?: string;
                            };
                            prompt: string;
                            publications: (
                                | string
                                | {
                                    _id: string;
                                    creation_date: string;
                                    engagement_base?: (...)
                                    | (...)
                                    | (...)
                                    | (...);
                                    external_identifier?: (...) | (...);
                                    files: (...)[];
                                    id_account: (...) | (...);
                                    id_integration?: (...) | (...);
                                    id_organization: string;
                                    metrics?: (...) | (...);
                                    name?: (...) | (...);
                                    next_stats_update?: (...) | (...);
                                    publication_errors: (...)[];
                                    publication_type: (...) | (...) | (...) | (...) | (...) | (...);
                                    publish_date?: (...) | (...);
                                    retries: number;
                                    social_network:
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...);
                                    state: (...) | (...) | (...) | (...) | (...);
                                    statistics?: (...) | (...);
                                    stats_updated_date?: (...) | (...);
                                    text?: (...) | (...);
                                    title?: (...) | (...);
                                    url?: (...) | (...);
                                }
                            )[];
                            state: | "pending"
                            | "generating"
                            | "generated"
                            | "validated"
                            | "failed"
                            | "cancelled";
                        }[];
                        total: number;
                    };
                };
                headers: { [name: string]: unknown };
            };
            "400": {
                content: {
                    "application/json": {
                        code: number;
                        data?: { [key: string]: unknown };
                        message: string;
                    };
                };
                headers: { [name: string]: unknown };
            };
            "500": { content?: undefined; headers: { [name: string]: unknown } };
        };
    };
    getAllowedAspectRatios: {
        parameters: {
            cookie?: undefined;
            header?: undefined;
            path?: undefined;
            query?: undefined;
        };
        requestBody?: undefined;
        responses: {
            "200": {
                content: {
                    "application/json": {
                        [key: string]: { text: string[]; values: number[] };
                    };
                };
                headers: { [name: string]: unknown };
            };
            "400": {
                content: {
                    "application/json": {
                        code: number;
                        data?: { [key: string]: unknown };
                        message: string;
                    };
                };
                headers: { [name: string]: unknown };
            };
        };
    };
    getAllowedSocialMessages: {
        parameters: {
            cookie?: undefined;
            header?: undefined;
            path?: undefined;
            query?: undefined;
        };
        requestBody?: undefined;
        responses: {
            "200": {
                content: {
                    "application/json": (
                        | "facebook"
                        | "instagram"
                        | "linkedin"
                        | "tiktok"
                        | "twitter"
                        | "whatsapp"
                        | "youtube"
                        | "google_business"
                        | "bluesky"
                        | "discord"
                    )[];
                };
                headers: { [name: string]: unknown };
            };
            "400": {
                content: {
                    "application/json": {
                        code: number;
                        data?: { [key: string]: unknown };
                        message: string;
                    };
                };
                headers: { [name: string]: unknown };
            };
        };
    };
    getAllowedSocialPublications: {
        parameters: {
            cookie?: undefined;
            header?: undefined;
            path?: undefined;
            query?: undefined;
        };
        requestBody?: undefined;
        responses: {
            "200": {
                content: {
                    "application/json": (
                        | "facebook"
                        | "instagram"
                        | "linkedin"
                        | "tiktok"
                        | "twitter"
                        | "whatsapp"
                        | "youtube"
                        | "google_business"
                        | "bluesky"
                        | "discord"
                    )[];
                };
                headers: { [name: string]: unknown };
            };
            "400": {
                content: {
                    "application/json": {
                        code: number;
                        data?: { [key: string]: unknown };
                        message: string;
                    };
                };
                headers: { [name: string]: unknown };
            };
        };
    };
    getChildOrganizations: {
        parameters: {
            cookie?: undefined;
            header?: undefined;
            path: { id_organization: string };
            query?: {
                getUse?: boolean;
                limit?: number;
                name?: string;
                offset?: number;
            };
        };
        requestBody?: undefined;
        responses: {
            "200": {
                content: {
                    "application/json": {
                        organizations: {
                            _id: string;
                            actual_asigned?: {
                                accounts: number;
                                ai_credits?: number;
                                artificial_inteligence?: boolean;
                                integrations: number;
                                publications: number;
                                space: number;
                                stats?: boolean;
                                twitter_credits?: number;
                                users: number;
                                whatsapp?: boolean;
                            };
                            actual_plan?: {
                                accounts: number;
                                ai_credits?: number;
                                artificial_inteligence?: boolean;
                                integrations: number;
                                publications: number;
                                space: number;
                                stats?: boolean;
                                twitter_credits?: number;
                                users: number;
                                whatsapp?: boolean;
                            };
                            actual_use?: {
                                accounts: number;
                                ai_credits?: number;
                                artificial_inteligence?: boolean;
                                integrations: number;
                                publications: number;
                                space: number;
                                stats?: boolean;
                                twitter_credits?: number;
                                users: number;
                                whatsapp?: boolean;
                            };
                            ai_context?: {
                                audience?: string;
                                avoid?: string;
                                blog_url?: string;
                                brand_name?: string;
                                default_tone?: string;
                                description?: string;
                                keywords?: (...)[];
                                notes?: string;
                                products?: string;
                                sector?: string;
                                shop_url?: string;
                                social_urls?: (...)[];
                                value_proposition?: string;
                                website?: string;
                            };
                            creation_date: string;
                            id_client: string;
                            name: string;
                            parent_organization?: string;
                            social_credentials?: {
                                discord?: {
                                    application_name?: ...;
                                    client_id?: ...;
                                    has_bot_token?: ...;
                                    has_client_secret?: ...;
                                    verified_date?: ...;
                                };
                            };
                            stats_settings?: { auto_refresh_twitter: boolean };
                        }[];
                        total: number;
                    };
                };
                headers: { [name: string]: unknown };
            };
            "400": {
                content: {
                    "application/json": {
                        code: number;
                        data?: { [key: string]: unknown };
                        message: string;
                    };
                };
                headers: { [name: string]: unknown };
            };
            "500": { content?: undefined; headers: { [name: string]: unknown } };
        };
    };
    getClient: {
        parameters: {
            cookie?: undefined;
            header?: undefined;
            path: { id_client: string };
            query?: { getUse?: boolean };
        };
        requestBody?: undefined;
        responses: {
            "200": {
                content: {
                    "application/json": {
                        client: {
                            _id: string;
                            actual_asigned?: {
                                accounts: number;
                                ai_credits?: number;
                                artificial_inteligence?: boolean;
                                integrations: number;
                                publications: number;
                                space: number;
                                stats?: boolean;
                                twitter_credits?: number;
                                users: number;
                                whatsapp?: boolean;
                            };
                            actual_plan: {
                                current_period_end?: string;
                                current_period_start?: string;
                                enabled: boolean;
                                isEnabled: boolean;
                                plan_data: {
                                    accounts: number;
                                    ai_credits?: number;
                                    artificial_inteligence?: boolean;
                                    integrations: number;
                                    publications: number;
                                    space: number;
                                    stats?: boolean;
                                    twitter_credits?: number;
                                    users: number;
                                    whatsapp?: boolean;
                                };
                                plan_identifier: "basic"
                                | "free"
                                | "pro"
                                | "custom";
                                require_action?: boolean;
                                status: string;
                                stripe_customer_id?: string;
                            };
                            actual_use?: {
                                accounts: number;
                                ai_credits?: number;
                                artificial_inteligence?: boolean;
                                integrations: number;
                                publications: number;
                                space: number;
                                stats?: boolean;
                                twitter_credits?: number;
                                users: number;
                                whatsapp?: boolean;
                            };
                            ai_settings?: {
                                image?: | null
                                | {
                                    api_key?: (...)
                                    | (...);
                                    has_api_key?: (...) | (...) | (...);
                                    model: string;
                                    provider: (...) | (...) | (...) | (...);
                                };
                                orchestrator?: | null
                                | {
                                    api_key?: (...)
                                    | (...);
                                    has_api_key?: (...) | (...) | (...);
                                    model: string;
                                    provider: (...) | (...) | (...) | (...);
                                };
                                text?: | null
                                | {
                                    api_key?: (...)
                                    | (...);
                                    has_api_key?: (...) | (...) | (...);
                                    model: string;
                                    provider: (...) | (...) | (...) | (...);
                                };
                            };
                            client_type?: "personal"
                            | "company";
                            creation_date: string;
                            name: string;
                            trial_tested?: boolean;
                        };
                    };
                };
                headers: { [name: string]: unknown };
            };
            "400": {
                content: {
                    "application/json": {
                        code: number;
                        data?: { [key: string]: unknown };
                        message: string;
                    };
                };
                headers: { [name: string]: unknown };
            };
            "500": { content?: undefined; headers: { [name: string]: unknown } };
        };
    };
    getClientApp: {
        parameters: {
            cookie?: undefined;
            header?: undefined;
            path: { id_app: string; id_client: string };
            query?: undefined;
        };
        requestBody?: undefined;
        responses: {
            "200": {
                content: {
                    "application/json": {
                        client_app: {
                            _id: string;
                            allowed_domains: string[];
                            creation_date: string;
                            deleted: boolean;
                            deleted_date?: string;
                            id_client: string;
                            id_user?: string;
                            keycloak_client_idenfifier: string;
                            name: string;
                            redirect_urls: string[];
                            webhook_url?: string;
                        };
                    };
                };
                headers: { [name: string]: unknown };
            };
            "400": {
                content: {
                    "application/json": {
                        code: number;
                        data?: { [key: string]: unknown };
                        message: string;
                    };
                };
                headers: { [name: string]: unknown };
            };
        };
    };
    getClientApps: {
        parameters: {
            cookie?: undefined;
            header?: undefined;
            path: { id_client: string };
            query?: { limit?: number; offset?: number };
        };
        requestBody?: undefined;
        responses: {
            "200": {
                content: {
                    "application/json": {
                        client_apps: {
                            _id: string;
                            allowed_domains: string[];
                            creation_date: string;
                            deleted: boolean;
                            deleted_date?: string;
                            id_client: string;
                            id_user?: string;
                            keycloak_client_idenfifier: string;
                            name: string;
                            redirect_urls: string[];
                            webhook_url?: string;
                        }[];
                        total: number;
                    };
                };
                headers: { [name: string]: unknown };
            };
            "400": {
                content: {
                    "application/json": {
                        code: number;
                        data?: { [key: string]: unknown };
                        message: string;
                    };
                };
                headers: { [name: string]: unknown };
            };
        };
    };
    getClientAppSecret: {
        parameters: {
            cookie?: undefined;
            header?: undefined;
            path: { id_app: string; id_client: string };
            query?: undefined;
        };
        requestBody?: undefined;
        responses: {
            "200": {
                content: { "application/json": { secret: string } };
                headers: { [name: string]: unknown };
            };
            "400": {
                content: {
                    "application/json": {
                        code: number;
                        data?: { [key: string]: unknown };
                        message: string;
                    };
                };
                headers: { [name: string]: unknown };
            };
        };
    };
    getClientOrganizations: {
        parameters: {
            cookie?: undefined;
            header?: undefined;
            path: { id_client: string };
            query?: {
                getUse?: boolean;
                limit?: number;
                name?: string;
                offset?: number;
            };
        };
        requestBody?: undefined;
        responses: {
            "200": {
                content: {
                    "application/json": {
                        organizations: {
                            _id: string;
                            actual_asigned?: {
                                accounts: number;
                                ai_credits?: number;
                                artificial_inteligence?: boolean;
                                integrations: number;
                                publications: number;
                                space: number;
                                stats?: boolean;
                                twitter_credits?: number;
                                users: number;
                                whatsapp?: boolean;
                            };
                            actual_plan?: {
                                accounts: number;
                                ai_credits?: number;
                                artificial_inteligence?: boolean;
                                integrations: number;
                                publications: number;
                                space: number;
                                stats?: boolean;
                                twitter_credits?: number;
                                users: number;
                                whatsapp?: boolean;
                            };
                            actual_use?: {
                                accounts: number;
                                ai_credits?: number;
                                artificial_inteligence?: boolean;
                                integrations: number;
                                publications: number;
                                space: number;
                                stats?: boolean;
                                twitter_credits?: number;
                                users: number;
                                whatsapp?: boolean;
                            };
                            ai_context?: {
                                audience?: string;
                                avoid?: string;
                                blog_url?: string;
                                brand_name?: string;
                                default_tone?: string;
                                description?: string;
                                keywords?: (...)[];
                                notes?: string;
                                products?: string;
                                sector?: string;
                                shop_url?: string;
                                social_urls?: (...)[];
                                value_proposition?: string;
                                website?: string;
                            };
                            creation_date: string;
                            id_client: string;
                            name: string;
                            parent_organization?: string;
                            social_credentials?: {
                                discord?: {
                                    application_name?: ...;
                                    client_id?: ...;
                                    has_bot_token?: ...;
                                    has_client_secret?: ...;
                                    verified_date?: ...;
                                };
                            };
                            stats_settings?: { auto_refresh_twitter: boolean };
                        }[];
                        total: number;
                    };
                };
                headers: { [name: string]: unknown };
            };
            "400": {
                content: {
                    "application/json": {
                        code: number;
                        data?: { [key: string]: unknown };
                        message: string;
                    };
                };
                headers: { [name: string]: unknown };
            };
            "500": { content?: undefined; headers: { [name: string]: unknown } };
        };
    };
    getClientPermissions: {
        parameters: {
            cookie?: undefined;
            header?: undefined;
            path?: undefined;
            query?: undefined;
        };
        requestBody?: undefined;
        responses: {
            "200": {
                content: {
                    "application/json": {
                        permissions?: (
                            | "client:update"
                            | "client:read"
                            | "client:delete"
                            | "client_app:create"
                            | "client_app:update"
                            | "client_app:read"
                            | "client_app:delete"
                            | "client_roles:create"
                            | "client_roles:update"
                            | "client_roles:read"
                            | "client_roles:delete"
                            | "client_roles_users:read"
                            | "client_roles_users:create"
                            | "client_roles_users:delete"
                            | "client_organization:create"
                            | "client_organization:update"
                            | "client_organization:read"
                            | "client_organization:delete"
                            | "client_organization_roles:read"
                            | "client_organization_roles:create"
                            | "client_organization_roles:update"
                            | "client_organization_roles:delete"
                            | "client_organization_users_roles:read"
                            | "client_organization_users_roles:create"
                            | "client_organization_users_roles:delete"
                            | "client_organization_accounts:read"
                            | "client_organization_accounts:create"
                            | "client_organization_accounts:update"
                            | "client_organization_accounts:delete"
                            | "client_organization_files:read"
                            | "client_organization_files:create"
                            | "client_organization_files:update"
                            | "client_organization_files:delete"
                            | "client_organization_publications:read"
                            | "client_organization_publications:create"
                            | "client_organization_publications:update"
                            | "client_organization_publications:delete"
                            | "client_organization_publications_stats:read"
                            | "client_organization_account_stats:read"
                        )[];
                    };
                };
                headers: { [name: string]: unknown };
            };
            "400": {
                content: {
                    "application/json": {
                        code: number;
                        data?: { [key: string]: unknown };
                        message: string;
                    };
                };
                headers: { [name: string]: unknown };
            };
            "500": { content?: undefined; headers: { [name: string]: unknown } };
        };
    };
    getClientRoles: {
        parameters: {
            cookie?: undefined;
            header?: undefined;
            path: { id_client: string };
            query?: { limit?: number; offset?: number };
        };
        requestBody?: undefined;
        responses: {
            "200": {
                content: {
                    "application/json": {
                        roles?: {
                            name?: string;
                            permissions?: (
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                            )[];
                        }[];
                        total?: number;
                    };
                };
                headers: { [name: string]: unknown };
            };
            "400": {
                content: {
                    "application/json": {
                        code: number;
                        data?: { [key: string]: unknown };
                        message: string;
                    };
                };
                headers: { [name: string]: unknown };
            };
            "500": { content?: undefined; headers: { [name: string]: unknown } };
        };
    };
    getClients: {
        parameters: {
            cookie?: undefined;
            header?: undefined;
            path?: undefined;
            query?: { getUse?: boolean; limit?: number; offset?: number };
        };
        requestBody?: undefined;
        responses: {
            "200": {
                content: {
                    "application/json": {
                        clients: {
                            _id: string;
                            actual_asigned?: {
                                accounts: number;
                                ai_credits?: number;
                                artificial_inteligence?: boolean;
                                integrations: number;
                                publications: number;
                                space: number;
                                stats?: boolean;
                                twitter_credits?: number;
                                users: number;
                                whatsapp?: boolean;
                            };
                            actual_plan: {
                                current_period_end?: string;
                                current_period_start?: string;
                                enabled: boolean;
                                isEnabled: boolean;
                                plan_data: {
                                    accounts: number;
                                    ai_credits?: number;
                                    artificial_inteligence?: boolean;
                                    integrations: number;
                                    publications: number;
                                    space: number;
                                    stats?: boolean;
                                    twitter_credits?: number;
                                    users: number;
                                    whatsapp?: boolean;
                                };
                                plan_identifier: "basic"
                                | "free"
                                | "pro"
                                | "custom";
                                require_action?: boolean;
                                status: string;
                                stripe_customer_id?: string;
                            };
                            actual_use?: {
                                accounts: number;
                                ai_credits?: number;
                                artificial_inteligence?: boolean;
                                integrations: number;
                                publications: number;
                                space: number;
                                stats?: boolean;
                                twitter_credits?: number;
                                users: number;
                                whatsapp?: boolean;
                            };
                            ai_settings?: {
                                image?: | null
                                | { api_key?: ...; has_api_key?: ...; model: ...; provider: ... };
                                orchestrator?:
                                    | null
                                    | { api_key?: ...; has_api_key?: ...; model: ...; provider: ... };
                                text?:
                                    | null
                                    | { api_key?: ...; has_api_key?: ...; model: ...; provider: ... };
                            };
                            client_type?: "personal"
                            | "company";
                            creation_date: string;
                            name: string;
                            trial_tested?: boolean;
                        }[];
                        total: number;
                    };
                };
                headers: { [name: string]: unknown };
            };
            "400": {
                content: {
                    "application/json": {
                        code: number;
                        data?: { [key: string]: unknown };
                        message: string;
                    };
                };
                headers: { [name: string]: unknown };
            };
            "500": { content?: undefined; headers: { [name: string]: unknown } };
        };
    };
    getClientsWithOrganizations: {
        parameters: {
            cookie?: undefined;
            header?: undefined;
            path?: undefined;
            query?: {
                getUse?: boolean;
                limit?: number;
                limitOrganizations?: number;
                offset?: number;
                offsetOrganizations?: number;
            };
        };
        requestBody?: undefined;
        responses: {
            "200": {
                content: {
                    "application/json": {
                        clients: (
                            {
                                _id: string;
                                actual_asigned?: {
                                    accounts: number;
                                    ai_credits?: (...)
                                    | (...);
                                    artificial_inteligence?: (...) | (...) | (...);
                                    integrations: number;
                                    publications: number;
                                    space: number;
                                    stats?: (...) | (...) | (...);
                                    twitter_credits?: (...) | (...);
                                    users: number;
                                    whatsapp?: (...) | (...) | (...);
                                };
                                actual_plan: {
                                    current_period_end?: string;
                                    current_period_start?: string;
                                    enabled: boolean;
                                    isEnabled: boolean;
                                    plan_data: {
                                        accounts: number;
                                        ai_credits?: (...)
                                        | (...);
                                        artificial_inteligence?: (...) | (...) | (...);
                                        integrations: number;
                                        publications: number;
                                        space: number;
                                        stats?: (...) | (...) | (...);
                                        twitter_credits?: (...) | (...);
                                        users: number;
                                        whatsapp?: (...) | (...) | (...);
                                    };
                                    plan_identifier: "basic"
                                    | "free"
                                    | "pro"
                                    | "custom";
                                    require_action?: boolean;
                                    status: string;
                                    stripe_customer_id?: string;
                                };
                                actual_use?: {
                                    accounts: number;
                                    ai_credits?: (...)
                                    | (...);
                                    artificial_inteligence?: (...) | (...) | (...);
                                    integrations: number;
                                    publications: number;
                                    space: number;
                                    stats?: (...) | (...) | (...);
                                    twitter_credits?: (...) | (...);
                                    users: number;
                                    whatsapp?: (...) | (...) | (...);
                                };
                                ai_settings?: {
                                    image?: (...)
                                    | (...)
                                    | (...);
                                    orchestrator?: (...) | (...) | (...);
                                    text?: (...) | (...) | (...);
                                };
                                client_type?: "personal"
                                | "company";
                                creation_date: string;
                                name: string;
                                trial_tested?: boolean;
                            } & {
                                organizations: {
                                    _id: string;
                                    actual_asigned?: (...)
                                    | (...);
                                    actual_plan?: (...) | (...);
                                    actual_use?: (...) | (...);
                                    ai_context?: (...) | (...);
                                    creation_date: string;
                                    id_client: string;
                                    name: string;
                                    parent_organization?: (...) | (...);
                                    social_credentials?: (...) | (...);
                                    stats_settings?: (...) | (...);
                                }[];
                                total: number;
                            }
                        )[];
                        total: number;
                    };
                };
                headers: { [name: string]: unknown };
            };
            "400": {
                content: {
                    "application/json": {
                        code: number;
                        data?: { [key: string]: unknown };
                        message: string;
                    };
                };
                headers: { [name: string]: unknown };
            };
            "500": { content?: undefined; headers: { [name: string]: unknown } };
        };
    };
    getClientUsers: {
        parameters: {
            cookie?: undefined;
            header?: undefined;
            path: { id_client: string };
            query?: { limit?: number; offset?: number };
        };
        requestBody?: undefined;
        responses: {
            "200": {
                content: {
                    "application/json": {
                        total?: number;
                        users?: {
                            email?: string;
                            firstname?: string;
                            id?: string;
                            lastname?: string;
                            username?: string;
                        }[];
                    };
                };
                headers: { [name: string]: unknown };
            };
            "400": {
                content: {
                    "application/json": {
                        code: number;
                        data?: { [key: string]: unknown };
                        message: string;
                    };
                };
                headers: { [name: string]: unknown };
            };
            "500": { content?: undefined; headers: { [name: string]: unknown } };
        };
    };
    getCommentReplies: {
        parameters: {
            cookie?: undefined;
            header?: undefined;
            path: { id_comment: string; id_organization: string };
            query?: { limit?: number; offset?: string };
        };
        requestBody?: undefined;
        responses: {
            "200": {
                content: {
                    "application/json": {
                        comments: {
                            _id: string;
                            author: {
                                external_id: string;
                                is_own: boolean;
                                name?: string;
                                profile_pic?: string;
                            };
                            collected_date: string;
                            creation_date: string;
                            deleted: boolean;
                            external_id: string;
                            hidden: boolean;
                            id_account: | string
                            | {
                                _id: string;
                                creation_date: string;
                                error_code: number;
                                followers_count?: number;
                                id_client: string;
                                id_organization: string;
                                image?: string;
                                name: string;
                                next_comments_update?: string;
                                next_stats_update?: string;
                                private_message_link?: string;
                                social_network: | "facebook"
                                | "instagram"
                                | "linkedin"
                                | "tiktok"
                                | "twitter"
                                | "whatsapp"
                                | "youtube"
                                | "google_business"
                                | "bluesky"
                                | "discord";
                                username?: string;
                            };
                            id_organization: string;
                            id_publication?: | string
                            | {
                                _id: string;
                                creation_date: string;
                                engagement_base?: "reach"
                                | "impressions"
                                | "followers";
                                external_identifier?: string;
                                files: {
                                    _id: ...;
                                    cover_image?: ...;
                                    cover_offset?: ...;
                                    creation_date: ...;
                                    file_externals: ...;
                                    file_format: ...;
                                    file_properties: ...;
                                    file_type: ...;
                                    id_organization: ...;
                                    is_temporal: ...;
                                    name: ...;
                                    public_path: ...;
                                }[];
                                id_account: | string
                                | {
                                    _id: ...;
                                    creation_date: ...;
                                    error_code: ...;
                                    followers_count?: ...;
                                    id_client: ...;
                                    id_organization: ...;
                                    image?: ...;
                                    name: ...;
                                    next_comments_update?: ...;
                                    next_stats_update?: ...;
                                    private_message_link?: ...;
                                    social_network: ...;
                                    username?: ...;
                                };
                                id_integration?: string;
                                id_organization: string;
                                metrics?: {
                                    clicks?: ...;
                                    comments?: ...;
                                    engagement?: ...;
                                    followers?: ...;
                                    followers_gained?: ...;
                                    impressions?: ...;
                                    likes?: ...;
                                    profile_views?: ...;
                                    reach?: ...;
                                    saves?: ...;
                                    shares?: ...;
                                    video_views?: ...;
                                };
                                name?: string;
                                next_stats_update?: string;
                                publication_errors: { code: ...; data?: ...; message: ... }[];
                                publication_type:
                                    | "profile"
                                    | "page"
                                    | "group"
                                    | "reels"
                                    | "stories"
                                    | "message";
                                publish_date?: string;
                                retries: number;
                                social_network: | "facebook"
                                | "instagram"
                                | "linkedin"
                                | "tiktok"
                                | "twitter"
                                | "whatsapp"
                                | "youtube"
                                | "google_business"
                                | "bluesky"
                                | "discord";
                                state: "ready"
                                | "withErrors"
                                | "sended"
                                | "draft"
                                | "publishing";
                                statistics?: {
                                    angers?: ...;
                                    bookmarks?: ...;
                                    clicks?: ...;
                                    comments?: ...;
                                    engagement?: ...;
                                    follows?: ...;
                                    hahas?: ...;
                                    impressions?: ...;
                                    likes?: ...;
                                    loves?: ...;
                                    negative_feedback?: ...;
                                    page_likes?: ...;
                                    playback_0_count?: ...;
                                    playback_100_count?: ...;
                                    playback_25_count?: ...;
                                    playback_50_count?: ...;
                                    playback_75_count?: ...;
                                    profile_activity?: ...;
                                    profile_visits?: ...;
                                    quotes?: ...;
                                    reach?: ...;
                                    replys?: ...;
                                    retwets?: ...;
                                    saved?: ...;
                                    share?: ...;
                                    shareMentions?: ...;
                                    shares?: ...;
                                    sorrys?: ...;
                                    url_link_clicks?: ...;
                                    user_profile_clicks?: ...;
                                    video_views?: ...;
                                    views?: ...;
                                    wows?: ...;
                                };
                                stats_updated_date?: string;
                                text?: string;
                                title?: string;
                                url?: string;
                            };
                            like_count?: number;
                            our_reply_external_id?: string;
                            parent_external_id?: string;
                            publication_external_id: string;
                            rating?: number;
                            read: boolean;
                            replied: boolean;
                            reply_count?: number;
                            social_network: | "facebook"
                            | "instagram"
                            | "linkedin"
                            | "twitter"
                            | "youtube"
                            | "google_business"
                            | "bluesky"
                            | "discord";
                            text: string;
                        }[];
                        credits_consumed: number;
                        next_cursor?: string;
                        total: number;
                    };
                };
                headers: { [name: string]: unknown };
            };
            "400": {
                content: {
                    "application/json": {
                        code: number;
                        data?: { [key: string]: unknown };
                        message: string;
                    };
                };
                headers: { [name: string]: unknown };
            };
        };
    };
    getComments: {
        parameters: {
            cookie?: undefined;
            header?: undefined;
            path: { id_organization: string };
            query?: {
                id_account?: string;
                id_publication?: string;
                limit?: number;
                offset?: number;
                rating?: number[];
                search?: string;
                social_network?: (
                    | "facebook"
                    | "instagram"
                    | "linkedin"
                    | "twitter"
                    | "youtube"
                    | "google_business"
                    | "bluesky"
                    | "discord"
                )[];
                unread?: boolean;
            };
        };
        requestBody?: undefined;
        responses: {
            "200": {
                content: {
                    "application/json": {
                        comments: {
                            _id: string;
                            author: {
                                external_id: string;
                                is_own: boolean;
                                name?: string;
                                profile_pic?: string;
                            };
                            collected_date: string;
                            creation_date: string;
                            deleted: boolean;
                            external_id: string;
                            hidden: boolean;
                            id_account: | string
                            | {
                                _id: string;
                                creation_date: string;
                                error_code: number;
                                followers_count?: number;
                                id_client: string;
                                id_organization: string;
                                image?: string;
                                name: string;
                                next_comments_update?: string;
                                next_stats_update?: string;
                                private_message_link?: string;
                                social_network: | "facebook"
                                | "instagram"
                                | "linkedin"
                                | "tiktok"
                                | "twitter"
                                | "whatsapp"
                                | "youtube"
                                | "google_business"
                                | "bluesky"
                                | "discord";
                                username?: string;
                            };
                            id_organization: string;
                            id_publication?: | string
                            | {
                                _id: string;
                                creation_date: string;
                                engagement_base?: "reach"
                                | "impressions"
                                | "followers";
                                external_identifier?: string;
                                files: {
                                    _id: ...;
                                    cover_image?: ...;
                                    cover_offset?: ...;
                                    creation_date: ...;
                                    file_externals: ...;
                                    file_format: ...;
                                    file_properties: ...;
                                    file_type: ...;
                                    id_organization: ...;
                                    is_temporal: ...;
                                    name: ...;
                                    public_path: ...;
                                }[];
                                id_account: | string
                                | {
                                    _id: ...;
                                    creation_date: ...;
                                    error_code: ...;
                                    followers_count?: ...;
                                    id_client: ...;
                                    id_organization: ...;
                                    image?: ...;
                                    name: ...;
                                    next_comments_update?: ...;
                                    next_stats_update?: ...;
                                    private_message_link?: ...;
                                    social_network: ...;
                                    username?: ...;
                                };
                                id_integration?: string;
                                id_organization: string;
                                metrics?: {
                                    clicks?: ...;
                                    comments?: ...;
                                    engagement?: ...;
                                    followers?: ...;
                                    followers_gained?: ...;
                                    impressions?: ...;
                                    likes?: ...;
                                    profile_views?: ...;
                                    reach?: ...;
                                    saves?: ...;
                                    shares?: ...;
                                    video_views?: ...;
                                };
                                name?: string;
                                next_stats_update?: string;
                                publication_errors: { code: ...; data?: ...; message: ... }[];
                                publication_type:
                                    | "profile"
                                    | "page"
                                    | "group"
                                    | "reels"
                                    | "stories"
                                    | "message";
                                publish_date?: string;
                                retries: number;
                                social_network: | "facebook"
                                | "instagram"
                                | "linkedin"
                                | "tiktok"
                                | "twitter"
                                | "whatsapp"
                                | "youtube"
                                | "google_business"
                                | "bluesky"
                                | "discord";
                                state: "ready"
                                | "withErrors"
                                | "sended"
                                | "draft"
                                | "publishing";
                                statistics?: {
                                    angers?: ...;
                                    bookmarks?: ...;
                                    clicks?: ...;
                                    comments?: ...;
                                    engagement?: ...;
                                    follows?: ...;
                                    hahas?: ...;
                                    impressions?: ...;
                                    likes?: ...;
                                    loves?: ...;
                                    negative_feedback?: ...;
                                    page_likes?: ...;
                                    playback_0_count?: ...;
                                    playback_100_count?: ...;
                                    playback_25_count?: ...;
                                    playback_50_count?: ...;
                                    playback_75_count?: ...;
                                    profile_activity?: ...;
                                    profile_visits?: ...;
                                    quotes?: ...;
                                    reach?: ...;
                                    replys?: ...;
                                    retwets?: ...;
                                    saved?: ...;
                                    share?: ...;
                                    shareMentions?: ...;
                                    shares?: ...;
                                    sorrys?: ...;
                                    url_link_clicks?: ...;
                                    user_profile_clicks?: ...;
                                    video_views?: ...;
                                    views?: ...;
                                    wows?: ...;
                                };
                                stats_updated_date?: string;
                                text?: string;
                                title?: string;
                                url?: string;
                            };
                            like_count?: number;
                            our_reply_external_id?: string;
                            parent_external_id?: string;
                            publication_external_id: string;
                            rating?: number;
                            read: boolean;
                            replied: boolean;
                            reply_count?: number;
                            social_network: | "facebook"
                            | "instagram"
                            | "linkedin"
                            | "twitter"
                            | "youtube"
                            | "google_business"
                            | "bluesky"
                            | "discord";
                            text: string;
                        }[];
                        total: number;
                    };
                };
                headers: { [name: string]: unknown };
            };
            "400": {
                content: {
                    "application/json": {
                        code: number;
                        data?: { [key: string]: unknown };
                        message: string;
                    };
                };
                headers: { [name: string]: unknown };
            };
        };
    };
    getConnectLinks: {
        parameters: {
            cookie?: undefined;
            header?: undefined;
            path: { id_organization: string };
            query?: {
                redirect_uri?: string;
                social_network?: (
                    | "facebook"
                    | "instagram"
                    | "linkedin"
                    | "tiktok"
                    | "twitter"
                    | "whatsapp"
                    | "youtube"
                    | "google_business"
                    | "bluesky"
                    | "discord"
                )[];
            };
        };
        requestBody?: undefined;
        responses: {
            "200": {
                content: {
                    "application/json": {
                        links: {
                            authorization: {
                                app_id?: string;
                                config_id?: string;
                                feature_type?: string;
                                graph_version?: string;
                                session_info_version?: string;
                                type: "redirect"
                                | "meta_embedded_signup";
                            };
                            link: string;
                            social_network: | "facebook"
                            | "instagram"
                            | "linkedin"
                            | "tiktok"
                            | "twitter"
                            | "whatsapp"
                            | "youtube"
                            | "google_business"
                            | "bluesky"
                            | "discord";
                        }[];
                    };
                };
                headers: { [name: string]: unknown };
            };
            "400": {
                content: {
                    "application/json": {
                        code: number;
                        data?: { [key: string]: unknown };
                        message: string;
                    };
                };
                headers: { [name: string]: unknown };
            };
            "500": { content?: undefined; headers: { [name: string]: unknown } };
        };
    };
    getContact: {
        parameters: {
            cookie?: undefined;
            header?: undefined;
            path: { id_contact: string; id_organization: string };
            query?: undefined;
        };
        requestBody?: undefined;
        responses: {
            "200": {
                content: {
                    "application/json": {
                        contact: {
                            _id: string;
                            creation_date: string;
                            creator_keycloak_identifier?: string;
                            extra_data?: {
                                address?: string;
                                boolean_property?: boolean;
                                boolean_property2?: boolean;
                                building?: string
                                | number;
                                city?: string;
                                coords?: number[];
                                country?: string;
                                country_code?: string;
                                door?: string | number;
                                floor?: string | number;
                                number?: string | number;
                                number_property?: number;
                                number_property2?: number;
                                place_id?: string;
                                state?: string;
                                string_property?: string;
                                string_property2?: string;
                                zip_code?: string | number;
                            };
                            id_organization: string;
                            last_contact_update: string;
                            name?: string;
                            profile_image?: string;
                            social_identifiers: {
                                _id: string;
                                external_identifier?: string;
                                last_send_date?: string;
                                social_network: | "facebook"
                                | "instagram"
                                | "linkedin"
                                | "tiktok"
                                | "twitter"
                                | "whatsapp"
                                | "youtube"
                                | "google_business"
                                | "bluesky"
                                | "discord"
                                | "email";
                            }[];
                        };
                    };
                };
                headers: { [name: string]: unknown };
            };
            "400": {
                content: {
                    "application/json": {
                        code: number;
                        data?: { [key: string]: unknown };
                        message: string;
                    };
                };
                headers: { [name: string]: unknown };
            };
        };
    };
    getContacts: {
        parameters: {
            cookie?: undefined;
            header?: undefined;
            path: { id_organization: string };
            query?: {
                extra_data?: { key?: string; value?: unknown }[];
                limit?: number;
                offset?: number;
                search?: string;
                social_network?:
                    | "facebook"
                    | "instagram"
                    | "linkedin"
                    | "tiktok"
                    | "twitter"
                    | "whatsapp"
                    | "youtube"
                    | "google_business"
                    | "bluesky"
                    | "discord";
            };
        };
        requestBody?: undefined;
        responses: {
            "200": {
                content: {
                    "application/json": {
                        contacts: {
                            _id: string;
                            creation_date: string;
                            creator_keycloak_identifier?: string;
                            extra_data?: {
                                address?: string;
                                boolean_property?: boolean;
                                boolean_property2?: boolean;
                                building?: string
                                | number;
                                city?: string;
                                coords?: (...)[];
                                country?: string;
                                country_code?: string;
                                door?: string | number;
                                floor?: string | number;
                                number?: string | number;
                                number_property?: number;
                                number_property2?: number;
                                place_id?: string;
                                state?: string;
                                string_property?: string;
                                string_property2?: string;
                                zip_code?: string | number;
                            };
                            id_organization: string;
                            last_contact_update: string;
                            name?: string;
                            profile_image?: string;
                            social_identifiers: {
                                _id: string;
                                external_identifier?: string;
                                last_send_date?: string;
                                social_network: | "facebook"
                                | "instagram"
                                | "linkedin"
                                | "tiktok"
                                | "twitter"
                                | "whatsapp"
                                | "youtube"
                                | "google_business"
                                | "bluesky"
                                | "discord"
                                | "email";
                            }[];
                        }[];
                        total: number;
                    };
                };
                headers: { [name: string]: unknown };
            };
            "400": {
                content: {
                    "application/json": {
                        code: number;
                        data?: { [key: string]: unknown };
                        message: string;
                    };
                };
                headers: { [name: string]: unknown };
            };
        };
    };
    getConversations: {
        parameters: {
            cookie?: undefined;
            header?: undefined;
            path: { id_account: string; id_organization: string };
            query?: { limit?: number; offset?: number };
        };
        requestBody?: undefined;
        responses: {
            "200": {
                content: {
                    "application/json": {
                        conversations: {
                            contact: {
                                _id: string;
                                creation_date: string;
                                creator_keycloak_identifier?: string;
                                extra_data?: {
                                    address?: (...)
                                    | (...);
                                    boolean_property?: (...) | (...) | (...);
                                    boolean_property2?: (...) | (...) | (...);
                                    building?: (...) | (...) | (...);
                                    city?: (...) | (...);
                                    coords?: (...) | (...);
                                    country?: (...) | (...);
                                    country_code?: (...) | (...);
                                    door?: (...) | (...) | (...);
                                    floor?: (...) | (...) | (...);
                                    number?: (...) | (...) | (...);
                                    number_property?: (...) | (...);
                                    number_property2?: (...) | (...);
                                    place_id?: (...) | (...);
                                    state?: (...) | (...);
                                    string_property?: (...) | (...);
                                    string_property2?: (...) | (...);
                                    zip_code?: (...) | (...) | (...);
                                };
                                id_organization: string;
                                last_contact_update: string;
                                name?: string;
                                profile_image?: string;
                                social_identifiers: {
                                    _id: string;
                                    external_identifier?: (...)
                                    | (...);
                                    last_send_date?: (...) | (...);
                                    social_network:
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...);
                                }[];
                            };
                            date: string;
                            unread_messages: number;
                        }[];
                        total: number;
                    };
                };
                headers: { [name: string]: unknown };
            };
            "400": {
                content: {
                    "application/json": {
                        code: number;
                        data?: { [key: string]: unknown };
                        message: string;
                    };
                };
                headers: { [name: string]: unknown };
            };
        };
    };
    getDashboard: {
        parameters: {
            cookie?: undefined;
            header?: undefined;
            path: { id_organization: string };
            query?: { from_date?: string; to_date?: string };
        };
        requestBody?: undefined;
        responses: {
            "200": {
                content: {
                    "application/json": {
                        account_metrics?: {
                            by_day: {
                                group: null
                                | string;
                                name:
                                    | "reach"
                                    | "impressions"
                                    | "followers"
                                    | "comments"
                                    | "engagement"
                                    | "likes"
                                    | "shares"
                                    | "saves"
                                    | "clicks"
                                    | "video_views"
                                    | "profile_views"
                                    | "followers_gained";
                                value: number;
                            }[];
                            by_network: {
                                group: null
                                | string;
                                name:
                                    | "reach"
                                    | "impressions"
                                    | "followers"
                                    | "comments"
                                    | "engagement"
                                    | "likes"
                                    | "shares"
                                    | "saves"
                                    | "clicks"
                                    | "video_views"
                                    | "profile_views"
                                    | "followers_gained";
                                value: number;
                            }[];
                            previous_total: {
                                clicks?: number;
                                comments?: number;
                                engagement?: number;
                                followers?: number;
                                followers_gained?: number;
                                impressions?: number;
                                likes?: number;
                                profile_views?: number;
                                reach?: number;
                                saves?: number;
                                shares?: number;
                                video_views?: number;
                            };
                            total: {
                                clicks?: number;
                                comments?: number;
                                engagement?: number;
                                followers?: number;
                                followers_gained?: number;
                                impressions?: number;
                                likes?: number;
                                profile_views?: number;
                                reach?: number;
                                saves?: number;
                                shares?: number;
                                video_views?: number;
                            };
                        };
                        ai_plans?: {
                            by_state: { state?: string; total?: number }[];
                            credits_spent: number;
                            generated_publications: number;
                            last_plan?: {
                                _id: string;
                                creation_date: string;
                                credits_spent?: number;
                                error?: { code: ...; data?: ...; message: ... };
                                generation_end_date?: string;
                                prompt?: string;
                                publications?: (...)[];
                                state:
                                    | "pending"
                                    | "generating"
                                    | "generated"
                                    | "validated"
                                    | "failed"
                                    | "cancelled";
                            };
                            pending_validation: number;
                            total: number;
                        };
                        available_blocks: {
                            account_metrics: boolean;
                            ai_plans: boolean;
                            health: boolean;
                            messages: boolean;
                            plan_use: boolean;
                            publication_metrics: boolean;
                            publications: boolean;
                        };
                        health?: {
                            accounts_with_errors?: {
                                _id: string;
                                error_code: number;
                                image?: (...)
                                | (...);
                                name: string;
                                social_network:
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...);
                                username?: (...) | (...);
                            }[];
                            publications_with_errors?: {
                                _id: string;
                                creation_date?: (...)
                                | (...);
                                name?: (...) | (...);
                                publication_errors?: (...) | (...);
                                publish_date?: (...) | (...);
                                social_network:
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...);
                                text?: (...) | (...);
                            }[];
                            total_drafts?: number;
                            upcoming_publications?: {
                                _id: string;
                                creation_date?: (...)
                                | (...);
                                name?: (...) | (...);
                                publication_errors?: (...) | (...);
                                publish_date?: (...) | (...);
                                social_network:
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...);
                                text?: (...) | (...);
                            }[];
                        };
                        messages?: { unread: number };
                        plan_use?: {
                            actual_asigned: {
                                accounts: number;
                                ai_credits?: number;
                                artificial_inteligence?: boolean;
                                integrations: number;
                                publications: number;
                                space: number;
                                stats?: boolean;
                                twitter_credits?: number;
                                users: number;
                                whatsapp?: boolean;
                            };
                            actual_use: {
                                accounts: number;
                                ai_credits?: number;
                                artificial_inteligence?: boolean;
                                integrations: number;
                                publications: number;
                                space: number;
                                stats?: boolean;
                                twitter_credits?: number;
                                users: number;
                                whatsapp?: boolean;
                            };
                            limits: {
                                accounts: number;
                                ai_credits?: number;
                                artificial_inteligence?: boolean;
                                integrations: number;
                                publications: number;
                                space: number;
                                stats?: boolean;
                                twitter_credits?: number;
                                users: number;
                                whatsapp?: boolean;
                            };
                        };
                        publication_metrics?: {
                            by_network: {
                                metrics?: {
                                    clicks?: ...;
                                    comments?: ...;
                                    engagement?: ...;
                                    followers?: ...;
                                    followers_gained?: ...;
                                    impressions?: ...;
                                    likes?: ...;
                                    profile_views?: ...;
                                    reach?: ...;
                                    saves?: ...;
                                    shares?: ...;
                                    video_views?: ...;
                                };
                                publications?: number;
                                social_network?: | "facebook"
                                | "instagram"
                                | "linkedin"
                                | "tiktok"
                                | "twitter"
                                | "whatsapp"
                                | "youtube"
                                | "google_business"
                                | "bluesky"
                                | "discord";
                            }[];
                            previous_total: {
                                clicks?: number;
                                comments?: number;
                                engagement?: number;
                                followers?: number;
                                followers_gained?: number;
                                impressions?: number;
                                likes?: number;
                                profile_views?: number;
                                reach?: number;
                                saves?: number;
                                shares?: number;
                                video_views?: number;
                            };
                            top: {
                                collected_date?: string;
                                engagement_base?: "reach"
                                | "impressions"
                                | "followers";
                                id_publication: string;
                                metrics: {
                                    clicks?: (...) | (...);
                                    comments?: (...) | (...);
                                    engagement?: (...) | (...);
                                    followers?: (...) | (...);
                                    followers_gained?: (...) | (...);
                                    impressions?: (...) | (...);
                                    likes?: (...) | (...);
                                    profile_views?: (...) | (...);
                                    reach?: (...) | (...);
                                    saves?: (...) | (...);
                                    shares?: (...) | (...);
                                    video_views?: (...) | (...);
                                };
                                publication: {
                                    external_identifier?: (...)
                                    | (...);
                                    files?: (...) | (...);
                                    publication_type?: (...) | (...);
                                    text?: (...) | (...);
                                    title?: (...) | (...);
                                    url?: (...) | (...);
                                };
                                publish_date?: string;
                                social_network: | "facebook"
                                | "instagram"
                                | "linkedin"
                                | "tiktok"
                                | "twitter"
                                | "whatsapp"
                                | "youtube"
                                | "google_business"
                                | "bluesky"
                                | "discord";
                            }[];
                            total: {
                                clicks?: number;
                                comments?: number;
                                engagement?: number;
                                followers?: number;
                                followers_gained?: number;
                                impressions?: number;
                                likes?: number;
                                profile_views?: number;
                                reach?: number;
                                saves?: number;
                                shares?: number;
                                video_views?: number;
                            };
                        };
                        publications?: {
                            by_day: {
                                day?: (...)
                                | (...);
                                state?: (...) | (...);
                                total?: (...) | (...);
                            }[];
                            by_network: {
                                social_network?: | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...);
                                total?: (...) | (...);
                            }[];
                            by_state: { state?: (...)
                            | (...); total?: (...) | (...) }[];
                            published_by_day: {
                                day?: (...) | (...);
                                social_network?:
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...);
                                total?: (...) | (...);
                            }[];
                            total: number;
                        } & { previous_total?: number };
                        range: {
                            from_date: string;
                            previous_from_date: string;
                            previous_to_date: string;
                            to_date: string;
                        };
                    };
                };
                headers: { [name: string]: unknown };
            };
            "400": {
                content: {
                    "application/json": {
                        code: number;
                        data?: { [key: string]: unknown };
                        message: string;
                    };
                };
                headers: { [name: string]: unknown };
            };
        };
    };
    getIntegration: {
        parameters: {
            cookie?: undefined;
            header?: undefined;
            path: { id_integration: string; id_organization: string };
            query?: undefined;
        };
        requestBody?: undefined;
        responses: {
            "200": {
                content: {
                    "application/json": {
                        integration: {
                            _id: string;
                            config: {
                                auto_publish?: boolean;
                                id_accounts?: string[];
                                import_image?: boolean;
                                last_checked?: string;
                                publication_type?: string;
                                seen_guids?: string[];
                                template?: string;
                                url?: string;
                            };
                            connected: boolean;
                            creation_date: string;
                            enabled: boolean;
                            error_code?: null
                            | number;
                            external_identifier?: string;
                            id_client: string;
                            id_organization: string;
                            last_used_date?: string;
                            name: string;
                            provider: "google_drive" | "rss";
                        };
                    };
                };
                headers: { [name: string]: unknown };
            };
            "400": {
                content: {
                    "application/json": {
                        code: number;
                        data?: { [key: string]: unknown };
                        message: string;
                    };
                };
                headers: { [name: string]: unknown };
            };
        };
    };
    getIntegrationConnectLink: {
        parameters: {
            cookie?: undefined;
            header?: undefined;
            path: { id_organization: string; provider: "google_drive"
            | "rss" };
            query?: { redirect_uri?: string };
        };
        requestBody?: undefined;
        responses: {
            "200": {
                content: { "application/json": { url: string } };
                headers: { [name: string]: unknown };
            };
            "400": {
                content: {
                    "application/json": {
                        code: number;
                        data?: { [key: string]: unknown };
                        message: string;
                    };
                };
                headers: { [name: string]: unknown };
            };
        };
    };
    getIntegrationPickerConfig: {
        parameters: {
            cookie?: undefined;
            header?: undefined;
            path: { id_integration: string; id_organization: string };
            query?: undefined;
        };
        requestBody?: undefined;
        responses: {
            "200": {
                content: {
                    "application/json": {
                        access_token: string;
                        app_id: string;
                        developer_key: string;
                        expires_in: string;
                    };
                };
                headers: { [name: string]: unknown };
            };
            "400": {
                content: {
                    "application/json": {
                        code: number;
                        data?: { [key: string]: unknown };
                        message: string;
                    };
                };
                headers: { [name: string]: unknown };
            };
        };
    };
    getIntegrationProviders: {
        parameters: {
            cookie?: undefined;
            header?: undefined;
            path?: undefined;
            query?: undefined;
        };
        requestBody?: undefined;
        responses: {
            "200": {
                content: {
                    "application/json": {
                        providers: {
                            accepted_formats: string[];
                            config_fields: {
                                default?: unknown;
                                name: string;
                                options?: (...)[];
                                required?: boolean;
                                type:
                                    | "boolean"
                                    | "text"
                                    | "url"
                                    | "accounts"
                                    | "textarea"
                                    | "select";
                            }[];
                            content_feed: boolean;
                            file_import: boolean;
                            provider: "google_drive"
                            | "rss";
                            requires_oauth: boolean;
                        }[];
                    };
                };
                headers: { [name: string]: unknown };
            };
            "400": {
                content: {
                    "application/json": {
                        code: number;
                        data?: { [key: string]: unknown };
                        message: string;
                    };
                };
                headers: { [name: string]: unknown };
            };
        };
    };
    getIntegrations: {
        parameters: {
            cookie?: undefined;
            header?: undefined;
            path: { id_organization: string };
            query?: {
                limit?: number;
                offset?: number;
                provider?: "google_drive" | "rss";
            };
        };
        requestBody?: undefined;
        responses: {
            "200": {
                content: {
                    "application/json": {
                        integrations: {
                            _id: string;
                            config: {
                                auto_publish?: boolean;
                                id_accounts?: string[];
                                import_image?: boolean;
                                last_checked?: string;
                                publication_type?: string;
                                seen_guids?: string[];
                                template?: string;
                                url?: string;
                            };
                            connected: boolean;
                            creation_date: string;
                            enabled: boolean;
                            error_code?: null
                            | number;
                            external_identifier?: string;
                            id_client: string;
                            id_organization: string;
                            last_used_date?: string;
                            name: string;
                            provider: "google_drive" | "rss";
                        }[];
                        total: number;
                    };
                };
                headers: { [name: string]: unknown };
            };
            "400": {
                content: {
                    "application/json": {
                        code: number;
                        data?: { [key: string]: unknown };
                        message: string;
                    };
                };
                headers: { [name: string]: unknown };
            };
        };
    };
    getMessages: {
        parameters: {
            cookie?: undefined;
            header?: undefined;
            path: { id_account: string; id_contact: string; id_organization: string };
            query?: { limit?: number; offset?: number };
        };
        requestBody?: undefined;
        responses: {
            "200": {
                content: {
                    "application/json": {
                        messages: {
                            _id: string;
                            contact_id?: | string
                            | {
                                _id: string;
                                creation_date: string;
                                creator_keycloak_identifier?: string;
                                extra_data?: {
                                    address?: ...;
                                    boolean_property?: ...;
                                    boolean_property2?: ...;
                                    building?: ...;
                                    city?: ...;
                                    coords?: ...;
                                    country?: ...;
                                    country_code?: ...;
                                    door?: ...;
                                    floor?: ...;
                                    number?: ...;
                                    number_property?: ...;
                                    number_property2?: ...;
                                    place_id?: ...;
                                    state?: ...;
                                    string_property?: ...;
                                    string_property2?: ...;
                                    zip_code?: ...;
                                };
                                id_organization: string;
                                last_contact_update: string;
                                name?: string;
                                profile_image?: string;
                                social_identifiers: {
                                    _id: ...;
                                    external_identifier?: ...;
                                    last_send_date?: ...;
                                    social_network: ...;
                                }[];
                            };
                            creation_date: string;
                            element_external_id?: string;
                            from_contact_id?: | string
                            | {
                                _id: string;
                                creation_date: string;
                                creator_keycloak_identifier?: string;
                                extra_data?: {
                                    address?: ...;
                                    boolean_property?: ...;
                                    boolean_property2?: ...;
                                    building?: ...;
                                    city?: ...;
                                    coords?: ...;
                                    country?: ...;
                                    country_code?: ...;
                                    door?: ...;
                                    floor?: ...;
                                    number?: ...;
                                    number_property?: ...;
                                    number_property2?: ...;
                                    place_id?: ...;
                                    state?: ...;
                                    string_property?: ...;
                                    string_property2?: ...;
                                    zip_code?: ...;
                                };
                                id_organization: string;
                                last_contact_update: string;
                                name?: string;
                                profile_image?: string;
                                social_identifiers: {
                                    _id: ...;
                                    external_identifier?: ...;
                                    last_send_date?: ...;
                                    social_network: ...;
                                }[];
                            };
                            id_account: string;
                            in_response_external_id?: string;
                            in_response_to?: string;
                            message_errors: {
                                code: number;
                                data?: { [key: ...]: ... };
                                message: string;
                            }[];
                            message_options: {
                                files: (
                                    | string
                                    | {
                                        _id: ...;
                                        cover_image?: ...;
                                        cover_offset?: ...;
                                        creation_date: ...;
                                        file_externals: ...;
                                        file_format: ...;
                                        file_properties: ...;
                                        file_type: ...;
                                        id_organization: ...;
                                        is_temporal: ...;
                                        name: ...;
                                        public_path: ...;
                                    }
                                )[];
                                files_urls: { mime_type?: (...)
                                | (...); url?: (...) | (...) }[];
                                metaElements?: { [key: ...]: ... }[];
                                metaQuickReplies?: { [key: ...]: ... }[];
                                payload?: string;
                                template_language?: string;
                                template_name?: string;
                                whatsappInteractive?: { [key: string]: unknown };
                            };
                            message_type: | "simple_message"
                            | "file_message"
                            | "comment_message"
                            | "publication_message"
                            | "quick_reply_message"
                            | "button_message"
                            | "elements_message"
                            | "postback_message"
                            | "template_message"
                            | "interactive_message";
                            read: boolean;
                            text?: string;
                        }[];
                        total: number;
                    };
                };
                headers: { [name: string]: unknown };
            };
            "400": {
                content: {
                    "application/json": {
                        code: number;
                        data?: { [key: string]: unknown };
                        message: string;
                    };
                };
                headers: { [name: string]: unknown };
            };
        };
    };
    getMessageTemplates: {
        parameters: {
            cookie?: undefined;
            header?: undefined;
            path: { id_account: string; id_organization: string };
            query?: { limit?: number; offset?: number };
        };
        requestBody?: undefined;
        responses: {
            "200": {
                content: {
                    "application/json": {
                        templates: { [key: string]: unknown }[];
                        total: number;
                    };
                };
                headers: { [name: string]: unknown };
            };
            "400": {
                content: {
                    "application/json": {
                        code: number;
                        data?: { [key: string]: unknown };
                        message: string;
                    };
                };
                headers: { [name: string]: unknown };
            };
        };
    };
    getMetricList: {
        parameters: {
            cookie?: undefined;
            header?: undefined;
            path: { id_account: string; id_organization: string };
            query?: undefined;
        };
        requestBody?: undefined;
        responses: {
            "200": {
                content: {
                    "application/json": (
                        | "reach"
                        | "impressions"
                        | "comments"
                        | "likes"
                        | "shares"
                        | "saves"
                        | "profile_views"
                        | "page_impressions"
                        | "page_total_actions"
                        | "page_call_phone_clicks_logged_in_unique"
                        | "page_get_directions_clicks_logged_in_unique"
                        | "page_website_clicks_logged_in_unique"
                        | "page_post_engagements"
                        | "page_consumptions_unique"
                        | "page_negative_feedback"
                        | "page_negative_feedback_unique"
                        | "page_fans_online_per_day"
                        | "page_impressions_unique"
                        | "page_impressions_paid"
                        | "page_impressions_paid_unique"
                        | "page_impressions_organic_v2"
                        | "page_impressions_organic_unique_v2"
                        | "page_impressions_viral"
                        | "page_impressions_viral_unique"
                        | "page_impressions_nonviral"
                        | "page_impressions_nonviral_unique"
                        | "page_posts_impressions"
                        | "page_posts_impressions_unique"
                        | "page_posts_impressions_paid"
                        | "page_posts_impressions_paid_unique"
                        | "page_posts_impressions_organic"
                        | "page_posts_impressions_organic_unique"
                        | "page_posts_served_impressions_organic_unique"
                        | "page_posts_impressions_viral"
                        | "page_posts_impressions_viral_unique"
                        | "page_posts_impressions_nonviral"
                        | "page_posts_impressions_nonviral_unique"
                        | "total_interactions"
                        | "accounts_engaged"
                        | "replies"
                        | "follows_and_unfollows"
                        | "profile_links_taps"
                        | "website_clicks"
                        | "paidFollowers"
                        | "organicFollowerGain"
                        | "careersPageBannerPromoClicks"
                        | "careersPagePromoLinksClicks"
                        | "careersPageEmployeesClicks"
                        | "careersPageJobsClicks"
                        | "careersPageViewsUnique"
                        | "careersPageViews"
                        | "overviewPageViewsUnique"
                        | "overviewPageViews"
                        | "allPageViews"
                        | "follows"
                        | "share"
                        | "views"
                    )[];
                };
                headers: { [name: string]: unknown };
            };
            "400": {
                content: {
                    "application/json": {
                        code: number;
                        data?: { [key: string]: unknown };
                        message: string;
                    };
                };
                headers: { [name: string]: unknown };
            };
            "500": { content?: undefined; headers: { [name: string]: unknown } };
        };
    };
    getOrganization: {
        parameters: {
            cookie?: undefined;
            header?: undefined;
            path: { id_organization: string };
            query?: { getUse?: boolean };
        };
        requestBody?: undefined;
        responses: {
            "200": {
                content: {
                    "application/json": {
                        organization: {
                            _id: string;
                            actual_asigned?: {
                                accounts: number;
                                ai_credits?: number;
                                artificial_inteligence?: boolean;
                                integrations: number;
                                publications: number;
                                space: number;
                                stats?: boolean;
                                twitter_credits?: number;
                                users: number;
                                whatsapp?: boolean;
                            };
                            actual_plan?: {
                                accounts: number;
                                ai_credits?: number;
                                artificial_inteligence?: boolean;
                                integrations: number;
                                publications: number;
                                space: number;
                                stats?: boolean;
                                twitter_credits?: number;
                                users: number;
                                whatsapp?: boolean;
                            };
                            actual_use?: {
                                accounts: number;
                                ai_credits?: number;
                                artificial_inteligence?: boolean;
                                integrations: number;
                                publications: number;
                                space: number;
                                stats?: boolean;
                                twitter_credits?: number;
                                users: number;
                                whatsapp?: boolean;
                            };
                            ai_context?: {
                                audience?: string;
                                avoid?: string;
                                blog_url?: string;
                                brand_name?: string;
                                default_tone?: string;
                                description?: string;
                                keywords?: string[];
                                notes?: string;
                                products?: string;
                                sector?: string;
                                shop_url?: string;
                                social_urls?: string[];
                                value_proposition?: string;
                                website?: string;
                            };
                            creation_date: string;
                            id_client: string;
                            name: string;
                            parent_organization?: string;
                            social_credentials?: {
                                discord?: {
                                    application_name?: (...)
                                    | (...);
                                    client_id?: (...) | (...);
                                    has_bot_token?: (...) | (...) | (...);
                                    has_client_secret?: (...) | (...) | (...);
                                    verified_date?: (...) | (...);
                                };
                            };
                            stats_settings?: { auto_refresh_twitter: boolean };
                        };
                    };
                };
                headers: { [name: string]: unknown };
            };
            "400": {
                content: {
                    "application/json": {
                        code: number;
                        data?: { [key: string]: unknown };
                        message: string;
                    };
                };
                headers: { [name: string]: unknown };
            };
            "500": { content?: undefined; headers: { [name: string]: unknown } };
        };
    };
    getOrganizationConversationsTotal: {
        parameters: {
            cookie?: undefined;
            header?: undefined;
            path: { id_organization: string };
            query?: {
                from_date?: string;
                group_by?: "day" | "month" | "year";
                to_date?: string;
            };
        };
        requestBody?: undefined;
        responses: {
            "200": {
                content: {
                    "application/json": | { total: number }
                    | {
                        group: "day" | "month" | "year";
                        stats: { groupValue: number; totalConversations: number }[];
                    };
                };
                headers: { [name: string]: unknown };
            };
            "400": {
                content: {
                    "application/json": {
                        code: number;
                        data?: { [key: string]: unknown };
                        message: string;
                    };
                };
                headers: { [name: string]: unknown };
            };
        };
    };
    getOrganizationLimits: {
        parameters: {
            cookie?: undefined;
            header?: undefined;
            path: { id_organization: string };
            query?: undefined;
        };
        requestBody?: undefined;
        responses: {
            "200": {
                content: {
                    "application/json": {
                        accounts: number;
                        ai_credits?: number;
                        artificial_inteligence?: boolean;
                        integrations: number;
                        publications: number;
                        space: number;
                        stats?: boolean;
                        twitter_credits?: number;
                        users: number;
                        whatsapp?: boolean;
                    };
                };
                headers: { [name: string]: unknown };
            };
            "400": {
                content: {
                    "application/json": {
                        code: number;
                        data?: { [key: string]: unknown };
                        message: string;
                    };
                };
                headers: { [name: string]: unknown };
            };
            "500": { content?: undefined; headers: { [name: string]: unknown } };
        };
    };
    getOrganizationMetrics: {
        parameters: {
            cookie?: undefined;
            header?: undefined;
            path: { id_organization: string };
            query?: {
                from_date?: string;
                group_by?: "account" | "total" | "day" | "network";
                names?: (
                    | "reach"
                    | "impressions"
                    | "followers"
                    | "comments"
                    | "engagement"
                    | "likes"
                    | "shares"
                    | "saves"
                    | "clicks"
                    | "video_views"
                    | "profile_views"
                    | "followers_gained"
                )[];
                to_date?: string;
            };
        };
        requestBody?: undefined;
        responses: {
            "200": {
                content: {
                    "application/json": {
                        group_by: "account"
                        | "total"
                        | "day"
                        | "network";
                        range: {
                            from_date: string;
                            previous_from_date: string;
                            previous_to_date: string;
                            to_date: string;
                        };
                        stats: {
                            group: null
                            | string;
                            name:
                                | "reach"
                                | "impressions"
                                | "followers"
                                | "comments"
                                | "engagement"
                                | "likes"
                                | "shares"
                                | "saves"
                                | "clicks"
                                | "video_views"
                                | "profile_views"
                                | "followers_gained";
                            value: number;
                        }[];
                    };
                };
                headers: { [name: string]: unknown };
            };
            "400": {
                content: {
                    "application/json": {
                        code: number;
                        data?: { [key: string]: unknown };
                        message: string;
                    };
                };
                headers: { [name: string]: unknown };
            };
        };
    };
    getOrganizationPermissions: {
        parameters: {
            cookie?: undefined;
            header?: undefined;
            path?: undefined;
            query?: undefined;
        };
        requestBody?: undefined;
        responses: {
            "200": {
                content: {
                    "application/json": {
                        permissions?: (
                            | "organization:create"
                            | "organization:update"
                            | "organization:read"
                            | "organization:delete"
                            | "organization_roles:create"
                            | "organization_roles:update"
                            | "organization_roles:read"
                            | "organization_roles:delete"
                            | "organization_users_roles:read"
                            | "organization_users_roles:create"
                            | "organization_users_roles:delete"
                            | "accounts:create"
                            | "accounts:update"
                            | "accounts:read"
                            | "accounts:delete"
                            | "products:create"
                            | "products:update"
                            | "products:read"
                            | "products:delete"
                            | "files:create"
                            | "files:update"
                            | "files:read"
                            | "files:delete"
                            | "publications:create"
                            | "publications:update"
                            | "publications:read"
                            | "publications:delete"
                            | "account_stats:read"
                            | "publication_stats:read"
                            | "messages:create"
                            | "messages:read"
                            | "messages:delete"
                            | "contacts:create"
                            | "contacts:read"
                            | "contacts:update"
                            | "contacts:delete"
                            | "ai_plans:create"
                            | "ai_plans:read"
                            | "ai_plans:update"
                            | "ai_plans:delete"
                        )[];
                    };
                };
                headers: { [name: string]: unknown };
            };
            "400": {
                content: {
                    "application/json": {
                        code: number;
                        data?: { [key: string]: unknown };
                        message: string;
                    };
                };
                headers: { [name: string]: unknown };
            };
            "401": {
                content: {
                    "application/json": {
                        code: number;
                        data?: { [key: string]: unknown };
                        message: string;
                    };
                };
                headers: { [name: string]: unknown };
            };
            "500": {
                content: {
                    "application/json": {
                        code: number;
                        data?: { [key: string]: unknown };
                        message: string;
                    };
                };
                headers: { [name: string]: unknown };
            };
        };
    };
    getOrganizationRoles: {
        parameters: {
            cookie?: undefined;
            header?: undefined;
            path: { id_organization: string };
            query?: { limit?: number; offset?: number };
        };
        requestBody?: undefined;
        responses: {
            "200": {
                content: {
                    "application/json": {
                        roles?: {
                            _id?: string;
                            creation_date?: string;
                            default?: boolean;
                            id_organization?: string;
                            name?: string;
                            permissions?: (
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                            )[];
                            total_users?: number;
                        }[];
                        total?: number;
                    };
                };
                headers: { [name: string]: unknown };
            };
            "400": {
                content: {
                    "application/json": {
                        code: number;
                        data?: { [key: string]: unknown };
                        message: string;
                    };
                };
                headers: { [name: string]: unknown };
            };
            "401": {
                content: {
                    "application/json": {
                        code: number;
                        data?: { [key: string]: unknown };
                        message: string;
                    };
                };
                headers: { [name: string]: unknown };
            };
            "500": {
                content: {
                    "application/json": {
                        code: number;
                        data?: { [key: string]: unknown };
                        message: string;
                    };
                };
                headers: { [name: string]: unknown };
            };
        };
    };
    getOrganizationUse: {
        parameters: {
            cookie?: undefined;
            header?: undefined;
            path: { id_organization: string };
            query?: undefined;
        };
        requestBody?: undefined;
        responses: {
            "200": {
                content: {
                    "application/json": {
                        actual_asigned: {
                            accounts: number;
                            ai_credits?: number;
                            artificial_inteligence?: boolean;
                            integrations: number;
                            publications: number;
                            space: number;
                            stats?: boolean;
                            twitter_credits?: number;
                            users: number;
                            whatsapp?: boolean;
                        };
                        actual_use: {
                            accounts: number;
                            ai_credits?: number;
                            artificial_inteligence?: boolean;
                            integrations: number;
                            publications: number;
                            space: number;
                            stats?: boolean;
                            twitter_credits?: number;
                            users: number;
                            whatsapp?: boolean;
                        };
                        limits: {
                            accounts: number;
                            ai_credits?: number;
                            artificial_inteligence?: boolean;
                            integrations: number;
                            publications: number;
                            space: number;
                            stats?: boolean;
                            twitter_credits?: number;
                            users: number;
                            whatsapp?: boolean;
                        };
                    };
                };
                headers: { [name: string]: unknown };
            };
            "400": {
                content: {
                    "application/json": {
                        code: number;
                        data?: { [key: string]: unknown };
                        message: string;
                    };
                };
                headers: { [name: string]: unknown };
            };
        };
    };
    getPersistentMenu: {
        parameters: {
            cookie?: undefined;
            header?: undefined;
            path: { id_account: string; id_organization: string };
            query?: undefined;
        };
        requestBody?: undefined;
        responses: {
            "200": {
                content: {
                    "application/json": {
                        persistent_menu?: {
                            call_to_actions?: { [key: ...]: ... }[];
                            composer_input_disabled?: boolean;
                            locale?: string;
                        }[];
                    };
                };
                headers: { [name: string]: unknown };
            };
            "400": {
                content: {
                    "application/json": {
                        code: number;
                        data?: { [key: string]: unknown };
                        message: string;
                    };
                };
                headers: { [name: string]: unknown };
            };
            "500": { content?: undefined; headers: { [name: string]: unknown } };
        };
    };
    getProductCatalogs: {
        parameters: {
            cookie?: undefined;
            header?: undefined;
            path: { id_account: string; id_organization: string };
            query?: { limit?: number; offset?: number };
        };
        requestBody?: undefined;
        responses: {
            "200": {
                content: {
                    "application/json": {
                        items: (
                            {
                                default_image_url?: string;
                                feed_count?: number;
                                id?: string;
                                is_catalog_segment?: boolean;
                                is_local_catalog?: boolean;
                                name?: string;
                                product_count?: number;
                            } & { [key: string]: unknown }
                        )[];
                        total: number;
                    };
                };
                headers: { [name: string]: unknown };
            };
            "400": {
                content: {
                    "application/json": {
                        code: number;
                        data?: { [key: string]: unknown };
                        message: string;
                    };
                };
                headers: { [name: string]: unknown };
            };
        };
    };
    getProducts: {
        parameters: {
            cookie?: undefined;
            header?: undefined;
            path: { id_account: string; id_organization: string };
            query?: {
                limit?: number;
                offset?: number;
                product_catalog_id?: string;
                product_id?: string;
            };
        };
        requestBody?: undefined;
        responses: {
            "200": {
                content: {
                    "application/json": {
                        items: (
                            {
                                additional_image_urls?: string[];
                                availability?: | "pending"
                                | "in stock"
                                | "out of stock"
                                | "preorder"
                                | "available for order"
                                | "discontinued"
                                | "mark_as_sold";
                                brand?: string;
                                category?: string;
                                color?: string;
                                condition?: | "new"
                                | "refurbished"
                                | "used"
                                | "used_like_new"
                                | "used_good"
                                | "used_fair"
                                | "cpo"
                                | "open_box_new";
                                currency: string;
                                description?: string;
                                id?: string;
                                image_url: string;
                                name: string;
                                price: number;
                                retailer_id: string;
                                url?: string;
                            } & { [key: string]: unknown }
                        )[];
                        total: number;
                    };
                };
                headers: { [name: string]: unknown };
            };
            "400": {
                content: {
                    "application/json": {
                        code: number;
                        data?: { [key: string]: unknown };
                        message: string;
                    };
                };
                headers: { [name: string]: unknown };
            };
        };
    };
    getPublication: {
        parameters: {
            cookie?: undefined;
            header?: undefined;
            path: { id_organization: string; id_publication: string };
            query?: undefined;
        };
        requestBody?: undefined;
        responses: {
            "200": {
                content: {
                    "application/json": {
                        publication: {
                            _id: string;
                            creation_date: string;
                            engagement_base?: "reach"
                            | "impressions"
                            | "followers";
                            external_identifier?: string;
                            files: {
                                _id: string;
                                cover_image?: { _id: string; cover_image?: ...; cover_offset?: number; creation_date: string; file_externals: { external_identifier: string; external_url: string; social_network: "facebook" | "instagram" | ... 7 more ... | "discord"; }[]; ... 6 more ...; public_path: string; };
                                cover_offset?: number;
                                creation_date: string;
                                file_externals: {
                                    external_identifier: string;
                                    external_url: string;
                                    social_network:
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...);
                                }[];
                                file_format: "mp4"
                                | "jpeg"
                                | "gif"
                                | "png"
                                | "jpg";
                                file_properties: {
                                    allowed_social_networks: string[];
                                    aspect_ratio: { text: string; value: number };
                                    duration: number;
                                    height: number;
                                    size_in_bytes: number;
                                    width: number;
                                };
                                file_type: "video"
                                | "image";
                                id_organization: string;
                                is_temporal: boolean;
                                name: string;
                                public_path: string;
                            }[];
                            id_account: | string
                            | {
                                _id: string;
                                creation_date: string;
                                error_code: number;
                                followers_count?: number;
                                id_client: string;
                                id_organization: string;
                                image?: string;
                                name: string;
                                next_comments_update?: string;
                                next_stats_update?: string;
                                private_message_link?: string;
                                social_network: | "facebook"
                                | "instagram"
                                | "linkedin"
                                | "tiktok"
                                | "twitter"
                                | "whatsapp"
                                | "youtube"
                                | "google_business"
                                | "bluesky"
                                | "discord";
                                username?: string;
                            };
                            id_integration?: string;
                            id_organization: string;
                            metrics?: {
                                clicks?: number;
                                comments?: number;
                                engagement?: number;
                                followers?: number;
                                followers_gained?: number;
                                impressions?: number;
                                likes?: number;
                                profile_views?: number;
                                reach?: number;
                                saves?: number;
                                shares?: number;
                                video_views?: number;
                            };
                            name?: string;
                            next_stats_update?: string;
                            publication_errors: {
                                code: number;
                                data?: { [key: string]: unknown };
                                message: string;
                            }[];
                            publication_type: | "profile"
                            | "page"
                            | "group"
                            | "reels"
                            | "stories"
                            | "message";
                            publish_date?: string;
                            retries: number;
                            social_network: | "facebook"
                            | "instagram"
                            | "linkedin"
                            | "tiktok"
                            | "twitter"
                            | "whatsapp"
                            | "youtube"
                            | "google_business"
                            | "bluesky"
                            | "discord";
                            state: "ready"
                            | "withErrors"
                            | "sended"
                            | "draft"
                            | "publishing";
                            statistics?: {
                                angers?: number;
                                bookmarks?: number;
                                clicks?: number;
                                comments?: number;
                                engagement?: number;
                                follows?: number;
                                hahas?: number;
                                impressions?: number;
                                likes?: number;
                                loves?: number;
                                negative_feedback?: number;
                                page_likes?: number;
                                playback_0_count?: number;
                                playback_100_count?: number;
                                playback_25_count?: number;
                                playback_50_count?: number;
                                playback_75_count?: number;
                                profile_activity?: number;
                                profile_visits?: number;
                                quotes?: number;
                                reach?: number;
                                replys?: number;
                                retwets?: number;
                                saved?: number;
                                share?: number;
                                shareMentions?: number;
                                shares?: number;
                                sorrys?: number;
                                url_link_clicks?: number;
                                user_profile_clicks?: number;
                                video_views?: number;
                                views?: number;
                                wows?: number;
                            };
                            stats_updated_date?: string;
                            text?: string;
                            title?: string;
                            url?: string;
                        };
                    };
                };
                headers: { [name: string]: unknown };
            };
            "400": {
                content: {
                    "application/json": {
                        code: number;
                        data?: { [key: string]: unknown };
                        message: string;
                    };
                };
                headers: { [name: string]: unknown };
            };
            "500": { content?: undefined; headers: { [name: string]: unknown } };
        };
    };
    getPublicationComments: {
        parameters: {
            cookie?: undefined;
            header?: undefined;
            path: { id_organization: string; id_publication: string };
            query?: { limit?: number; offset?: string };
        };
        requestBody?: undefined;
        responses: {
            "200": {
                content: {
                    "application/json": {
                        comments: {
                            _id: string;
                            author: {
                                external_id: string;
                                is_own: boolean;
                                name?: string;
                                profile_pic?: string;
                            };
                            collected_date: string;
                            creation_date: string;
                            deleted: boolean;
                            external_id: string;
                            hidden: boolean;
                            id_account: | string
                            | {
                                _id: string;
                                creation_date: string;
                                error_code: number;
                                followers_count?: number;
                                id_client: string;
                                id_organization: string;
                                image?: string;
                                name: string;
                                next_comments_update?: string;
                                next_stats_update?: string;
                                private_message_link?: string;
                                social_network: | "facebook"
                                | "instagram"
                                | "linkedin"
                                | "tiktok"
                                | "twitter"
                                | "whatsapp"
                                | "youtube"
                                | "google_business"
                                | "bluesky"
                                | "discord";
                                username?: string;
                            };
                            id_organization: string;
                            id_publication?: | string
                            | {
                                _id: string;
                                creation_date: string;
                                engagement_base?: "reach"
                                | "impressions"
                                | "followers";
                                external_identifier?: string;
                                files: {
                                    _id: ...;
                                    cover_image?: ...;
                                    cover_offset?: ...;
                                    creation_date: ...;
                                    file_externals: ...;
                                    file_format: ...;
                                    file_properties: ...;
                                    file_type: ...;
                                    id_organization: ...;
                                    is_temporal: ...;
                                    name: ...;
                                    public_path: ...;
                                }[];
                                id_account: | string
                                | {
                                    _id: ...;
                                    creation_date: ...;
                                    error_code: ...;
                                    followers_count?: ...;
                                    id_client: ...;
                                    id_organization: ...;
                                    image?: ...;
                                    name: ...;
                                    next_comments_update?: ...;
                                    next_stats_update?: ...;
                                    private_message_link?: ...;
                                    social_network: ...;
                                    username?: ...;
                                };
                                id_integration?: string;
                                id_organization: string;
                                metrics?: {
                                    clicks?: ...;
                                    comments?: ...;
                                    engagement?: ...;
                                    followers?: ...;
                                    followers_gained?: ...;
                                    impressions?: ...;
                                    likes?: ...;
                                    profile_views?: ...;
                                    reach?: ...;
                                    saves?: ...;
                                    shares?: ...;
                                    video_views?: ...;
                                };
                                name?: string;
                                next_stats_update?: string;
                                publication_errors: { code: ...; data?: ...; message: ... }[];
                                publication_type:
                                    | "profile"
                                    | "page"
                                    | "group"
                                    | "reels"
                                    | "stories"
                                    | "message";
                                publish_date?: string;
                                retries: number;
                                social_network: | "facebook"
                                | "instagram"
                                | "linkedin"
                                | "tiktok"
                                | "twitter"
                                | "whatsapp"
                                | "youtube"
                                | "google_business"
                                | "bluesky"
                                | "discord";
                                state: "ready"
                                | "withErrors"
                                | "sended"
                                | "draft"
                                | "publishing";
                                statistics?: {
                                    angers?: ...;
                                    bookmarks?: ...;
                                    clicks?: ...;
                                    comments?: ...;
                                    engagement?: ...;
                                    follows?: ...;
                                    hahas?: ...;
                                    impressions?: ...;
                                    likes?: ...;
                                    loves?: ...;
                                    negative_feedback?: ...;
                                    page_likes?: ...;
                                    playback_0_count?: ...;
                                    playback_100_count?: ...;
                                    playback_25_count?: ...;
                                    playback_50_count?: ...;
                                    playback_75_count?: ...;
                                    profile_activity?: ...;
                                    profile_visits?: ...;
                                    quotes?: ...;
                                    reach?: ...;
                                    replys?: ...;
                                    retwets?: ...;
                                    saved?: ...;
                                    share?: ...;
                                    shareMentions?: ...;
                                    shares?: ...;
                                    sorrys?: ...;
                                    url_link_clicks?: ...;
                                    user_profile_clicks?: ...;
                                    video_views?: ...;
                                    views?: ...;
                                    wows?: ...;
                                };
                                stats_updated_date?: string;
                                text?: string;
                                title?: string;
                                url?: string;
                            };
                            like_count?: number;
                            our_reply_external_id?: string;
                            parent_external_id?: string;
                            publication_external_id: string;
                            rating?: number;
                            read: boolean;
                            replied: boolean;
                            reply_count?: number;
                            social_network: | "facebook"
                            | "instagram"
                            | "linkedin"
                            | "twitter"
                            | "youtube"
                            | "google_business"
                            | "bluesky"
                            | "discord";
                            text: string;
                        }[];
                        credits_consumed: number;
                        next_cursor?: string;
                        total: number;
                    };
                };
                headers: { [name: string]: unknown };
            };
            "400": {
                content: {
                    "application/json": {
                        code: number;
                        data?: { [key: string]: unknown };
                        message: string;
                    };
                };
                headers: { [name: string]: unknown };
            };
        };
    };
    getPublicationLimits: {
        parameters: {
            cookie?: undefined;
            header?: undefined;
            path?: undefined;
            query?: undefined;
        };
        requestBody?: undefined;
        responses: {
            "200": {
                content: { "application/json": { max_retries: number } };
                headers: { [name: string]: unknown };
            };
            "400": {
                content: {
                    "application/json": {
                        code: number;
                        data?: { [key: string]: unknown };
                        message: string;
                    };
                };
                headers: { [name: string]: unknown };
            };
        };
    };
    getPublicationMetrics: {
        parameters: {
            cookie?: undefined;
            header?: undefined;
            path: { id_organization: string; id_publication: string };
            query?: undefined;
        };
        requestBody?: undefined;
        responses: {
            "200": {
                content: {
                    "application/json": {
                        angers?: number;
                        bookmarks?: number;
                        clicks?: number;
                        comments?: number;
                        engagement?: number;
                        follows?: number;
                        hahas?: number;
                        impressions?: number;
                        likes?: number;
                        loves?: number;
                        negative_feedback?: number;
                        page_likes?: number;
                        playback_0_count?: number;
                        playback_100_count?: number;
                        playback_25_count?: number;
                        playback_50_count?: number;
                        playback_75_count?: number;
                        profile_activity?: number;
                        profile_visits?: number;
                        quotes?: number;
                        reach?: number;
                        replys?: number;
                        retwets?: number;
                        saved?: number;
                        share?: number;
                        shareMentions?: number;
                        shares?: number;
                        sorrys?: number;
                        url_link_clicks?: number;
                        user_profile_clicks?: number;
                        video_views?: number;
                        views?: number;
                        wows?: number;
                    };
                };
                headers: { [name: string]: unknown };
            };
            "400": {
                content: {
                    "application/json": {
                        code: number;
                        data?: { [key: string]: unknown };
                        message: string;
                    };
                };
                headers: { [name: string]: unknown };
            };
            "500": { content?: undefined; headers: { [name: string]: unknown } };
        };
    };
    getPublications: {
        parameters: {
            cookie?: undefined;
            header?: undefined;
            path: { id_organization: string };
            query?: {
                accounts?: string[];
                from_date?: string;
                limit?: number;
                offset?: number;
                orderByPublish?: boolean;
                search?: string;
                social_network?: (
                    | "facebook"
                    | "instagram"
                    | "linkedin"
                    | "tiktok"
                    | "twitter"
                    | "whatsapp"
                    | "youtube"
                    | "google_business"
                    | "bluesky"
                    | "discord"
                )[];
                state?: ("ready" | "withErrors" | "sended" | "draft" | "publishing")[];
                to_date?: string;
            };
        };
        requestBody?: undefined;
        responses: {
            "200": {
                content: {
                    "application/json": {
                        publications: {
                            _id: string;
                            creation_date: string;
                            engagement_base?: "reach"
                            | "impressions"
                            | "followers";
                            external_identifier?: string;
                            files: {
                                _id: string;
                                cover_image?: { _id: string; cover_image?: ...; cover_offset?: number; creation_date: string; file_externals: { external_identifier: string; external_url: string; social_network: "facebook" | "instagram" | ... 7 more ... | "discord"; }[]; ... 6 more ...; public_path: string; };
                                cover_offset?: number;
                                creation_date: string;
                                file_externals: {
                                    external_identifier: ...;
                                    external_url: ...;
                                    social_network: ...;
                                }[];
                                file_format: "mp4"
                                | "jpeg"
                                | "gif"
                                | "png"
                                | "jpg";
                                file_properties: {
                                    allowed_social_networks: (...)[];
                                    aspect_ratio: { text: ...; value: ... };
                                    duration: number;
                                    height: number;
                                    size_in_bytes: number;
                                    width: number;
                                };
                                file_type: "video"
                                | "image";
                                id_organization: string;
                                is_temporal: boolean;
                                name: string;
                                public_path: string;
                            }[];
                            id_account: | string
                            | {
                                _id: string;
                                creation_date: string;
                                error_code: number;
                                followers_count?: number;
                                id_client: string;
                                id_organization: string;
                                image?: string;
                                name: string;
                                next_comments_update?: string;
                                next_stats_update?: string;
                                private_message_link?: string;
                                social_network: | "facebook"
                                | "instagram"
                                | "linkedin"
                                | "tiktok"
                                | "twitter"
                                | "whatsapp"
                                | "youtube"
                                | "google_business"
                                | "bluesky"
                                | "discord";
                                username?: string;
                            };
                            id_integration?: string;
                            id_organization: string;
                            metrics?: {
                                clicks?: number;
                                comments?: number;
                                engagement?: number;
                                followers?: number;
                                followers_gained?: number;
                                impressions?: number;
                                likes?: number;
                                profile_views?: number;
                                reach?: number;
                                saves?: number;
                                shares?: number;
                                video_views?: number;
                            };
                            name?: string;
                            next_stats_update?: string;
                            publication_errors: {
                                code: number;
                                data?: { [key: ...]: ... };
                                message: string;
                            }[];
                            publication_type: | "profile"
                            | "page"
                            | "group"
                            | "reels"
                            | "stories"
                            | "message";
                            publish_date?: string;
                            retries: number;
                            social_network: | "facebook"
                            | "instagram"
                            | "linkedin"
                            | "tiktok"
                            | "twitter"
                            | "whatsapp"
                            | "youtube"
                            | "google_business"
                            | "bluesky"
                            | "discord";
                            state: "ready"
                            | "withErrors"
                            | "sended"
                            | "draft"
                            | "publishing";
                            statistics?: {
                                angers?: number;
                                bookmarks?: number;
                                clicks?: number;
                                comments?: number;
                                engagement?: number;
                                follows?: number;
                                hahas?: number;
                                impressions?: number;
                                likes?: number;
                                loves?: number;
                                negative_feedback?: number;
                                page_likes?: number;
                                playback_0_count?: number;
                                playback_100_count?: number;
                                playback_25_count?: number;
                                playback_50_count?: number;
                                playback_75_count?: number;
                                profile_activity?: number;
                                profile_visits?: number;
                                quotes?: number;
                                reach?: number;
                                replys?: number;
                                retwets?: number;
                                saved?: number;
                                share?: number;
                                shareMentions?: number;
                                shares?: number;
                                sorrys?: number;
                                url_link_clicks?: number;
                                user_profile_clicks?: number;
                                video_views?: number;
                                views?: number;
                                wows?: number;
                            };
                            stats_updated_date?: string;
                            text?: string;
                            title?: string;
                            url?: string;
                        }[];
                        total: number;
                    };
                };
                headers: { [name: string]: unknown };
            };
            "400": {
                content: {
                    "application/json": {
                        code: number;
                        data?: { [key: string]: unknown };
                        message: string;
                    };
                };
                headers: { [name: string]: unknown };
            };
            "500": { content?: undefined; headers: { [name: string]: unknown } };
        };
    };
    getPublicationsStats: {
        parameters: {
            cookie?: undefined;
            header?: undefined;
            path: { id_organization: string };
            query?: {
                accounts?: string[];
                from_date?: string;
                limit?: number;
                metric?:
                    | "reach"
                    | "impressions"
                    | "comments"
                    | "engagement"
                    | "likes"
                    | "shares"
                    | "saves"
                    | "clicks"
                    | "video_views"
                    | "profile_views";
                offset?: number;
                social_network?: string[];
                summary?: boolean;
                to_date?: string;
            };
        };
        requestBody?: undefined;
        responses: {
            "200": {
                content: {
                    "application/json": {
                        metric?: string;
                        publications?: {
                            _id: string;
                            creation_date: string;
                            engagement_base?: "reach"
                            | "impressions"
                            | "followers";
                            external_identifier?: string;
                            files: {
                                _id: string;
                                cover_image?: (...) | (...);
                                cover_offset?: (...) | (...);
                                creation_date: string;
                                file_externals: (...)[];
                                file_format: (...) | (...) | (...) | (...) | (...);
                                file_properties: {
                                    allowed_social_networks: ...;
                                    aspect_ratio: ...;
                                    duration: ...;
                                    height: ...;
                                    size_in_bytes: ...;
                                    width: ...;
                                };
                                file_type: (...)
                                | (...);
                                id_organization: string;
                                is_temporal: boolean;
                                name: string;
                                public_path: string;
                            }[];
                            id_account: | string
                            | {
                                _id: string;
                                creation_date: string;
                                error_code: number;
                                followers_count?: (...)
                                | (...);
                                id_client: string;
                                id_organization: string;
                                image?: (...) | (...);
                                name: string;
                                next_comments_update?: (...) | (...);
                                next_stats_update?: (...) | (...);
                                private_message_link?: (...) | (...);
                                social_network:
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...);
                                username?: (...) | (...);
                            };
                            id_integration?: string;
                            id_organization: string;
                            metrics?: {
                                clicks?: (...)
                                | (...);
                                comments?: (...) | (...);
                                engagement?: (...) | (...);
                                followers?: (...) | (...);
                                followers_gained?: (...) | (...);
                                impressions?: (...) | (...);
                                likes?: (...) | (...);
                                profile_views?: (...) | (...);
                                reach?: (...) | (...);
                                saves?: (...) | (...);
                                shares?: (...) | (...);
                                video_views?: (...) | (...);
                            };
                            name?: string;
                            next_stats_update?: string;
                            publication_errors: {
                                code: number;
                                data?: (...)
                                | (...);
                                message: string;
                            }[];
                            publication_type: | "profile"
                            | "page"
                            | "group"
                            | "reels"
                            | "stories"
                            | "message";
                            publish_date?: string;
                            retries: number;
                            social_network: | "facebook"
                            | "instagram"
                            | "linkedin"
                            | "tiktok"
                            | "twitter"
                            | "whatsapp"
                            | "youtube"
                            | "google_business"
                            | "bluesky"
                            | "discord";
                            state: "ready"
                            | "withErrors"
                            | "sended"
                            | "draft"
                            | "publishing";
                            statistics?: {
                                angers?: (...) | (...);
                                bookmarks?: (...) | (...);
                                clicks?: (...) | (...);
                                comments?: (...) | (...);
                                engagement?: (...) | (...);
                                follows?: (...) | (...);
                                hahas?: (...) | (...);
                                impressions?: (...) | (...);
                                likes?: (...) | (...);
                                loves?: (...) | (...);
                                negative_feedback?: (...) | (...);
                                page_likes?: (...) | (...);
                                playback_0_count?: (...) | (...);
                                playback_100_count?: (...) | (...);
                                playback_25_count?: (...) | (...);
                                playback_50_count?: (...) | (...);
                                playback_75_count?: (...) | (...);
                                profile_activity?: (...) | (...);
                                profile_visits?: (...) | (...);
                                quotes?: (...) | (...);
                                reach?: (...) | (...);
                                replys?: (...) | (...);
                                retwets?: (...) | (...);
                                saved?: (...) | (...);
                                share?: (...) | (...);
                                shareMentions?: (...) | (...);
                                shares?: (...) | (...);
                                sorrys?: (...) | (...);
                                url_link_clicks?: (...) | (...);
                                user_profile_clicks?: (...) | (...);
                                video_views?: (...) | (...);
                                views?: (...) | (...);
                                wows?: (...) | (...);
                            };
                            stats_updated_date?: string;
                            text?: string;
                            title?: string;
                            url?: string;
                        }[];
                        range?: {
                            from_date?: string;
                            previous_from_date?: string;
                            previous_to_date?: string;
                            to_date?: string;
                        };
                        summary?: {
                            by_network?: {
                                metrics?: (...)
                                | (...);
                                publications?: (...) | (...);
                                social_network?: (...) | (...);
                            }[];
                            previous_total?: {
                                clicks?: number;
                                comments?: number;
                                engagement?: number;
                                followers?: number;
                                followers_gained?: number;
                                impressions?: number;
                                likes?: number;
                                profile_views?: number;
                                reach?: number;
                                saves?: number;
                                shares?: number;
                                video_views?: number;
                            };
                            total?: {
                                clicks?: number;
                                comments?: number;
                                engagement?: number;
                                followers?: number;
                                followers_gained?: number;
                                impressions?: number;
                                likes?: number;
                                profile_views?: number;
                                reach?: number;
                                saves?: number;
                                shares?: number;
                                video_views?: number;
                            };
                        };
                        total?: number;
                    };
                };
                headers: { [name: string]: unknown };
            };
            "400": {
                content: {
                    "application/json": {
                        code: number;
                        data?: { [key: string]: unknown };
                        message: string;
                    };
                };
                headers: { [name: string]: unknown };
            };
            "500": { content?: undefined; headers: { [name: string]: unknown } };
        };
    };
    getPublicationsSummary: {
        parameters: {
            cookie?: undefined;
            header?: undefined;
            path: { id_organization: string };
            query?: { from_date?: string; to_date?: string };
        };
        requestBody?: undefined;
        responses: {
            "200": {
                content: {
                    "application/json": {
                        range: {
                            from_date: string;
                            previous_from_date: string;
                            previous_to_date: string;
                            to_date: string;
                        };
                    } & {
                        by_day: { day?: string; state?: string; total?: number }[];
                        by_network: {
                            social_network?:
                                | "facebook"
                                | "instagram"
                                | "linkedin"
                                | "tiktok"
                                | "twitter"
                                | "whatsapp"
                                | "youtube"
                                | "google_business"
                                | "bluesky"
                                | "discord";
                            total?: number;
                        }[];
                        by_state: { state?: string; total?: number }[];
                        published_by_day: {
                            day?: string;
                            social_network?:
                                | "facebook"
                                | "instagram"
                                | "linkedin"
                                | "tiktok"
                                | "twitter"
                                | "whatsapp"
                                | "youtube"
                                | "google_business"
                                | "bluesky"
                                | "discord";
                            total?: number;
                        }[];
                        total: number;
                    };
                };
                headers: { [name: string]: unknown };
            };
            "400": {
                content: {
                    "application/json": {
                        code: number;
                        data?: { [key: string]: unknown };
                        message: string;
                    };
                };
                headers: { [name: string]: unknown };
            };
        };
    };
    getPublicationStatsHistory: {
        parameters: {
            cookie?: undefined;
            header?: undefined;
            path: { id_organization: string; id_publication: string };
            query?: undefined;
        };
        requestBody?: undefined;
        responses: {
            "200": {
                content: {
                    "application/json": {
                        engagement_base?: "reach"
                        | "impressions"
                        | "followers";
                        id_publication: string;
                        latest?: {
                            collected_date: string;
                            engagement_base?: "reach" | "impressions" | "followers";
                            metrics: {
                                clicks?: number;
                                comments?: number;
                                engagement?: number;
                                followers?: number;
                                followers_gained?: number;
                                impressions?: number;
                                likes?: number;
                                profile_views?: number;
                                reach?: number;
                                saves?: number;
                                shares?: number;
                                video_views?: number;
                            };
                            raw?: {
                                angers?: number;
                                bookmarks?: number;
                                clicks?: number;
                                comments?: number;
                                engagement?: number;
                                follows?: number;
                                hahas?: number;
                                impressions?: number;
                                likes?: number;
                                loves?: number;
                                negative_feedback?: number;
                                page_likes?: number;
                                playback_0_count?: number;
                                playback_100_count?: number;
                                playback_25_count?: number;
                                playback_50_count?: number;
                                playback_75_count?: number;
                                profile_activity?: number;
                                profile_visits?: number;
                                quotes?: number;
                                reach?: number;
                                replys?: number;
                                retwets?: number;
                                saved?: number;
                                share?: number;
                                shareMentions?: number;
                                shares?: number;
                                sorrys?: number;
                                url_link_clicks?: number;
                                user_profile_clicks?: number;
                                video_views?: number;
                                views?: number;
                                wows?: number;
                            };
                        };
                        metrics?: {
                            clicks?: number;
                            comments?: number;
                            engagement?: number;
                            followers?: number;
                            followers_gained?: number;
                            impressions?: number;
                            likes?: number;
                            profile_views?: number;
                            reach?: number;
                            saves?: number;
                            shares?: number;
                            video_views?: number;
                        };
                        next_stats_update?: string;
                        publish_date?: string;
                        series: {
                            collected_date: string;
                            engagement_base?: "reach"
                            | "impressions"
                            | "followers";
                            metrics: {
                                clicks?: number;
                                comments?: number;
                                engagement?: number;
                                followers?: number;
                                followers_gained?: number;
                                impressions?: number;
                                likes?: number;
                                profile_views?: number;
                                reach?: number;
                                saves?: number;
                                shares?: number;
                                video_views?: number;
                            };
                        }[];
                        social_network: | "facebook"
                        | "instagram"
                        | "linkedin"
                        | "tiktok"
                        | "twitter"
                        | "whatsapp"
                        | "youtube"
                        | "google_business"
                        | "bluesky"
                        | "discord";
                        statistics?: {
                            angers?: number;
                            bookmarks?: number;
                            clicks?: number;
                            comments?: number;
                            engagement?: number;
                            follows?: number;
                            hahas?: number;
                            impressions?: number;
                            likes?: number;
                            loves?: number;
                            negative_feedback?: number;
                            page_likes?: number;
                            playback_0_count?: number;
                            playback_100_count?: number;
                            playback_25_count?: number;
                            playback_50_count?: number;
                            playback_75_count?: number;
                            profile_activity?: number;
                            profile_visits?: number;
                            quotes?: number;
                            reach?: number;
                            replys?: number;
                            retwets?: number;
                            saved?: number;
                            share?: number;
                            shareMentions?: number;
                            shares?: number;
                            sorrys?: number;
                            url_link_clicks?: number;
                            user_profile_clicks?: number;
                            video_views?: number;
                            views?: number;
                            wows?: number;
                        };
                        stats_updated_date?: string;
                    };
                };
                headers: { [name: string]: unknown };
            };
            "400": {
                content: {
                    "application/json": {
                        code: number;
                        data?: { [key: string]: unknown };
                        message: string;
                    };
                };
                headers: { [name: string]: unknown };
            };
            "500": { content?: undefined; headers: { [name: string]: unknown } };
        };
    };
    getSocialCapabilities: {
        parameters: {
            cookie?: undefined;
            header?: undefined;
            path?: undefined;
            query?: undefined;
        };
        requestBody?: undefined;
        responses: {
            "200": {
                content: {
                    "application/json": {
                        [key: string]: {
                            comments: boolean;
                            messages: boolean;
                            persistent_menu: boolean;
                            products: boolean;
                            publications: boolean;
                            webhooks: boolean;
                        };
                    };
                };
                headers: { [name: string]: unknown };
            };
            "400": {
                content: {
                    "application/json": {
                        code: number;
                        data?: { [key: string]: unknown };
                        message: string;
                    };
                };
                headers: { [name: string]: unknown };
            };
        };
    };
    getSocialCommentActions: {
        parameters: {
            cookie?: undefined;
            header?: undefined;
            path?: undefined;
            query?: undefined;
        };
        requestBody?: undefined;
        responses: {
            "200": {
                content: {
                    "application/json": {
                        [key: string]: {
                            delete_others: boolean;
                            delete_own: boolean;
                            hide: boolean;
                            reply: boolean;
                        };
                    };
                };
                headers: { [name: string]: unknown };
            };
            "400": {
                content: {
                    "application/json": {
                        code: number;
                        data?: { [key: string]: unknown };
                        message: string;
                    };
                };
                headers: { [name: string]: unknown };
            };
        };
    };
    getSocialLimits: {
        parameters: {
            cookie?: undefined;
            header?: undefined;
            path?: undefined;
            query?: undefined;
        };
        requestBody?: undefined;
        responses: {
            "200": {
                content: {
                    "application/json": {
                        characters: { [key: string]: number };
                        comment_characters: { [key: string]: number };
                        max_file_size_mb: { [key: string]: number };
                        max_post_bytes: { [key: string]: number };
                        title_characters: { [key: string]: number };
                        total_images: { [key: string]: number };
                        video_duration_in_seconds: { [key: string]: number };
                    };
                };
                headers: { [name: string]: unknown };
            };
            "400": {
                content: {
                    "application/json": {
                        code: number;
                        data?: { [key: string]: unknown };
                        message: string;
                    };
                };
                headers: { [name: string]: unknown };
            };
        };
    };
    getSocialNetworks: {
        parameters: {
            cookie?: undefined;
            header?: undefined;
            path?: undefined;
            query?: undefined;
        };
        requestBody?: undefined;
        responses: {
            "200": {
                content: {
                    "application/json": (
                        | "facebook"
                        | "instagram"
                        | "linkedin"
                        | "tiktok"
                        | "twitter"
                        | "whatsapp"
                        | "youtube"
                        | "google_business"
                        | "bluesky"
                        | "discord"
                    )[];
                };
                headers: { [name: string]: unknown };
            };
            "400": {
                content: {
                    "application/json": {
                        code: number;
                        data?: { [key: string]: unknown };
                        message: string;
                    };
                };
                headers: { [name: string]: unknown };
            };
        };
    };
    getSocialPublications: {
        parameters: {
            cookie?: undefined;
            header?: undefined;
            path: { id_account: string; id_organization: string };
            query?: { limit?: number; offset?: number };
        };
        requestBody?: undefined;
        responses: {
            "200": {
                content: {
                    "application/json": {
                        publications: {
                            _id: string;
                            creation_date: string;
                            engagement_base?: "reach"
                            | "impressions"
                            | "followers";
                            external_identifier?: string;
                            files: {
                                _id: string;
                                cover_image?: { _id: string; cover_image?: ...; cover_offset?: number; creation_date: string; file_externals: { external_identifier: string; external_url: string; social_network: "facebook" | "instagram" | ... 7 more ... | "discord"; }[]; ... 6 more ...; public_path: string; };
                                cover_offset?: number;
                                creation_date: string;
                                file_externals: {
                                    external_identifier: ...;
                                    external_url: ...;
                                    social_network: ...;
                                }[];
                                file_format: "mp4"
                                | "jpeg"
                                | "gif"
                                | "png"
                                | "jpg";
                                file_properties: {
                                    allowed_social_networks: (...)[];
                                    aspect_ratio: { text: ...; value: ... };
                                    duration: number;
                                    height: number;
                                    size_in_bytes: number;
                                    width: number;
                                };
                                file_type: "video"
                                | "image";
                                id_organization: string;
                                is_temporal: boolean;
                                name: string;
                                public_path: string;
                            }[];
                            id_account: | string
                            | {
                                _id: string;
                                creation_date: string;
                                error_code: number;
                                followers_count?: number;
                                id_client: string;
                                id_organization: string;
                                image?: string;
                                name: string;
                                next_comments_update?: string;
                                next_stats_update?: string;
                                private_message_link?: string;
                                social_network: | "facebook"
                                | "instagram"
                                | "linkedin"
                                | "tiktok"
                                | "twitter"
                                | "whatsapp"
                                | "youtube"
                                | "google_business"
                                | "bluesky"
                                | "discord";
                                username?: string;
                            };
                            id_integration?: string;
                            id_organization: string;
                            metrics?: {
                                clicks?: number;
                                comments?: number;
                                engagement?: number;
                                followers?: number;
                                followers_gained?: number;
                                impressions?: number;
                                likes?: number;
                                profile_views?: number;
                                reach?: number;
                                saves?: number;
                                shares?: number;
                                video_views?: number;
                            };
                            name?: string;
                            next_stats_update?: string;
                            publication_errors: {
                                code: number;
                                data?: { [key: ...]: ... };
                                message: string;
                            }[];
                            publication_type: | "profile"
                            | "page"
                            | "group"
                            | "reels"
                            | "stories"
                            | "message";
                            publish_date?: string;
                            retries: number;
                            social_network: | "facebook"
                            | "instagram"
                            | "linkedin"
                            | "tiktok"
                            | "twitter"
                            | "whatsapp"
                            | "youtube"
                            | "google_business"
                            | "bluesky"
                            | "discord";
                            state: "ready"
                            | "withErrors"
                            | "sended"
                            | "draft"
                            | "publishing";
                            statistics?: {
                                angers?: number;
                                bookmarks?: number;
                                clicks?: number;
                                comments?: number;
                                engagement?: number;
                                follows?: number;
                                hahas?: number;
                                impressions?: number;
                                likes?: number;
                                loves?: number;
                                negative_feedback?: number;
                                page_likes?: number;
                                playback_0_count?: number;
                                playback_100_count?: number;
                                playback_25_count?: number;
                                playback_50_count?: number;
                                playback_75_count?: number;
                                profile_activity?: number;
                                profile_visits?: number;
                                quotes?: number;
                                reach?: number;
                                replys?: number;
                                retwets?: number;
                                saved?: number;
                                share?: number;
                                shareMentions?: number;
                                shares?: number;
                                sorrys?: number;
                                url_link_clicks?: number;
                                user_profile_clicks?: number;
                                video_views?: number;
                                views?: number;
                                wows?: number;
                            };
                            stats_updated_date?: string;
                            text?: string;
                            title?: string;
                            url?: string;
                        }[];
                        total: number;
                    };
                };
                headers: { [name: string]: unknown };
            };
            "400": {
                content: {
                    "application/json": {
                        code: number;
                        data?: { [key: string]: unknown };
                        message: string;
                    };
                };
                headers: { [name: string]: unknown };
            };
            "500": { content?: undefined; headers: { [name: string]: unknown } };
        };
    };
    getTopPublications: {
        parameters: {
            cookie?: undefined;
            header?: undefined;
            path: { id_organization: string };
            query?: {
                from_date?: string;
                limit?: number;
                metric?:
                    | "reach"
                    | "impressions"
                    | "followers"
                    | "comments"
                    | "engagement"
                    | "likes"
                    | "shares"
                    | "saves"
                    | "clicks"
                    | "video_views"
                    | "profile_views"
                    | "followers_gained";
                to_date?: string;
            };
        };
        requestBody?: undefined;
        responses: {
            "200": {
                content: {
                    "application/json": {
                        metric: | "reach"
                        | "impressions"
                        | "followers"
                        | "comments"
                        | "engagement"
                        | "likes"
                        | "shares"
                        | "saves"
                        | "clicks"
                        | "video_views"
                        | "profile_views"
                        | "followers_gained";
                        publications: {
                            collected_date?: string;
                            engagement_base?: "reach"
                            | "impressions"
                            | "followers";
                            id_publication: string;
                            metrics: {
                                clicks?: number;
                                comments?: number;
                                engagement?: number;
                                followers?: number;
                                followers_gained?: number;
                                impressions?: number;
                                likes?: number;
                                profile_views?: number;
                                reach?: number;
                                saves?: number;
                                shares?: number;
                                video_views?: number;
                            };
                            publication: {
                                external_identifier?: string;
                                files?: {
                                    _id: ...;
                                    cover_image?: ...;
                                    cover_offset?: ...;
                                    creation_date: ...;
                                    file_externals: ...;
                                    file_format: ...;
                                    file_properties: ...;
                                    file_type: ...;
                                    id_organization: ...;
                                    is_temporal: ...;
                                    name: ...;
                                    public_path: ...;
                                }[];
                                publication_type?: string;
                                text?: string;
                                title?: string;
                                url?: string;
                            };
                            publish_date?: string;
                            social_network: | "facebook"
                            | "instagram"
                            | "linkedin"
                            | "tiktok"
                            | "twitter"
                            | "whatsapp"
                            | "youtube"
                            | "google_business"
                            | "bluesky"
                            | "discord";
                        }[];
                        range: {
                            from_date: string;
                            previous_from_date: string;
                            previous_to_date: string;
                            to_date: string;
                        };
                    };
                };
                headers: { [name: string]: unknown };
            };
            "400": {
                content: {
                    "application/json": {
                        code: number;
                        data?: { [key: string]: unknown };
                        message: string;
                    };
                };
                headers: { [name: string]: unknown };
            };
        };
    };
    getTotalUnreadComments: {
        parameters: {
            cookie?: undefined;
            header?: undefined;
            path: { id_organization: string };
            query?: undefined;
        };
        requestBody?: undefined;
        responses: {
            "200": {
                content: { "application/json": { total: number } };
                headers: { [name: string]: unknown };
            };
            "400": {
                content: {
                    "application/json": {
                        code: number;
                        data?: { [key: string]: unknown };
                        message: string;
                    };
                };
                headers: { [name: string]: unknown };
            };
        };
    };
    getUnreadMessages: {
        parameters: {
            cookie?: undefined;
            header?: undefined;
            path: { id_organization: string };
            query?: undefined;
        };
        requestBody?: undefined;
        responses: {
            "200": {
                content: { "application/json": { total: number } };
                headers: { [name: string]: unknown };
            };
            "400": {
                content: {
                    "application/json": {
                        code: number;
                        data?: { [key: string]: unknown };
                        message: string;
                    };
                };
                headers: { [name: string]: unknown };
            };
        };
    };
    getUpload: {
        parameters: {
            cookie?: undefined;
            header?: undefined;
            path: { id_organization: string; id_upload: string };
            query?: undefined;
        };
        requestBody?: undefined;
        responses: {
            "200": {
                content: {
                    "application/json": {
                        upload: {
                            _id: string;
                            cover_image?: { _id: string; cover_image?: ...; cover_offset?: number; creation_date: string; file_externals: { external_identifier: string; external_url: string; social_network: "facebook" | "instagram" | ... 7 more ... | "discord"; }[]; ... 6 more ...; public_path: string; };
                            cover_offset?: number;
                            creation_date: string;
                            file_externals: {
                                external_identifier: string;
                                external_url: string;
                                social_network: | "facebook"
                                | "instagram"
                                | "linkedin"
                                | "tiktok"
                                | "twitter"
                                | "whatsapp"
                                | "youtube"
                                | "google_business"
                                | "bluesky"
                                | "discord";
                            }[];
                            file_format: "mp4"
                            | "jpeg"
                            | "gif"
                            | "png"
                            | "jpg";
                            file_properties: {
                                allowed_social_networks: string[];
                                aspect_ratio: { text: string; value: number };
                                duration: number;
                                height: number;
                                size_in_bytes: number;
                                width: number;
                            };
                            file_type: "video"
                            | "image";
                            id_organization: string;
                            is_temporal: boolean;
                            name: string;
                            public_path: string;
                        };
                    };
                };
                headers: { [name: string]: unknown };
            };
            "400": {
                content: {
                    "application/json": {
                        code: number;
                        data?: { [key: string]: unknown };
                        message: string;
                    };
                };
                headers: { [name: string]: unknown };
            };
            "500": { content?: undefined; headers: { [name: string]: unknown } };
        };
    };
    getUploads: {
        parameters: {
            cookie?: undefined;
            header?: undefined;
            path: { id_organization: string };
            query?: { limit?: number; offset?: number };
        };
        requestBody?: undefined;
        responses: {
            "200": {
                content: {
                    "application/json": {
                        total: number;
                        uploads: {
                            _id: string;
                            cover_image?: { _id: string; cover_image?: ...; cover_offset?: number; creation_date: string; file_externals: { external_identifier: string; external_url: string; social_network: "facebook" | "instagram" | ... 7 more ... | "discord"; }[]; ... 6 more ...; public_path: string; };
                            cover_offset?: number;
                            creation_date: string;
                            file_externals: {
                                external_identifier: string;
                                external_url: string;
                                social_network: | "facebook"
                                | "instagram"
                                | "linkedin"
                                | "tiktok"
                                | "twitter"
                                | "whatsapp"
                                | "youtube"
                                | "google_business"
                                | "bluesky"
                                | "discord";
                            }[];
                            file_format: "mp4"
                            | "jpeg"
                            | "gif"
                            | "png"
                            | "jpg";
                            file_properties: {
                                allowed_social_networks: string[];
                                aspect_ratio: { text: string; value: number };
                                duration: number;
                                height: number;
                                size_in_bytes: number;
                                width: number;
                            };
                            file_type: "video"
                            | "image";
                            id_organization: string;
                            is_temporal: boolean;
                            name: string;
                            public_path: string;
                        }[];
                    };
                };
                headers: { [name: string]: unknown };
            };
            "400": {
                content: {
                    "application/json": {
                        code: number;
                        data?: { [key: string]: unknown };
                        message: string;
                    };
                };
                headers: { [name: string]: unknown };
            };
            "500": { content?: undefined; headers: { [name: string]: unknown } };
        };
    };
    getUserInOrganizationRole: {
        parameters: {
            cookie?: undefined;
            header?: undefined;
            path: { id_organization: string };
            query?: undefined;
        };
        requestBody?: undefined;
        responses: {
            "200": {
                content: {
                    "application/json": {
                        total?: number;
                        users?: {
                            email?: string;
                            firstname?: string;
                            id?: string;
                            lastname?: string;
                            username?: string;
                        }[];
                    };
                };
                headers: { [name: string]: unknown };
            };
            "400": {
                content: {
                    "application/json": {
                        code: number;
                        data?: { [key: string]: unknown };
                        message: string;
                    };
                };
                headers: { [name: string]: unknown };
            };
            "500": { content?: undefined; headers: { [name: string]: unknown } };
        };
    };
    getUsersInClientRole: {
        parameters: {
            cookie?: undefined;
            header?: undefined;
            path: { id_client: string; id_rol: string };
            query?: { limit?: number; offset?: number };
        };
        requestBody?: undefined;
        responses: {
            "200": {
                content: {
                    "application/json": {
                        total?: number;
                        users?: {
                            email?: string;
                            firstname?: string;
                            id?: string;
                            lastname?: string;
                            username?: string;
                        }[];
                    };
                };
                headers: { [name: string]: unknown };
            };
            "400": {
                content: {
                    "application/json": {
                        code: number;
                        data?: { [key: string]: unknown };
                        message: string;
                    };
                };
                headers: { [name: string]: unknown };
            };
            "500": { content?: undefined; headers: { [name: string]: unknown } };
        };
    };
    getUsersInOrganizationRole: {
        parameters: {
            cookie?: undefined;
            header?: undefined;
            path: { id_organization: string; id_rol: string };
            query?: { limit?: number; offset?: number };
        };
        requestBody?: undefined;
        responses: {
            "200": {
                content: {
                    "application/json": {
                        total?: number;
                        users?: {
                            email?: string;
                            enabled?: boolean;
                            firstname?: string;
                            id?: string;
                            lastname?: string;
                            roles?: { _id?: ...; name?: ... }[];
                            username?: string;
                        }[];
                    };
                };
                headers: { [name: string]: unknown };
            };
            "400": {
                content: {
                    "application/json": {
                        code: number;
                        data?: { [key: string]: unknown };
                        message: string;
                    };
                };
                headers: { [name: string]: unknown };
            };
            "401": {
                content: {
                    "application/json": {
                        code: number;
                        data?: { [key: string]: unknown };
                        message: string;
                    };
                };
                headers: { [name: string]: unknown };
            };
            "500": {
                content: {
                    "application/json": {
                        code: number;
                        data?: { [key: string]: unknown };
                        message: string;
                    };
                };
                headers: { [name: string]: unknown };
            };
        };
    };
    importUploads: {
        parameters: {
            cookie?: undefined;
            header?: undefined;
            path: { id_organization: string };
            query?: undefined;
        };
        requestBody: {
            content: {
                "application/json": {
                    files: { external_id: string; mime_type?: string; name?: string }[];
                    id_integration: string;
                };
            };
        };
        responses: {
            "200": {
                content: {
                    "application/json": {
                        errors: {
                            code: number;
                            data?: Record<string, never>;
                            external_id?: string;
                            message: string;
                            name?: string;
                        }[];
                        uploads: {
                            _id: string;
                            cover_image?: { _id: string; cover_image?: ...; cover_offset?: number; creation_date: string; file_externals: { external_identifier: string; external_url: string; social_network: "facebook" | "instagram" | ... 7 more ... | "discord"; }[]; ... 6 more ...; public_path: string; };
                            cover_offset?: number;
                            creation_date: string;
                            file_externals: {
                                external_identifier: string;
                                external_url: string;
                                social_network: | "facebook"
                                | "instagram"
                                | "linkedin"
                                | "tiktok"
                                | "twitter"
                                | "whatsapp"
                                | "youtube"
                                | "google_business"
                                | "bluesky"
                                | "discord";
                            }[];
                            file_format: "mp4"
                            | "jpeg"
                            | "gif"
                            | "png"
                            | "jpg";
                            file_properties: {
                                allowed_social_networks: string[];
                                aspect_ratio: { text: string; value: number };
                                duration: number;
                                height: number;
                                size_in_bytes: number;
                                width: number;
                            };
                            file_type: "video"
                            | "image";
                            id_organization: string;
                            is_temporal: boolean;
                            name: string;
                            public_path: string;
                        }[];
                    };
                };
                headers: { [name: string]: unknown };
            };
            "400": { content?: undefined; headers: { [name: string]: unknown } };
        };
    };
    inviteRole: {
        parameters: {
            cookie?: undefined;
            header?: undefined;
            path: { id_client: string; id_rol: string };
            query?: undefined;
        };
        requestBody: { content: { "application/json": { email: string } } };
        responses: {
            "200": {
                content: { "application/json": { success: boolean } };
                headers: { [name: string]: unknown };
            };
            "400": {
                content: {
                    "application/json": {
                        code: number;
                        data?: { [key: string]: unknown };
                        message: string;
                    };
                };
                headers: { [name: string]: unknown };
            };
            "500": { content?: undefined; headers: { [name: string]: unknown } };
        };
    };
    inviteUserToOrganizationRole: {
        parameters: {
            cookie?: undefined;
            header?: undefined;
            path: { id_organization: string; id_rol: string };
            query?: undefined;
        };
        requestBody: { content: { "application/json": { email: string } } };
        responses: {
            "200": {
                content: { "application/json": { success: boolean } };
                headers: { [name: string]: unknown };
            };
            "400": {
                content: {
                    "application/json": {
                        code: number;
                        data?: { [key: string]: unknown };
                        message: string;
                    };
                };
                headers: { [name: string]: unknown };
            };
            "401": {
                content: {
                    "application/json": {
                        code: number;
                        data?: { [key: string]: unknown };
                        message: string;
                    };
                };
                headers: { [name: string]: unknown };
            };
            "500": {
                content: {
                    "application/json": {
                        code: number;
                        data?: { [key: string]: unknown };
                        message: string;
                    };
                };
                headers: { [name: string]: unknown };
            };
        };
    };
    issueToken: {
        parameters: {
            cookie?: undefined;
            header?: undefined;
            path?: undefined;
            query?: undefined;
        };
        requestBody: {
            content: {
                "application/json": {
                    client_id?: string;
                    client_secret?: string;
                    grant_type: "client_credentials";
                    scope?: string;
                };
                "application/x-www-form-urlencoded": {
                    client_id?: string;
                    client_secret?: string;
                    grant_type: "client_credentials";
                    scope?: string;
                };
            };
        };
        responses: {
            "200": {
                content: {
                    "application/json": {
                        access_token: string;
                        expires_in: number;
                        scope?: string;
                        token_type: string;
                    };
                };
                headers: { [name: string]: unknown };
            };
            "400": {
                content: {
                    "application/json": {
                        error: | "server_error"
                        | "invalid_client"
                        | "slow_down"
                        | "invalid_request"
                        | "unsupported_grant_type";
                        error_description?: string;
                    };
                };
                headers: { [name: string]: unknown };
            };
            "401": {
                content: {
                    "application/json": {
                        error: | "server_error"
                        | "invalid_client"
                        | "slow_down"
                        | "invalid_request"
                        | "unsupported_grant_type";
                        error_description?: string;
                    };
                };
                headers: { [name: string]: unknown };
            };
            "429": {
                content: {
                    "application/json": {
                        error: | "server_error"
                        | "invalid_client"
                        | "slow_down"
                        | "invalid_request"
                        | "unsupported_grant_type";
                        error_description?: string;
                    };
                };
                headers: { "Retry-After"?: number; [name: string]: unknown };
            };
        };
    };
    onCommentsWebhook: {
        parameters: {
            cookie?: undefined;
            header?: undefined;
            path?: undefined;
            query?: undefined;
        };
        requestBody: {
            content: {
                "application/json": (
                    | {
                        error_code: number;
                        field: "integration_error";
                        id_integration: string;
                        id_organization: string;
                        provider: string;
                    }
                    | {
                        commentObj?: {
                            _id: string;
                            author: {
                                external_id: string;
                                is_own: boolean;
                                name?: string;
                                profile_pic?: string;
                            };
                            collected_date: string;
                            creation_date: string;
                            deleted: boolean;
                            external_id: string;
                            hidden: boolean;
                            id_account: | string
                            | {
                                _id: string;
                                creation_date: string;
                                error_code: number;
                                followers_count?: (...)
                                | (...);
                                id_client: string;
                                id_organization: string;
                                image?: (...) | (...);
                                name: string;
                                next_comments_update?: (...) | (...);
                                next_stats_update?: (...) | (...);
                                private_message_link?: (...) | (...);
                                social_network:
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...);
                                username?: (...) | (...);
                            };
                            id_organization: string;
                            id_publication?: | string
                            | {
                                _id: string;
                                creation_date: string;
                                engagement_base?: (...)
                                | (...)
                                | (...)
                                | (...);
                                external_identifier?: (...) | (...);
                                files: (...)[];
                                id_account: (...) | (...);
                                id_integration?: (...) | (...);
                                id_organization: string;
                                metrics?: (...) | (...);
                                name?: (...) | (...);
                                next_stats_update?: (...) | (...);
                                publication_errors: (...)[];
                                publication_type: (...) | (...) | (...) | (...) | (...) | (...);
                                publish_date?: (...) | (...);
                                retries: number;
                                social_network:
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...);
                                state: (...) | (...) | (...) | (...) | (...);
                                statistics?: (...) | (...);
                                stats_updated_date?: (...) | (...);
                                text?: (...) | (...);
                                title?: (...) | (...);
                                url?: (...) | (...);
                            };
                            like_count?: number;
                            our_reply_external_id?: string;
                            parent_external_id?: string;
                            publication_external_id: string;
                            rating?: number;
                            read: boolean;
                            replied: boolean;
                            reply_count?: number;
                            social_network: | "facebook"
                            | "instagram"
                            | "linkedin"
                            | "twitter"
                            | "youtube"
                            | "google_business"
                            | "bluesky"
                            | "discord";
                            text: string;
                        };
                        field: | "comments"
                        | "messages"
                        | "new_account"
                        | "change_state_account"
                        | "messaging_postbacks"
                        | "messaging_seen"
                        | "messaging_error";
                        id_account: string;
                        id_contact?: string;
                        id_organization: string;
                        messageObj?: {
                            _id: string;
                            contact_id?: | string
                            | {
                                _id: string;
                                creation_date: string;
                                creator_keycloak_identifier?: (...)
                                | (...);
                                extra_data?: (...) | (...);
                                id_organization: string;
                                last_contact_update: string;
                                name?: (...) | (...);
                                profile_image?: (...) | (...);
                                social_identifiers: (...)[];
                            };
                            creation_date: string;
                            element_external_id?: string;
                            from_contact_id?: | string
                            | {
                                _id: string;
                                creation_date: string;
                                creator_keycloak_identifier?: (...)
                                | (...);
                                extra_data?: (...) | (...);
                                id_organization: string;
                                last_contact_update: string;
                                name?: (...) | (...);
                                profile_image?: (...) | (...);
                                social_identifiers: (...)[];
                            };
                            id_account: string;
                            in_response_external_id?: string;
                            in_response_to?: string;
                            message_errors: {
                                code: number;
                                data?: (...)
                                | (...);
                                message: string;
                            }[];
                            message_options: {
                                files: ((...) | (...))[];
                                files_urls: { mime_type?: ...; url?: ... }[];
                                metaElements?: (...)[];
                                metaQuickReplies?: (...)[];
                                payload?: string;
                                template_language?: string;
                                template_name?: string;
                                whatsappInteractive?: { [key: ...]: ... };
                            };
                            message_type: | "simple_message"
                            | "file_message"
                            | "comment_message"
                            | "publication_message"
                            | "quick_reply_message"
                            | "button_message"
                            | "elements_message"
                            | "postback_message"
                            | "template_message"
                            | "interactive_message";
                            read: boolean;
                            text?: string;
                        };
                        originalChange?: { [key: string]: unknown };
                        social_network:
                            | "facebook"
                            | "instagram"
                            | "linkedin"
                            | "tiktok"
                            | "twitter"
                            | "whatsapp"
                            | "youtube"
                            | "google_business"
                            | "bluesky"
                            | "discord";
                    }
                )[];
            };
        };
        responses: {
            "200": { content?: undefined; headers: { [name: string]: unknown } };
        };
    };
    reconnectIntegration: {
        parameters: {
            cookie?: undefined;
            header?: undefined;
            path: { id_integration: string; id_organization: string };
            query?: undefined;
        };
        requestBody: {
            content: {
                "application/json": | { code: string; provider: "google_drive" }
                | {
                    auto_publish?: boolean;
                    id_accounts: string[];
                    import_image?: boolean;
                    provider: "rss";
                    publication_type?: string;
                    template?: string;
                    url: string;
                };
            };
        };
        responses: {
            "200": {
                content: {
                    "application/json": {
                        integration: {
                            _id: string;
                            config: {
                                auto_publish?: boolean;
                                id_accounts?: string[];
                                import_image?: boolean;
                                last_checked?: string;
                                publication_type?: string;
                                seen_guids?: string[];
                                template?: string;
                                url?: string;
                            };
                            connected: boolean;
                            creation_date: string;
                            enabled: boolean;
                            error_code?: null
                            | number;
                            external_identifier?: string;
                            id_client: string;
                            id_organization: string;
                            last_used_date?: string;
                            name: string;
                            provider: "google_drive" | "rss";
                        };
                    };
                };
                headers: { [name: string]: unknown };
            };
            "400": {
                content: {
                    "application/json": {
                        code: number;
                        data?: { [key: string]: unknown };
                        message: string;
                    };
                };
                headers: { [name: string]: unknown };
            };
        };
    };
    regenerateAiPlanPublication: {
        parameters: {
            cookie?: undefined;
            header?: undefined;
            path: {
                id_ai_plan: string;
                id_client: string;
                id_organization: string;
                id_publication: string;
            };
            query?: undefined;
        };
        requestBody: {
            content: { "application/json": { target: "image"
            | "text" } };
        };
        responses: {
            "200": {
                content: {
                    "application/json": {
                        credits_spent: number;
                        publication: {
                            _id: string;
                            creation_date: string;
                            engagement_base?: "reach"
                            | "impressions"
                            | "followers";
                            external_identifier?: string;
                            files: {
                                _id: string;
                                cover_image?: { _id: string; cover_image?: ...; cover_offset?: number; creation_date: string; file_externals: { external_identifier: string; external_url: string; social_network: "facebook" | "instagram" | ... 7 more ... | "discord"; }[]; ... 6 more ...; public_path: string; };
                                cover_offset?: number;
                                creation_date: string;
                                file_externals: {
                                    external_identifier: string;
                                    external_url: string;
                                    social_network:
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...);
                                }[];
                                file_format: "mp4"
                                | "jpeg"
                                | "gif"
                                | "png"
                                | "jpg";
                                file_properties: {
                                    allowed_social_networks: string[];
                                    aspect_ratio: { text: string; value: number };
                                    duration: number;
                                    height: number;
                                    size_in_bytes: number;
                                    width: number;
                                };
                                file_type: "video"
                                | "image";
                                id_organization: string;
                                is_temporal: boolean;
                                name: string;
                                public_path: string;
                            }[];
                            id_account: | string
                            | {
                                _id: string;
                                creation_date: string;
                                error_code: number;
                                followers_count?: number;
                                id_client: string;
                                id_organization: string;
                                image?: string;
                                name: string;
                                next_comments_update?: string;
                                next_stats_update?: string;
                                private_message_link?: string;
                                social_network: | "facebook"
                                | "instagram"
                                | "linkedin"
                                | "tiktok"
                                | "twitter"
                                | "whatsapp"
                                | "youtube"
                                | "google_business"
                                | "bluesky"
                                | "discord";
                                username?: string;
                            };
                            id_integration?: string;
                            id_organization: string;
                            metrics?: {
                                clicks?: number;
                                comments?: number;
                                engagement?: number;
                                followers?: number;
                                followers_gained?: number;
                                impressions?: number;
                                likes?: number;
                                profile_views?: number;
                                reach?: number;
                                saves?: number;
                                shares?: number;
                                video_views?: number;
                            };
                            name?: string;
                            next_stats_update?: string;
                            publication_errors: {
                                code: number;
                                data?: { [key: string]: unknown };
                                message: string;
                            }[];
                            publication_type: | "profile"
                            | "page"
                            | "group"
                            | "reels"
                            | "stories"
                            | "message";
                            publish_date?: string;
                            retries: number;
                            social_network: | "facebook"
                            | "instagram"
                            | "linkedin"
                            | "tiktok"
                            | "twitter"
                            | "whatsapp"
                            | "youtube"
                            | "google_business"
                            | "bluesky"
                            | "discord";
                            state: "ready"
                            | "withErrors"
                            | "sended"
                            | "draft"
                            | "publishing";
                            statistics?: {
                                angers?: number;
                                bookmarks?: number;
                                clicks?: number;
                                comments?: number;
                                engagement?: number;
                                follows?: number;
                                hahas?: number;
                                impressions?: number;
                                likes?: number;
                                loves?: number;
                                negative_feedback?: number;
                                page_likes?: number;
                                playback_0_count?: number;
                                playback_100_count?: number;
                                playback_25_count?: number;
                                playback_50_count?: number;
                                playback_75_count?: number;
                                profile_activity?: number;
                                profile_visits?: number;
                                quotes?: number;
                                reach?: number;
                                replys?: number;
                                retwets?: number;
                                saved?: number;
                                share?: number;
                                shareMentions?: number;
                                shares?: number;
                                sorrys?: number;
                                url_link_clicks?: number;
                                user_profile_clicks?: number;
                                video_views?: number;
                                views?: number;
                                wows?: number;
                            };
                            stats_updated_date?: string;
                            text?: string;
                            title?: string;
                            url?: string;
                        };
                    };
                };
                headers: { [name: string]: unknown };
            };
            "400": {
                content: {
                    "application/json": {
                        code: number;
                        data?: { [key: string]: unknown };
                        message: string;
                    };
                };
                headers: { [name: string]: unknown };
            };
            "500": { content?: undefined; headers: { [name: string]: unknown } };
        };
    };
    removeUserFromOrganizationRole: {
        parameters: {
            cookie?: undefined;
            header?: undefined;
            path: { id_organization: string; id_rol: string; id_user: string };
            query?: undefined;
        };
        requestBody?: undefined;
        responses: {
            "200": {
                content: { "application/json": { success: boolean } };
                headers: { [name: string]: unknown };
            };
            "400": {
                content: {
                    "application/json": {
                        code: number;
                        data?: { [key: string]: unknown };
                        message: string;
                    };
                };
                headers: { [name: string]: unknown };
            };
            "401": {
                content: {
                    "application/json": {
                        code: number;
                        data?: { [key: string]: unknown };
                        message: string;
                    };
                };
                headers: { [name: string]: unknown };
            };
            "500": {
                content: {
                    "application/json": {
                        code: number;
                        data?: { [key: string]: unknown };
                        message: string;
                    };
                };
                headers: { [name: string]: unknown };
            };
        };
    };
    removeUserRole: {
        parameters: {
            cookie?: undefined;
            header?: undefined;
            path: { id_client: string; id_rol: string; id_user: string };
            query?: undefined;
        };
        requestBody?: undefined;
        responses: {
            "200": {
                content: { "application/json": { success: boolean } };
                headers: { [name: string]: unknown };
            };
            "400": {
                content: {
                    "application/json": {
                        code: number;
                        data?: { [key: string]: unknown };
                        message: string;
                    };
                };
                headers: { [name: string]: unknown };
            };
            "500": { content?: undefined; headers: { [name: string]: unknown } };
        };
    };
    replyComment: {
        parameters: {
            cookie?: undefined;
            header?: undefined;
            path: { id_comment: string; id_organization: string };
            query?: undefined;
        };
        requestBody: { content: { "application/json": { text: string } } };
        responses: {
            "200": {
                content: {
                    "application/json": {
                        comment: {
                            _id: string;
                            author: {
                                external_id: string;
                                is_own: boolean;
                                name?: string;
                                profile_pic?: string;
                            };
                            collected_date: string;
                            creation_date: string;
                            deleted: boolean;
                            external_id: string;
                            hidden: boolean;
                            id_account: | string
                            | {
                                _id: string;
                                creation_date: string;
                                error_code: number;
                                followers_count?: number;
                                id_client: string;
                                id_organization: string;
                                image?: string;
                                name: string;
                                next_comments_update?: string;
                                next_stats_update?: string;
                                private_message_link?: string;
                                social_network: | "facebook"
                                | "instagram"
                                | "linkedin"
                                | "tiktok"
                                | "twitter"
                                | "whatsapp"
                                | "youtube"
                                | "google_business"
                                | "bluesky"
                                | "discord";
                                username?: string;
                            };
                            id_organization: string;
                            id_publication?: | string
                            | {
                                _id: string;
                                creation_date: string;
                                engagement_base?: "reach"
                                | "impressions"
                                | "followers";
                                external_identifier?: string;
                                files: {
                                    _id: string;
                                    cover_image?: (...) | (...);
                                    cover_offset?: (...) | (...);
                                    creation_date: string;
                                    file_externals: (...)[];
                                    file_format: (...) | (...) | (...) | (...) | (...);
                                    file_properties: {
                                        allowed_social_networks: ...;
                                        aspect_ratio: ...;
                                        duration: ...;
                                        height: ...;
                                        size_in_bytes: ...;
                                        width: ...;
                                    };
                                    file_type: (...)
                                    | (...);
                                    id_organization: string;
                                    is_temporal: boolean;
                                    name: string;
                                    public_path: string;
                                }[];
                                id_account: | string
                                | {
                                    _id: string;
                                    creation_date: string;
                                    error_code: number;
                                    followers_count?: (...)
                                    | (...);
                                    id_client: string;
                                    id_organization: string;
                                    image?: (...) | (...);
                                    name: string;
                                    next_comments_update?: (...) | (...);
                                    next_stats_update?: (...) | (...);
                                    private_message_link?: (...) | (...);
                                    social_network:
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...);
                                    username?: (...) | (...);
                                };
                                id_integration?: string;
                                id_organization: string;
                                metrics?: {
                                    clicks?: (...)
                                    | (...);
                                    comments?: (...) | (...);
                                    engagement?: (...) | (...);
                                    followers?: (...) | (...);
                                    followers_gained?: (...) | (...);
                                    impressions?: (...) | (...);
                                    likes?: (...) | (...);
                                    profile_views?: (...) | (...);
                                    reach?: (...) | (...);
                                    saves?: (...) | (...);
                                    shares?: (...) | (...);
                                    video_views?: (...) | (...);
                                };
                                name?: string;
                                next_stats_update?: string;
                                publication_errors: {
                                    code: number;
                                    data?: (...)
                                    | (...);
                                    message: string;
                                }[];
                                publication_type: | "profile"
                                | "page"
                                | "group"
                                | "reels"
                                | "stories"
                                | "message";
                                publish_date?: string;
                                retries: number;
                                social_network: | "facebook"
                                | "instagram"
                                | "linkedin"
                                | "tiktok"
                                | "twitter"
                                | "whatsapp"
                                | "youtube"
                                | "google_business"
                                | "bluesky"
                                | "discord";
                                state: "ready"
                                | "withErrors"
                                | "sended"
                                | "draft"
                                | "publishing";
                                statistics?: {
                                    angers?: (...) | (...);
                                    bookmarks?: (...) | (...);
                                    clicks?: (...) | (...);
                                    comments?: (...) | (...);
                                    engagement?: (...) | (...);
                                    follows?: (...) | (...);
                                    hahas?: (...) | (...);
                                    impressions?: (...) | (...);
                                    likes?: (...) | (...);
                                    loves?: (...) | (...);
                                    negative_feedback?: (...) | (...);
                                    page_likes?: (...) | (...);
                                    playback_0_count?: (...) | (...);
                                    playback_100_count?: (...) | (...);
                                    playback_25_count?: (...) | (...);
                                    playback_50_count?: (...) | (...);
                                    playback_75_count?: (...) | (...);
                                    profile_activity?: (...) | (...);
                                    profile_visits?: (...) | (...);
                                    quotes?: (...) | (...);
                                    reach?: (...) | (...);
                                    replys?: (...) | (...);
                                    retwets?: (...) | (...);
                                    saved?: (...) | (...);
                                    share?: (...) | (...);
                                    shareMentions?: (...) | (...);
                                    shares?: (...) | (...);
                                    sorrys?: (...) | (...);
                                    url_link_clicks?: (...) | (...);
                                    user_profile_clicks?: (...) | (...);
                                    video_views?: (...) | (...);
                                    views?: (...) | (...);
                                    wows?: (...) | (...);
                                };
                                stats_updated_date?: string;
                                text?: string;
                                title?: string;
                                url?: string;
                            };
                            like_count?: number;
                            our_reply_external_id?: string;
                            parent_external_id?: string;
                            publication_external_id: string;
                            rating?: number;
                            read: boolean;
                            replied: boolean;
                            reply_count?: number;
                            social_network: | "facebook"
                            | "instagram"
                            | "linkedin"
                            | "twitter"
                            | "youtube"
                            | "google_business"
                            | "bluesky"
                            | "discord";
                            text: string;
                        };
                        credits_consumed: number;
                        reply: {
                            _id: string;
                            author: {
                                external_id: string;
                                is_own: boolean;
                                name?: string;
                                profile_pic?: string;
                            };
                            collected_date: string;
                            creation_date: string;
                            deleted: boolean;
                            external_id: string;
                            hidden: boolean;
                            id_account: | string
                            | {
                                _id: string;
                                creation_date: string;
                                error_code: number;
                                followers_count?: number;
                                id_client: string;
                                id_organization: string;
                                image?: string;
                                name: string;
                                next_comments_update?: string;
                                next_stats_update?: string;
                                private_message_link?: string;
                                social_network: | "facebook"
                                | "instagram"
                                | "linkedin"
                                | "tiktok"
                                | "twitter"
                                | "whatsapp"
                                | "youtube"
                                | "google_business"
                                | "bluesky"
                                | "discord";
                                username?: string;
                            };
                            id_organization: string;
                            id_publication?: | string
                            | {
                                _id: string;
                                creation_date: string;
                                engagement_base?: "reach"
                                | "impressions"
                                | "followers";
                                external_identifier?: string;
                                files: {
                                    _id: string;
                                    cover_image?: (...) | (...);
                                    cover_offset?: (...) | (...);
                                    creation_date: string;
                                    file_externals: (...)[];
                                    file_format: (...) | (...) | (...) | (...) | (...);
                                    file_properties: {
                                        allowed_social_networks: ...;
                                        aspect_ratio: ...;
                                        duration: ...;
                                        height: ...;
                                        size_in_bytes: ...;
                                        width: ...;
                                    };
                                    file_type: (...)
                                    | (...);
                                    id_organization: string;
                                    is_temporal: boolean;
                                    name: string;
                                    public_path: string;
                                }[];
                                id_account: | string
                                | {
                                    _id: string;
                                    creation_date: string;
                                    error_code: number;
                                    followers_count?: (...)
                                    | (...);
                                    id_client: string;
                                    id_organization: string;
                                    image?: (...) | (...);
                                    name: string;
                                    next_comments_update?: (...) | (...);
                                    next_stats_update?: (...) | (...);
                                    private_message_link?: (...) | (...);
                                    social_network:
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...);
                                    username?: (...) | (...);
                                };
                                id_integration?: string;
                                id_organization: string;
                                metrics?: {
                                    clicks?: (...)
                                    | (...);
                                    comments?: (...) | (...);
                                    engagement?: (...) | (...);
                                    followers?: (...) | (...);
                                    followers_gained?: (...) | (...);
                                    impressions?: (...) | (...);
                                    likes?: (...) | (...);
                                    profile_views?: (...) | (...);
                                    reach?: (...) | (...);
                                    saves?: (...) | (...);
                                    shares?: (...) | (...);
                                    video_views?: (...) | (...);
                                };
                                name?: string;
                                next_stats_update?: string;
                                publication_errors: {
                                    code: number;
                                    data?: (...)
                                    | (...);
                                    message: string;
                                }[];
                                publication_type: | "profile"
                                | "page"
                                | "group"
                                | "reels"
                                | "stories"
                                | "message";
                                publish_date?: string;
                                retries: number;
                                social_network: | "facebook"
                                | "instagram"
                                | "linkedin"
                                | "tiktok"
                                | "twitter"
                                | "whatsapp"
                                | "youtube"
                                | "google_business"
                                | "bluesky"
                                | "discord";
                                state: "ready"
                                | "withErrors"
                                | "sended"
                                | "draft"
                                | "publishing";
                                statistics?: {
                                    angers?: (...) | (...);
                                    bookmarks?: (...) | (...);
                                    clicks?: (...) | (...);
                                    comments?: (...) | (...);
                                    engagement?: (...) | (...);
                                    follows?: (...) | (...);
                                    hahas?: (...) | (...);
                                    impressions?: (...) | (...);
                                    likes?: (...) | (...);
                                    loves?: (...) | (...);
                                    negative_feedback?: (...) | (...);
                                    page_likes?: (...) | (...);
                                    playback_0_count?: (...) | (...);
                                    playback_100_count?: (...) | (...);
                                    playback_25_count?: (...) | (...);
                                    playback_50_count?: (...) | (...);
                                    playback_75_count?: (...) | (...);
                                    profile_activity?: (...) | (...);
                                    profile_visits?: (...) | (...);
                                    quotes?: (...) | (...);
                                    reach?: (...) | (...);
                                    replys?: (...) | (...);
                                    retwets?: (...) | (...);
                                    saved?: (...) | (...);
                                    share?: (...) | (...);
                                    shareMentions?: (...) | (...);
                                    shares?: (...) | (...);
                                    sorrys?: (...) | (...);
                                    url_link_clicks?: (...) | (...);
                                    user_profile_clicks?: (...) | (...);
                                    video_views?: (...) | (...);
                                    views?: (...) | (...);
                                    wows?: (...) | (...);
                                };
                                stats_updated_date?: string;
                                text?: string;
                                title?: string;
                                url?: string;
                            };
                            like_count?: number;
                            our_reply_external_id?: string;
                            parent_external_id?: string;
                            publication_external_id: string;
                            rating?: number;
                            read: boolean;
                            replied: boolean;
                            reply_count?: number;
                            social_network: | "facebook"
                            | "instagram"
                            | "linkedin"
                            | "twitter"
                            | "youtube"
                            | "google_business"
                            | "bluesky"
                            | "discord";
                            text: string;
                        };
                    };
                };
                headers: { [name: string]: unknown };
            };
            "400": {
                content: {
                    "application/json": {
                        code: number;
                        data?: { [key: string]: unknown };
                        message: string;
                    };
                };
                headers: { [name: string]: unknown };
            };
        };
    };
    retryAiPlan: {
        parameters: {
            cookie?: undefined;
            header?: undefined;
            path: { id_ai_plan: string; id_client: string; id_organization: string };
            query?: undefined;
        };
        requestBody?: undefined;
        responses: {
            "200": {
                content: {
                    "application/json": {
                        ai_plan: {
                            _id: string;
                            accounts: string[];
                            attempts: number;
                            creation_date: string;
                            credits_spent: number;
                            error?: {
                                code: number;
                                data?: { [key: string]: unknown };
                                message: string;
                            };
                            generation_end_date?: string;
                            id_client: string;
                            id_organization: string;
                            keycloak_identifier?: string;
                            options: {
                                allow_images: boolean;
                                gallery_uploads: string[];
                                language: string;
                                max_images?: number;
                                publish_days: number[];
                                shared: boolean;
                                timezone: string;
                                tone?: string;
                                use_organization_context: boolean;
                                week_start: string;
                            };
                            orchestrator_result?: Record<string, never>;
                            organization_context?: {
                                audience?: string;
                                avoid?: string;
                                blog_url?: string;
                                brand_name?: string;
                                default_tone?: string;
                                description?: string;
                                keywords?: string[];
                                notes?: string;
                                products?: string;
                                sector?: string;
                                shop_url?: string;
                                social_urls?: string[];
                                value_proposition?: string;
                                website?: string;
                            };
                            prompt: string;
                            publications: (
                                | string
                                | {
                                    _id: string;
                                    creation_date: string;
                                    engagement_base?: "reach"
                                    | "impressions"
                                    | "followers";
                                    external_identifier?: string;
                                    files: {
                                        _id: ...;
                                        cover_image?: ...;
                                        cover_offset?: ...;
                                        creation_date: ...;
                                        file_externals: ...;
                                        file_format: ...;
                                        file_properties: ...;
                                        file_type: ...;
                                        id_organization: ...;
                                        is_temporal: ...;
                                        name: ...;
                                        public_path: ...;
                                    }[];
                                    id_account: | string
                                    | {
                                        _id: ...;
                                        creation_date: ...;
                                        error_code: ...;
                                        followers_count?: ...;
                                        id_client: ...;
                                        id_organization: ...;
                                        image?: ...;
                                        name: ...;
                                        next_comments_update?: ...;
                                        next_stats_update?: ...;
                                        private_message_link?: ...;
                                        social_network: ...;
                                        username?: ...;
                                    };
                                    id_integration?: string;
                                    id_organization: string;
                                    metrics?: {
                                        clicks?: ...;
                                        comments?: ...;
                                        engagement?: ...;
                                        followers?: ...;
                                        followers_gained?: ...;
                                        impressions?: ...;
                                        likes?: ...;
                                        profile_views?: ...;
                                        reach?: ...;
                                        saves?: ...;
                                        shares?: ...;
                                        video_views?: ...;
                                    };
                                    name?: string;
                                    next_stats_update?: string;
                                    publication_errors: { code: ...; data?: ...; message: ... }[];
                                    publication_type:
                                        | "profile"
                                        | "page"
                                        | "group"
                                        | "reels"
                                        | "stories"
                                        | "message";
                                    publish_date?: string;
                                    retries: number;
                                    social_network: | "facebook"
                                    | "instagram"
                                    | "linkedin"
                                    | "tiktok"
                                    | "twitter"
                                    | "whatsapp"
                                    | "youtube"
                                    | "google_business"
                                    | "bluesky"
                                    | "discord";
                                    state: "ready"
                                    | "withErrors"
                                    | "sended"
                                    | "draft"
                                    | "publishing";
                                    statistics?: {
                                        angers?: ...;
                                        bookmarks?: ...;
                                        clicks?: ...;
                                        comments?: ...;
                                        engagement?: ...;
                                        follows?: ...;
                                        hahas?: ...;
                                        impressions?: ...;
                                        likes?: ...;
                                        loves?: ...;
                                        negative_feedback?: ...;
                                        page_likes?: ...;
                                        playback_0_count?: ...;
                                        playback_100_count?: ...;
                                        playback_25_count?: ...;
                                        playback_50_count?: ...;
                                        playback_75_count?: ...;
                                        profile_activity?: ...;
                                        profile_visits?: ...;
                                        quotes?: ...;
                                        reach?: ...;
                                        replys?: ...;
                                        retwets?: ...;
                                        saved?: ...;
                                        share?: ...;
                                        shareMentions?: ...;
                                        shares?: ...;
                                        sorrys?: ...;
                                        url_link_clicks?: ...;
                                        user_profile_clicks?: ...;
                                        video_views?: ...;
                                        views?: ...;
                                        wows?: ...;
                                    };
                                    stats_updated_date?: string;
                                    text?: string;
                                    title?: string;
                                    url?: string;
                                }
                            )[];
                            state: | "pending"
                            | "generating"
                            | "generated"
                            | "validated"
                            | "failed"
                            | "cancelled";
                        };
                    };
                };
                headers: { [name: string]: unknown };
            };
            "400": {
                content: {
                    "application/json": {
                        code: number;
                        data?: { [key: string]: unknown };
                        message: string;
                    };
                };
                headers: { [name: string]: unknown };
            };
            "500": { content?: undefined; headers: { [name: string]: unknown } };
        };
    };
    retryPublication: {
        parameters: {
            cookie?: undefined;
            header?: undefined;
            path: { id_organization: string; id_publication: string };
            query?: undefined;
        };
        requestBody?: undefined;
        responses: {
            "200": {
                content: {
                    "application/json": {
                        max_retries: number;
                        publication: {
                            _id: string;
                            creation_date: string;
                            engagement_base?: "reach"
                            | "impressions"
                            | "followers";
                            external_identifier?: string;
                            files: {
                                _id: string;
                                cover_image?: { _id: string; cover_image?: ...; cover_offset?: number; creation_date: string; file_externals: { external_identifier: string; external_url: string; social_network: "facebook" | "instagram" | ... 7 more ... | "discord"; }[]; ... 6 more ...; public_path: string; };
                                cover_offset?: number;
                                creation_date: string;
                                file_externals: {
                                    external_identifier: string;
                                    external_url: string;
                                    social_network:
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...);
                                }[];
                                file_format: "mp4"
                                | "jpeg"
                                | "gif"
                                | "png"
                                | "jpg";
                                file_properties: {
                                    allowed_social_networks: string[];
                                    aspect_ratio: { text: string; value: number };
                                    duration: number;
                                    height: number;
                                    size_in_bytes: number;
                                    width: number;
                                };
                                file_type: "video"
                                | "image";
                                id_organization: string;
                                is_temporal: boolean;
                                name: string;
                                public_path: string;
                            }[];
                            id_account: | string
                            | {
                                _id: string;
                                creation_date: string;
                                error_code: number;
                                followers_count?: number;
                                id_client: string;
                                id_organization: string;
                                image?: string;
                                name: string;
                                next_comments_update?: string;
                                next_stats_update?: string;
                                private_message_link?: string;
                                social_network: | "facebook"
                                | "instagram"
                                | "linkedin"
                                | "tiktok"
                                | "twitter"
                                | "whatsapp"
                                | "youtube"
                                | "google_business"
                                | "bluesky"
                                | "discord";
                                username?: string;
                            };
                            id_integration?: string;
                            id_organization: string;
                            metrics?: {
                                clicks?: number;
                                comments?: number;
                                engagement?: number;
                                followers?: number;
                                followers_gained?: number;
                                impressions?: number;
                                likes?: number;
                                profile_views?: number;
                                reach?: number;
                                saves?: number;
                                shares?: number;
                                video_views?: number;
                            };
                            name?: string;
                            next_stats_update?: string;
                            publication_errors: {
                                code: number;
                                data?: { [key: string]: unknown };
                                message: string;
                            }[];
                            publication_type: | "profile"
                            | "page"
                            | "group"
                            | "reels"
                            | "stories"
                            | "message";
                            publish_date?: string;
                            retries: number;
                            social_network: | "facebook"
                            | "instagram"
                            | "linkedin"
                            | "tiktok"
                            | "twitter"
                            | "whatsapp"
                            | "youtube"
                            | "google_business"
                            | "bluesky"
                            | "discord";
                            state: "ready"
                            | "withErrors"
                            | "sended"
                            | "draft"
                            | "publishing";
                            statistics?: {
                                angers?: number;
                                bookmarks?: number;
                                clicks?: number;
                                comments?: number;
                                engagement?: number;
                                follows?: number;
                                hahas?: number;
                                impressions?: number;
                                likes?: number;
                                loves?: number;
                                negative_feedback?: number;
                                page_likes?: number;
                                playback_0_count?: number;
                                playback_100_count?: number;
                                playback_25_count?: number;
                                playback_50_count?: number;
                                playback_75_count?: number;
                                profile_activity?: number;
                                profile_visits?: number;
                                quotes?: number;
                                reach?: number;
                                replys?: number;
                                retwets?: number;
                                saved?: number;
                                share?: number;
                                shareMentions?: number;
                                shares?: number;
                                sorrys?: number;
                                url_link_clicks?: number;
                                user_profile_clicks?: number;
                                video_views?: number;
                                views?: number;
                                wows?: number;
                            };
                            stats_updated_date?: string;
                            text?: string;
                            title?: string;
                            url?: string;
                        };
                    };
                };
                headers: { [name: string]: unknown };
            };
            "400": {
                content: {
                    "application/json": {
                        code: number;
                        data?: { [key: string]: unknown };
                        message: string;
                    };
                };
                headers: { [name: string]: unknown };
            };
            "500": { content?: undefined; headers: { [name: string]: unknown } };
        };
    };
    setPersistentMenu: {
        parameters: {
            cookie?: undefined;
            header?: undefined;
            path: { id_account: string; id_organization: string };
            query?: undefined;
        };
        requestBody: {
            content: {
                "application/json": {
                    persistent_menu?: {
                        call_to_actions?: { [key: string]: unknown }[];
                        composer_input_disabled?: boolean;
                        locale?: string;
                    }[];
                };
            };
        };
        responses: {
            "200": {
                content: {
                    "application/json": {
                        persistent_menu?: {
                            call_to_actions?: { [key: ...]: ... }[];
                            composer_input_disabled?: boolean;
                            locale?: string;
                        }[];
                    };
                };
                headers: { [name: string]: unknown };
            };
            "400": {
                content: {
                    "application/json": {
                        code: number;
                        data?: { [key: string]: unknown };
                        message: string;
                    };
                };
                headers: { [name: string]: unknown };
            };
            "500": { content?: undefined; headers: { [name: string]: unknown } };
        };
    };
    updateAccount: {
        parameters: {
            cookie?: undefined;
            header?: undefined;
            path: { id_account: string; id_organization: string };
            query?: undefined;
        };
        requestBody: { content: { "application/json": { name?: string } } };
        responses: {
            "200": {
                content: {
                    "application/json": {
                        account: {
                            _id: string;
                            creation_date: string;
                            error_code: number;
                            followers_count?: number;
                            id_client: string;
                            id_organization: string;
                            image?: string;
                            name: string;
                            next_comments_update?: string;
                            next_stats_update?: string;
                            private_message_link?: string;
                            social_network:
                                | "facebook"
                                | "instagram"
                                | "linkedin"
                                | "tiktok"
                                | "twitter"
                                | "whatsapp"
                                | "youtube"
                                | "google_business"
                                | "bluesky"
                                | "discord";
                            username?: string;
                        };
                    };
                };
                headers: { [name: string]: unknown };
            };
            "400": {
                content: {
                    "application/json": {
                        code: number;
                        data?: { [key: string]: unknown };
                        message: string;
                    };
                };
                headers: { [name: string]: unknown };
            };
            "500": { content?: undefined; headers: { [name: string]: unknown } };
        };
    };
    updateAiSettings: {
        parameters: {
            cookie?: undefined;
            header?: undefined;
            path: { id_client: string };
            query?: undefined;
        };
        requestBody: {
            content: {
                "application/json": {
                    image?: | null
                    | {
                        api_key?: string;
                        has_api_key?: boolean;
                        model: string;
                        provider: "openrouter"
                        | "openai"
                        | "google"
                        | "anthropic";
                    };
                    orchestrator?: | null
                    | {
                        api_key?: string;
                        has_api_key?: boolean;
                        model: string;
                        provider: "openrouter"
                        | "openai"
                        | "google"
                        | "anthropic";
                    };
                    text?: | null
                    | {
                        api_key?: string;
                        has_api_key?: boolean;
                        model: string;
                        provider: "openrouter"
                        | "openai"
                        | "google"
                        | "anthropic";
                    };
                };
            };
        };
        responses: {
            "200": {
                content: {
                    "application/json": {
                        client: {
                            _id: string;
                            actual_asigned?: {
                                accounts: number;
                                ai_credits?: number;
                                artificial_inteligence?: boolean;
                                integrations: number;
                                publications: number;
                                space: number;
                                stats?: boolean;
                                twitter_credits?: number;
                                users: number;
                                whatsapp?: boolean;
                            };
                            actual_plan: {
                                current_period_end?: string;
                                current_period_start?: string;
                                enabled: boolean;
                                isEnabled: boolean;
                                plan_data: {
                                    accounts: number;
                                    ai_credits?: number;
                                    artificial_inteligence?: boolean;
                                    integrations: number;
                                    publications: number;
                                    space: number;
                                    stats?: boolean;
                                    twitter_credits?: number;
                                    users: number;
                                    whatsapp?: boolean;
                                };
                                plan_identifier: "basic"
                                | "free"
                                | "pro"
                                | "custom";
                                require_action?: boolean;
                                status: string;
                                stripe_customer_id?: string;
                            };
                            actual_use?: {
                                accounts: number;
                                ai_credits?: number;
                                artificial_inteligence?: boolean;
                                integrations: number;
                                publications: number;
                                space: number;
                                stats?: boolean;
                                twitter_credits?: number;
                                users: number;
                                whatsapp?: boolean;
                            };
                            ai_settings?: {
                                image?: | null
                                | {
                                    api_key?: (...)
                                    | (...);
                                    has_api_key?: (...) | (...) | (...);
                                    model: string;
                                    provider: (...) | (...) | (...) | (...);
                                };
                                orchestrator?: | null
                                | {
                                    api_key?: (...)
                                    | (...);
                                    has_api_key?: (...) | (...) | (...);
                                    model: string;
                                    provider: (...) | (...) | (...) | (...);
                                };
                                text?: | null
                                | {
                                    api_key?: (...)
                                    | (...);
                                    has_api_key?: (...) | (...) | (...);
                                    model: string;
                                    provider: (...) | (...) | (...) | (...);
                                };
                            };
                            client_type?: "personal"
                            | "company";
                            creation_date: string;
                            name: string;
                            trial_tested?: boolean;
                        };
                    };
                };
                headers: { [name: string]: unknown };
            };
            "400": {
                content: {
                    "application/json": {
                        code: number;
                        data?: { [key: string]: unknown };
                        message: string;
                    };
                };
                headers: { [name: string]: unknown };
            };
            "500": { content?: undefined; headers: { [name: string]: unknown } };
        };
    };
    updateClient: {
        parameters: {
            cookie?: undefined;
            header?: undefined;
            path: { id_client: string };
            query?: undefined;
        };
        requestBody: {
            content: {
                "application/json": {
                    client_type?: "personal"
                    | "professional"
                    | "enterprise"
                    | "agency";
                    name?: string;
                };
            };
        };
        responses: {
            "200": {
                content: {
                    "application/json": {
                        client: {
                            _id: string;
                            actual_asigned?: {
                                accounts: number;
                                ai_credits?: number;
                                artificial_inteligence?: boolean;
                                integrations: number;
                                publications: number;
                                space: number;
                                stats?: boolean;
                                twitter_credits?: number;
                                users: number;
                                whatsapp?: boolean;
                            };
                            actual_plan: {
                                current_period_end?: string;
                                current_period_start?: string;
                                enabled: boolean;
                                isEnabled: boolean;
                                plan_data: {
                                    accounts: number;
                                    ai_credits?: number;
                                    artificial_inteligence?: boolean;
                                    integrations: number;
                                    publications: number;
                                    space: number;
                                    stats?: boolean;
                                    twitter_credits?: number;
                                    users: number;
                                    whatsapp?: boolean;
                                };
                                plan_identifier: "basic"
                                | "free"
                                | "pro"
                                | "custom";
                                require_action?: boolean;
                                status: string;
                                stripe_customer_id?: string;
                            };
                            actual_use?: {
                                accounts: number;
                                ai_credits?: number;
                                artificial_inteligence?: boolean;
                                integrations: number;
                                publications: number;
                                space: number;
                                stats?: boolean;
                                twitter_credits?: number;
                                users: number;
                                whatsapp?: boolean;
                            };
                            ai_settings?: {
                                image?: | null
                                | {
                                    api_key?: (...)
                                    | (...);
                                    has_api_key?: (...) | (...) | (...);
                                    model: string;
                                    provider: (...) | (...) | (...) | (...);
                                };
                                orchestrator?: | null
                                | {
                                    api_key?: (...)
                                    | (...);
                                    has_api_key?: (...) | (...) | (...);
                                    model: string;
                                    provider: (...) | (...) | (...) | (...);
                                };
                                text?: | null
                                | {
                                    api_key?: (...)
                                    | (...);
                                    has_api_key?: (...) | (...) | (...);
                                    model: string;
                                    provider: (...) | (...) | (...) | (...);
                                };
                            };
                            client_type?: "personal"
                            | "company";
                            creation_date: string;
                            name: string;
                            trial_tested?: boolean;
                        };
                    };
                };
                headers: { [name: string]: unknown };
            };
            "400": {
                content: {
                    "application/json": {
                        code: number;
                        data?: { [key: string]: unknown };
                        message: string;
                    };
                };
                headers: { [name: string]: unknown };
            };
            "500": { content?: undefined; headers: { [name: string]: unknown } };
        };
    };
    updateClientApp: {
        parameters: {
            cookie?: undefined;
            header?: undefined;
            path: { id_app: string; id_client: string };
            query?: undefined;
        };
        requestBody: {
            content: {
                "application/json": {
                    allowed_domains?: string[];
                    keycloak_client_idenfifier: string;
                    name: string;
                    redirect_urls?: string[];
                    webhook_url?: string;
                };
            };
        };
        responses: {
            "200": {
                content: {
                    "application/json": {
                        client_app: {
                            _id: string;
                            allowed_domains: string[];
                            creation_date: string;
                            deleted: boolean;
                            deleted_date?: string;
                            id_client: string;
                            id_user?: string;
                            keycloak_client_idenfifier: string;
                            name: string;
                            redirect_urls: string[];
                            webhook_url?: string;
                        };
                    };
                };
                headers: { [name: string]: unknown };
            };
            "400": {
                content: {
                    "application/json": {
                        code: number;
                        data?: { [key: string]: unknown };
                        message: string;
                    };
                };
                headers: { [name: string]: unknown };
            };
        };
    };
    updateClientRole: {
        parameters: {
            cookie?: undefined;
            header?: undefined;
            path: { id_client: string; id_rol: string };
            query?: undefined;
        };
        requestBody: {
            content: {
                "application/json": {
                    name: string;
                    permissions: (
                        | "client:update"
                        | "client:read"
                        | "client:delete"
                        | "client_app:create"
                        | "client_app:update"
                        | "client_app:read"
                        | "client_app:delete"
                        | "client_roles:create"
                        | "client_roles:update"
                        | "client_roles:read"
                        | "client_roles:delete"
                        | "client_roles_users:read"
                        | "client_roles_users:create"
                        | "client_roles_users:delete"
                        | "client_organization:create"
                        | "client_organization:update"
                        | "client_organization:read"
                        | "client_organization:delete"
                        | "client_organization_roles:read"
                        | "client_organization_roles:create"
                        | "client_organization_roles:update"
                        | "client_organization_roles:delete"
                        | "client_organization_users_roles:read"
                        | "client_organization_users_roles:create"
                        | "client_organization_users_roles:delete"
                        | "client_organization_accounts:read"
                        | "client_organization_accounts:create"
                        | "client_organization_accounts:update"
                        | "client_organization_accounts:delete"
                        | "client_organization_files:read"
                        | "client_organization_files:create"
                        | "client_organization_files:update"
                        | "client_organization_files:delete"
                        | "client_organization_publications:read"
                        | "client_organization_publications:create"
                        | "client_organization_publications:update"
                        | "client_organization_publications:delete"
                        | "client_organization_publications_stats:read"
                        | "client_organization_account_stats:read"
                        | "client_organization_products:create"
                        | "client_organization_products:update"
                        | "client_organization_products:read"
                        | "client_organization_products:delete"
                        | "client_organization_messages:create"
                        | "client_organization_messages:read"
                        | "client_organization_messages:delete"
                        | "client_organization_contacts:create"
                        | "client_organization_contacts:read"
                        | "client_organization_contacts:update"
                        | "client_organization_contacts:delete"
                        | "client_organization_ai_plans:create"
                        | "client_organization_ai_plans:read"
                        | "client_organization_ai_plans:update"
                        | "client_organization_ai_plans:delete"
                    )[];
                };
            };
        };
        responses: {
            "200": {
                content: {
                    "application/json": {
                        rol?: {
                            name?: string;
                            permissions?: (
                                | "client:update"
                                | "client:read"
                                | "client:delete"
                                | "client_app:create"
                                | "client_app:update"
                                | "client_app:read"
                                | "client_app:delete"
                                | "client_roles:create"
                                | "client_roles:update"
                                | "client_roles:read"
                                | "client_roles:delete"
                                | "client_roles_users:read"
                                | "client_roles_users:create"
                                | "client_roles_users:delete"
                                | "client_organization:create"
                                | "client_organization:update"
                                | "client_organization:read"
                                | "client_organization:delete"
                                | "client_organization_roles:read"
                                | "client_organization_roles:create"
                                | "client_organization_roles:update"
                                | "client_organization_roles:delete"
                                | "client_organization_users_roles:read"
                                | "client_organization_users_roles:create"
                                | "client_organization_users_roles:delete"
                                | "client_organization_accounts:read"
                                | "client_organization_accounts:create"
                                | "client_organization_accounts:update"
                                | "client_organization_accounts:delete"
                                | "client_organization_files:read"
                                | "client_organization_files:create"
                                | "client_organization_files:update"
                                | "client_organization_files:delete"
                                | "client_organization_publications:read"
                                | "client_organization_publications:create"
                                | "client_organization_publications:update"
                                | "client_organization_publications:delete"
                                | "client_organization_publications_stats:read"
                                | "client_organization_account_stats:read"
                            )[];
                        };
                    };
                };
                headers: { [name: string]: unknown };
            };
            "400": {
                content: {
                    "application/json": {
                        code: number;
                        data?: { [key: string]: unknown };
                        message: string;
                    };
                };
                headers: { [name: string]: unknown };
            };
            "500": { content?: undefined; headers: { [name: string]: unknown } };
        };
    };
    updateComment: {
        parameters: {
            cookie?: undefined;
            header?: undefined;
            path: { id_comment: string; id_organization: string };
            query?: undefined;
        };
        requestBody: {
            content: { "application/json": { hidden?: boolean; read?: boolean } };
        };
        responses: {
            "200": {
                content: {
                    "application/json": {
                        comment: {
                            _id: string;
                            author: {
                                external_id: string;
                                is_own: boolean;
                                name?: string;
                                profile_pic?: string;
                            };
                            collected_date: string;
                            creation_date: string;
                            deleted: boolean;
                            external_id: string;
                            hidden: boolean;
                            id_account: | string
                            | {
                                _id: string;
                                creation_date: string;
                                error_code: number;
                                followers_count?: number;
                                id_client: string;
                                id_organization: string;
                                image?: string;
                                name: string;
                                next_comments_update?: string;
                                next_stats_update?: string;
                                private_message_link?: string;
                                social_network: | "facebook"
                                | "instagram"
                                | "linkedin"
                                | "tiktok"
                                | "twitter"
                                | "whatsapp"
                                | "youtube"
                                | "google_business"
                                | "bluesky"
                                | "discord";
                                username?: string;
                            };
                            id_organization: string;
                            id_publication?: | string
                            | {
                                _id: string;
                                creation_date: string;
                                engagement_base?: "reach"
                                | "impressions"
                                | "followers";
                                external_identifier?: string;
                                files: {
                                    _id: string;
                                    cover_image?: (...) | (...);
                                    cover_offset?: (...) | (...);
                                    creation_date: string;
                                    file_externals: (...)[];
                                    file_format: (...) | (...) | (...) | (...) | (...);
                                    file_properties: {
                                        allowed_social_networks: ...;
                                        aspect_ratio: ...;
                                        duration: ...;
                                        height: ...;
                                        size_in_bytes: ...;
                                        width: ...;
                                    };
                                    file_type: (...)
                                    | (...);
                                    id_organization: string;
                                    is_temporal: boolean;
                                    name: string;
                                    public_path: string;
                                }[];
                                id_account: | string
                                | {
                                    _id: string;
                                    creation_date: string;
                                    error_code: number;
                                    followers_count?: (...)
                                    | (...);
                                    id_client: string;
                                    id_organization: string;
                                    image?: (...) | (...);
                                    name: string;
                                    next_comments_update?: (...) | (...);
                                    next_stats_update?: (...) | (...);
                                    private_message_link?: (...) | (...);
                                    social_network:
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...);
                                    username?: (...) | (...);
                                };
                                id_integration?: string;
                                id_organization: string;
                                metrics?: {
                                    clicks?: (...)
                                    | (...);
                                    comments?: (...) | (...);
                                    engagement?: (...) | (...);
                                    followers?: (...) | (...);
                                    followers_gained?: (...) | (...);
                                    impressions?: (...) | (...);
                                    likes?: (...) | (...);
                                    profile_views?: (...) | (...);
                                    reach?: (...) | (...);
                                    saves?: (...) | (...);
                                    shares?: (...) | (...);
                                    video_views?: (...) | (...);
                                };
                                name?: string;
                                next_stats_update?: string;
                                publication_errors: {
                                    code: number;
                                    data?: (...)
                                    | (...);
                                    message: string;
                                }[];
                                publication_type: | "profile"
                                | "page"
                                | "group"
                                | "reels"
                                | "stories"
                                | "message";
                                publish_date?: string;
                                retries: number;
                                social_network: | "facebook"
                                | "instagram"
                                | "linkedin"
                                | "tiktok"
                                | "twitter"
                                | "whatsapp"
                                | "youtube"
                                | "google_business"
                                | "bluesky"
                                | "discord";
                                state: "ready"
                                | "withErrors"
                                | "sended"
                                | "draft"
                                | "publishing";
                                statistics?: {
                                    angers?: (...) | (...);
                                    bookmarks?: (...) | (...);
                                    clicks?: (...) | (...);
                                    comments?: (...) | (...);
                                    engagement?: (...) | (...);
                                    follows?: (...) | (...);
                                    hahas?: (...) | (...);
                                    impressions?: (...) | (...);
                                    likes?: (...) | (...);
                                    loves?: (...) | (...);
                                    negative_feedback?: (...) | (...);
                                    page_likes?: (...) | (...);
                                    playback_0_count?: (...) | (...);
                                    playback_100_count?: (...) | (...);
                                    playback_25_count?: (...) | (...);
                                    playback_50_count?: (...) | (...);
                                    playback_75_count?: (...) | (...);
                                    profile_activity?: (...) | (...);
                                    profile_visits?: (...) | (...);
                                    quotes?: (...) | (...);
                                    reach?: (...) | (...);
                                    replys?: (...) | (...);
                                    retwets?: (...) | (...);
                                    saved?: (...) | (...);
                                    share?: (...) | (...);
                                    shareMentions?: (...) | (...);
                                    shares?: (...) | (...);
                                    sorrys?: (...) | (...);
                                    url_link_clicks?: (...) | (...);
                                    user_profile_clicks?: (...) | (...);
                                    video_views?: (...) | (...);
                                    views?: (...) | (...);
                                    wows?: (...) | (...);
                                };
                                stats_updated_date?: string;
                                text?: string;
                                title?: string;
                                url?: string;
                            };
                            like_count?: number;
                            our_reply_external_id?: string;
                            parent_external_id?: string;
                            publication_external_id: string;
                            rating?: number;
                            read: boolean;
                            replied: boolean;
                            reply_count?: number;
                            social_network: | "facebook"
                            | "instagram"
                            | "linkedin"
                            | "twitter"
                            | "youtube"
                            | "google_business"
                            | "bluesky"
                            | "discord";
                            text: string;
                        };
                    };
                };
                headers: { [name: string]: unknown };
            };
            "400": {
                content: {
                    "application/json": {
                        code: number;
                        data?: { [key: string]: unknown };
                        message: string;
                    };
                };
                headers: { [name: string]: unknown };
            };
        };
    };
    updateContact: {
        parameters: {
            cookie?: undefined;
            header?: undefined;
            path: { id_contact: string; id_organization: string };
            query?: undefined;
        };
        requestBody: {
            content: {
                "application/json": {
                    extra_data?: {
                        address?: string;
                        boolean_property?: boolean;
                        boolean_property2?: boolean;
                        building?: string
                        | number;
                        city?: string;
                        coords?: number[];
                        country?: string;
                        country_code?: string;
                        door?: string | number;
                        floor?: string | number;
                        number?: string | number;
                        number_property?: number;
                        number_property2?: number;
                        place_id?: string;
                        state?: string;
                        string_property?: string;
                        string_property2?: string;
                        zip_code?: string | number;
                    };
                    name?: string;
                    profile_image?: string;
                    social_identifiers?: {
                        _id?: string;
                        external_identifier?: string;
                        social_network: | "facebook"
                        | "instagram"
                        | "linkedin"
                        | "tiktok"
                        | "twitter"
                        | "whatsapp"
                        | "youtube"
                        | "google_business"
                        | "bluesky"
                        | "discord"
                        | "email";
                    }[];
                };
            };
        };
        responses: {
            "200": {
                content: { "application/json": { success: boolean } };
                headers: { [name: string]: unknown };
            };
            "400": {
                content: {
                    "application/json": {
                        code: number;
                        data?: { [key: string]: unknown };
                        message: string;
                    };
                };
                headers: { [name: string]: unknown };
            };
        };
    };
    updateIntegration: {
        parameters: {
            cookie?: undefined;
            header?: undefined;
            path: { id_integration: string; id_organization: string };
            query?: undefined;
        };
        requestBody: {
            content: {
                "application/json": {
                    config?: {
                        auto_publish?: boolean;
                        id_accounts?: string[];
                        import_image?: boolean;
                        last_checked?: string;
                        publication_type?: string;
                        seen_guids?: string[];
                        template?: string;
                        url?: string;
                    };
                    enabled?: boolean;
                    name?: string;
                };
            };
        };
        responses: {
            "200": {
                content: {
                    "application/json": {
                        integration: {
                            _id: string;
                            config: {
                                auto_publish?: boolean;
                                id_accounts?: string[];
                                import_image?: boolean;
                                last_checked?: string;
                                publication_type?: string;
                                seen_guids?: string[];
                                template?: string;
                                url?: string;
                            };
                            connected: boolean;
                            creation_date: string;
                            enabled: boolean;
                            error_code?: null
                            | number;
                            external_identifier?: string;
                            id_client: string;
                            id_organization: string;
                            last_used_date?: string;
                            name: string;
                            provider: "google_drive" | "rss";
                        };
                    };
                };
                headers: { [name: string]: unknown };
            };
            "400": {
                content: {
                    "application/json": {
                        code: number;
                        data?: { [key: string]: unknown };
                        message: string;
                    };
                };
                headers: { [name: string]: unknown };
            };
        };
    };
    updateOrganizationAiContext: {
        parameters: {
            cookie?: undefined;
            header?: undefined;
            path: { id_organization: string };
            query?: undefined;
        };
        requestBody: {
            content: {
                "application/json": {
                    audience?: string;
                    avoid?: string;
                    blog_url?: string;
                    brand_name?: string;
                    default_tone?: string;
                    description?: string;
                    keywords?: string[];
                    notes?: string;
                    products?: string;
                    sector?: string;
                    shop_url?: string;
                    social_urls?: string[];
                    value_proposition?: string;
                    website?: string;
                };
            };
        };
        responses: {
            "200": {
                content: {
                    "application/json": {
                        organization: {
                            _id: string;
                            actual_asigned?: {
                                accounts: number;
                                ai_credits?: number;
                                artificial_inteligence?: boolean;
                                integrations: number;
                                publications: number;
                                space: number;
                                stats?: boolean;
                                twitter_credits?: number;
                                users: number;
                                whatsapp?: boolean;
                            };
                            actual_plan?: {
                                accounts: number;
                                ai_credits?: number;
                                artificial_inteligence?: boolean;
                                integrations: number;
                                publications: number;
                                space: number;
                                stats?: boolean;
                                twitter_credits?: number;
                                users: number;
                                whatsapp?: boolean;
                            };
                            actual_use?: {
                                accounts: number;
                                ai_credits?: number;
                                artificial_inteligence?: boolean;
                                integrations: number;
                                publications: number;
                                space: number;
                                stats?: boolean;
                                twitter_credits?: number;
                                users: number;
                                whatsapp?: boolean;
                            };
                            ai_context?: {
                                audience?: string;
                                avoid?: string;
                                blog_url?: string;
                                brand_name?: string;
                                default_tone?: string;
                                description?: string;
                                keywords?: string[];
                                notes?: string;
                                products?: string;
                                sector?: string;
                                shop_url?: string;
                                social_urls?: string[];
                                value_proposition?: string;
                                website?: string;
                            };
                            creation_date: string;
                            id_client: string;
                            name: string;
                            parent_organization?: string;
                            social_credentials?: {
                                discord?: {
                                    application_name?: (...)
                                    | (...);
                                    client_id?: (...) | (...);
                                    has_bot_token?: (...) | (...) | (...);
                                    has_client_secret?: (...) | (...) | (...);
                                    verified_date?: (...) | (...);
                                };
                            };
                            stats_settings?: { auto_refresh_twitter: boolean };
                        };
                    };
                };
                headers: { [name: string]: unknown };
            };
            "400": {
                content: {
                    "application/json": {
                        code: number;
                        data?: { [key: string]: unknown };
                        message: string;
                    };
                };
                headers: { [name: string]: unknown };
            };
            "500": { content?: undefined; headers: { [name: string]: unknown } };
        };
    };
    updateOrganizationInsideOrganization: {
        parameters: {
            cookie?: undefined;
            header?: undefined;
            path: { id_organization: string };
            query?: undefined;
        };
        requestBody: {
            content: {
                "application/json": {
                    actual_plan?: {
                        accounts: number;
                        ai_credits?: number;
                        artificial_inteligence?: boolean;
                        integrations: number;
                        publications: number;
                        space: number;
                        stats?: boolean;
                        twitter_credits?: number;
                        users: number;
                        whatsapp?: boolean;
                    };
                    stats_settings?: { auto_refresh_twitter: boolean };
                };
            };
        };
        responses: {
            "200": {
                content: {
                    "application/json": {
                        organization: {
                            _id: string;
                            actual_asigned?: {
                                accounts: number;
                                ai_credits?: number;
                                artificial_inteligence?: boolean;
                                integrations: number;
                                publications: number;
                                space: number;
                                stats?: boolean;
                                twitter_credits?: number;
                                users: number;
                                whatsapp?: boolean;
                            };
                            actual_plan?: {
                                accounts: number;
                                ai_credits?: number;
                                artificial_inteligence?: boolean;
                                integrations: number;
                                publications: number;
                                space: number;
                                stats?: boolean;
                                twitter_credits?: number;
                                users: number;
                                whatsapp?: boolean;
                            };
                            actual_use?: {
                                accounts: number;
                                ai_credits?: number;
                                artificial_inteligence?: boolean;
                                integrations: number;
                                publications: number;
                                space: number;
                                stats?: boolean;
                                twitter_credits?: number;
                                users: number;
                                whatsapp?: boolean;
                            };
                            ai_context?: {
                                audience?: string;
                                avoid?: string;
                                blog_url?: string;
                                brand_name?: string;
                                default_tone?: string;
                                description?: string;
                                keywords?: string[];
                                notes?: string;
                                products?: string;
                                sector?: string;
                                shop_url?: string;
                                social_urls?: string[];
                                value_proposition?: string;
                                website?: string;
                            };
                            creation_date: string;
                            id_client: string;
                            name: string;
                            parent_organization?: string;
                            social_credentials?: {
                                discord?: {
                                    application_name?: (...)
                                    | (...);
                                    client_id?: (...) | (...);
                                    has_bot_token?: (...) | (...) | (...);
                                    has_client_secret?: (...) | (...) | (...);
                                    verified_date?: (...) | (...);
                                };
                            };
                            stats_settings?: { auto_refresh_twitter: boolean };
                        };
                    };
                };
                headers: { [name: string]: unknown };
            };
            "400": {
                content: {
                    "application/json": {
                        code: number;
                        data?: { [key: string]: unknown };
                        message: string;
                    };
                };
                headers: { [name: string]: unknown };
            };
            "500": { content?: undefined; headers: { [name: string]: unknown } };
        };
    };
    updateOrganizationRole: {
        parameters: {
            cookie?: undefined;
            header?: undefined;
            path: { id_organization: string; id_rol: string };
            query?: undefined;
        };
        requestBody: {
            content: {
                "application/json": {
                    name: string;
                    permissions: (
                        | "organization:create"
                        | "organization:update"
                        | "organization:read"
                        | "organization:delete"
                        | "organization_roles:create"
                        | "organization_roles:update"
                        | "organization_roles:read"
                        | "organization_roles:delete"
                        | "organization_users_roles:read"
                        | "organization_users_roles:create"
                        | "organization_users_roles:delete"
                        | "accounts:create"
                        | "accounts:update"
                        | "accounts:read"
                        | "accounts:delete"
                        | "products:create"
                        | "products:update"
                        | "products:read"
                        | "products:delete"
                        | "files:create"
                        | "files:update"
                        | "files:read"
                        | "files:delete"
                        | "publications:create"
                        | "publications:update"
                        | "publications:read"
                        | "publications:delete"
                        | "account_stats:read"
                        | "publication_stats:read"
                        | "messages:create"
                        | "messages:read"
                        | "messages:delete"
                        | "contacts:create"
                        | "contacts:read"
                        | "contacts:update"
                        | "contacts:delete"
                        | "ai_plans:create"
                        | "ai_plans:read"
                        | "ai_plans:update"
                        | "ai_plans:delete"
                    )[];
                };
            };
        };
        responses: {
            "200": {
                content: {
                    "application/json": {
                        rol?: {
                            _id?: string;
                            creation_date?: string;
                            default?: boolean;
                            id_organization?: string;
                            name?: string;
                            permissions?: (
                                | "organization:create"
                                | "organization:update"
                                | "organization:read"
                                | "organization:delete"
                                | "organization_roles:create"
                                | "organization_roles:update"
                                | "organization_roles:read"
                                | "organization_roles:delete"
                                | "organization_users_roles:read"
                                | "organization_users_roles:create"
                                | "organization_users_roles:delete"
                                | "accounts:create"
                                | "accounts:update"
                                | "accounts:read"
                                | "accounts:delete"
                                | "products:create"
                                | "products:update"
                                | "products:read"
                                | "products:delete"
                                | "files:create"
                                | "files:update"
                                | "files:read"
                                | "files:delete"
                                | "publications:create"
                                | "publications:update"
                                | "publications:read"
                                | "publications:delete"
                                | "account_stats:read"
                                | "publication_stats:read"
                                | "messages:create"
                                | "messages:read"
                                | "messages:delete"
                                | "contacts:create"
                                | "contacts:read"
                                | "contacts:update"
                                | "contacts:delete"
                                | "ai_plans:create"
                                | "ai_plans:read"
                                | "ai_plans:update"
                                | "ai_plans:delete"
                            )[];
                            total_users?: number;
                        };
                    };
                };
                headers: { [name: string]: unknown };
            };
            "400": {
                content: {
                    "application/json": {
                        code: number;
                        data?: { [key: string]: unknown };
                        message: string;
                    };
                };
                headers: { [name: string]: unknown };
            };
            "401": {
                content: {
                    "application/json": {
                        code: number;
                        data?: { [key: string]: unknown };
                        message: string;
                    };
                };
                headers: { [name: string]: unknown };
            };
            "500": {
                content: {
                    "application/json": {
                        code: number;
                        data?: { [key: string]: unknown };
                        message: string;
                    };
                };
                headers: { [name: string]: unknown };
            };
        };
    };
    updateOrganizationSocialCredentials: {
        parameters: {
            cookie?: undefined;
            header?: undefined;
            path: { id_organization: string; social_network: "discord" };
            query?: undefined;
        };
        requestBody: {
            content: {
                "application/json": {
                    bot_token?: string;
                    client_id?: string;
                    client_secret?: string;
                };
            };
        };
        responses: {
            "200": {
                content: {
                    "application/json": {
                        organization: {
                            _id: string;
                            actual_asigned?: {
                                accounts: number;
                                ai_credits?: number;
                                artificial_inteligence?: boolean;
                                integrations: number;
                                publications: number;
                                space: number;
                                stats?: boolean;
                                twitter_credits?: number;
                                users: number;
                                whatsapp?: boolean;
                            };
                            actual_plan?: {
                                accounts: number;
                                ai_credits?: number;
                                artificial_inteligence?: boolean;
                                integrations: number;
                                publications: number;
                                space: number;
                                stats?: boolean;
                                twitter_credits?: number;
                                users: number;
                                whatsapp?: boolean;
                            };
                            actual_use?: {
                                accounts: number;
                                ai_credits?: number;
                                artificial_inteligence?: boolean;
                                integrations: number;
                                publications: number;
                                space: number;
                                stats?: boolean;
                                twitter_credits?: number;
                                users: number;
                                whatsapp?: boolean;
                            };
                            ai_context?: {
                                audience?: string;
                                avoid?: string;
                                blog_url?: string;
                                brand_name?: string;
                                default_tone?: string;
                                description?: string;
                                keywords?: string[];
                                notes?: string;
                                products?: string;
                                sector?: string;
                                shop_url?: string;
                                social_urls?: string[];
                                value_proposition?: string;
                                website?: string;
                            };
                            creation_date: string;
                            id_client: string;
                            name: string;
                            parent_organization?: string;
                            social_credentials?: {
                                discord?: {
                                    application_name?: (...)
                                    | (...);
                                    client_id?: (...) | (...);
                                    has_bot_token?: (...) | (...) | (...);
                                    has_client_secret?: (...) | (...) | (...);
                                    verified_date?: (...) | (...);
                                };
                            };
                            stats_settings?: { auto_refresh_twitter: boolean };
                        };
                    };
                };
                headers: { [name: string]: unknown };
            };
            "400": {
                content: {
                    "application/json": {
                        code: number;
                        data?: { [key: string]: unknown };
                        message: string;
                    };
                };
                headers: { [name: string]: unknown };
            };
            "500": { content?: undefined; headers: { [name: string]: unknown } };
        };
    };
    updateParentOrganization: {
        parameters: {
            cookie?: undefined;
            header?: undefined;
            path: { id_client: string; id_organization: string };
            query?: undefined;
        };
        requestBody: {
            content: {
                "application/json": {
                    actual_plan?: {
                        accounts: number;
                        ai_credits?: number;
                        artificial_inteligence?: boolean;
                        integrations: number;
                        publications: number;
                        space: number;
                        stats?: boolean;
                        twitter_credits?: number;
                        users: number;
                        whatsapp?: boolean;
                    };
                    stats_settings?: { auto_refresh_twitter: boolean };
                };
            };
        };
        responses: {
            "200": {
                content: {
                    "application/json": {
                        organization: {
                            _id: string;
                            actual_asigned?: {
                                accounts: number;
                                ai_credits?: number;
                                artificial_inteligence?: boolean;
                                integrations: number;
                                publications: number;
                                space: number;
                                stats?: boolean;
                                twitter_credits?: number;
                                users: number;
                                whatsapp?: boolean;
                            };
                            actual_plan?: {
                                accounts: number;
                                ai_credits?: number;
                                artificial_inteligence?: boolean;
                                integrations: number;
                                publications: number;
                                space: number;
                                stats?: boolean;
                                twitter_credits?: number;
                                users: number;
                                whatsapp?: boolean;
                            };
                            actual_use?: {
                                accounts: number;
                                ai_credits?: number;
                                artificial_inteligence?: boolean;
                                integrations: number;
                                publications: number;
                                space: number;
                                stats?: boolean;
                                twitter_credits?: number;
                                users: number;
                                whatsapp?: boolean;
                            };
                            ai_context?: {
                                audience?: string;
                                avoid?: string;
                                blog_url?: string;
                                brand_name?: string;
                                default_tone?: string;
                                description?: string;
                                keywords?: string[];
                                notes?: string;
                                products?: string;
                                sector?: string;
                                shop_url?: string;
                                social_urls?: string[];
                                value_proposition?: string;
                                website?: string;
                            };
                            creation_date: string;
                            id_client: string;
                            name: string;
                            parent_organization?: string;
                            social_credentials?: {
                                discord?: {
                                    application_name?: (...)
                                    | (...);
                                    client_id?: (...) | (...);
                                    has_bot_token?: (...) | (...) | (...);
                                    has_client_secret?: (...) | (...) | (...);
                                    verified_date?: (...) | (...);
                                };
                            };
                            stats_settings?: { auto_refresh_twitter: boolean };
                        };
                    };
                };
                headers: { [name: string]: unknown };
            };
            "400": {
                content: {
                    "application/json": {
                        code: number;
                        data?: { [key: string]: unknown };
                        message: string;
                    };
                };
                headers: { [name: string]: unknown };
            };
            "500": { content?: undefined; headers: { [name: string]: unknown } };
        };
    };
    updatePublication: {
        parameters: {
            cookie?: undefined;
            header?: undefined;
            path: { id_organization: string; id_publication: string };
            query?: undefined;
        };
        requestBody: {
            content: {
                "application/json": {
                    files?: string[];
                    name?: string;
                    publication_type?: "profile"
                    | "page"
                    | "group"
                    | "reels"
                    | "stories";
                    publish_date?: string;
                    social_network?:
                        | "facebook"
                        | "instagram"
                        | "linkedin"
                        | "tiktok"
                        | "twitter"
                        | "whatsapp"
                        | "youtube"
                        | "bluesky"
                        | "discord";
                    state?: "ready"
                    | "withErrors"
                    | "sended"
                    | "draft"
                    | "publishing";
                    text?: string;
                    title?: string;
                };
            };
        };
        responses: {
            "200": {
                content: {
                    "application/json": {
                        publication: {
                            _id: string;
                            creation_date: string;
                            engagement_base?: "reach"
                            | "impressions"
                            | "followers";
                            external_identifier?: string;
                            files: {
                                _id: string;
                                cover_image?: { _id: string; cover_image?: ...; cover_offset?: number; creation_date: string; file_externals: { external_identifier: string; external_url: string; social_network: "facebook" | "instagram" | ... 7 more ... | "discord"; }[]; ... 6 more ...; public_path: string; };
                                cover_offset?: number;
                                creation_date: string;
                                file_externals: {
                                    external_identifier: string;
                                    external_url: string;
                                    social_network:
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...);
                                }[];
                                file_format: "mp4"
                                | "jpeg"
                                | "gif"
                                | "png"
                                | "jpg";
                                file_properties: {
                                    allowed_social_networks: string[];
                                    aspect_ratio: { text: string; value: number };
                                    duration: number;
                                    height: number;
                                    size_in_bytes: number;
                                    width: number;
                                };
                                file_type: "video"
                                | "image";
                                id_organization: string;
                                is_temporal: boolean;
                                name: string;
                                public_path: string;
                            }[];
                            id_account: | string
                            | {
                                _id: string;
                                creation_date: string;
                                error_code: number;
                                followers_count?: number;
                                id_client: string;
                                id_organization: string;
                                image?: string;
                                name: string;
                                next_comments_update?: string;
                                next_stats_update?: string;
                                private_message_link?: string;
                                social_network: | "facebook"
                                | "instagram"
                                | "linkedin"
                                | "tiktok"
                                | "twitter"
                                | "whatsapp"
                                | "youtube"
                                | "google_business"
                                | "bluesky"
                                | "discord";
                                username?: string;
                            };
                            id_integration?: string;
                            id_organization: string;
                            metrics?: {
                                clicks?: number;
                                comments?: number;
                                engagement?: number;
                                followers?: number;
                                followers_gained?: number;
                                impressions?: number;
                                likes?: number;
                                profile_views?: number;
                                reach?: number;
                                saves?: number;
                                shares?: number;
                                video_views?: number;
                            };
                            name?: string;
                            next_stats_update?: string;
                            publication_errors: {
                                code: number;
                                data?: { [key: string]: unknown };
                                message: string;
                            }[];
                            publication_type: | "profile"
                            | "page"
                            | "group"
                            | "reels"
                            | "stories"
                            | "message";
                            publish_date?: string;
                            retries: number;
                            social_network: | "facebook"
                            | "instagram"
                            | "linkedin"
                            | "tiktok"
                            | "twitter"
                            | "whatsapp"
                            | "youtube"
                            | "google_business"
                            | "bluesky"
                            | "discord";
                            state: "ready"
                            | "withErrors"
                            | "sended"
                            | "draft"
                            | "publishing";
                            statistics?: {
                                angers?: number;
                                bookmarks?: number;
                                clicks?: number;
                                comments?: number;
                                engagement?: number;
                                follows?: number;
                                hahas?: number;
                                impressions?: number;
                                likes?: number;
                                loves?: number;
                                negative_feedback?: number;
                                page_likes?: number;
                                playback_0_count?: number;
                                playback_100_count?: number;
                                playback_25_count?: number;
                                playback_50_count?: number;
                                playback_75_count?: number;
                                profile_activity?: number;
                                profile_visits?: number;
                                quotes?: number;
                                reach?: number;
                                replys?: number;
                                retwets?: number;
                                saved?: number;
                                share?: number;
                                shareMentions?: number;
                                shares?: number;
                                sorrys?: number;
                                url_link_clicks?: number;
                                user_profile_clicks?: number;
                                video_views?: number;
                                views?: number;
                                wows?: number;
                            };
                            stats_updated_date?: string;
                            text?: string;
                            title?: string;
                            url?: string;
                        };
                    };
                };
                headers: { [name: string]: unknown };
            };
            "400": {
                content: {
                    "application/json": {
                        code: number;
                        data?: { [key: string]: unknown };
                        message: string;
                    };
                };
                headers: { [name: string]: unknown };
            };
            "500": { content?: undefined; headers: { [name: string]: unknown } };
        };
    };
    updatePublicationByAccount: {
        parameters: {
            cookie?: undefined;
            header?: undefined;
            path: {
                id_account: string;
                id_organization: string;
                id_publication: string;
            };
            query?: undefined;
        };
        requestBody: {
            content: {
                "application/json": {
                    files?: string[];
                    name?: string;
                    publication_type?: "profile"
                    | "page"
                    | "group"
                    | "reels"
                    | "stories";
                    publish_date?: string;
                    social_network?:
                        | "facebook"
                        | "instagram"
                        | "linkedin"
                        | "tiktok"
                        | "twitter"
                        | "whatsapp"
                        | "youtube"
                        | "bluesky"
                        | "discord";
                    state?: "ready"
                    | "withErrors"
                    | "sended"
                    | "draft"
                    | "publishing";
                    text?: string;
                    title?: string;
                };
            };
        };
        responses: {
            "200": {
                content: {
                    "application/json": {
                        publication: {
                            _id: string;
                            creation_date: string;
                            engagement_base?: "reach"
                            | "impressions"
                            | "followers";
                            external_identifier?: string;
                            files: {
                                _id: string;
                                cover_image?: { _id: string; cover_image?: ...; cover_offset?: number; creation_date: string; file_externals: { external_identifier: string; external_url: string; social_network: "facebook" | "instagram" | ... 7 more ... | "discord"; }[]; ... 6 more ...; public_path: string; };
                                cover_offset?: number;
                                creation_date: string;
                                file_externals: {
                                    external_identifier: string;
                                    external_url: string;
                                    social_network:
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...);
                                }[];
                                file_format: "mp4"
                                | "jpeg"
                                | "gif"
                                | "png"
                                | "jpg";
                                file_properties: {
                                    allowed_social_networks: string[];
                                    aspect_ratio: { text: string; value: number };
                                    duration: number;
                                    height: number;
                                    size_in_bytes: number;
                                    width: number;
                                };
                                file_type: "video"
                                | "image";
                                id_organization: string;
                                is_temporal: boolean;
                                name: string;
                                public_path: string;
                            }[];
                            id_account: | string
                            | {
                                _id: string;
                                creation_date: string;
                                error_code: number;
                                followers_count?: number;
                                id_client: string;
                                id_organization: string;
                                image?: string;
                                name: string;
                                next_comments_update?: string;
                                next_stats_update?: string;
                                private_message_link?: string;
                                social_network: | "facebook"
                                | "instagram"
                                | "linkedin"
                                | "tiktok"
                                | "twitter"
                                | "whatsapp"
                                | "youtube"
                                | "google_business"
                                | "bluesky"
                                | "discord";
                                username?: string;
                            };
                            id_integration?: string;
                            id_organization: string;
                            metrics?: {
                                clicks?: number;
                                comments?: number;
                                engagement?: number;
                                followers?: number;
                                followers_gained?: number;
                                impressions?: number;
                                likes?: number;
                                profile_views?: number;
                                reach?: number;
                                saves?: number;
                                shares?: number;
                                video_views?: number;
                            };
                            name?: string;
                            next_stats_update?: string;
                            publication_errors: {
                                code: number;
                                data?: { [key: string]: unknown };
                                message: string;
                            }[];
                            publication_type: | "profile"
                            | "page"
                            | "group"
                            | "reels"
                            | "stories"
                            | "message";
                            publish_date?: string;
                            retries: number;
                            social_network: | "facebook"
                            | "instagram"
                            | "linkedin"
                            | "tiktok"
                            | "twitter"
                            | "whatsapp"
                            | "youtube"
                            | "google_business"
                            | "bluesky"
                            | "discord";
                            state: "ready"
                            | "withErrors"
                            | "sended"
                            | "draft"
                            | "publishing";
                            statistics?: {
                                angers?: number;
                                bookmarks?: number;
                                clicks?: number;
                                comments?: number;
                                engagement?: number;
                                follows?: number;
                                hahas?: number;
                                impressions?: number;
                                likes?: number;
                                loves?: number;
                                negative_feedback?: number;
                                page_likes?: number;
                                playback_0_count?: number;
                                playback_100_count?: number;
                                playback_25_count?: number;
                                playback_50_count?: number;
                                playback_75_count?: number;
                                profile_activity?: number;
                                profile_visits?: number;
                                quotes?: number;
                                reach?: number;
                                replys?: number;
                                retwets?: number;
                                saved?: number;
                                share?: number;
                                shareMentions?: number;
                                shares?: number;
                                sorrys?: number;
                                url_link_clicks?: number;
                                user_profile_clicks?: number;
                                video_views?: number;
                                views?: number;
                                wows?: number;
                            };
                            stats_updated_date?: string;
                            text?: string;
                            title?: string;
                            url?: string;
                        };
                    };
                };
                headers: { [name: string]: unknown };
            };
            "400": {
                content: {
                    "application/json": {
                        code: number;
                        data?: { [key: string]: unknown };
                        message: string;
                    };
                };
                headers: { [name: string]: unknown };
            };
            "500": { content?: undefined; headers: { [name: string]: unknown } };
        };
    };
    updateUpload: {
        parameters: {
            cookie?: undefined;
            header?: undefined;
            path: { id_organization: string; id_upload: string };
            query?: undefined;
        };
        requestBody: {
            content: {
                "application/json": { cover_image?: string; cover_offset?: number };
            };
        };
        responses: {
            "200": {
                content: {
                    "application/json": {
                        upload: {
                            _id: string;
                            cover_image?: { _id: string; cover_image?: ...; cover_offset?: number; creation_date: string; file_externals: { external_identifier: string; external_url: string; social_network: "facebook" | "instagram" | ... 7 more ... | "discord"; }[]; ... 6 more ...; public_path: string; };
                            cover_offset?: number;
                            creation_date: string;
                            file_externals: {
                                external_identifier: string;
                                external_url: string;
                                social_network: | "facebook"
                                | "instagram"
                                | "linkedin"
                                | "tiktok"
                                | "twitter"
                                | "whatsapp"
                                | "youtube"
                                | "google_business"
                                | "bluesky"
                                | "discord";
                            }[];
                            file_format: "mp4"
                            | "jpeg"
                            | "gif"
                            | "png"
                            | "jpg";
                            file_properties: {
                                allowed_social_networks: string[];
                                aspect_ratio: { text: string; value: number };
                                duration: number;
                                height: number;
                                size_in_bytes: number;
                                width: number;
                            };
                            file_type: "video"
                            | "image";
                            id_organization: string;
                            is_temporal: boolean;
                            name: string;
                            public_path: string;
                        };
                    };
                };
                headers: { [name: string]: unknown };
            };
            "400": {
                content: {
                    "application/json": {
                        code: number;
                        data?: { [key: string]: unknown };
                        message: string;
                    };
                };
                headers: { [name: string]: unknown };
            };
            "500": { content?: undefined; headers: { [name: string]: unknown } };
        };
    };
    validateAiPlan: {
        parameters: {
            cookie?: undefined;
            header?: undefined;
            path: { id_ai_plan: string; id_client: string; id_organization: string };
            query?: undefined;
        };
        requestBody?: undefined;
        responses: {
            "200": {
                content: {
                    "application/json": {
                        ai_plan: {
                            _id: string;
                            accounts: string[];
                            attempts: number;
                            creation_date: string;
                            credits_spent: number;
                            error?: {
                                code: number;
                                data?: { [key: string]: unknown };
                                message: string;
                            };
                            generation_end_date?: string;
                            id_client: string;
                            id_organization: string;
                            keycloak_identifier?: string;
                            options: {
                                allow_images: boolean;
                                gallery_uploads: string[];
                                language: string;
                                max_images?: number;
                                publish_days: number[];
                                shared: boolean;
                                timezone: string;
                                tone?: string;
                                use_organization_context: boolean;
                                week_start: string;
                            };
                            orchestrator_result?: Record<string, never>;
                            organization_context?: {
                                audience?: string;
                                avoid?: string;
                                blog_url?: string;
                                brand_name?: string;
                                default_tone?: string;
                                description?: string;
                                keywords?: string[];
                                notes?: string;
                                products?: string;
                                sector?: string;
                                shop_url?: string;
                                social_urls?: string[];
                                value_proposition?: string;
                                website?: string;
                            };
                            prompt: string;
                            publications: (
                                | string
                                | {
                                    _id: string;
                                    creation_date: string;
                                    engagement_base?: "reach"
                                    | "impressions"
                                    | "followers";
                                    external_identifier?: string;
                                    files: {
                                        _id: ...;
                                        cover_image?: ...;
                                        cover_offset?: ...;
                                        creation_date: ...;
                                        file_externals: ...;
                                        file_format: ...;
                                        file_properties: ...;
                                        file_type: ...;
                                        id_organization: ...;
                                        is_temporal: ...;
                                        name: ...;
                                        public_path: ...;
                                    }[];
                                    id_account: | string
                                    | {
                                        _id: ...;
                                        creation_date: ...;
                                        error_code: ...;
                                        followers_count?: ...;
                                        id_client: ...;
                                        id_organization: ...;
                                        image?: ...;
                                        name: ...;
                                        next_comments_update?: ...;
                                        next_stats_update?: ...;
                                        private_message_link?: ...;
                                        social_network: ...;
                                        username?: ...;
                                    };
                                    id_integration?: string;
                                    id_organization: string;
                                    metrics?: {
                                        clicks?: ...;
                                        comments?: ...;
                                        engagement?: ...;
                                        followers?: ...;
                                        followers_gained?: ...;
                                        impressions?: ...;
                                        likes?: ...;
                                        profile_views?: ...;
                                        reach?: ...;
                                        saves?: ...;
                                        shares?: ...;
                                        video_views?: ...;
                                    };
                                    name?: string;
                                    next_stats_update?: string;
                                    publication_errors: { code: ...; data?: ...; message: ... }[];
                                    publication_type:
                                        | "profile"
                                        | "page"
                                        | "group"
                                        | "reels"
                                        | "stories"
                                        | "message";
                                    publish_date?: string;
                                    retries: number;
                                    social_network: | "facebook"
                                    | "instagram"
                                    | "linkedin"
                                    | "tiktok"
                                    | "twitter"
                                    | "whatsapp"
                                    | "youtube"
                                    | "google_business"
                                    | "bluesky"
                                    | "discord";
                                    state: "ready"
                                    | "withErrors"
                                    | "sended"
                                    | "draft"
                                    | "publishing";
                                    statistics?: {
                                        angers?: ...;
                                        bookmarks?: ...;
                                        clicks?: ...;
                                        comments?: ...;
                                        engagement?: ...;
                                        follows?: ...;
                                        hahas?: ...;
                                        impressions?: ...;
                                        likes?: ...;
                                        loves?: ...;
                                        negative_feedback?: ...;
                                        page_likes?: ...;
                                        playback_0_count?: ...;
                                        playback_100_count?: ...;
                                        playback_25_count?: ...;
                                        playback_50_count?: ...;
                                        playback_75_count?: ...;
                                        profile_activity?: ...;
                                        profile_visits?: ...;
                                        quotes?: ...;
                                        reach?: ...;
                                        replys?: ...;
                                        retwets?: ...;
                                        saved?: ...;
                                        share?: ...;
                                        shareMentions?: ...;
                                        shares?: ...;
                                        sorrys?: ...;
                                        url_link_clicks?: ...;
                                        user_profile_clicks?: ...;
                                        video_views?: ...;
                                        views?: ...;
                                        wows?: ...;
                                    };
                                    stats_updated_date?: string;
                                    text?: string;
                                    title?: string;
                                    url?: string;
                                }
                            )[];
                            state: | "pending"
                            | "generating"
                            | "generated"
                            | "validated"
                            | "failed"
                            | "cancelled";
                        };
                    };
                };
                headers: { [name: string]: unknown };
            };
            "400": {
                content: {
                    "application/json": {
                        code: number;
                        data?: { [key: string]: unknown };
                        message: string;
                    };
                };
                headers: { [name: string]: unknown };
            };
            "500": { content?: undefined; headers: { [name: string]: unknown } };
        };
    };
}

Properties

addAiPlan addIntegration addParentOrganization addPublication addUpload addUserRole addUserToOrganizationRole connectAccount createClientApp createClientRole createContact createMessage createMessageTemplate createOrganizationInsideOrganization createOrganizationRole createProduct createProductCatalog createTemporalConnectToken deleteAccount deleteAiPlan deleteChildOrganization deleteClientApp deleteClientOrganization deleteComment deleteContact deleteIntegration deleteMessagesByAccount deleteMessageTemplate deleteOrganizationContacts deleteOrganizationRole deleteOrganizationSocialCredentials deletePublication deleteRole deleteUpload enableAccount getAccount getAccountComments getAccountConversationsTotal getAccountList getAccountPublications getAccountStats getAiPlan getAiPlans getAllowedAspectRatios getAllowedSocialMessages getAllowedSocialPublications getChildOrganizations getClient getClientApp getClientApps getClientAppSecret getClientOrganizations getClientPermissions getClientRoles getClients getClientsWithOrganizations getClientUsers getCommentReplies getComments getConnectLinks getContact getContacts getConversations getDashboard getIntegration getIntegrationConnectLink getIntegrationPickerConfig getIntegrationProviders getIntegrations getMessages getMessageTemplates getMetricList getOrganization getOrganizationConversationsTotal getOrganizationLimits getOrganizationMetrics getOrganizationPermissions getOrganizationRoles getOrganizationUse getPersistentMenu getProductCatalogs getProducts getPublication getPublicationComments getPublicationLimits getPublicationMetrics getPublications getPublicationsStats getPublicationsSummary getPublicationStatsHistory getSocialCapabilities getSocialCommentActions getSocialLimits getSocialNetworks getSocialPublications getTopPublications getTotalUnreadComments getUnreadMessages getUpload getUploads getUserInOrganizationRole getUsersInClientRole getUsersInOrganizationRole importUploads inviteRole inviteUserToOrganizationRole issueToken onCommentsWebhook reconnectIntegration regenerateAiPlanPublication removeUserFromOrganizationRole removeUserRole replyComment retryAiPlan retryPublication setPersistentMenu updateAccount updateAiSettings updateClient updateClientApp updateClientRole updateComment updateContact updateIntegration updateOrganizationAiContext updateOrganizationInsideOrganization updateOrganizationRole updateOrganizationSocialCredentials updateParentOrganization updatePublication updatePublicationByAccount updateUpload validateAiPlan

Properties

addAiPlan: {
    parameters: {
        cookie?: undefined;
        header?: undefined;
        path: { id_client: string; id_organization: string };
        query?: undefined;
    };
    requestBody: {
        content: {
            "application/json": {
                accounts: string[];
                options?: {
                    allow_images?: boolean;
                    gallery_uploads?: string[];
                    language?: string;
                    max_images?: number;
                    publish_days?: number[];
                    shared?: boolean;
                    timezone?: string;
                    tone?: string;
                    use_organization_context?: boolean;
                    week_start?: string;
                };
                prompt: string;
            };
        };
    };
    responses: {
        "200": {
            content: {
                "application/json": {
                    ai_plan: {
                        _id: string;
                        accounts: string[];
                        attempts: number;
                        creation_date: string;
                        credits_spent: number;
                        error?: {
                            code: number;
                            data?: { [key: string]: unknown };
                            message: string;
                        };
                        generation_end_date?: string;
                        id_client: string;
                        id_organization: string;
                        keycloak_identifier?: string;
                        options: {
                            allow_images: boolean;
                            gallery_uploads: string[];
                            language: string;
                            max_images?: number;
                            publish_days: number[];
                            shared: boolean;
                            timezone: string;
                            tone?: string;
                            use_organization_context: boolean;
                            week_start: string;
                        };
                        orchestrator_result?: Record<string, never>;
                        organization_context?: {
                            audience?: string;
                            avoid?: string;
                            blog_url?: string;
                            brand_name?: string;
                            default_tone?: string;
                            description?: string;
                            keywords?: string[];
                            notes?: string;
                            products?: string;
                            sector?: string;
                            shop_url?: string;
                            social_urls?: string[];
                            value_proposition?: string;
                            website?: string;
                        };
                        prompt: string;
                        publications: (
                            | string
                            | {
                                _id: string;
                                creation_date: string;
                                engagement_base?: "reach"
                                | "impressions"
                                | "followers";
                                external_identifier?: string;
                                files: {
                                    _id: ...;
                                    cover_image?: ...;
                                    cover_offset?: ...;
                                    creation_date: ...;
                                    file_externals: ...;
                                    file_format: ...;
                                    file_properties: ...;
                                    file_type: ...;
                                    id_organization: ...;
                                    is_temporal: ...;
                                    name: ...;
                                    public_path: ...;
                                }[];
                                id_account: | string
                                | {
                                    _id: ...;
                                    creation_date: ...;
                                    error_code: ...;
                                    followers_count?: ...;
                                    id_client: ...;
                                    id_organization: ...;
                                    image?: ...;
                                    name: ...;
                                    next_comments_update?: ...;
                                    next_stats_update?: ...;
                                    private_message_link?: ...;
                                    social_network: ...;
                                    username?: ...;
                                };
                                id_integration?: string;
                                id_organization: string;
                                metrics?: {
                                    clicks?: ...;
                                    comments?: ...;
                                    engagement?: ...;
                                    followers?: ...;
                                    followers_gained?: ...;
                                    impressions?: ...;
                                    likes?: ...;
                                    profile_views?: ...;
                                    reach?: ...;
                                    saves?: ...;
                                    shares?: ...;
                                    video_views?: ...;
                                };
                                name?: string;
                                next_stats_update?: string;
                                publication_errors: { code: ...; data?: ...; message: ... }[];
                                publication_type:
                                    | "profile"
                                    | "page"
                                    | "group"
                                    | "reels"
                                    | "stories"
                                    | "message";
                                publish_date?: string;
                                retries: number;
                                social_network: | "facebook"
                                | "instagram"
                                | "linkedin"
                                | "tiktok"
                                | "twitter"
                                | "whatsapp"
                                | "youtube"
                                | "google_business"
                                | "bluesky"
                                | "discord";
                                state: "ready"
                                | "withErrors"
                                | "sended"
                                | "draft"
                                | "publishing";
                                statistics?: {
                                    angers?: ...;
                                    bookmarks?: ...;
                                    clicks?: ...;
                                    comments?: ...;
                                    engagement?: ...;
                                    follows?: ...;
                                    hahas?: ...;
                                    impressions?: ...;
                                    likes?: ...;
                                    loves?: ...;
                                    negative_feedback?: ...;
                                    page_likes?: ...;
                                    playback_0_count?: ...;
                                    playback_100_count?: ...;
                                    playback_25_count?: ...;
                                    playback_50_count?: ...;
                                    playback_75_count?: ...;
                                    profile_activity?: ...;
                                    profile_visits?: ...;
                                    quotes?: ...;
                                    reach?: ...;
                                    replys?: ...;
                                    retwets?: ...;
                                    saved?: ...;
                                    share?: ...;
                                    shareMentions?: ...;
                                    shares?: ...;
                                    sorrys?: ...;
                                    url_link_clicks?: ...;
                                    user_profile_clicks?: ...;
                                    video_views?: ...;
                                    views?: ...;
                                    wows?: ...;
                                };
                                stats_updated_date?: string;
                                text?: string;
                                title?: string;
                                url?: string;
                            }
                        )[];
                        state: | "pending"
                        | "generating"
                        | "generated"
                        | "validated"
                        | "failed"
                        | "cancelled";
                    };
                    estimate: {
                        available_credits: number;
                        base_cost: number;
                        estimated_cost: number;
                        images_target: number;
                        texts_target: number;
                    };
                    estimated_cost: number;
                };
            };
            headers: { [name: string]: unknown };
        };
        "400": {
            content: {
                "application/json": {
                    code: number;
                    data?: { [key: string]: unknown };
                    message: string;
                };
            };
            headers: { [name: string]: unknown };
        };
        "500": { content?: undefined; headers: { [name: string]: unknown } };
    };
}
addIntegration: {
    parameters: {
        cookie?: undefined;
        header?: undefined;
        path: { id_organization: string };
        query?: undefined;
    };
    requestBody: {
        content: {
            "application/json": | { code: string; provider: "google_drive" }
            | {
                auto_publish?: boolean;
                id_accounts: string[];
                import_image?: boolean;
                provider: "rss";
                publication_type?: string;
                template?: string;
                url: string;
            };
        };
    };
    responses: {
        "200": {
            content: {
                "application/json": {
                    integration: {
                        _id: string;
                        config: {
                            auto_publish?: boolean;
                            id_accounts?: string[];
                            import_image?: boolean;
                            last_checked?: string;
                            publication_type?: string;
                            seen_guids?: string[];
                            template?: string;
                            url?: string;
                        };
                        connected: boolean;
                        creation_date: string;
                        enabled: boolean;
                        error_code?: null
                        | number;
                        external_identifier?: string;
                        id_client: string;
                        id_organization: string;
                        last_used_date?: string;
                        name: string;
                        provider: "google_drive" | "rss";
                    };
                };
            };
            headers: { [name: string]: unknown };
        };
        "400": {
            content: {
                "application/json": {
                    code: number;
                    data?: { [key: string]: unknown };
                    message: string;
                };
            };
            headers: { [name: string]: unknown };
        };
    };
}
addParentOrganization: {
    parameters: {
        cookie?: undefined;
        header?: undefined;
        path: { id_client: string };
        query?: undefined;
    };
    requestBody: {
        content: {
            "application/json": {
                actual_plan?: {
                    accounts: number;
                    ai_credits?: number;
                    artificial_inteligence?: boolean;
                    integrations: number;
                    publications: number;
                    space: number;
                    stats?: boolean;
                    twitter_credits?: number;
                    users: number;
                    whatsapp?: boolean;
                };
                name: string;
            };
        };
    };
    responses: {
        "200": {
            content: {
                "application/json": {
                    organization: {
                        _id: string;
                        actual_asigned?: {
                            accounts: number;
                            ai_credits?: number;
                            artificial_inteligence?: boolean;
                            integrations: number;
                            publications: number;
                            space: number;
                            stats?: boolean;
                            twitter_credits?: number;
                            users: number;
                            whatsapp?: boolean;
                        };
                        actual_plan?: {
                            accounts: number;
                            ai_credits?: number;
                            artificial_inteligence?: boolean;
                            integrations: number;
                            publications: number;
                            space: number;
                            stats?: boolean;
                            twitter_credits?: number;
                            users: number;
                            whatsapp?: boolean;
                        };
                        actual_use?: {
                            accounts: number;
                            ai_credits?: number;
                            artificial_inteligence?: boolean;
                            integrations: number;
                            publications: number;
                            space: number;
                            stats?: boolean;
                            twitter_credits?: number;
                            users: number;
                            whatsapp?: boolean;
                        };
                        ai_context?: {
                            audience?: string;
                            avoid?: string;
                            blog_url?: string;
                            brand_name?: string;
                            default_tone?: string;
                            description?: string;
                            keywords?: string[];
                            notes?: string;
                            products?: string;
                            sector?: string;
                            shop_url?: string;
                            social_urls?: string[];
                            value_proposition?: string;
                            website?: string;
                        };
                        creation_date: string;
                        id_client: string;
                        name: string;
                        parent_organization?: string;
                        social_credentials?: {
                            discord?: {
                                application_name?: (...)
                                | (...);
                                client_id?: (...) | (...);
                                has_bot_token?: (...) | (...) | (...);
                                has_client_secret?: (...) | (...) | (...);
                                verified_date?: (...) | (...);
                            };
                        };
                        stats_settings?: { auto_refresh_twitter: boolean };
                    };
                };
            };
            headers: { [name: string]: unknown };
        };
        "400": {
            content: {
                "application/json": {
                    code: number;
                    data?: { [key: string]: unknown };
                    message: string;
                };
            };
            headers: { [name: string]: unknown };
        };
        "500": { content?: undefined; headers: { [name: string]: unknown } };
    };
}

Type declaration

  • parameters: {
        cookie?: undefined;
        header?: undefined;
        path: { id_client: string };
        query?: undefined;
    }
    • Optionalcookie?: undefined
    • Optionalheader?: undefined
    • path: { id_client: string }
      • id_client: string

        Client the organization will belong to

    • Optionalquery?: undefined
  • requestBody: {
        content: {
            "application/json": {
                actual_plan?: {
                    accounts: number;
                    ai_credits?: number;
                    artificial_inteligence?: boolean;
                    integrations: number;
                    publications: number;
                    space: number;
                    stats?: boolean;
                    twitter_credits?: number;
                    users: number;
                    whatsapp?: boolean;
                };
                name: string;
            };
        };
    }

    Creates a top-level organization for the client. parent_organization is ignored: this endpoint always creates a root organization.

  • responses: {
        "200": {
            content: {
                "application/json": {
                    organization: {
                        _id: string;
                        actual_asigned?: {
                            accounts: number;
                            ai_credits?: number;
                            artificial_inteligence?: boolean;
                            integrations: number;
                            publications: number;
                            space: number;
                            stats?: boolean;
                            twitter_credits?: number;
                            users: number;
                            whatsapp?: boolean;
                        };
                        actual_plan?: {
                            accounts: number;
                            ai_credits?: number;
                            artificial_inteligence?: boolean;
                            integrations: number;
                            publications: number;
                            space: number;
                            stats?: boolean;
                            twitter_credits?: number;
                            users: number;
                            whatsapp?: boolean;
                        };
                        actual_use?: {
                            accounts: number;
                            ai_credits?: number;
                            artificial_inteligence?: boolean;
                            integrations: number;
                            publications: number;
                            space: number;
                            stats?: boolean;
                            twitter_credits?: number;
                            users: number;
                            whatsapp?: boolean;
                        };
                        ai_context?: {
                            audience?: string;
                            avoid?: string;
                            blog_url?: string;
                            brand_name?: string;
                            default_tone?: string;
                            description?: string;
                            keywords?: string[];
                            notes?: string;
                            products?: string;
                            sector?: string;
                            shop_url?: string;
                            social_urls?: string[];
                            value_proposition?: string;
                            website?: string;
                        };
                        creation_date: string;
                        id_client: string;
                        name: string;
                        parent_organization?: string;
                        social_credentials?: {
                            discord?: {
                                application_name?: (...)
                                | (...);
                                client_id?: (...) | (...);
                                has_bot_token?: (...) | (...) | (...);
                                has_client_secret?: (...) | (...) | (...);
                                verified_date?: (...) | (...);
                            };
                        };
                        stats_settings?: { auto_refresh_twitter: boolean };
                    };
                };
            };
            headers: { [name: string]: unknown };
        };
        "400": {
            content: {
                "application/json": {
                    code: number;
                    data?: { [key: string]: unknown };
                    message: string;
                };
            };
            headers: { [name: string]: unknown };
        };
        "500": { content?: undefined; headers: { [name: string]: unknown } };
    }
    • 200: {
          content: {
              "application/json": {
                  organization: {
                      _id: string;
                      actual_asigned?: {
                          accounts: number;
                          ai_credits?: number;
                          artificial_inteligence?: boolean;
                          integrations: number;
                          publications: number;
                          space: number;
                          stats?: boolean;
                          twitter_credits?: number;
                          users: number;
                          whatsapp?: boolean;
                      };
                      actual_plan?: {
                          accounts: number;
                          ai_credits?: number;
                          artificial_inteligence?: boolean;
                          integrations: number;
                          publications: number;
                          space: number;
                          stats?: boolean;
                          twitter_credits?: number;
                          users: number;
                          whatsapp?: boolean;
                      };
                      actual_use?: {
                          accounts: number;
                          ai_credits?: number;
                          artificial_inteligence?: boolean;
                          integrations: number;
                          publications: number;
                          space: number;
                          stats?: boolean;
                          twitter_credits?: number;
                          users: number;
                          whatsapp?: boolean;
                      };
                      ai_context?: {
                          audience?: string;
                          avoid?: string;
                          blog_url?: string;
                          brand_name?: string;
                          default_tone?: string;
                          description?: string;
                          keywords?: string[];
                          notes?: string;
                          products?: string;
                          sector?: string;
                          shop_url?: string;
                          social_urls?: string[];
                          value_proposition?: string;
                          website?: string;
                      };
                      creation_date: string;
                      id_client: string;
                      name: string;
                      parent_organization?: string;
                      social_credentials?: {
                          discord?: {
                              application_name?: (...)
                              | (...);
                              client_id?: (...) | (...);
                              has_bot_token?: (...) | (...) | (...);
                              has_client_secret?: (...) | (...) | (...);
                              verified_date?: (...) | (...);
                          };
                      };
                      stats_settings?: { auto_refresh_twitter: boolean };
                  };
              };
          };
          headers: { [name: string]: unknown };
      }

      Successful operation

    • 400: {
          content: {
              "application/json": {
                  code: number;
                  data?: { [key: string]: unknown };
                  message: string;
              };
          };
          headers: { [name: string]: unknown };
      }

      The request failed. The body carries the PlanVortex error code in code:

      | Code | Meaning |
      | --- | --- |
      | `1400` | Account limit reached for the organization plan |
      | `1401` | Publication limit reached for the organization plan |
      | `1402` | Users limit reached for the organization plan |
      | `1403` | Shared space limit reached for the organization plan |
      | `1407` | Twitter credits limit reached for the organization plan. The sum of twitter_credits assigned to the client's organizations cannot exceed the client's plan twitter_credits. |
      | `1408` | AI credits limit reached for the organization plan. The sum of ai_credits assigned to the client's organizations cannot exceed the client's plan ai_credits. |
      | `521` | Invalid client. The identifier is invalid o doesn't exists |
      
    • 500: { content?: undefined; headers: { [name: string]: unknown } }

      Unhandled error by the server

addPublication: {
    parameters: {
        cookie?: undefined;
        header?: undefined;
        path: { id_account: string; id_organization: string };
        query?: undefined;
    };
    requestBody: {
        content: {
            "application/json": {
                files?: string[];
                name?: string;
                publication_type?: "profile"
                | "page"
                | "group"
                | "reels"
                | "stories";
                publish_date?: string;
                social_network?:
                    | "facebook"
                    | "instagram"
                    | "linkedin"
                    | "tiktok"
                    | "twitter"
                    | "whatsapp"
                    | "youtube"
                    | "bluesky"
                    | "discord";
                state?: "ready"
                | "withErrors"
                | "sended"
                | "draft"
                | "publishing";
                text?: string;
                title?: string;
            };
        };
    };
    responses: {
        "200": {
            content: {
                "application/json": {
                    publication: {
                        _id: string;
                        creation_date: string;
                        engagement_base?: "reach"
                        | "impressions"
                        | "followers";
                        external_identifier?: string;
                        files: {
                            _id: string;
                            cover_image?: { _id: string; cover_image?: ...; cover_offset?: number; creation_date: string; file_externals: { external_identifier: string; external_url: string; social_network: "facebook" | "instagram" | ... 7 more ... | "discord"; }[]; ... 6 more ...; public_path: string; };
                            cover_offset?: number;
                            creation_date: string;
                            file_externals: {
                                external_identifier: string;
                                external_url: string;
                                social_network:
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...);
                            }[];
                            file_format: "mp4"
                            | "jpeg"
                            | "gif"
                            | "png"
                            | "jpg";
                            file_properties: {
                                allowed_social_networks: string[];
                                aspect_ratio: { text: string; value: number };
                                duration: number;
                                height: number;
                                size_in_bytes: number;
                                width: number;
                            };
                            file_type: "video"
                            | "image";
                            id_organization: string;
                            is_temporal: boolean;
                            name: string;
                            public_path: string;
                        }[];
                        id_account: | string
                        | {
                            _id: string;
                            creation_date: string;
                            error_code: number;
                            followers_count?: number;
                            id_client: string;
                            id_organization: string;
                            image?: string;
                            name: string;
                            next_comments_update?: string;
                            next_stats_update?: string;
                            private_message_link?: string;
                            social_network: | "facebook"
                            | "instagram"
                            | "linkedin"
                            | "tiktok"
                            | "twitter"
                            | "whatsapp"
                            | "youtube"
                            | "google_business"
                            | "bluesky"
                            | "discord";
                            username?: string;
                        };
                        id_integration?: string;
                        id_organization: string;
                        metrics?: {
                            clicks?: number;
                            comments?: number;
                            engagement?: number;
                            followers?: number;
                            followers_gained?: number;
                            impressions?: number;
                            likes?: number;
                            profile_views?: number;
                            reach?: number;
                            saves?: number;
                            shares?: number;
                            video_views?: number;
                        };
                        name?: string;
                        next_stats_update?: string;
                        publication_errors: {
                            code: number;
                            data?: { [key: string]: unknown };
                            message: string;
                        }[];
                        publication_type: | "profile"
                        | "page"
                        | "group"
                        | "reels"
                        | "stories"
                        | "message";
                        publish_date?: string;
                        retries: number;
                        social_network: | "facebook"
                        | "instagram"
                        | "linkedin"
                        | "tiktok"
                        | "twitter"
                        | "whatsapp"
                        | "youtube"
                        | "google_business"
                        | "bluesky"
                        | "discord";
                        state: "ready"
                        | "withErrors"
                        | "sended"
                        | "draft"
                        | "publishing";
                        statistics?: {
                            angers?: number;
                            bookmarks?: number;
                            clicks?: number;
                            comments?: number;
                            engagement?: number;
                            follows?: number;
                            hahas?: number;
                            impressions?: number;
                            likes?: number;
                            loves?: number;
                            negative_feedback?: number;
                            page_likes?: number;
                            playback_0_count?: number;
                            playback_100_count?: number;
                            playback_25_count?: number;
                            playback_50_count?: number;
                            playback_75_count?: number;
                            profile_activity?: number;
                            profile_visits?: number;
                            quotes?: number;
                            reach?: number;
                            replys?: number;
                            retwets?: number;
                            saved?: number;
                            share?: number;
                            shareMentions?: number;
                            shares?: number;
                            sorrys?: number;
                            url_link_clicks?: number;
                            user_profile_clicks?: number;
                            video_views?: number;
                            views?: number;
                            wows?: number;
                        };
                        stats_updated_date?: string;
                        text?: string;
                        title?: string;
                        url?: string;
                    };
                };
            };
            headers: { [name: string]: unknown };
        };
        "400": {
            content: {
                "application/json": {
                    code: number;
                    data?: { [key: string]: unknown };
                    message: string;
                };
            };
            headers: { [name: string]: unknown };
        };
        "500": { content?: undefined; headers: { [name: string]: unknown } };
    };
}
addUpload: {
    parameters: {
        cookie?: undefined;
        header?: undefined;
        path: { id_organization: string };
        query?: undefined;
    };
    requestBody: { content: { "multipart/form-data": { file: string } } };
    responses: {
        "200": {
            content: {
                "application/json": {
                    upload: {
                        _id: string;
                        cover_image?: { _id: string; cover_image?: ...; cover_offset?: number; creation_date: string; file_externals: { external_identifier: string; external_url: string; social_network: "facebook" | "instagram" | ... 7 more ... | "discord"; }[]; ... 6 more ...; public_path: string; };
                        cover_offset?: number;
                        creation_date: string;
                        file_externals: {
                            external_identifier: string;
                            external_url: string;
                            social_network:
                                | "facebook"
                                | "instagram"
                                | "linkedin"
                                | "tiktok"
                                | "twitter"
                                | "whatsapp"
                                | "youtube"
                                | "google_business"
                                | "bluesky"
                                | "discord";
                        }[];
                        file_format: "mp4"
                        | "jpeg"
                        | "gif"
                        | "png"
                        | "jpg";
                        file_properties: {
                            allowed_social_networks: string[];
                            aspect_ratio: { text: string; value: number };
                            duration: number;
                            height: number;
                            size_in_bytes: number;
                            width: number;
                        };
                        file_type: "video"
                        | "image";
                        id_organization: string;
                        is_temporal: boolean;
                        name: string;
                        public_path: string;
                    };
                };
            };
            headers: { [name: string]: unknown };
        };
        "400": {
            content: {
                "application/json": {
                    code: number;
                    data?: { [key: string]: unknown };
                    message: string;
                };
            };
            headers: { [name: string]: unknown };
        };
        "500": { content?: undefined; headers: { [name: string]: unknown } };
    };
}
addUserRole: {
    parameters: {
        cookie?: undefined;
        header?: undefined;
        path: { id_client: string; id_rol: string; id_user: string };
        query?: undefined;
    };
    requestBody?: undefined;
    responses: {
        "200": {
            content: { "application/json": { success: boolean } };
            headers: { [name: string]: unknown };
        };
        "400": {
            content: {
                "application/json": {
                    code: number;
                    data?: { [key: string]: unknown };
                    message: string;
                };
            };
            headers: { [name: string]: unknown };
        };
        "500": { content?: undefined; headers: { [name: string]: unknown } };
    };
}
addUserToOrganizationRole: {
    parameters: {
        cookie?: undefined;
        header?: undefined;
        path: { id_organization: string; id_rol: string; id_user: string };
        query?: undefined;
    };
    requestBody?: undefined;
    responses: {
        "200": {
            content: { "application/json": { success: boolean } };
            headers: { [name: string]: unknown };
        };
        "400": {
            content: {
                "application/json": {
                    code: number;
                    data?: { [key: string]: unknown };
                    message: string;
                };
            };
            headers: { [name: string]: unknown };
        };
        "401": {
            content: {
                "application/json": {
                    code: number;
                    data?: { [key: string]: unknown };
                    message: string;
                };
            };
            headers: { [name: string]: unknown };
        };
        "500": {
            content: {
                "application/json": {
                    code: number;
                    data?: { [key: string]: unknown };
                    message: string;
                };
            };
            headers: { [name: string]: unknown };
        };
    };
}
connectAccount: {
    parameters: {
        cookie?: undefined;
        header?: undefined;
        path: {
            id_organization: string;
            social_network:
                | "facebook"
                | "instagram"
                | "linkedin"
                | "tiktok"
                | "twitter"
                | "whatsapp"
                | "youtube"
                | "google_business"
                | "bluesky"
                | "discord";
        };
        query?: undefined;
    };
    requestBody?: undefined;
    responses: {
        "200": {
            content: {
                "application/json": {
                    accounts?: {
                        _id: string;
                        creation_date: string;
                        error_code: number;
                        followers_count?: number;
                        id_client: string;
                        id_organization: string;
                        image?: string;
                        name: string;
                        next_comments_update?: string;
                        next_stats_update?: string;
                        private_message_link?: string;
                        social_network: | "facebook"
                        | "instagram"
                        | "linkedin"
                        | "tiktok"
                        | "twitter"
                        | "whatsapp"
                        | "youtube"
                        | "google_business"
                        | "bluesky"
                        | "discord";
                        username?: string;
                    }[];
                    errorCode?: string;
                    errorMsg?: string;
                    redirect_uri?: string;
                };
            };
            headers: { [name: string]: unknown };
        };
        "400": {
            content: {
                "application/json": {
                    code: number;
                    data?: { [key: string]: unknown };
                    message: string;
                };
            };
            headers: { [name: string]: unknown };
        };
        "500": { content?: undefined; headers: { [name: string]: unknown } };
    };
}
createClientApp: {
    parameters: {
        cookie?: undefined;
        header?: undefined;
        path: { id_client: string };
        query?: undefined;
    };
    requestBody: {
        content: {
            "application/json": {
                allowed_domains?: string[];
                keycloak_client_idenfifier: string;
                name: string;
                redirect_urls?: string[];
                webhook_url?: string;
            };
        };
    };
    responses: {
        "200": {
            content: {
                "application/json": {
                    client_app: {
                        _id: string;
                        allowed_domains: string[];
                        creation_date: string;
                        deleted: boolean;
                        deleted_date?: string;
                        id_client: string;
                        id_user?: string;
                        keycloak_client_idenfifier: string;
                        name: string;
                        redirect_urls: string[];
                        webhook_url?: string;
                    };
                };
            };
            headers: { [name: string]: unknown };
        };
        "400": {
            content: {
                "application/json": {
                    code: number;
                    data?: { [key: string]: unknown };
                    message: string;
                };
            };
            headers: { [name: string]: unknown };
        };
    };
}
createClientRole: {
    parameters: {
        cookie?: undefined;
        header?: undefined;
        path: { id_client: string };
        query?: undefined;
    };
    requestBody: {
        content: {
            "application/json": {
                name: string;
                permissions: (
                    | "client:update"
                    | "client:read"
                    | "client:delete"
                    | "client_app:create"
                    | "client_app:update"
                    | "client_app:read"
                    | "client_app:delete"
                    | "client_roles:create"
                    | "client_roles:update"
                    | "client_roles:read"
                    | "client_roles:delete"
                    | "client_roles_users:read"
                    | "client_roles_users:create"
                    | "client_roles_users:delete"
                    | "client_organization:create"
                    | "client_organization:update"
                    | "client_organization:read"
                    | "client_organization:delete"
                    | "client_organization_roles:read"
                    | "client_organization_roles:create"
                    | "client_organization_roles:update"
                    | "client_organization_roles:delete"
                    | "client_organization_users_roles:read"
                    | "client_organization_users_roles:create"
                    | "client_organization_users_roles:delete"
                    | "client_organization_accounts:read"
                    | "client_organization_accounts:create"
                    | "client_organization_accounts:update"
                    | "client_organization_accounts:delete"
                    | "client_organization_files:read"
                    | "client_organization_files:create"
                    | "client_organization_files:update"
                    | "client_organization_files:delete"
                    | "client_organization_publications:read"
                    | "client_organization_publications:create"
                    | "client_organization_publications:update"
                    | "client_organization_publications:delete"
                    | "client_organization_publications_stats:read"
                    | "client_organization_account_stats:read"
                    | "client_organization_products:create"
                    | "client_organization_products:update"
                    | "client_organization_products:read"
                    | "client_organization_products:delete"
                    | "client_organization_messages:create"
                    | "client_organization_messages:read"
                    | "client_organization_messages:delete"
                    | "client_organization_contacts:create"
                    | "client_organization_contacts:read"
                    | "client_organization_contacts:update"
                    | "client_organization_contacts:delete"
                    | "client_organization_ai_plans:create"
                    | "client_organization_ai_plans:read"
                    | "client_organization_ai_plans:update"
                    | "client_organization_ai_plans:delete"
                )[];
            };
        };
    };
    responses: {
        "200": {
            content: {
                "application/json": {
                    rol?: {
                        name?: string;
                        permissions?: (
                            | "client:update"
                            | "client:read"
                            | "client:delete"
                            | "client_app:create"
                            | "client_app:update"
                            | "client_app:read"
                            | "client_app:delete"
                            | "client_roles:create"
                            | "client_roles:update"
                            | "client_roles:read"
                            | "client_roles:delete"
                            | "client_roles_users:read"
                            | "client_roles_users:create"
                            | "client_roles_users:delete"
                            | "client_organization:create"
                            | "client_organization:update"
                            | "client_organization:read"
                            | "client_organization:delete"
                            | "client_organization_roles:read"
                            | "client_organization_roles:create"
                            | "client_organization_roles:update"
                            | "client_organization_roles:delete"
                            | "client_organization_users_roles:read"
                            | "client_organization_users_roles:create"
                            | "client_organization_users_roles:delete"
                            | "client_organization_accounts:read"
                            | "client_organization_accounts:create"
                            | "client_organization_accounts:update"
                            | "client_organization_accounts:delete"
                            | "client_organization_files:read"
                            | "client_organization_files:create"
                            | "client_organization_files:update"
                            | "client_organization_files:delete"
                            | "client_organization_publications:read"
                            | "client_organization_publications:create"
                            | "client_organization_publications:update"
                            | "client_organization_publications:delete"
                            | "client_organization_publications_stats:read"
                            | "client_organization_account_stats:read"
                        )[];
                    };
                };
            };
            headers: { [name: string]: unknown };
        };
        "400": {
            content: {
                "application/json": {
                    code: number;
                    data?: { [key: string]: unknown };
                    message: string;
                };
            };
            headers: { [name: string]: unknown };
        };
        "500": { content?: undefined; headers: { [name: string]: unknown } };
    };
}

Type declaration

  • parameters: {
        cookie?: undefined;
        header?: undefined;
        path: { id_client: string };
        query?: undefined;
    }
    • Optionalcookie?: undefined
    • Optionalheader?: undefined
    • path: { id_client: string }
      • id_client: string

        Client the role belongs to

    • Optionalquery?: undefined
  • requestBody: {
        content: {
            "application/json": {
                name: string;
                permissions: (
                    | "client:update"
                    | "client:read"
                    | "client:delete"
                    | "client_app:create"
                    | "client_app:update"
                    | "client_app:read"
                    | "client_app:delete"
                    | "client_roles:create"
                    | "client_roles:update"
                    | "client_roles:read"
                    | "client_roles:delete"
                    | "client_roles_users:read"
                    | "client_roles_users:create"
                    | "client_roles_users:delete"
                    | "client_organization:create"
                    | "client_organization:update"
                    | "client_organization:read"
                    | "client_organization:delete"
                    | "client_organization_roles:read"
                    | "client_organization_roles:create"
                    | "client_organization_roles:update"
                    | "client_organization_roles:delete"
                    | "client_organization_users_roles:read"
                    | "client_organization_users_roles:create"
                    | "client_organization_users_roles:delete"
                    | "client_organization_accounts:read"
                    | "client_organization_accounts:create"
                    | "client_organization_accounts:update"
                    | "client_organization_accounts:delete"
                    | "client_organization_files:read"
                    | "client_organization_files:create"
                    | "client_organization_files:update"
                    | "client_organization_files:delete"
                    | "client_organization_publications:read"
                    | "client_organization_publications:create"
                    | "client_organization_publications:update"
                    | "client_organization_publications:delete"
                    | "client_organization_publications_stats:read"
                    | "client_organization_account_stats:read"
                    | "client_organization_products:create"
                    | "client_organization_products:update"
                    | "client_organization_products:read"
                    | "client_organization_products:delete"
                    | "client_organization_messages:create"
                    | "client_organization_messages:read"
                    | "client_organization_messages:delete"
                    | "client_organization_contacts:create"
                    | "client_organization_contacts:read"
                    | "client_organization_contacts:update"
                    | "client_organization_contacts:delete"
                    | "client_organization_ai_plans:create"
                    | "client_organization_ai_plans:read"
                    | "client_organization_ai_plans:update"
                    | "client_organization_ai_plans:delete"
                )[];
            };
        };
    }

    Creates a client-level role. Valid values for permissions are the client permissions listed in the schema.

  • responses: {
        "200": {
            content: {
                "application/json": {
                    rol?: {
                        name?: string;
                        permissions?: (
                            | "client:update"
                            | "client:read"
                            | "client:delete"
                            | "client_app:create"
                            | "client_app:update"
                            | "client_app:read"
                            | "client_app:delete"
                            | "client_roles:create"
                            | "client_roles:update"
                            | "client_roles:read"
                            | "client_roles:delete"
                            | "client_roles_users:read"
                            | "client_roles_users:create"
                            | "client_roles_users:delete"
                            | "client_organization:create"
                            | "client_organization:update"
                            | "client_organization:read"
                            | "client_organization:delete"
                            | "client_organization_roles:read"
                            | "client_organization_roles:create"
                            | "client_organization_roles:update"
                            | "client_organization_roles:delete"
                            | "client_organization_users_roles:read"
                            | "client_organization_users_roles:create"
                            | "client_organization_users_roles:delete"
                            | "client_organization_accounts:read"
                            | "client_organization_accounts:create"
                            | "client_organization_accounts:update"
                            | "client_organization_accounts:delete"
                            | "client_organization_files:read"
                            | "client_organization_files:create"
                            | "client_organization_files:update"
                            | "client_organization_files:delete"
                            | "client_organization_publications:read"
                            | "client_organization_publications:create"
                            | "client_organization_publications:update"
                            | "client_organization_publications:delete"
                            | "client_organization_publications_stats:read"
                            | "client_organization_account_stats:read"
                        )[];
                    };
                };
            };
            headers: { [name: string]: unknown };
        };
        "400": {
            content: {
                "application/json": {
                    code: number;
                    data?: { [key: string]: unknown };
                    message: string;
                };
            };
            headers: { [name: string]: unknown };
        };
        "500": { content?: undefined; headers: { [name: string]: unknown } };
    }
    • 200: {
          content: {
              "application/json": {
                  rol?: {
                      name?: string;
                      permissions?: (
                          | "client:update"
                          | "client:read"
                          | "client:delete"
                          | "client_app:create"
                          | "client_app:update"
                          | "client_app:read"
                          | "client_app:delete"
                          | "client_roles:create"
                          | "client_roles:update"
                          | "client_roles:read"
                          | "client_roles:delete"
                          | "client_roles_users:read"
                          | "client_roles_users:create"
                          | "client_roles_users:delete"
                          | "client_organization:create"
                          | "client_organization:update"
                          | "client_organization:read"
                          | "client_organization:delete"
                          | "client_organization_roles:read"
                          | "client_organization_roles:create"
                          | "client_organization_roles:update"
                          | "client_organization_roles:delete"
                          | "client_organization_users_roles:read"
                          | "client_organization_users_roles:create"
                          | "client_organization_users_roles:delete"
                          | "client_organization_accounts:read"
                          | "client_organization_accounts:create"
                          | "client_organization_accounts:update"
                          | "client_organization_accounts:delete"
                          | "client_organization_files:read"
                          | "client_organization_files:create"
                          | "client_organization_files:update"
                          | "client_organization_files:delete"
                          | "client_organization_publications:read"
                          | "client_organization_publications:create"
                          | "client_organization_publications:update"
                          | "client_organization_publications:delete"
                          | "client_organization_publications_stats:read"
                          | "client_organization_account_stats:read"
                      )[];
                  };
              };
          };
          headers: { [name: string]: unknown };
      }

      Successful operation

    • 400: {
          content: {
              "application/json": {
                  code: number;
                  data?: { [key: string]: unknown };
                  message: string;
              };
          };
          headers: { [name: string]: unknown };
      }

      The request failed. The body carries the PlanVortex error code in code:

      | Code | Meaning |
      | --- | --- |
      | `521` | Invalid client. The identifier is invalid o doesn't exists |
      
    • 500: { content?: undefined; headers: { [name: string]: unknown } }

      Unhandled error by the server

createContact: {
    parameters: {
        cookie?: undefined;
        header?: undefined;
        path: { id_organization: string };
        query?: undefined;
    };
    requestBody: {
        content: {
            "application/json": {
                extra_data?: {
                    address?: string;
                    boolean_property?: boolean;
                    boolean_property2?: boolean;
                    building?: string
                    | number;
                    city?: string;
                    coords?: number[];
                    country?: string;
                    country_code?: string;
                    door?: string | number;
                    floor?: string | number;
                    number?: string | number;
                    number_property?: number;
                    number_property2?: number;
                    place_id?: string;
                    state?: string;
                    string_property?: string;
                    string_property2?: string;
                    zip_code?: string | number;
                };
                name?: string;
                profile_image?: string;
                social_identifiers: {
                    _id?: string;
                    external_identifier?: string;
                    social_network: | "facebook"
                    | "instagram"
                    | "linkedin"
                    | "tiktok"
                    | "twitter"
                    | "whatsapp"
                    | "youtube"
                    | "google_business"
                    | "bluesky"
                    | "discord"
                    | "email";
                }[];
            };
        };
    };
    responses: {
        "200": {
            content: {
                "application/json": {
                    contact: {
                        _id: string;
                        creation_date: string;
                        creator_keycloak_identifier?: string;
                        extra_data?: {
                            address?: string;
                            boolean_property?: boolean;
                            boolean_property2?: boolean;
                            building?: string
                            | number;
                            city?: string;
                            coords?: number[];
                            country?: string;
                            country_code?: string;
                            door?: string | number;
                            floor?: string | number;
                            number?: string | number;
                            number_property?: number;
                            number_property2?: number;
                            place_id?: string;
                            state?: string;
                            string_property?: string;
                            string_property2?: string;
                            zip_code?: string | number;
                        };
                        id_organization: string;
                        last_contact_update: string;
                        name?: string;
                        profile_image?: string;
                        social_identifiers: {
                            _id: string;
                            external_identifier?: string;
                            last_send_date?: string;
                            social_network: | "facebook"
                            | "instagram"
                            | "linkedin"
                            | "tiktok"
                            | "twitter"
                            | "whatsapp"
                            | "youtube"
                            | "google_business"
                            | "bluesky"
                            | "discord"
                            | "email";
                        }[];
                    };
                };
            };
            headers: { [name: string]: unknown };
        };
        "400": {
            content: {
                "application/json": {
                    code: number;
                    data?: { [key: string]: unknown };
                    message: string;
                };
            };
            headers: { [name: string]: unknown };
        };
    };
}
createMessage: {
    parameters: {
        cookie?: undefined;
        header?: undefined;
        path: { id_account: string; id_contact: string; id_organization: string };
        query?: undefined;
    };
    requestBody: {
        content: {
            "application/json": {
                message_options?: {
                    files: (
                        | string
                        | {
                            _id: string;
                            cover_image?: { _id: string; cover_image?: ...; cover_offset?: number; creation_date: string; file_externals: { external_identifier: string; external_url: string; social_network: "facebook" | "instagram" | ... 7 more ... | "discord"; }[]; ... 6 more ...; public_path: string; };
                            cover_offset?: number;
                            creation_date: string;
                            file_externals: {
                                external_identifier: ...;
                                external_url: ...;
                                social_network: ...;
                            }[];
                            file_format: "mp4"
                            | "jpeg"
                            | "gif"
                            | "png"
                            | "jpg";
                            file_properties: {
                                allowed_social_networks: (...)[];
                                aspect_ratio: { text: ...; value: ... };
                                duration: number;
                                height: number;
                                size_in_bytes: number;
                                width: number;
                            };
                            file_type: "video"
                            | "image";
                            id_organization: string;
                            is_temporal: boolean;
                            name: string;
                            public_path: string;
                        }
                    )[];
                    files_urls: { mime_type?: string; url?: string }[];
                    metaElements?: { [key: string]: unknown }[];
                    metaQuickReplies?: { [key: string]: unknown }[];
                    payload?: string;
                    template_language?: string;
                    template_name?: string;
                    whatsappInteractive?: { [key: string]: unknown };
                };
                message_type: | "simple_message"
                | "file_message"
                | "comment_message"
                | "publication_message"
                | "quick_reply_message"
                | "button_message"
                | "elements_message"
                | "postback_message"
                | "template_message"
                | "interactive_message";
                text?: string;
            };
        };
    };
    responses: {
        "200": {
            content: {
                "application/json": {
                    message: {
                        _id: string;
                        contact_id?: | string
                        | {
                            _id: string;
                            creation_date: string;
                            creator_keycloak_identifier?: string;
                            extra_data?: {
                                address?: (...)
                                | (...);
                                boolean_property?: (...) | (...) | (...);
                                boolean_property2?: (...) | (...) | (...);
                                building?: (...) | (...) | (...);
                                city?: (...) | (...);
                                coords?: (...) | (...);
                                country?: (...) | (...);
                                country_code?: (...) | (...);
                                door?: (...) | (...) | (...);
                                floor?: (...) | (...) | (...);
                                number?: (...) | (...) | (...);
                                number_property?: (...) | (...);
                                number_property2?: (...) | (...);
                                place_id?: (...) | (...);
                                state?: (...) | (...);
                                string_property?: (...) | (...);
                                string_property2?: (...) | (...);
                                zip_code?: (...) | (...) | (...);
                            };
                            id_organization: string;
                            last_contact_update: string;
                            name?: string;
                            profile_image?: string;
                            social_identifiers: {
                                _id: string;
                                external_identifier?: (...)
                                | (...);
                                last_send_date?: (...) | (...);
                                social_network:
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...);
                            }[];
                        };
                        creation_date: string;
                        element_external_id?: string;
                        from_contact_id?: | string
                        | {
                            _id: string;
                            creation_date: string;
                            creator_keycloak_identifier?: string;
                            extra_data?: {
                                address?: (...)
                                | (...);
                                boolean_property?: (...) | (...) | (...);
                                boolean_property2?: (...) | (...) | (...);
                                building?: (...) | (...) | (...);
                                city?: (...) | (...);
                                coords?: (...) | (...);
                                country?: (...) | (...);
                                country_code?: (...) | (...);
                                door?: (...) | (...) | (...);
                                floor?: (...) | (...) | (...);
                                number?: (...) | (...) | (...);
                                number_property?: (...) | (...);
                                number_property2?: (...) | (...);
                                place_id?: (...) | (...);
                                state?: (...) | (...);
                                string_property?: (...) | (...);
                                string_property2?: (...) | (...);
                                zip_code?: (...) | (...) | (...);
                            };
                            id_organization: string;
                            last_contact_update: string;
                            name?: string;
                            profile_image?: string;
                            social_identifiers: {
                                _id: string;
                                external_identifier?: (...)
                                | (...);
                                last_send_date?: (...) | (...);
                                social_network:
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...);
                            }[];
                        };
                        id_account: string;
                        in_response_external_id?: string;
                        in_response_to?: string;
                        message_errors: {
                            code: number;
                            data?: { [key: string]: unknown };
                            message: string;
                        }[];
                        message_options: {
                            files: (
                                | string
                                | {
                                    _id: string;
                                    cover_image?: (...)
                                    | (...);
                                    cover_offset?: (...) | (...);
                                    creation_date: string;
                                    file_externals: (...)[];
                                    file_format: (...) | (...) | (...) | (...) | (...);
                                    file_properties: {
                                        allowed_social_networks: ...;
                                        aspect_ratio: ...;
                                        duration: ...;
                                        height: ...;
                                        size_in_bytes: ...;
                                        width: ...;
                                    };
                                    file_type: (...)
                                    | (...);
                                    id_organization: string;
                                    is_temporal: boolean;
                                    name: string;
                                    public_path: string;
                                }
                            )[];
                            files_urls: { mime_type?: string; url?: string }[];
                            metaElements?: { [key: string]: unknown }[];
                            metaQuickReplies?: { [key: string]: unknown }[];
                            payload?: string;
                            template_language?: string;
                            template_name?: string;
                            whatsappInteractive?: { [key: string]: unknown };
                        };
                        message_type: | "simple_message"
                        | "file_message"
                        | "comment_message"
                        | "publication_message"
                        | "quick_reply_message"
                        | "button_message"
                        | "elements_message"
                        | "postback_message"
                        | "template_message"
                        | "interactive_message";
                        read: boolean;
                        text?: string;
                    };
                };
            };
            headers: { [name: string]: unknown };
        };
        "400": {
            content: {
                "application/json": {
                    code: number;
                    data?: { [key: string]: unknown };
                    message: string;
                };
            };
            headers: { [name: string]: unknown };
        };
    };
}
createMessageTemplate: {
    parameters: {
        cookie?: undefined;
        header?: undefined;
        path: { id_account: string; id_organization: string };
        query?: undefined;
    };
    requestBody: {
        content: { "application/json": { [key: string]: unknown } };
    };
    responses: {
        "200": {
            content: {
                "application/json": { template: { [key: string]: unknown } };
            };
            headers: { [name: string]: unknown };
        };
        "400": {
            content: {
                "application/json": {
                    code: number;
                    data?: { [key: string]: unknown };
                    message: string;
                };
            };
            headers: { [name: string]: unknown };
        };
    };
}
createOrganizationInsideOrganization: {
    parameters: {
        cookie?: undefined;
        header?: undefined;
        path: { id_organization: string };
        query?: undefined;
    };
    requestBody: {
        content: {
            "application/json": {
                actual_plan?: {
                    accounts: number;
                    ai_credits?: number;
                    artificial_inteligence?: boolean;
                    integrations: number;
                    publications: number;
                    space: number;
                    stats?: boolean;
                    twitter_credits?: number;
                    users: number;
                    whatsapp?: boolean;
                };
                name: string;
            };
        };
    };
    responses: {
        "200": {
            content: {
                "application/json": {
                    organization: {
                        _id: string;
                        actual_asigned?: {
                            accounts: number;
                            ai_credits?: number;
                            artificial_inteligence?: boolean;
                            integrations: number;
                            publications: number;
                            space: number;
                            stats?: boolean;
                            twitter_credits?: number;
                            users: number;
                            whatsapp?: boolean;
                        };
                        actual_plan?: {
                            accounts: number;
                            ai_credits?: number;
                            artificial_inteligence?: boolean;
                            integrations: number;
                            publications: number;
                            space: number;
                            stats?: boolean;
                            twitter_credits?: number;
                            users: number;
                            whatsapp?: boolean;
                        };
                        actual_use?: {
                            accounts: number;
                            ai_credits?: number;
                            artificial_inteligence?: boolean;
                            integrations: number;
                            publications: number;
                            space: number;
                            stats?: boolean;
                            twitter_credits?: number;
                            users: number;
                            whatsapp?: boolean;
                        };
                        ai_context?: {
                            audience?: string;
                            avoid?: string;
                            blog_url?: string;
                            brand_name?: string;
                            default_tone?: string;
                            description?: string;
                            keywords?: string[];
                            notes?: string;
                            products?: string;
                            sector?: string;
                            shop_url?: string;
                            social_urls?: string[];
                            value_proposition?: string;
                            website?: string;
                        };
                        creation_date: string;
                        id_client: string;
                        name: string;
                        parent_organization?: string;
                        social_credentials?: {
                            discord?: {
                                application_name?: (...)
                                | (...);
                                client_id?: (...) | (...);
                                has_bot_token?: (...) | (...) | (...);
                                has_client_secret?: (...) | (...) | (...);
                                verified_date?: (...) | (...);
                            };
                        };
                        stats_settings?: { auto_refresh_twitter: boolean };
                    };
                };
            };
            headers: { [name: string]: unknown };
        };
        "400": {
            content: {
                "application/json": {
                    code: number;
                    data?: { [key: string]: unknown };
                    message: string;
                };
            };
            headers: { [name: string]: unknown };
        };
        "500": { content?: undefined; headers: { [name: string]: unknown } };
    };
}

Type declaration

  • parameters: {
        cookie?: undefined;
        header?: undefined;
        path: { id_organization: string };
        query?: undefined;
    }
    • Optionalcookie?: undefined
    • Optionalheader?: undefined
    • path: { id_organization: string }
      • id_organization: string

        Parent organization. The new organization hangs from this one

    • Optionalquery?: undefined
  • requestBody: {
        content: {
            "application/json": {
                actual_plan?: {
                    accounts: number;
                    ai_credits?: number;
                    artificial_inteligence?: boolean;
                    integrations: number;
                    publications: number;
                    space: number;
                    stats?: boolean;
                    twitter_credits?: number;
                    users: number;
                    whatsapp?: boolean;
                };
                name: string;
            };
        };
    }

    Creates a child organization. parent_organization is taken from the path, so sending it in the body has no effect.

  • responses: {
        "200": {
            content: {
                "application/json": {
                    organization: {
                        _id: string;
                        actual_asigned?: {
                            accounts: number;
                            ai_credits?: number;
                            artificial_inteligence?: boolean;
                            integrations: number;
                            publications: number;
                            space: number;
                            stats?: boolean;
                            twitter_credits?: number;
                            users: number;
                            whatsapp?: boolean;
                        };
                        actual_plan?: {
                            accounts: number;
                            ai_credits?: number;
                            artificial_inteligence?: boolean;
                            integrations: number;
                            publications: number;
                            space: number;
                            stats?: boolean;
                            twitter_credits?: number;
                            users: number;
                            whatsapp?: boolean;
                        };
                        actual_use?: {
                            accounts: number;
                            ai_credits?: number;
                            artificial_inteligence?: boolean;
                            integrations: number;
                            publications: number;
                            space: number;
                            stats?: boolean;
                            twitter_credits?: number;
                            users: number;
                            whatsapp?: boolean;
                        };
                        ai_context?: {
                            audience?: string;
                            avoid?: string;
                            blog_url?: string;
                            brand_name?: string;
                            default_tone?: string;
                            description?: string;
                            keywords?: string[];
                            notes?: string;
                            products?: string;
                            sector?: string;
                            shop_url?: string;
                            social_urls?: string[];
                            value_proposition?: string;
                            website?: string;
                        };
                        creation_date: string;
                        id_client: string;
                        name: string;
                        parent_organization?: string;
                        social_credentials?: {
                            discord?: {
                                application_name?: (...)
                                | (...);
                                client_id?: (...) | (...);
                                has_bot_token?: (...) | (...) | (...);
                                has_client_secret?: (...) | (...) | (...);
                                verified_date?: (...) | (...);
                            };
                        };
                        stats_settings?: { auto_refresh_twitter: boolean };
                    };
                };
            };
            headers: { [name: string]: unknown };
        };
        "400": {
            content: {
                "application/json": {
                    code: number;
                    data?: { [key: string]: unknown };
                    message: string;
                };
            };
            headers: { [name: string]: unknown };
        };
        "500": { content?: undefined; headers: { [name: string]: unknown } };
    }
    • 200: {
          content: {
              "application/json": {
                  organization: {
                      _id: string;
                      actual_asigned?: {
                          accounts: number;
                          ai_credits?: number;
                          artificial_inteligence?: boolean;
                          integrations: number;
                          publications: number;
                          space: number;
                          stats?: boolean;
                          twitter_credits?: number;
                          users: number;
                          whatsapp?: boolean;
                      };
                      actual_plan?: {
                          accounts: number;
                          ai_credits?: number;
                          artificial_inteligence?: boolean;
                          integrations: number;
                          publications: number;
                          space: number;
                          stats?: boolean;
                          twitter_credits?: number;
                          users: number;
                          whatsapp?: boolean;
                      };
                      actual_use?: {
                          accounts: number;
                          ai_credits?: number;
                          artificial_inteligence?: boolean;
                          integrations: number;
                          publications: number;
                          space: number;
                          stats?: boolean;
                          twitter_credits?: number;
                          users: number;
                          whatsapp?: boolean;
                      };
                      ai_context?: {
                          audience?: string;
                          avoid?: string;
                          blog_url?: string;
                          brand_name?: string;
                          default_tone?: string;
                          description?: string;
                          keywords?: string[];
                          notes?: string;
                          products?: string;
                          sector?: string;
                          shop_url?: string;
                          social_urls?: string[];
                          value_proposition?: string;
                          website?: string;
                      };
                      creation_date: string;
                      id_client: string;
                      name: string;
                      parent_organization?: string;
                      social_credentials?: {
                          discord?: {
                              application_name?: (...)
                              | (...);
                              client_id?: (...) | (...);
                              has_bot_token?: (...) | (...) | (...);
                              has_client_secret?: (...) | (...) | (...);
                              verified_date?: (...) | (...);
                          };
                      };
                      stats_settings?: { auto_refresh_twitter: boolean };
                  };
              };
          };
          headers: { [name: string]: unknown };
      }

      Successful operation

    • 400: {
          content: {
              "application/json": {
                  code: number;
                  data?: { [key: string]: unknown };
                  message: string;
              };
          };
          headers: { [name: string]: unknown };
      }

      The request failed. The body carries the PlanVortex error code in code:

      | Code | Meaning |
      | --- | --- |
      | `1101` | Invalid organization |
      | `1107` | Organizations doesn't allow set parent_organization as his own _id |
      | `1100` | Max deep of parents allowed |
      | `1400` | Account limit reached for the organization plan |
      | `1401` | Publication limit reached for the organization plan |
      | `1402` | Users limit reached for the organization plan |
      | `1403` | Shared space limit reached for the organization plan |
      | `1407` | Twitter credits limit reached for the organization plan. The sum of twitter_credits assigned to the client's organizations cannot exceed the client's plan twitter_credits. |
      | `1408` | AI credits limit reached for the organization plan. The sum of ai_credits assigned to the client's organizations cannot exceed the client's plan ai_credits. |
      | `1301` | Client plan invalid. Min accounts must be X |
      | `1302` | Client plan invalid. Min publications must be X |
      | `1303` | Client plan invalid. Min users must be at least X |
      | `1306` | Client plan invalid. Min shared space must be at least X |
      | `523` | Invalid application |
      
    • 500: { content?: undefined; headers: { [name: string]: unknown } }

      Unhandled error by the server

createOrganizationRole: {
    parameters: {
        cookie?: undefined;
        header?: undefined;
        path: { id_organization: string };
        query?: undefined;
    };
    requestBody: {
        content: {
            "application/json": {
                name: string;
                permissions: (
                    | "organization:create"
                    | "organization:update"
                    | "organization:read"
                    | "organization:delete"
                    | "organization_roles:create"
                    | "organization_roles:update"
                    | "organization_roles:read"
                    | "organization_roles:delete"
                    | "organization_users_roles:read"
                    | "organization_users_roles:create"
                    | "organization_users_roles:delete"
                    | "accounts:create"
                    | "accounts:update"
                    | "accounts:read"
                    | "accounts:delete"
                    | "products:create"
                    | "products:update"
                    | "products:read"
                    | "products:delete"
                    | "files:create"
                    | "files:update"
                    | "files:read"
                    | "files:delete"
                    | "publications:create"
                    | "publications:update"
                    | "publications:read"
                    | "publications:delete"
                    | "account_stats:read"
                    | "publication_stats:read"
                    | "messages:create"
                    | "messages:read"
                    | "messages:delete"
                    | "contacts:create"
                    | "contacts:read"
                    | "contacts:update"
                    | "contacts:delete"
                    | "ai_plans:create"
                    | "ai_plans:read"
                    | "ai_plans:update"
                    | "ai_plans:delete"
                )[];
            };
        };
    };
    responses: {
        "200": {
            content: {
                "application/json": {
                    rol?: {
                        _id?: string;
                        creation_date?: string;
                        default?: boolean;
                        id_organization?: string;
                        name?: string;
                        permissions?: (
                            | "organization:create"
                            | "organization:update"
                            | "organization:read"
                            | "organization:delete"
                            | "organization_roles:create"
                            | "organization_roles:update"
                            | "organization_roles:read"
                            | "organization_roles:delete"
                            | "organization_users_roles:read"
                            | "organization_users_roles:create"
                            | "organization_users_roles:delete"
                            | "accounts:create"
                            | "accounts:update"
                            | "accounts:read"
                            | "accounts:delete"
                            | "products:create"
                            | "products:update"
                            | "products:read"
                            | "products:delete"
                            | "files:create"
                            | "files:update"
                            | "files:read"
                            | "files:delete"
                            | "publications:create"
                            | "publications:update"
                            | "publications:read"
                            | "publications:delete"
                            | "account_stats:read"
                            | "publication_stats:read"
                            | "messages:create"
                            | "messages:read"
                            | "messages:delete"
                            | "contacts:create"
                            | "contacts:read"
                            | "contacts:update"
                            | "contacts:delete"
                            | "ai_plans:create"
                            | "ai_plans:read"
                            | "ai_plans:update"
                            | "ai_plans:delete"
                        )[];
                        total_users?: number;
                    };
                };
            };
            headers: { [name: string]: unknown };
        };
        "400": {
            content: {
                "application/json": {
                    code: number;
                    data?: { [key: string]: unknown };
                    message: string;
                };
            };
            headers: { [name: string]: unknown };
        };
        "401": {
            content: {
                "application/json": {
                    code: number;
                    data?: { [key: string]: unknown };
                    message: string;
                };
            };
            headers: { [name: string]: unknown };
        };
        "500": {
            content: {
                "application/json": {
                    code: number;
                    data?: { [key: string]: unknown };
                    message: string;
                };
            };
            headers: { [name: string]: unknown };
        };
    };
}
createProduct: {
    parameters: {
        cookie?: undefined;
        header?: undefined;
        path: { id_account: string; id_organization: string };
        query?: { product_catalog_id?: string };
    };
    requestBody: {
        content: {
            "application/json": {
                additional_image_urls?: string[];
                availability?: | "pending"
                | "in stock"
                | "out of stock"
                | "preorder"
                | "available for order"
                | "discontinued"
                | "mark_as_sold";
                brand?: string;
                category?: string;
                color?: string;
                condition?: | "new"
                | "refurbished"
                | "used"
                | "used_like_new"
                | "used_good"
                | "used_fair"
                | "cpo"
                | "open_box_new";
                currency: string;
                description?: string;
                id?: string;
                image_url: string;
                name: string;
                price: number;
                retailer_id: string;
                url?: string;
            } & { [key: string]: unknown };
        };
    };
    responses: {
        "200": {
            content: { "application/json": { product_id: string } };
            headers: { [name: string]: unknown };
        };
        "400": {
            content: {
                "application/json": {
                    code: number;
                    data?: { [key: string]: unknown };
                    message: string;
                };
            };
            headers: { [name: string]: unknown };
        };
    };
}
createProductCatalog: {
    parameters: {
        cookie?: undefined;
        header?: undefined;
        path: { id_account: string; id_organization: string };
        query?: undefined;
    };
    requestBody: { content: { "application/json": { name: string } } };
    responses: {
        "200": {
            content: { "application/json": { product_catalog: string } };
            headers: { [name: string]: unknown };
        };
        "400": {
            content: {
                "application/json": {
                    code: number;
                    data?: { [key: string]: unknown };
                    message: string;
                };
            };
            headers: { [name: string]: unknown };
        };
    };
}
createTemporalConnectToken: {
    parameters: {
        cookie?: undefined;
        header?: undefined;
        path: { id_organization: string };
        query?: {
            redirect_uri?: string;
            social_network?:
                | "facebook"
                | "instagram"
                | "linkedin"
                | "tiktok"
                | "twitter"
                | "whatsapp"
                | "youtube"
                | "google_business"
                | "bluesky"
                | "discord";
        };
    };
    requestBody?: undefined;
    responses: {
        "200": {
            content: {
                "application/json": {
                    expires_at: string;
                    token: string;
                    url: string;
                };
            };
            headers: { [name: string]: unknown };
        };
        "400": {
            content: {
                "application/json": {
                    code: number;
                    data?: { [key: string]: unknown };
                    message: string;
                };
            };
            headers: { [name: string]: unknown };
        };
        "500": { content?: undefined; headers: { [name: string]: unknown } };
    };
}
deleteAccount: {
    parameters: {
        cookie?: undefined;
        header?: undefined;
        path: { id_account: string; id_organization: string };
        query?: undefined;
    };
    requestBody?: undefined;
    responses: {
        "200": {
            content: { "application/json": { success: boolean } };
            headers: { [name: string]: unknown };
        };
        "400": {
            content: {
                "application/json": {
                    code: number;
                    data?: { [key: string]: unknown };
                    message: string;
                };
            };
            headers: { [name: string]: unknown };
        };
        "500": { content?: undefined; headers: { [name: string]: unknown } };
    };
}
deleteAiPlan: {
    parameters: {
        cookie?: undefined;
        header?: undefined;
        path: { id_ai_plan: string; id_client: string; id_organization: string };
        query?: undefined;
    };
    requestBody?: undefined;
    responses: {
        "200": {
            content: { "application/json": { success: boolean } };
            headers: { [name: string]: unknown };
        };
        "400": {
            content: {
                "application/json": {
                    code: number;
                    data?: { [key: string]: unknown };
                    message: string;
                };
            };
            headers: { [name: string]: unknown };
        };
        "500": { content?: undefined; headers: { [name: string]: unknown } };
    };
}
deleteChildOrganization: {
    parameters: {
        cookie?: undefined;
        header?: undefined;
        path: { id_organization: string };
        query?: undefined;
    };
    requestBody?: undefined;
    responses: {
        "200": {
            content: { "application/json": { success: boolean } };
            headers: { [name: string]: unknown };
        };
        "400": {
            content: {
                "application/json": {
                    code: number;
                    data?: { [key: string]: unknown };
                    message: string;
                };
            };
            headers: { [name: string]: unknown };
        };
        "500": { content?: undefined; headers: { [name: string]: unknown } };
    };
}
deleteClientApp: {
    parameters: {
        cookie?: undefined;
        header?: undefined;
        path: { id_app: string; id_client: string };
        query?: undefined;
    };
    requestBody?: undefined;
    responses: {
        "200": {
            content: { "application/json": { success: boolean } };
            headers: { [name: string]: unknown };
        };
        "400": {
            content: {
                "application/json": {
                    code: number;
                    data?: { [key: string]: unknown };
                    message: string;
                };
            };
            headers: { [name: string]: unknown };
        };
    };
}
deleteClientOrganization: {
    parameters: {
        cookie?: undefined;
        header?: undefined;
        path: { id_client: string; id_organization: string };
        query?: undefined;
    };
    requestBody?: undefined;
    responses: {
        "200": {
            content: { "application/json": { success: boolean } };
            headers: { [name: string]: unknown };
        };
        "400": {
            content: {
                "application/json": {
                    code: number;
                    data?: { [key: string]: unknown };
                    message: string;
                };
            };
            headers: { [name: string]: unknown };
        };
        "500": { content?: undefined; headers: { [name: string]: unknown } };
    };
}
deleteComment: {
    parameters: {
        cookie?: undefined;
        header?: undefined;
        path: { id_comment: string; id_organization: string };
        query?: undefined;
    };
    requestBody?: undefined;
    responses: {
        "200": {
            content: { "application/json": { success: boolean } };
            headers: { [name: string]: unknown };
        };
        "400": {
            content: {
                "application/json": {
                    code: number;
                    data?: { [key: string]: unknown };
                    message: string;
                };
            };
            headers: { [name: string]: unknown };
        };
    };
}
deleteContact: {
    parameters: {
        cookie?: undefined;
        header?: undefined;
        path: { id_contact: string; id_organization: string };
        query?: undefined;
    };
    requestBody?: undefined;
    responses: {
        "200": {
            content: { "application/json": { success: boolean } };
            headers: { [name: string]: unknown };
        };
        "400": {
            content: {
                "application/json": {
                    code: number;
                    data?: { [key: string]: unknown };
                    message: string;
                };
            };
            headers: { [name: string]: unknown };
        };
    };
}
deleteIntegration: {
    parameters: {
        cookie?: undefined;
        header?: undefined;
        path: { id_integration: string; id_organization: string };
        query?: undefined;
    };
    requestBody?: undefined;
    responses: {
        "200": {
            content: { "application/json": { success: boolean } };
            headers: { [name: string]: unknown };
        };
        "400": {
            content: {
                "application/json": {
                    code: number;
                    data?: { [key: string]: unknown };
                    message: string;
                };
            };
            headers: { [name: string]: unknown };
        };
    };
}
deleteMessagesByAccount: {
    parameters: {
        cookie?: undefined;
        header?: undefined;
        path: { id_account: string; id_organization: string };
        query?: undefined;
    };
    requestBody?: undefined;
    responses: {
        "200": {
            content: { "application/json": { success: boolean } };
            headers: { [name: string]: unknown };
        };
        "400": {
            content: {
                "application/json": {
                    code: number;
                    data?: { [key: string]: unknown };
                    message: string;
                };
            };
            headers: { [name: string]: unknown };
        };
    };
}
deleteMessageTemplate: {
    parameters: {
        cookie?: undefined;
        header?: undefined;
        path: { id_account: string; id_organization: string };
        query?: { template_id?: string; template_name?: string };
    };
    requestBody?: undefined;
    responses: {
        "200": {
            content: { "application/json": { success: boolean } };
            headers: { [name: string]: unknown };
        };
        "400": {
            content: {
                "application/json": {
                    code: number;
                    data?: { [key: string]: unknown };
                    message: string;
                };
            };
            headers: { [name: string]: unknown };
        };
    };
}
deleteOrganizationContacts: {
    parameters: {
        cookie?: undefined;
        header?: undefined;
        path: { id_organization: string };
        query?: undefined;
    };
    requestBody?: undefined;
    responses: {
        "200": {
            content: { "application/json": { success: boolean } };
            headers: { [name: string]: unknown };
        };
        "400": {
            content: {
                "application/json": {
                    code: number;
                    data?: { [key: string]: unknown };
                    message: string;
                };
            };
            headers: { [name: string]: unknown };
        };
    };
}
deleteOrganizationRole: {
    parameters: {
        cookie?: undefined;
        header?: undefined;
        path: { id_organization: string; id_rol: string };
        query?: undefined;
    };
    requestBody?: undefined;
    responses: {
        "200": {
            content: { "application/json": { success: boolean } };
            headers: { [name: string]: unknown };
        };
        "400": {
            content: {
                "application/json": {
                    code: number;
                    data?: { [key: string]: unknown };
                    message: string;
                };
            };
            headers: { [name: string]: unknown };
        };
        "401": {
            content: {
                "application/json": {
                    code: number;
                    data?: { [key: string]: unknown };
                    message: string;
                };
            };
            headers: { [name: string]: unknown };
        };
        "500": {
            content: {
                "application/json": {
                    code: number;
                    data?: { [key: string]: unknown };
                    message: string;
                };
            };
            headers: { [name: string]: unknown };
        };
    };
}
deleteOrganizationSocialCredentials: {
    parameters: {
        cookie?: undefined;
        header?: undefined;
        path: { id_organization: string; social_network: "discord" };
        query?: undefined;
    };
    requestBody?: undefined;
    responses: {
        "200": {
            content: {
                "application/json": {
                    organization: {
                        _id: string;
                        actual_asigned?: {
                            accounts: number;
                            ai_credits?: number;
                            artificial_inteligence?: boolean;
                            integrations: number;
                            publications: number;
                            space: number;
                            stats?: boolean;
                            twitter_credits?: number;
                            users: number;
                            whatsapp?: boolean;
                        };
                        actual_plan?: {
                            accounts: number;
                            ai_credits?: number;
                            artificial_inteligence?: boolean;
                            integrations: number;
                            publications: number;
                            space: number;
                            stats?: boolean;
                            twitter_credits?: number;
                            users: number;
                            whatsapp?: boolean;
                        };
                        actual_use?: {
                            accounts: number;
                            ai_credits?: number;
                            artificial_inteligence?: boolean;
                            integrations: number;
                            publications: number;
                            space: number;
                            stats?: boolean;
                            twitter_credits?: number;
                            users: number;
                            whatsapp?: boolean;
                        };
                        ai_context?: {
                            audience?: string;
                            avoid?: string;
                            blog_url?: string;
                            brand_name?: string;
                            default_tone?: string;
                            description?: string;
                            keywords?: string[];
                            notes?: string;
                            products?: string;
                            sector?: string;
                            shop_url?: string;
                            social_urls?: string[];
                            value_proposition?: string;
                            website?: string;
                        };
                        creation_date: string;
                        id_client: string;
                        name: string;
                        parent_organization?: string;
                        social_credentials?: {
                            discord?: {
                                application_name?: (...)
                                | (...);
                                client_id?: (...) | (...);
                                has_bot_token?: (...) | (...) | (...);
                                has_client_secret?: (...) | (...) | (...);
                                verified_date?: (...) | (...);
                            };
                        };
                        stats_settings?: { auto_refresh_twitter: boolean };
                    };
                };
            };
            headers: { [name: string]: unknown };
        };
        "400": {
            content: {
                "application/json": {
                    code: number;
                    data?: { [key: string]: unknown };
                    message: string;
                };
            };
            headers: { [name: string]: unknown };
        };
        "500": { content?: undefined; headers: { [name: string]: unknown } };
    };
}
deletePublication: {
    parameters: {
        cookie?: undefined;
        header?: undefined;
        path: { id_organization: string; id_publication: string };
        query?: undefined;
    };
    requestBody?: undefined;
    responses: {
        "200": {
            content: { "application/json": { success: boolean } };
            headers: { [name: string]: unknown };
        };
        "400": {
            content: {
                "application/json": {
                    code: number;
                    data?: { [key: string]: unknown };
                    message: string;
                };
            };
            headers: { [name: string]: unknown };
        };
        "500": { content?: undefined; headers: { [name: string]: unknown } };
    };
}
deleteRole: {
    parameters: {
        cookie?: undefined;
        header?: undefined;
        path: { id_client: string; id_rol: string };
        query?: undefined;
    };
    requestBody?: undefined;
    responses: {
        "200": {
            content: { "application/json": { success: boolean } };
            headers: { [name: string]: unknown };
        };
        "400": {
            content: {
                "application/json": {
                    code: number;
                    data?: { [key: string]: unknown };
                    message: string;
                };
            };
            headers: { [name: string]: unknown };
        };
        "500": { content?: undefined; headers: { [name: string]: unknown } };
    };
}
deleteUpload: {
    parameters: {
        cookie?: undefined;
        header?: undefined;
        path: { id_organization: string; id_upload: string };
        query?: { forceDelete?: boolean };
    };
    requestBody?: undefined;
    responses: {
        "200": {
            content: { "application/json": { success: boolean } };
            headers: { [name: string]: unknown };
        };
        "400": {
            content: {
                "application/json": {
                    code: number;
                    data?: { [key: string]: unknown };
                    message: string;
                };
            };
            headers: { [name: string]: unknown };
        };
        "500": { content?: undefined; headers: { [name: string]: unknown } };
    };
}
enableAccount: {
    parameters: {
        cookie?: undefined;
        header?: undefined;
        path: { id_account: string; id_organization: string };
        query?: undefined;
    };
    requestBody?: undefined;
    responses: {
        "200": {
            content: {
                "application/json": { redirect_uri?: string; success?: boolean };
            };
            headers: { [name: string]: unknown };
        };
        "400": {
            content: {
                "application/json": {
                    code: number;
                    data?: { [key: string]: unknown };
                    message: string;
                };
            };
            headers: { [name: string]: unknown };
        };
        "500": { content?: undefined; headers: { [name: string]: unknown } };
    };
}
getAccount: {
    parameters: {
        cookie?: undefined;
        header?: undefined;
        path: { id_account: string; id_organization: string };
        query?: undefined;
    };
    requestBody?: undefined;
    responses: {
        "200": {
            content: {
                "application/json": {
                    account: {
                        _id: string;
                        creation_date: string;
                        error_code: number;
                        followers_count?: number;
                        id_client: string;
                        id_organization: string;
                        image?: string;
                        name: string;
                        next_comments_update?: string;
                        next_stats_update?: string;
                        private_message_link?: string;
                        social_network: | "facebook"
                        | "instagram"
                        | "linkedin"
                        | "tiktok"
                        | "twitter"
                        | "whatsapp"
                        | "youtube"
                        | "google_business"
                        | "bluesky"
                        | "discord";
                        username?: string;
                    };
                };
            };
            headers: { [name: string]: unknown };
        };
        "400": {
            content: {
                "application/json": {
                    code: number;
                    data?: { [key: string]: unknown };
                    message: string;
                };
            };
            headers: { [name: string]: unknown };
        };
        "500": { content?: undefined; headers: { [name: string]: unknown } };
    };
}
getAccountComments: {
    parameters: {
        cookie?: undefined;
        header?: undefined;
        path: { id_account: string; id_organization: string };
        query?: { limit?: number; offset?: string };
    };
    requestBody?: undefined;
    responses: {
        "200": {
            content: {
                "application/json": {
                    comments: {
                        _id: string;
                        author: {
                            external_id: string;
                            is_own: boolean;
                            name?: string;
                            profile_pic?: string;
                        };
                        collected_date: string;
                        creation_date: string;
                        deleted: boolean;
                        external_id: string;
                        hidden: boolean;
                        id_account: | string
                        | {
                            _id: string;
                            creation_date: string;
                            error_code: number;
                            followers_count?: number;
                            id_client: string;
                            id_organization: string;
                            image?: string;
                            name: string;
                            next_comments_update?: string;
                            next_stats_update?: string;
                            private_message_link?: string;
                            social_network: | "facebook"
                            | "instagram"
                            | "linkedin"
                            | "tiktok"
                            | "twitter"
                            | "whatsapp"
                            | "youtube"
                            | "google_business"
                            | "bluesky"
                            | "discord";
                            username?: string;
                        };
                        id_organization: string;
                        id_publication?: | string
                        | {
                            _id: string;
                            creation_date: string;
                            engagement_base?: "reach"
                            | "impressions"
                            | "followers";
                            external_identifier?: string;
                            files: {
                                _id: ...;
                                cover_image?: ...;
                                cover_offset?: ...;
                                creation_date: ...;
                                file_externals: ...;
                                file_format: ...;
                                file_properties: ...;
                                file_type: ...;
                                id_organization: ...;
                                is_temporal: ...;
                                name: ...;
                                public_path: ...;
                            }[];
                            id_account: | string
                            | {
                                _id: ...;
                                creation_date: ...;
                                error_code: ...;
                                followers_count?: ...;
                                id_client: ...;
                                id_organization: ...;
                                image?: ...;
                                name: ...;
                                next_comments_update?: ...;
                                next_stats_update?: ...;
                                private_message_link?: ...;
                                social_network: ...;
                                username?: ...;
                            };
                            id_integration?: string;
                            id_organization: string;
                            metrics?: {
                                clicks?: ...;
                                comments?: ...;
                                engagement?: ...;
                                followers?: ...;
                                followers_gained?: ...;
                                impressions?: ...;
                                likes?: ...;
                                profile_views?: ...;
                                reach?: ...;
                                saves?: ...;
                                shares?: ...;
                                video_views?: ...;
                            };
                            name?: string;
                            next_stats_update?: string;
                            publication_errors: { code: ...; data?: ...; message: ... }[];
                            publication_type:
                                | "profile"
                                | "page"
                                | "group"
                                | "reels"
                                | "stories"
                                | "message";
                            publish_date?: string;
                            retries: number;
                            social_network: | "facebook"
                            | "instagram"
                            | "linkedin"
                            | "tiktok"
                            | "twitter"
                            | "whatsapp"
                            | "youtube"
                            | "google_business"
                            | "bluesky"
                            | "discord";
                            state: "ready"
                            | "withErrors"
                            | "sended"
                            | "draft"
                            | "publishing";
                            statistics?: {
                                angers?: ...;
                                bookmarks?: ...;
                                clicks?: ...;
                                comments?: ...;
                                engagement?: ...;
                                follows?: ...;
                                hahas?: ...;
                                impressions?: ...;
                                likes?: ...;
                                loves?: ...;
                                negative_feedback?: ...;
                                page_likes?: ...;
                                playback_0_count?: ...;
                                playback_100_count?: ...;
                                playback_25_count?: ...;
                                playback_50_count?: ...;
                                playback_75_count?: ...;
                                profile_activity?: ...;
                                profile_visits?: ...;
                                quotes?: ...;
                                reach?: ...;
                                replys?: ...;
                                retwets?: ...;
                                saved?: ...;
                                share?: ...;
                                shareMentions?: ...;
                                shares?: ...;
                                sorrys?: ...;
                                url_link_clicks?: ...;
                                user_profile_clicks?: ...;
                                video_views?: ...;
                                views?: ...;
                                wows?: ...;
                            };
                            stats_updated_date?: string;
                            text?: string;
                            title?: string;
                            url?: string;
                        };
                        like_count?: number;
                        our_reply_external_id?: string;
                        parent_external_id?: string;
                        publication_external_id: string;
                        rating?: number;
                        read: boolean;
                        replied: boolean;
                        reply_count?: number;
                        social_network: | "facebook"
                        | "instagram"
                        | "linkedin"
                        | "twitter"
                        | "youtube"
                        | "google_business"
                        | "bluesky"
                        | "discord";
                        text: string;
                    }[];
                    credits_consumed: number;
                    next_cursor?: string;
                    total: number;
                };
            };
            headers: { [name: string]: unknown };
        };
        "400": {
            content: {
                "application/json": {
                    code: number;
                    data?: { [key: string]: unknown };
                    message: string;
                };
            };
            headers: { [name: string]: unknown };
        };
    };
}
getAccountConversationsTotal: {
    parameters: {
        cookie?: undefined;
        header?: undefined;
        path: { id_account: string; id_organization: string };
        query?: {
            from_date?: string;
            group_by?: "day" | "month" | "year";
            to_date?: string;
        };
    };
    requestBody?: undefined;
    responses: {
        "200": {
            content: {
                "application/json": | { total: number }
                | {
                    group: "day" | "month" | "year";
                    stats: { groupValue: number; totalConversations: number }[];
                };
            };
            headers: { [name: string]: unknown };
        };
        "400": {
            content: {
                "application/json": {
                    code: number;
                    data?: { [key: string]: unknown };
                    message: string;
                };
            };
            headers: { [name: string]: unknown };
        };
    };
}
getAccountList: {
    parameters: {
        cookie?: undefined;
        header?: undefined;
        path: { id_organization: string };
        query?: {
            accounts?: string[];
            capability?:
                | "comments"
                | "publications"
                | "messages"
                | "products"
                | "webhooks"
                | "persistent_menu";
            limit?: number;
            name?: string;
            offset?: number;
            social_network?: (
                | "facebook"
                | "instagram"
                | "linkedin"
                | "tiktok"
                | "twitter"
                | "whatsapp"
                | "youtube"
                | "google_business"
                | "bluesky"
                | "discord"
            )[];
        };
    };
    requestBody?: undefined;
    responses: {
        "200": {
            content: {
                "application/json": {
                    accounts: {
                        _id: string;
                        creation_date: string;
                        error_code: number;
                        followers_count?: number;
                        id_client: string;
                        id_organization: string;
                        image?: string;
                        name: string;
                        next_comments_update?: string;
                        next_stats_update?: string;
                        private_message_link?: string;
                        social_network: | "facebook"
                        | "instagram"
                        | "linkedin"
                        | "tiktok"
                        | "twitter"
                        | "whatsapp"
                        | "youtube"
                        | "google_business"
                        | "bluesky"
                        | "discord";
                        username?: string;
                    }[];
                    total: number;
                };
            };
            headers: { [name: string]: unknown };
        };
        "400": {
            content: {
                "application/json": {
                    code: number;
                    data?: { [key: string]: unknown };
                    message: string;
                };
            };
            headers: { [name: string]: unknown };
        };
        "500": { content?: undefined; headers: { [name: string]: unknown } };
    };
}
getAccountPublications: {
    parameters: {
        cookie?: undefined;
        header?: undefined;
        path: { id_account: string; id_organization: string };
        query?: {
            accounts?: string[];
            from_date?: string;
            limit?: number;
            offset?: number;
            orderByPublish?: boolean;
            search?: string;
            social_network?: (
                | "facebook"
                | "instagram"
                | "linkedin"
                | "tiktok"
                | "twitter"
                | "whatsapp"
                | "youtube"
                | "google_business"
                | "bluesky"
                | "discord"
            )[];
            state?: ("ready" | "withErrors" | "sended" | "draft" | "publishing")[];
            to_date?: string;
        };
    };
    requestBody?: undefined;
    responses: {
        "200": {
            content: {
                "application/json": {
                    publications: {
                        _id: string;
                        creation_date: string;
                        engagement_base?: "reach"
                        | "impressions"
                        | "followers";
                        external_identifier?: string;
                        files: {
                            _id: string;
                            cover_image?: { _id: string; cover_image?: ...; cover_offset?: number; creation_date: string; file_externals: { external_identifier: string; external_url: string; social_network: "facebook" | "instagram" | ... 7 more ... | "discord"; }[]; ... 6 more ...; public_path: string; };
                            cover_offset?: number;
                            creation_date: string;
                            file_externals: {
                                external_identifier: ...;
                                external_url: ...;
                                social_network: ...;
                            }[];
                            file_format: "mp4"
                            | "jpeg"
                            | "gif"
                            | "png"
                            | "jpg";
                            file_properties: {
                                allowed_social_networks: (...)[];
                                aspect_ratio: { text: ...; value: ... };
                                duration: number;
                                height: number;
                                size_in_bytes: number;
                                width: number;
                            };
                            file_type: "video"
                            | "image";
                            id_organization: string;
                            is_temporal: boolean;
                            name: string;
                            public_path: string;
                        }[];
                        id_account: | string
                        | {
                            _id: string;
                            creation_date: string;
                            error_code: number;
                            followers_count?: number;
                            id_client: string;
                            id_organization: string;
                            image?: string;
                            name: string;
                            next_comments_update?: string;
                            next_stats_update?: string;
                            private_message_link?: string;
                            social_network: | "facebook"
                            | "instagram"
                            | "linkedin"
                            | "tiktok"
                            | "twitter"
                            | "whatsapp"
                            | "youtube"
                            | "google_business"
                            | "bluesky"
                            | "discord";
                            username?: string;
                        };
                        id_integration?: string;
                        id_organization: string;
                        metrics?: {
                            clicks?: number;
                            comments?: number;
                            engagement?: number;
                            followers?: number;
                            followers_gained?: number;
                            impressions?: number;
                            likes?: number;
                            profile_views?: number;
                            reach?: number;
                            saves?: number;
                            shares?: number;
                            video_views?: number;
                        };
                        name?: string;
                        next_stats_update?: string;
                        publication_errors: {
                            code: number;
                            data?: { [key: ...]: ... };
                            message: string;
                        }[];
                        publication_type: | "profile"
                        | "page"
                        | "group"
                        | "reels"
                        | "stories"
                        | "message";
                        publish_date?: string;
                        retries: number;
                        social_network: | "facebook"
                        | "instagram"
                        | "linkedin"
                        | "tiktok"
                        | "twitter"
                        | "whatsapp"
                        | "youtube"
                        | "google_business"
                        | "bluesky"
                        | "discord";
                        state: "ready"
                        | "withErrors"
                        | "sended"
                        | "draft"
                        | "publishing";
                        statistics?: {
                            angers?: number;
                            bookmarks?: number;
                            clicks?: number;
                            comments?: number;
                            engagement?: number;
                            follows?: number;
                            hahas?: number;
                            impressions?: number;
                            likes?: number;
                            loves?: number;
                            negative_feedback?: number;
                            page_likes?: number;
                            playback_0_count?: number;
                            playback_100_count?: number;
                            playback_25_count?: number;
                            playback_50_count?: number;
                            playback_75_count?: number;
                            profile_activity?: number;
                            profile_visits?: number;
                            quotes?: number;
                            reach?: number;
                            replys?: number;
                            retwets?: number;
                            saved?: number;
                            share?: number;
                            shareMentions?: number;
                            shares?: number;
                            sorrys?: number;
                            url_link_clicks?: number;
                            user_profile_clicks?: number;
                            video_views?: number;
                            views?: number;
                            wows?: number;
                        };
                        stats_updated_date?: string;
                        text?: string;
                        title?: string;
                        url?: string;
                    }[];
                    total: number;
                };
            };
            headers: { [name: string]: unknown };
        };
        "400": {
            content: {
                "application/json": {
                    code: number;
                    data?: { [key: string]: unknown };
                    message: string;
                };
            };
            headers: { [name: string]: unknown };
        };
        "500": { content?: undefined; headers: { [name: string]: unknown } };
    };
}
getAccountStats: {
    parameters: {
        cookie?: undefined;
        header?: undefined;
        path: { id_account: string; id_organization: string };
        query?: { from_date?: string; names?: string[]; to_date?: string };
    };
    requestBody?: undefined;
    responses: {
        "200": {
            content: {
                "application/json": {
                    group: "day"
                    | "month"
                    | "year";
                    stats: {
                        date: string;
                        group: "day" | "month" | "year";
                        group_value: number;
                        name: string;
                        value: number;
                    }[];
                };
            };
            headers: { [name: string]: unknown };
        };
        "400": {
            content: {
                "application/json": {
                    code: number;
                    data?: { [key: string]: unknown };
                    message: string;
                };
            };
            headers: { [name: string]: unknown };
        };
        "500": { content?: undefined; headers: { [name: string]: unknown } };
    };
}
getAiPlan: {
    parameters: {
        cookie?: undefined;
        header?: undefined;
        path: { id_ai_plan: string; id_client: string; id_organization: string };
        query?: undefined;
    };
    requestBody?: undefined;
    responses: {
        "200": {
            content: {
                "application/json": {
                    ai_plan: {
                        _id: string;
                        accounts: string[];
                        attempts: number;
                        creation_date: string;
                        credits_spent: number;
                        error?: {
                            code: number;
                            data?: { [key: string]: unknown };
                            message: string;
                        };
                        generation_end_date?: string;
                        id_client: string;
                        id_organization: string;
                        keycloak_identifier?: string;
                        options: {
                            allow_images: boolean;
                            gallery_uploads: string[];
                            language: string;
                            max_images?: number;
                            publish_days: number[];
                            shared: boolean;
                            timezone: string;
                            tone?: string;
                            use_organization_context: boolean;
                            week_start: string;
                        };
                        orchestrator_result?: Record<string, never>;
                        organization_context?: {
                            audience?: string;
                            avoid?: string;
                            blog_url?: string;
                            brand_name?: string;
                            default_tone?: string;
                            description?: string;
                            keywords?: string[];
                            notes?: string;
                            products?: string;
                            sector?: string;
                            shop_url?: string;
                            social_urls?: string[];
                            value_proposition?: string;
                            website?: string;
                        };
                        prompt: string;
                        publications: (
                            | string
                            | {
                                _id: string;
                                creation_date: string;
                                engagement_base?: "reach"
                                | "impressions"
                                | "followers";
                                external_identifier?: string;
                                files: {
                                    _id: ...;
                                    cover_image?: ...;
                                    cover_offset?: ...;
                                    creation_date: ...;
                                    file_externals: ...;
                                    file_format: ...;
                                    file_properties: ...;
                                    file_type: ...;
                                    id_organization: ...;
                                    is_temporal: ...;
                                    name: ...;
                                    public_path: ...;
                                }[];
                                id_account: | string
                                | {
                                    _id: ...;
                                    creation_date: ...;
                                    error_code: ...;
                                    followers_count?: ...;
                                    id_client: ...;
                                    id_organization: ...;
                                    image?: ...;
                                    name: ...;
                                    next_comments_update?: ...;
                                    next_stats_update?: ...;
                                    private_message_link?: ...;
                                    social_network: ...;
                                    username?: ...;
                                };
                                id_integration?: string;
                                id_organization: string;
                                metrics?: {
                                    clicks?: ...;
                                    comments?: ...;
                                    engagement?: ...;
                                    followers?: ...;
                                    followers_gained?: ...;
                                    impressions?: ...;
                                    likes?: ...;
                                    profile_views?: ...;
                                    reach?: ...;
                                    saves?: ...;
                                    shares?: ...;
                                    video_views?: ...;
                                };
                                name?: string;
                                next_stats_update?: string;
                                publication_errors: { code: ...; data?: ...; message: ... }[];
                                publication_type:
                                    | "profile"
                                    | "page"
                                    | "group"
                                    | "reels"
                                    | "stories"
                                    | "message";
                                publish_date?: string;
                                retries: number;
                                social_network: | "facebook"
                                | "instagram"
                                | "linkedin"
                                | "tiktok"
                                | "twitter"
                                | "whatsapp"
                                | "youtube"
                                | "google_business"
                                | "bluesky"
                                | "discord";
                                state: "ready"
                                | "withErrors"
                                | "sended"
                                | "draft"
                                | "publishing";
                                statistics?: {
                                    angers?: ...;
                                    bookmarks?: ...;
                                    clicks?: ...;
                                    comments?: ...;
                                    engagement?: ...;
                                    follows?: ...;
                                    hahas?: ...;
                                    impressions?: ...;
                                    likes?: ...;
                                    loves?: ...;
                                    negative_feedback?: ...;
                                    page_likes?: ...;
                                    playback_0_count?: ...;
                                    playback_100_count?: ...;
                                    playback_25_count?: ...;
                                    playback_50_count?: ...;
                                    playback_75_count?: ...;
                                    profile_activity?: ...;
                                    profile_visits?: ...;
                                    quotes?: ...;
                                    reach?: ...;
                                    replys?: ...;
                                    retwets?: ...;
                                    saved?: ...;
                                    share?: ...;
                                    shareMentions?: ...;
                                    shares?: ...;
                                    sorrys?: ...;
                                    url_link_clicks?: ...;
                                    user_profile_clicks?: ...;
                                    video_views?: ...;
                                    views?: ...;
                                    wows?: ...;
                                };
                                stats_updated_date?: string;
                                text?: string;
                                title?: string;
                                url?: string;
                            }
                        )[];
                        state: | "pending"
                        | "generating"
                        | "generated"
                        | "validated"
                        | "failed"
                        | "cancelled";
                    };
                };
            };
            headers: { [name: string]: unknown };
        };
        "400": {
            content: {
                "application/json": {
                    code: number;
                    data?: { [key: string]: unknown };
                    message: string;
                };
            };
            headers: { [name: string]: unknown };
        };
        "500": { content?: undefined; headers: { [name: string]: unknown } };
    };
}
getAiPlans: {
    parameters: {
        cookie?: undefined;
        header?: undefined;
        path: { id_client: string; id_organization: string };
        query?: { limit?: number; offset?: number };
    };
    requestBody?: undefined;
    responses: {
        "200": {
            content: {
                "application/json": {
                    ai_plans: {
                        _id: string;
                        accounts: string[];
                        attempts: number;
                        creation_date: string;
                        credits_spent: number;
                        error?: { code: number; data?: { [key: ...]: ... }; message: string };
                        generation_end_date?: string;
                        id_client: string;
                        id_organization: string;
                        keycloak_identifier?: string;
                        options: {
                            allow_images: boolean;
                            gallery_uploads: string[];
                            language: string;
                            max_images?: number;
                            publish_days: number[];
                            shared: boolean;
                            timezone: string;
                            tone?: string;
                            use_organization_context: boolean;
                            week_start: string;
                        };
                        orchestrator_result?: Record<string, never>;
                        organization_context?: {
                            audience?: string;
                            avoid?: string;
                            blog_url?: string;
                            brand_name?: string;
                            default_tone?: string;
                            description?: string;
                            keywords?: (...)[];
                            notes?: string;
                            products?: string;
                            sector?: string;
                            shop_url?: string;
                            social_urls?: (...)[];
                            value_proposition?: string;
                            website?: string;
                        };
                        prompt: string;
                        publications: (
                            | string
                            | {
                                _id: string;
                                creation_date: string;
                                engagement_base?: (...)
                                | (...)
                                | (...)
                                | (...);
                                external_identifier?: (...) | (...);
                                files: (...)[];
                                id_account: (...) | (...);
                                id_integration?: (...) | (...);
                                id_organization: string;
                                metrics?: (...) | (...);
                                name?: (...) | (...);
                                next_stats_update?: (...) | (...);
                                publication_errors: (...)[];
                                publication_type: (...) | (...) | (...) | (...) | (...) | (...);
                                publish_date?: (...) | (...);
                                retries: number;
                                social_network:
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...);
                                state: (...) | (...) | (...) | (...) | (...);
                                statistics?: (...) | (...);
                                stats_updated_date?: (...) | (...);
                                text?: (...) | (...);
                                title?: (...) | (...);
                                url?: (...) | (...);
                            }
                        )[];
                        state: | "pending"
                        | "generating"
                        | "generated"
                        | "validated"
                        | "failed"
                        | "cancelled";
                    }[];
                    total: number;
                };
            };
            headers: { [name: string]: unknown };
        };
        "400": {
            content: {
                "application/json": {
                    code: number;
                    data?: { [key: string]: unknown };
                    message: string;
                };
            };
            headers: { [name: string]: unknown };
        };
        "500": { content?: undefined; headers: { [name: string]: unknown } };
    };
}
getAllowedAspectRatios: {
    parameters: {
        cookie?: undefined;
        header?: undefined;
        path?: undefined;
        query?: undefined;
    };
    requestBody?: undefined;
    responses: {
        "200": {
            content: {
                "application/json": {
                    [key: string]: { text: string[]; values: number[] };
                };
            };
            headers: { [name: string]: unknown };
        };
        "400": {
            content: {
                "application/json": {
                    code: number;
                    data?: { [key: string]: unknown };
                    message: string;
                };
            };
            headers: { [name: string]: unknown };
        };
    };
}
getAllowedSocialMessages: {
    parameters: {
        cookie?: undefined;
        header?: undefined;
        path?: undefined;
        query?: undefined;
    };
    requestBody?: undefined;
    responses: {
        "200": {
            content: {
                "application/json": (
                    | "facebook"
                    | "instagram"
                    | "linkedin"
                    | "tiktok"
                    | "twitter"
                    | "whatsapp"
                    | "youtube"
                    | "google_business"
                    | "bluesky"
                    | "discord"
                )[];
            };
            headers: { [name: string]: unknown };
        };
        "400": {
            content: {
                "application/json": {
                    code: number;
                    data?: { [key: string]: unknown };
                    message: string;
                };
            };
            headers: { [name: string]: unknown };
        };
    };
}
getAllowedSocialPublications: {
    parameters: {
        cookie?: undefined;
        header?: undefined;
        path?: undefined;
        query?: undefined;
    };
    requestBody?: undefined;
    responses: {
        "200": {
            content: {
                "application/json": (
                    | "facebook"
                    | "instagram"
                    | "linkedin"
                    | "tiktok"
                    | "twitter"
                    | "whatsapp"
                    | "youtube"
                    | "google_business"
                    | "bluesky"
                    | "discord"
                )[];
            };
            headers: { [name: string]: unknown };
        };
        "400": {
            content: {
                "application/json": {
                    code: number;
                    data?: { [key: string]: unknown };
                    message: string;
                };
            };
            headers: { [name: string]: unknown };
        };
    };
}
getChildOrganizations: {
    parameters: {
        cookie?: undefined;
        header?: undefined;
        path: { id_organization: string };
        query?: {
            getUse?: boolean;
            limit?: number;
            name?: string;
            offset?: number;
        };
    };
    requestBody?: undefined;
    responses: {
        "200": {
            content: {
                "application/json": {
                    organizations: {
                        _id: string;
                        actual_asigned?: {
                            accounts: number;
                            ai_credits?: number;
                            artificial_inteligence?: boolean;
                            integrations: number;
                            publications: number;
                            space: number;
                            stats?: boolean;
                            twitter_credits?: number;
                            users: number;
                            whatsapp?: boolean;
                        };
                        actual_plan?: {
                            accounts: number;
                            ai_credits?: number;
                            artificial_inteligence?: boolean;
                            integrations: number;
                            publications: number;
                            space: number;
                            stats?: boolean;
                            twitter_credits?: number;
                            users: number;
                            whatsapp?: boolean;
                        };
                        actual_use?: {
                            accounts: number;
                            ai_credits?: number;
                            artificial_inteligence?: boolean;
                            integrations: number;
                            publications: number;
                            space: number;
                            stats?: boolean;
                            twitter_credits?: number;
                            users: number;
                            whatsapp?: boolean;
                        };
                        ai_context?: {
                            audience?: string;
                            avoid?: string;
                            blog_url?: string;
                            brand_name?: string;
                            default_tone?: string;
                            description?: string;
                            keywords?: (...)[];
                            notes?: string;
                            products?: string;
                            sector?: string;
                            shop_url?: string;
                            social_urls?: (...)[];
                            value_proposition?: string;
                            website?: string;
                        };
                        creation_date: string;
                        id_client: string;
                        name: string;
                        parent_organization?: string;
                        social_credentials?: {
                            discord?: {
                                application_name?: ...;
                                client_id?: ...;
                                has_bot_token?: ...;
                                has_client_secret?: ...;
                                verified_date?: ...;
                            };
                        };
                        stats_settings?: { auto_refresh_twitter: boolean };
                    }[];
                    total: number;
                };
            };
            headers: { [name: string]: unknown };
        };
        "400": {
            content: {
                "application/json": {
                    code: number;
                    data?: { [key: string]: unknown };
                    message: string;
                };
            };
            headers: { [name: string]: unknown };
        };
        "500": { content?: undefined; headers: { [name: string]: unknown } };
    };
}
getClient: {
    parameters: {
        cookie?: undefined;
        header?: undefined;
        path: { id_client: string };
        query?: { getUse?: boolean };
    };
    requestBody?: undefined;
    responses: {
        "200": {
            content: {
                "application/json": {
                    client: {
                        _id: string;
                        actual_asigned?: {
                            accounts: number;
                            ai_credits?: number;
                            artificial_inteligence?: boolean;
                            integrations: number;
                            publications: number;
                            space: number;
                            stats?: boolean;
                            twitter_credits?: number;
                            users: number;
                            whatsapp?: boolean;
                        };
                        actual_plan: {
                            current_period_end?: string;
                            current_period_start?: string;
                            enabled: boolean;
                            isEnabled: boolean;
                            plan_data: {
                                accounts: number;
                                ai_credits?: number;
                                artificial_inteligence?: boolean;
                                integrations: number;
                                publications: number;
                                space: number;
                                stats?: boolean;
                                twitter_credits?: number;
                                users: number;
                                whatsapp?: boolean;
                            };
                            plan_identifier: "basic"
                            | "free"
                            | "pro"
                            | "custom";
                            require_action?: boolean;
                            status: string;
                            stripe_customer_id?: string;
                        };
                        actual_use?: {
                            accounts: number;
                            ai_credits?: number;
                            artificial_inteligence?: boolean;
                            integrations: number;
                            publications: number;
                            space: number;
                            stats?: boolean;
                            twitter_credits?: number;
                            users: number;
                            whatsapp?: boolean;
                        };
                        ai_settings?: {
                            image?: | null
                            | {
                                api_key?: (...)
                                | (...);
                                has_api_key?: (...) | (...) | (...);
                                model: string;
                                provider: (...) | (...) | (...) | (...);
                            };
                            orchestrator?: | null
                            | {
                                api_key?: (...)
                                | (...);
                                has_api_key?: (...) | (...) | (...);
                                model: string;
                                provider: (...) | (...) | (...) | (...);
                            };
                            text?: | null
                            | {
                                api_key?: (...)
                                | (...);
                                has_api_key?: (...) | (...) | (...);
                                model: string;
                                provider: (...) | (...) | (...) | (...);
                            };
                        };
                        client_type?: "personal"
                        | "company";
                        creation_date: string;
                        name: string;
                        trial_tested?: boolean;
                    };
                };
            };
            headers: { [name: string]: unknown };
        };
        "400": {
            content: {
                "application/json": {
                    code: number;
                    data?: { [key: string]: unknown };
                    message: string;
                };
            };
            headers: { [name: string]: unknown };
        };
        "500": { content?: undefined; headers: { [name: string]: unknown } };
    };
}
getClientApp: {
    parameters: {
        cookie?: undefined;
        header?: undefined;
        path: { id_app: string; id_client: string };
        query?: undefined;
    };
    requestBody?: undefined;
    responses: {
        "200": {
            content: {
                "application/json": {
                    client_app: {
                        _id: string;
                        allowed_domains: string[];
                        creation_date: string;
                        deleted: boolean;
                        deleted_date?: string;
                        id_client: string;
                        id_user?: string;
                        keycloak_client_idenfifier: string;
                        name: string;
                        redirect_urls: string[];
                        webhook_url?: string;
                    };
                };
            };
            headers: { [name: string]: unknown };
        };
        "400": {
            content: {
                "application/json": {
                    code: number;
                    data?: { [key: string]: unknown };
                    message: string;
                };
            };
            headers: { [name: string]: unknown };
        };
    };
}
getClientApps: {
    parameters: {
        cookie?: undefined;
        header?: undefined;
        path: { id_client: string };
        query?: { limit?: number; offset?: number };
    };
    requestBody?: undefined;
    responses: {
        "200": {
            content: {
                "application/json": {
                    client_apps: {
                        _id: string;
                        allowed_domains: string[];
                        creation_date: string;
                        deleted: boolean;
                        deleted_date?: string;
                        id_client: string;
                        id_user?: string;
                        keycloak_client_idenfifier: string;
                        name: string;
                        redirect_urls: string[];
                        webhook_url?: string;
                    }[];
                    total: number;
                };
            };
            headers: { [name: string]: unknown };
        };
        "400": {
            content: {
                "application/json": {
                    code: number;
                    data?: { [key: string]: unknown };
                    message: string;
                };
            };
            headers: { [name: string]: unknown };
        };
    };
}
getClientAppSecret: {
    parameters: {
        cookie?: undefined;
        header?: undefined;
        path: { id_app: string; id_client: string };
        query?: undefined;
    };
    requestBody?: undefined;
    responses: {
        "200": {
            content: { "application/json": { secret: string } };
            headers: { [name: string]: unknown };
        };
        "400": {
            content: {
                "application/json": {
                    code: number;
                    data?: { [key: string]: unknown };
                    message: string;
                };
            };
            headers: { [name: string]: unknown };
        };
    };
}
getClientOrganizations: {
    parameters: {
        cookie?: undefined;
        header?: undefined;
        path: { id_client: string };
        query?: {
            getUse?: boolean;
            limit?: number;
            name?: string;
            offset?: number;
        };
    };
    requestBody?: undefined;
    responses: {
        "200": {
            content: {
                "application/json": {
                    organizations: {
                        _id: string;
                        actual_asigned?: {
                            accounts: number;
                            ai_credits?: number;
                            artificial_inteligence?: boolean;
                            integrations: number;
                            publications: number;
                            space: number;
                            stats?: boolean;
                            twitter_credits?: number;
                            users: number;
                            whatsapp?: boolean;
                        };
                        actual_plan?: {
                            accounts: number;
                            ai_credits?: number;
                            artificial_inteligence?: boolean;
                            integrations: number;
                            publications: number;
                            space: number;
                            stats?: boolean;
                            twitter_credits?: number;
                            users: number;
                            whatsapp?: boolean;
                        };
                        actual_use?: {
                            accounts: number;
                            ai_credits?: number;
                            artificial_inteligence?: boolean;
                            integrations: number;
                            publications: number;
                            space: number;
                            stats?: boolean;
                            twitter_credits?: number;
                            users: number;
                            whatsapp?: boolean;
                        };
                        ai_context?: {
                            audience?: string;
                            avoid?: string;
                            blog_url?: string;
                            brand_name?: string;
                            default_tone?: string;
                            description?: string;
                            keywords?: (...)[];
                            notes?: string;
                            products?: string;
                            sector?: string;
                            shop_url?: string;
                            social_urls?: (...)[];
                            value_proposition?: string;
                            website?: string;
                        };
                        creation_date: string;
                        id_client: string;
                        name: string;
                        parent_organization?: string;
                        social_credentials?: {
                            discord?: {
                                application_name?: ...;
                                client_id?: ...;
                                has_bot_token?: ...;
                                has_client_secret?: ...;
                                verified_date?: ...;
                            };
                        };
                        stats_settings?: { auto_refresh_twitter: boolean };
                    }[];
                    total: number;
                };
            };
            headers: { [name: string]: unknown };
        };
        "400": {
            content: {
                "application/json": {
                    code: number;
                    data?: { [key: string]: unknown };
                    message: string;
                };
            };
            headers: { [name: string]: unknown };
        };
        "500": { content?: undefined; headers: { [name: string]: unknown } };
    };
}
getClientPermissions: {
    parameters: {
        cookie?: undefined;
        header?: undefined;
        path?: undefined;
        query?: undefined;
    };
    requestBody?: undefined;
    responses: {
        "200": {
            content: {
                "application/json": {
                    permissions?: (
                        | "client:update"
                        | "client:read"
                        | "client:delete"
                        | "client_app:create"
                        | "client_app:update"
                        | "client_app:read"
                        | "client_app:delete"
                        | "client_roles:create"
                        | "client_roles:update"
                        | "client_roles:read"
                        | "client_roles:delete"
                        | "client_roles_users:read"
                        | "client_roles_users:create"
                        | "client_roles_users:delete"
                        | "client_organization:create"
                        | "client_organization:update"
                        | "client_organization:read"
                        | "client_organization:delete"
                        | "client_organization_roles:read"
                        | "client_organization_roles:create"
                        | "client_organization_roles:update"
                        | "client_organization_roles:delete"
                        | "client_organization_users_roles:read"
                        | "client_organization_users_roles:create"
                        | "client_organization_users_roles:delete"
                        | "client_organization_accounts:read"
                        | "client_organization_accounts:create"
                        | "client_organization_accounts:update"
                        | "client_organization_accounts:delete"
                        | "client_organization_files:read"
                        | "client_organization_files:create"
                        | "client_organization_files:update"
                        | "client_organization_files:delete"
                        | "client_organization_publications:read"
                        | "client_organization_publications:create"
                        | "client_organization_publications:update"
                        | "client_organization_publications:delete"
                        | "client_organization_publications_stats:read"
                        | "client_organization_account_stats:read"
                    )[];
                };
            };
            headers: { [name: string]: unknown };
        };
        "400": {
            content: {
                "application/json": {
                    code: number;
                    data?: { [key: string]: unknown };
                    message: string;
                };
            };
            headers: { [name: string]: unknown };
        };
        "500": { content?: undefined; headers: { [name: string]: unknown } };
    };
}
getClientRoles: {
    parameters: {
        cookie?: undefined;
        header?: undefined;
        path: { id_client: string };
        query?: { limit?: number; offset?: number };
    };
    requestBody?: undefined;
    responses: {
        "200": {
            content: {
                "application/json": {
                    roles?: {
                        name?: string;
                        permissions?: (
                            | (...)
                            | (...)
                            | (...)
                            | (...)
                            | (...)
                            | (...)
                            | (...)
                            | (...)
                            | (...)
                            | (...)
                            | (...)
                            | (...)
                            | (...)
                            | (...)
                            | (...)
                            | (...)
                            | (...)
                            | (...)
                            | (...)
                            | (...)
                            | (...)
                            | (...)
                            | (...)
                            | (...)
                            | (...)
                            | (...)
                            | (...)
                            | (...)
                            | (...)
                            | (...)
                            | (...)
                            | (...)
                            | (...)
                            | (...)
                            | (...)
                            | (...)
                            | (...)
                            | (...)
                            | (...)
                        )[];
                    }[];
                    total?: number;
                };
            };
            headers: { [name: string]: unknown };
        };
        "400": {
            content: {
                "application/json": {
                    code: number;
                    data?: { [key: string]: unknown };
                    message: string;
                };
            };
            headers: { [name: string]: unknown };
        };
        "500": { content?: undefined; headers: { [name: string]: unknown } };
    };
}
getClients: {
    parameters: {
        cookie?: undefined;
        header?: undefined;
        path?: undefined;
        query?: { getUse?: boolean; limit?: number; offset?: number };
    };
    requestBody?: undefined;
    responses: {
        "200": {
            content: {
                "application/json": {
                    clients: {
                        _id: string;
                        actual_asigned?: {
                            accounts: number;
                            ai_credits?: number;
                            artificial_inteligence?: boolean;
                            integrations: number;
                            publications: number;
                            space: number;
                            stats?: boolean;
                            twitter_credits?: number;
                            users: number;
                            whatsapp?: boolean;
                        };
                        actual_plan: {
                            current_period_end?: string;
                            current_period_start?: string;
                            enabled: boolean;
                            isEnabled: boolean;
                            plan_data: {
                                accounts: number;
                                ai_credits?: number;
                                artificial_inteligence?: boolean;
                                integrations: number;
                                publications: number;
                                space: number;
                                stats?: boolean;
                                twitter_credits?: number;
                                users: number;
                                whatsapp?: boolean;
                            };
                            plan_identifier: "basic"
                            | "free"
                            | "pro"
                            | "custom";
                            require_action?: boolean;
                            status: string;
                            stripe_customer_id?: string;
                        };
                        actual_use?: {
                            accounts: number;
                            ai_credits?: number;
                            artificial_inteligence?: boolean;
                            integrations: number;
                            publications: number;
                            space: number;
                            stats?: boolean;
                            twitter_credits?: number;
                            users: number;
                            whatsapp?: boolean;
                        };
                        ai_settings?: {
                            image?: | null
                            | { api_key?: ...; has_api_key?: ...; model: ...; provider: ... };
                            orchestrator?:
                                | null
                                | { api_key?: ...; has_api_key?: ...; model: ...; provider: ... };
                            text?:
                                | null
                                | { api_key?: ...; has_api_key?: ...; model: ...; provider: ... };
                        };
                        client_type?: "personal"
                        | "company";
                        creation_date: string;
                        name: string;
                        trial_tested?: boolean;
                    }[];
                    total: number;
                };
            };
            headers: { [name: string]: unknown };
        };
        "400": {
            content: {
                "application/json": {
                    code: number;
                    data?: { [key: string]: unknown };
                    message: string;
                };
            };
            headers: { [name: string]: unknown };
        };
        "500": { content?: undefined; headers: { [name: string]: unknown } };
    };
}
getClientsWithOrganizations: {
    parameters: {
        cookie?: undefined;
        header?: undefined;
        path?: undefined;
        query?: {
            getUse?: boolean;
            limit?: number;
            limitOrganizations?: number;
            offset?: number;
            offsetOrganizations?: number;
        };
    };
    requestBody?: undefined;
    responses: {
        "200": {
            content: {
                "application/json": {
                    clients: (
                        {
                            _id: string;
                            actual_asigned?: {
                                accounts: number;
                                ai_credits?: (...)
                                | (...);
                                artificial_inteligence?: (...) | (...) | (...);
                                integrations: number;
                                publications: number;
                                space: number;
                                stats?: (...) | (...) | (...);
                                twitter_credits?: (...) | (...);
                                users: number;
                                whatsapp?: (...) | (...) | (...);
                            };
                            actual_plan: {
                                current_period_end?: string;
                                current_period_start?: string;
                                enabled: boolean;
                                isEnabled: boolean;
                                plan_data: {
                                    accounts: number;
                                    ai_credits?: (...)
                                    | (...);
                                    artificial_inteligence?: (...) | (...) | (...);
                                    integrations: number;
                                    publications: number;
                                    space: number;
                                    stats?: (...) | (...) | (...);
                                    twitter_credits?: (...) | (...);
                                    users: number;
                                    whatsapp?: (...) | (...) | (...);
                                };
                                plan_identifier: "basic"
                                | "free"
                                | "pro"
                                | "custom";
                                require_action?: boolean;
                                status: string;
                                stripe_customer_id?: string;
                            };
                            actual_use?: {
                                accounts: number;
                                ai_credits?: (...)
                                | (...);
                                artificial_inteligence?: (...) | (...) | (...);
                                integrations: number;
                                publications: number;
                                space: number;
                                stats?: (...) | (...) | (...);
                                twitter_credits?: (...) | (...);
                                users: number;
                                whatsapp?: (...) | (...) | (...);
                            };
                            ai_settings?: {
                                image?: (...)
                                | (...)
                                | (...);
                                orchestrator?: (...) | (...) | (...);
                                text?: (...) | (...) | (...);
                            };
                            client_type?: "personal"
                            | "company";
                            creation_date: string;
                            name: string;
                            trial_tested?: boolean;
                        } & {
                            organizations: {
                                _id: string;
                                actual_asigned?: (...)
                                | (...);
                                actual_plan?: (...) | (...);
                                actual_use?: (...) | (...);
                                ai_context?: (...) | (...);
                                creation_date: string;
                                id_client: string;
                                name: string;
                                parent_organization?: (...) | (...);
                                social_credentials?: (...) | (...);
                                stats_settings?: (...) | (...);
                            }[];
                            total: number;
                        }
                    )[];
                    total: number;
                };
            };
            headers: { [name: string]: unknown };
        };
        "400": {
            content: {
                "application/json": {
                    code: number;
                    data?: { [key: string]: unknown };
                    message: string;
                };
            };
            headers: { [name: string]: unknown };
        };
        "500": { content?: undefined; headers: { [name: string]: unknown } };
    };
}
getClientUsers: {
    parameters: {
        cookie?: undefined;
        header?: undefined;
        path: { id_client: string };
        query?: { limit?: number; offset?: number };
    };
    requestBody?: undefined;
    responses: {
        "200": {
            content: {
                "application/json": {
                    total?: number;
                    users?: {
                        email?: string;
                        firstname?: string;
                        id?: string;
                        lastname?: string;
                        username?: string;
                    }[];
                };
            };
            headers: { [name: string]: unknown };
        };
        "400": {
            content: {
                "application/json": {
                    code: number;
                    data?: { [key: string]: unknown };
                    message: string;
                };
            };
            headers: { [name: string]: unknown };
        };
        "500": { content?: undefined; headers: { [name: string]: unknown } };
    };
}
getCommentReplies: {
    parameters: {
        cookie?: undefined;
        header?: undefined;
        path: { id_comment: string; id_organization: string };
        query?: { limit?: number; offset?: string };
    };
    requestBody?: undefined;
    responses: {
        "200": {
            content: {
                "application/json": {
                    comments: {
                        _id: string;
                        author: {
                            external_id: string;
                            is_own: boolean;
                            name?: string;
                            profile_pic?: string;
                        };
                        collected_date: string;
                        creation_date: string;
                        deleted: boolean;
                        external_id: string;
                        hidden: boolean;
                        id_account: | string
                        | {
                            _id: string;
                            creation_date: string;
                            error_code: number;
                            followers_count?: number;
                            id_client: string;
                            id_organization: string;
                            image?: string;
                            name: string;
                            next_comments_update?: string;
                            next_stats_update?: string;
                            private_message_link?: string;
                            social_network: | "facebook"
                            | "instagram"
                            | "linkedin"
                            | "tiktok"
                            | "twitter"
                            | "whatsapp"
                            | "youtube"
                            | "google_business"
                            | "bluesky"
                            | "discord";
                            username?: string;
                        };
                        id_organization: string;
                        id_publication?: | string
                        | {
                            _id: string;
                            creation_date: string;
                            engagement_base?: "reach"
                            | "impressions"
                            | "followers";
                            external_identifier?: string;
                            files: {
                                _id: ...;
                                cover_image?: ...;
                                cover_offset?: ...;
                                creation_date: ...;
                                file_externals: ...;
                                file_format: ...;
                                file_properties: ...;
                                file_type: ...;
                                id_organization: ...;
                                is_temporal: ...;
                                name: ...;
                                public_path: ...;
                            }[];
                            id_account: | string
                            | {
                                _id: ...;
                                creation_date: ...;
                                error_code: ...;
                                followers_count?: ...;
                                id_client: ...;
                                id_organization: ...;
                                image?: ...;
                                name: ...;
                                next_comments_update?: ...;
                                next_stats_update?: ...;
                                private_message_link?: ...;
                                social_network: ...;
                                username?: ...;
                            };
                            id_integration?: string;
                            id_organization: string;
                            metrics?: {
                                clicks?: ...;
                                comments?: ...;
                                engagement?: ...;
                                followers?: ...;
                                followers_gained?: ...;
                                impressions?: ...;
                                likes?: ...;
                                profile_views?: ...;
                                reach?: ...;
                                saves?: ...;
                                shares?: ...;
                                video_views?: ...;
                            };
                            name?: string;
                            next_stats_update?: string;
                            publication_errors: { code: ...; data?: ...; message: ... }[];
                            publication_type:
                                | "profile"
                                | "page"
                                | "group"
                                | "reels"
                                | "stories"
                                | "message";
                            publish_date?: string;
                            retries: number;
                            social_network: | "facebook"
                            | "instagram"
                            | "linkedin"
                            | "tiktok"
                            | "twitter"
                            | "whatsapp"
                            | "youtube"
                            | "google_business"
                            | "bluesky"
                            | "discord";
                            state: "ready"
                            | "withErrors"
                            | "sended"
                            | "draft"
                            | "publishing";
                            statistics?: {
                                angers?: ...;
                                bookmarks?: ...;
                                clicks?: ...;
                                comments?: ...;
                                engagement?: ...;
                                follows?: ...;
                                hahas?: ...;
                                impressions?: ...;
                                likes?: ...;
                                loves?: ...;
                                negative_feedback?: ...;
                                page_likes?: ...;
                                playback_0_count?: ...;
                                playback_100_count?: ...;
                                playback_25_count?: ...;
                                playback_50_count?: ...;
                                playback_75_count?: ...;
                                profile_activity?: ...;
                                profile_visits?: ...;
                                quotes?: ...;
                                reach?: ...;
                                replys?: ...;
                                retwets?: ...;
                                saved?: ...;
                                share?: ...;
                                shareMentions?: ...;
                                shares?: ...;
                                sorrys?: ...;
                                url_link_clicks?: ...;
                                user_profile_clicks?: ...;
                                video_views?: ...;
                                views?: ...;
                                wows?: ...;
                            };
                            stats_updated_date?: string;
                            text?: string;
                            title?: string;
                            url?: string;
                        };
                        like_count?: number;
                        our_reply_external_id?: string;
                        parent_external_id?: string;
                        publication_external_id: string;
                        rating?: number;
                        read: boolean;
                        replied: boolean;
                        reply_count?: number;
                        social_network: | "facebook"
                        | "instagram"
                        | "linkedin"
                        | "twitter"
                        | "youtube"
                        | "google_business"
                        | "bluesky"
                        | "discord";
                        text: string;
                    }[];
                    credits_consumed: number;
                    next_cursor?: string;
                    total: number;
                };
            };
            headers: { [name: string]: unknown };
        };
        "400": {
            content: {
                "application/json": {
                    code: number;
                    data?: { [key: string]: unknown };
                    message: string;
                };
            };
            headers: { [name: string]: unknown };
        };
    };
}
getComments: {
    parameters: {
        cookie?: undefined;
        header?: undefined;
        path: { id_organization: string };
        query?: {
            id_account?: string;
            id_publication?: string;
            limit?: number;
            offset?: number;
            rating?: number[];
            search?: string;
            social_network?: (
                | "facebook"
                | "instagram"
                | "linkedin"
                | "twitter"
                | "youtube"
                | "google_business"
                | "bluesky"
                | "discord"
            )[];
            unread?: boolean;
        };
    };
    requestBody?: undefined;
    responses: {
        "200": {
            content: {
                "application/json": {
                    comments: {
                        _id: string;
                        author: {
                            external_id: string;
                            is_own: boolean;
                            name?: string;
                            profile_pic?: string;
                        };
                        collected_date: string;
                        creation_date: string;
                        deleted: boolean;
                        external_id: string;
                        hidden: boolean;
                        id_account: | string
                        | {
                            _id: string;
                            creation_date: string;
                            error_code: number;
                            followers_count?: number;
                            id_client: string;
                            id_organization: string;
                            image?: string;
                            name: string;
                            next_comments_update?: string;
                            next_stats_update?: string;
                            private_message_link?: string;
                            social_network: | "facebook"
                            | "instagram"
                            | "linkedin"
                            | "tiktok"
                            | "twitter"
                            | "whatsapp"
                            | "youtube"
                            | "google_business"
                            | "bluesky"
                            | "discord";
                            username?: string;
                        };
                        id_organization: string;
                        id_publication?: | string
                        | {
                            _id: string;
                            creation_date: string;
                            engagement_base?: "reach"
                            | "impressions"
                            | "followers";
                            external_identifier?: string;
                            files: {
                                _id: ...;
                                cover_image?: ...;
                                cover_offset?: ...;
                                creation_date: ...;
                                file_externals: ...;
                                file_format: ...;
                                file_properties: ...;
                                file_type: ...;
                                id_organization: ...;
                                is_temporal: ...;
                                name: ...;
                                public_path: ...;
                            }[];
                            id_account: | string
                            | {
                                _id: ...;
                                creation_date: ...;
                                error_code: ...;
                                followers_count?: ...;
                                id_client: ...;
                                id_organization: ...;
                                image?: ...;
                                name: ...;
                                next_comments_update?: ...;
                                next_stats_update?: ...;
                                private_message_link?: ...;
                                social_network: ...;
                                username?: ...;
                            };
                            id_integration?: string;
                            id_organization: string;
                            metrics?: {
                                clicks?: ...;
                                comments?: ...;
                                engagement?: ...;
                                followers?: ...;
                                followers_gained?: ...;
                                impressions?: ...;
                                likes?: ...;
                                profile_views?: ...;
                                reach?: ...;
                                saves?: ...;
                                shares?: ...;
                                video_views?: ...;
                            };
                            name?: string;
                            next_stats_update?: string;
                            publication_errors: { code: ...; data?: ...; message: ... }[];
                            publication_type:
                                | "profile"
                                | "page"
                                | "group"
                                | "reels"
                                | "stories"
                                | "message";
                            publish_date?: string;
                            retries: number;
                            social_network: | "facebook"
                            | "instagram"
                            | "linkedin"
                            | "tiktok"
                            | "twitter"
                            | "whatsapp"
                            | "youtube"
                            | "google_business"
                            | "bluesky"
                            | "discord";
                            state: "ready"
                            | "withErrors"
                            | "sended"
                            | "draft"
                            | "publishing";
                            statistics?: {
                                angers?: ...;
                                bookmarks?: ...;
                                clicks?: ...;
                                comments?: ...;
                                engagement?: ...;
                                follows?: ...;
                                hahas?: ...;
                                impressions?: ...;
                                likes?: ...;
                                loves?: ...;
                                negative_feedback?: ...;
                                page_likes?: ...;
                                playback_0_count?: ...;
                                playback_100_count?: ...;
                                playback_25_count?: ...;
                                playback_50_count?: ...;
                                playback_75_count?: ...;
                                profile_activity?: ...;
                                profile_visits?: ...;
                                quotes?: ...;
                                reach?: ...;
                                replys?: ...;
                                retwets?: ...;
                                saved?: ...;
                                share?: ...;
                                shareMentions?: ...;
                                shares?: ...;
                                sorrys?: ...;
                                url_link_clicks?: ...;
                                user_profile_clicks?: ...;
                                video_views?: ...;
                                views?: ...;
                                wows?: ...;
                            };
                            stats_updated_date?: string;
                            text?: string;
                            title?: string;
                            url?: string;
                        };
                        like_count?: number;
                        our_reply_external_id?: string;
                        parent_external_id?: string;
                        publication_external_id: string;
                        rating?: number;
                        read: boolean;
                        replied: boolean;
                        reply_count?: number;
                        social_network: | "facebook"
                        | "instagram"
                        | "linkedin"
                        | "twitter"
                        | "youtube"
                        | "google_business"
                        | "bluesky"
                        | "discord";
                        text: string;
                    }[];
                    total: number;
                };
            };
            headers: { [name: string]: unknown };
        };
        "400": {
            content: {
                "application/json": {
                    code: number;
                    data?: { [key: string]: unknown };
                    message: string;
                };
            };
            headers: { [name: string]: unknown };
        };
    };
}
getConnectLinks: {
    parameters: {
        cookie?: undefined;
        header?: undefined;
        path: { id_organization: string };
        query?: {
            redirect_uri?: string;
            social_network?: (
                | "facebook"
                | "instagram"
                | "linkedin"
                | "tiktok"
                | "twitter"
                | "whatsapp"
                | "youtube"
                | "google_business"
                | "bluesky"
                | "discord"
            )[];
        };
    };
    requestBody?: undefined;
    responses: {
        "200": {
            content: {
                "application/json": {
                    links: {
                        authorization: {
                            app_id?: string;
                            config_id?: string;
                            feature_type?: string;
                            graph_version?: string;
                            session_info_version?: string;
                            type: "redirect"
                            | "meta_embedded_signup";
                        };
                        link: string;
                        social_network: | "facebook"
                        | "instagram"
                        | "linkedin"
                        | "tiktok"
                        | "twitter"
                        | "whatsapp"
                        | "youtube"
                        | "google_business"
                        | "bluesky"
                        | "discord";
                    }[];
                };
            };
            headers: { [name: string]: unknown };
        };
        "400": {
            content: {
                "application/json": {
                    code: number;
                    data?: { [key: string]: unknown };
                    message: string;
                };
            };
            headers: { [name: string]: unknown };
        };
        "500": { content?: undefined; headers: { [name: string]: unknown } };
    };
}
getContact: {
    parameters: {
        cookie?: undefined;
        header?: undefined;
        path: { id_contact: string; id_organization: string };
        query?: undefined;
    };
    requestBody?: undefined;
    responses: {
        "200": {
            content: {
                "application/json": {
                    contact: {
                        _id: string;
                        creation_date: string;
                        creator_keycloak_identifier?: string;
                        extra_data?: {
                            address?: string;
                            boolean_property?: boolean;
                            boolean_property2?: boolean;
                            building?: string
                            | number;
                            city?: string;
                            coords?: number[];
                            country?: string;
                            country_code?: string;
                            door?: string | number;
                            floor?: string | number;
                            number?: string | number;
                            number_property?: number;
                            number_property2?: number;
                            place_id?: string;
                            state?: string;
                            string_property?: string;
                            string_property2?: string;
                            zip_code?: string | number;
                        };
                        id_organization: string;
                        last_contact_update: string;
                        name?: string;
                        profile_image?: string;
                        social_identifiers: {
                            _id: string;
                            external_identifier?: string;
                            last_send_date?: string;
                            social_network: | "facebook"
                            | "instagram"
                            | "linkedin"
                            | "tiktok"
                            | "twitter"
                            | "whatsapp"
                            | "youtube"
                            | "google_business"
                            | "bluesky"
                            | "discord"
                            | "email";
                        }[];
                    };
                };
            };
            headers: { [name: string]: unknown };
        };
        "400": {
            content: {
                "application/json": {
                    code: number;
                    data?: { [key: string]: unknown };
                    message: string;
                };
            };
            headers: { [name: string]: unknown };
        };
    };
}
getContacts: {
    parameters: {
        cookie?: undefined;
        header?: undefined;
        path: { id_organization: string };
        query?: {
            extra_data?: { key?: string; value?: unknown }[];
            limit?: number;
            offset?: number;
            search?: string;
            social_network?:
                | "facebook"
                | "instagram"
                | "linkedin"
                | "tiktok"
                | "twitter"
                | "whatsapp"
                | "youtube"
                | "google_business"
                | "bluesky"
                | "discord";
        };
    };
    requestBody?: undefined;
    responses: {
        "200": {
            content: {
                "application/json": {
                    contacts: {
                        _id: string;
                        creation_date: string;
                        creator_keycloak_identifier?: string;
                        extra_data?: {
                            address?: string;
                            boolean_property?: boolean;
                            boolean_property2?: boolean;
                            building?: string
                            | number;
                            city?: string;
                            coords?: (...)[];
                            country?: string;
                            country_code?: string;
                            door?: string | number;
                            floor?: string | number;
                            number?: string | number;
                            number_property?: number;
                            number_property2?: number;
                            place_id?: string;
                            state?: string;
                            string_property?: string;
                            string_property2?: string;
                            zip_code?: string | number;
                        };
                        id_organization: string;
                        last_contact_update: string;
                        name?: string;
                        profile_image?: string;
                        social_identifiers: {
                            _id: string;
                            external_identifier?: string;
                            last_send_date?: string;
                            social_network: | "facebook"
                            | "instagram"
                            | "linkedin"
                            | "tiktok"
                            | "twitter"
                            | "whatsapp"
                            | "youtube"
                            | "google_business"
                            | "bluesky"
                            | "discord"
                            | "email";
                        }[];
                    }[];
                    total: number;
                };
            };
            headers: { [name: string]: unknown };
        };
        "400": {
            content: {
                "application/json": {
                    code: number;
                    data?: { [key: string]: unknown };
                    message: string;
                };
            };
            headers: { [name: string]: unknown };
        };
    };
}
getConversations: {
    parameters: {
        cookie?: undefined;
        header?: undefined;
        path: { id_account: string; id_organization: string };
        query?: { limit?: number; offset?: number };
    };
    requestBody?: undefined;
    responses: {
        "200": {
            content: {
                "application/json": {
                    conversations: {
                        contact: {
                            _id: string;
                            creation_date: string;
                            creator_keycloak_identifier?: string;
                            extra_data?: {
                                address?: (...)
                                | (...);
                                boolean_property?: (...) | (...) | (...);
                                boolean_property2?: (...) | (...) | (...);
                                building?: (...) | (...) | (...);
                                city?: (...) | (...);
                                coords?: (...) | (...);
                                country?: (...) | (...);
                                country_code?: (...) | (...);
                                door?: (...) | (...) | (...);
                                floor?: (...) | (...) | (...);
                                number?: (...) | (...) | (...);
                                number_property?: (...) | (...);
                                number_property2?: (...) | (...);
                                place_id?: (...) | (...);
                                state?: (...) | (...);
                                string_property?: (...) | (...);
                                string_property2?: (...) | (...);
                                zip_code?: (...) | (...) | (...);
                            };
                            id_organization: string;
                            last_contact_update: string;
                            name?: string;
                            profile_image?: string;
                            social_identifiers: {
                                _id: string;
                                external_identifier?: (...)
                                | (...);
                                last_send_date?: (...) | (...);
                                social_network:
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...);
                            }[];
                        };
                        date: string;
                        unread_messages: number;
                    }[];
                    total: number;
                };
            };
            headers: { [name: string]: unknown };
        };
        "400": {
            content: {
                "application/json": {
                    code: number;
                    data?: { [key: string]: unknown };
                    message: string;
                };
            };
            headers: { [name: string]: unknown };
        };
    };
}
getDashboard: {
    parameters: {
        cookie?: undefined;
        header?: undefined;
        path: { id_organization: string };
        query?: { from_date?: string; to_date?: string };
    };
    requestBody?: undefined;
    responses: {
        "200": {
            content: {
                "application/json": {
                    account_metrics?: {
                        by_day: {
                            group: null
                            | string;
                            name:
                                | "reach"
                                | "impressions"
                                | "followers"
                                | "comments"
                                | "engagement"
                                | "likes"
                                | "shares"
                                | "saves"
                                | "clicks"
                                | "video_views"
                                | "profile_views"
                                | "followers_gained";
                            value: number;
                        }[];
                        by_network: {
                            group: null
                            | string;
                            name:
                                | "reach"
                                | "impressions"
                                | "followers"
                                | "comments"
                                | "engagement"
                                | "likes"
                                | "shares"
                                | "saves"
                                | "clicks"
                                | "video_views"
                                | "profile_views"
                                | "followers_gained";
                            value: number;
                        }[];
                        previous_total: {
                            clicks?: number;
                            comments?: number;
                            engagement?: number;
                            followers?: number;
                            followers_gained?: number;
                            impressions?: number;
                            likes?: number;
                            profile_views?: number;
                            reach?: number;
                            saves?: number;
                            shares?: number;
                            video_views?: number;
                        };
                        total: {
                            clicks?: number;
                            comments?: number;
                            engagement?: number;
                            followers?: number;
                            followers_gained?: number;
                            impressions?: number;
                            likes?: number;
                            profile_views?: number;
                            reach?: number;
                            saves?: number;
                            shares?: number;
                            video_views?: number;
                        };
                    };
                    ai_plans?: {
                        by_state: { state?: string; total?: number }[];
                        credits_spent: number;
                        generated_publications: number;
                        last_plan?: {
                            _id: string;
                            creation_date: string;
                            credits_spent?: number;
                            error?: { code: ...; data?: ...; message: ... };
                            generation_end_date?: string;
                            prompt?: string;
                            publications?: (...)[];
                            state:
                                | "pending"
                                | "generating"
                                | "generated"
                                | "validated"
                                | "failed"
                                | "cancelled";
                        };
                        pending_validation: number;
                        total: number;
                    };
                    available_blocks: {
                        account_metrics: boolean;
                        ai_plans: boolean;
                        health: boolean;
                        messages: boolean;
                        plan_use: boolean;
                        publication_metrics: boolean;
                        publications: boolean;
                    };
                    health?: {
                        accounts_with_errors?: {
                            _id: string;
                            error_code: number;
                            image?: (...)
                            | (...);
                            name: string;
                            social_network:
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...);
                            username?: (...) | (...);
                        }[];
                        publications_with_errors?: {
                            _id: string;
                            creation_date?: (...)
                            | (...);
                            name?: (...) | (...);
                            publication_errors?: (...) | (...);
                            publish_date?: (...) | (...);
                            social_network:
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...);
                            text?: (...) | (...);
                        }[];
                        total_drafts?: number;
                        upcoming_publications?: {
                            _id: string;
                            creation_date?: (...)
                            | (...);
                            name?: (...) | (...);
                            publication_errors?: (...) | (...);
                            publish_date?: (...) | (...);
                            social_network:
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...);
                            text?: (...) | (...);
                        }[];
                    };
                    messages?: { unread: number };
                    plan_use?: {
                        actual_asigned: {
                            accounts: number;
                            ai_credits?: number;
                            artificial_inteligence?: boolean;
                            integrations: number;
                            publications: number;
                            space: number;
                            stats?: boolean;
                            twitter_credits?: number;
                            users: number;
                            whatsapp?: boolean;
                        };
                        actual_use: {
                            accounts: number;
                            ai_credits?: number;
                            artificial_inteligence?: boolean;
                            integrations: number;
                            publications: number;
                            space: number;
                            stats?: boolean;
                            twitter_credits?: number;
                            users: number;
                            whatsapp?: boolean;
                        };
                        limits: {
                            accounts: number;
                            ai_credits?: number;
                            artificial_inteligence?: boolean;
                            integrations: number;
                            publications: number;
                            space: number;
                            stats?: boolean;
                            twitter_credits?: number;
                            users: number;
                            whatsapp?: boolean;
                        };
                    };
                    publication_metrics?: {
                        by_network: {
                            metrics?: {
                                clicks?: ...;
                                comments?: ...;
                                engagement?: ...;
                                followers?: ...;
                                followers_gained?: ...;
                                impressions?: ...;
                                likes?: ...;
                                profile_views?: ...;
                                reach?: ...;
                                saves?: ...;
                                shares?: ...;
                                video_views?: ...;
                            };
                            publications?: number;
                            social_network?: | "facebook"
                            | "instagram"
                            | "linkedin"
                            | "tiktok"
                            | "twitter"
                            | "whatsapp"
                            | "youtube"
                            | "google_business"
                            | "bluesky"
                            | "discord";
                        }[];
                        previous_total: {
                            clicks?: number;
                            comments?: number;
                            engagement?: number;
                            followers?: number;
                            followers_gained?: number;
                            impressions?: number;
                            likes?: number;
                            profile_views?: number;
                            reach?: number;
                            saves?: number;
                            shares?: number;
                            video_views?: number;
                        };
                        top: {
                            collected_date?: string;
                            engagement_base?: "reach"
                            | "impressions"
                            | "followers";
                            id_publication: string;
                            metrics: {
                                clicks?: (...) | (...);
                                comments?: (...) | (...);
                                engagement?: (...) | (...);
                                followers?: (...) | (...);
                                followers_gained?: (...) | (...);
                                impressions?: (...) | (...);
                                likes?: (...) | (...);
                                profile_views?: (...) | (...);
                                reach?: (...) | (...);
                                saves?: (...) | (...);
                                shares?: (...) | (...);
                                video_views?: (...) | (...);
                            };
                            publication: {
                                external_identifier?: (...)
                                | (...);
                                files?: (...) | (...);
                                publication_type?: (...) | (...);
                                text?: (...) | (...);
                                title?: (...) | (...);
                                url?: (...) | (...);
                            };
                            publish_date?: string;
                            social_network: | "facebook"
                            | "instagram"
                            | "linkedin"
                            | "tiktok"
                            | "twitter"
                            | "whatsapp"
                            | "youtube"
                            | "google_business"
                            | "bluesky"
                            | "discord";
                        }[];
                        total: {
                            clicks?: number;
                            comments?: number;
                            engagement?: number;
                            followers?: number;
                            followers_gained?: number;
                            impressions?: number;
                            likes?: number;
                            profile_views?: number;
                            reach?: number;
                            saves?: number;
                            shares?: number;
                            video_views?: number;
                        };
                    };
                    publications?: {
                        by_day: {
                            day?: (...)
                            | (...);
                            state?: (...) | (...);
                            total?: (...) | (...);
                        }[];
                        by_network: {
                            social_network?: | (...)
                            | (...)
                            | (...)
                            | (...)
                            | (...)
                            | (...)
                            | (...)
                            | (...)
                            | (...)
                            | (...)
                            | (...);
                            total?: (...) | (...);
                        }[];
                        by_state: { state?: (...)
                        | (...); total?: (...) | (...) }[];
                        published_by_day: {
                            day?: (...) | (...);
                            social_network?:
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...);
                            total?: (...) | (...);
                        }[];
                        total: number;
                    } & { previous_total?: number };
                    range: {
                        from_date: string;
                        previous_from_date: string;
                        previous_to_date: string;
                        to_date: string;
                    };
                };
            };
            headers: { [name: string]: unknown };
        };
        "400": {
            content: {
                "application/json": {
                    code: number;
                    data?: { [key: string]: unknown };
                    message: string;
                };
            };
            headers: { [name: string]: unknown };
        };
    };
}
getIntegration: {
    parameters: {
        cookie?: undefined;
        header?: undefined;
        path: { id_integration: string; id_organization: string };
        query?: undefined;
    };
    requestBody?: undefined;
    responses: {
        "200": {
            content: {
                "application/json": {
                    integration: {
                        _id: string;
                        config: {
                            auto_publish?: boolean;
                            id_accounts?: string[];
                            import_image?: boolean;
                            last_checked?: string;
                            publication_type?: string;
                            seen_guids?: string[];
                            template?: string;
                            url?: string;
                        };
                        connected: boolean;
                        creation_date: string;
                        enabled: boolean;
                        error_code?: null
                        | number;
                        external_identifier?: string;
                        id_client: string;
                        id_organization: string;
                        last_used_date?: string;
                        name: string;
                        provider: "google_drive" | "rss";
                    };
                };
            };
            headers: { [name: string]: unknown };
        };
        "400": {
            content: {
                "application/json": {
                    code: number;
                    data?: { [key: string]: unknown };
                    message: string;
                };
            };
            headers: { [name: string]: unknown };
        };
    };
}
getIntegrationConnectLink: {
    parameters: {
        cookie?: undefined;
        header?: undefined;
        path: { id_organization: string; provider: "google_drive" | "rss" };
        query?: { redirect_uri?: string };
    };
    requestBody?: undefined;
    responses: {
        "200": {
            content: { "application/json": { url: string } };
            headers: { [name: string]: unknown };
        };
        "400": {
            content: {
                "application/json": {
                    code: number;
                    data?: { [key: string]: unknown };
                    message: string;
                };
            };
            headers: { [name: string]: unknown };
        };
    };
}
getIntegrationPickerConfig: {
    parameters: {
        cookie?: undefined;
        header?: undefined;
        path: { id_integration: string; id_organization: string };
        query?: undefined;
    };
    requestBody?: undefined;
    responses: {
        "200": {
            content: {
                "application/json": {
                    access_token: string;
                    app_id: string;
                    developer_key: string;
                    expires_in: string;
                };
            };
            headers: { [name: string]: unknown };
        };
        "400": {
            content: {
                "application/json": {
                    code: number;
                    data?: { [key: string]: unknown };
                    message: string;
                };
            };
            headers: { [name: string]: unknown };
        };
    };
}
getIntegrationProviders: {
    parameters: {
        cookie?: undefined;
        header?: undefined;
        path?: undefined;
        query?: undefined;
    };
    requestBody?: undefined;
    responses: {
        "200": {
            content: {
                "application/json": {
                    providers: {
                        accepted_formats: string[];
                        config_fields: {
                            default?: unknown;
                            name: string;
                            options?: (...)[];
                            required?: boolean;
                            type: "boolean" | "text" | "url" | "accounts" | "textarea" | "select";
                        }[];
                        content_feed: boolean;
                        file_import: boolean;
                        provider: "google_drive"
                        | "rss";
                        requires_oauth: boolean;
                    }[];
                };
            };
            headers: { [name: string]: unknown };
        };
        "400": {
            content: {
                "application/json": {
                    code: number;
                    data?: { [key: string]: unknown };
                    message: string;
                };
            };
            headers: { [name: string]: unknown };
        };
    };
}
getIntegrations: {
    parameters: {
        cookie?: undefined;
        header?: undefined;
        path: { id_organization: string };
        query?: {
            limit?: number;
            offset?: number;
            provider?: "google_drive" | "rss";
        };
    };
    requestBody?: undefined;
    responses: {
        "200": {
            content: {
                "application/json": {
                    integrations: {
                        _id: string;
                        config: {
                            auto_publish?: boolean;
                            id_accounts?: string[];
                            import_image?: boolean;
                            last_checked?: string;
                            publication_type?: string;
                            seen_guids?: string[];
                            template?: string;
                            url?: string;
                        };
                        connected: boolean;
                        creation_date: string;
                        enabled: boolean;
                        error_code?: null
                        | number;
                        external_identifier?: string;
                        id_client: string;
                        id_organization: string;
                        last_used_date?: string;
                        name: string;
                        provider: "google_drive" | "rss";
                    }[];
                    total: number;
                };
            };
            headers: { [name: string]: unknown };
        };
        "400": {
            content: {
                "application/json": {
                    code: number;
                    data?: { [key: string]: unknown };
                    message: string;
                };
            };
            headers: { [name: string]: unknown };
        };
    };
}
getMessages: {
    parameters: {
        cookie?: undefined;
        header?: undefined;
        path: { id_account: string; id_contact: string; id_organization: string };
        query?: { limit?: number; offset?: number };
    };
    requestBody?: undefined;
    responses: {
        "200": {
            content: {
                "application/json": {
                    messages: {
                        _id: string;
                        contact_id?: | string
                        | {
                            _id: string;
                            creation_date: string;
                            creator_keycloak_identifier?: string;
                            extra_data?: {
                                address?: ...;
                                boolean_property?: ...;
                                boolean_property2?: ...;
                                building?: ...;
                                city?: ...;
                                coords?: ...;
                                country?: ...;
                                country_code?: ...;
                                door?: ...;
                                floor?: ...;
                                number?: ...;
                                number_property?: ...;
                                number_property2?: ...;
                                place_id?: ...;
                                state?: ...;
                                string_property?: ...;
                                string_property2?: ...;
                                zip_code?: ...;
                            };
                            id_organization: string;
                            last_contact_update: string;
                            name?: string;
                            profile_image?: string;
                            social_identifiers: {
                                _id: ...;
                                external_identifier?: ...;
                                last_send_date?: ...;
                                social_network: ...;
                            }[];
                        };
                        creation_date: string;
                        element_external_id?: string;
                        from_contact_id?: | string
                        | {
                            _id: string;
                            creation_date: string;
                            creator_keycloak_identifier?: string;
                            extra_data?: {
                                address?: ...;
                                boolean_property?: ...;
                                boolean_property2?: ...;
                                building?: ...;
                                city?: ...;
                                coords?: ...;
                                country?: ...;
                                country_code?: ...;
                                door?: ...;
                                floor?: ...;
                                number?: ...;
                                number_property?: ...;
                                number_property2?: ...;
                                place_id?: ...;
                                state?: ...;
                                string_property?: ...;
                                string_property2?: ...;
                                zip_code?: ...;
                            };
                            id_organization: string;
                            last_contact_update: string;
                            name?: string;
                            profile_image?: string;
                            social_identifiers: {
                                _id: ...;
                                external_identifier?: ...;
                                last_send_date?: ...;
                                social_network: ...;
                            }[];
                        };
                        id_account: string;
                        in_response_external_id?: string;
                        in_response_to?: string;
                        message_errors: {
                            code: number;
                            data?: { [key: ...]: ... };
                            message: string;
                        }[];
                        message_options: {
                            files: (
                                | string
                                | {
                                    _id: ...;
                                    cover_image?: ...;
                                    cover_offset?: ...;
                                    creation_date: ...;
                                    file_externals: ...;
                                    file_format: ...;
                                    file_properties: ...;
                                    file_type: ...;
                                    id_organization: ...;
                                    is_temporal: ...;
                                    name: ...;
                                    public_path: ...;
                                }
                            )[];
                            files_urls: { mime_type?: (...)
                            | (...); url?: (...) | (...) }[];
                            metaElements?: { [key: ...]: ... }[];
                            metaQuickReplies?: { [key: ...]: ... }[];
                            payload?: string;
                            template_language?: string;
                            template_name?: string;
                            whatsappInteractive?: { [key: string]: unknown };
                        };
                        message_type: | "simple_message"
                        | "file_message"
                        | "comment_message"
                        | "publication_message"
                        | "quick_reply_message"
                        | "button_message"
                        | "elements_message"
                        | "postback_message"
                        | "template_message"
                        | "interactive_message";
                        read: boolean;
                        text?: string;
                    }[];
                    total: number;
                };
            };
            headers: { [name: string]: unknown };
        };
        "400": {
            content: {
                "application/json": {
                    code: number;
                    data?: { [key: string]: unknown };
                    message: string;
                };
            };
            headers: { [name: string]: unknown };
        };
    };
}
getMessageTemplates: {
    parameters: {
        cookie?: undefined;
        header?: undefined;
        path: { id_account: string; id_organization: string };
        query?: { limit?: number; offset?: number };
    };
    requestBody?: undefined;
    responses: {
        "200": {
            content: {
                "application/json": {
                    templates: { [key: string]: unknown }[];
                    total: number;
                };
            };
            headers: { [name: string]: unknown };
        };
        "400": {
            content: {
                "application/json": {
                    code: number;
                    data?: { [key: string]: unknown };
                    message: string;
                };
            };
            headers: { [name: string]: unknown };
        };
    };
}
getMetricList: {
    parameters: {
        cookie?: undefined;
        header?: undefined;
        path: { id_account: string; id_organization: string };
        query?: undefined;
    };
    requestBody?: undefined;
    responses: {
        "200": {
            content: {
                "application/json": (
                    | "reach"
                    | "impressions"
                    | "comments"
                    | "likes"
                    | "shares"
                    | "saves"
                    | "profile_views"
                    | "page_impressions"
                    | "page_total_actions"
                    | "page_call_phone_clicks_logged_in_unique"
                    | "page_get_directions_clicks_logged_in_unique"
                    | "page_website_clicks_logged_in_unique"
                    | "page_post_engagements"
                    | "page_consumptions_unique"
                    | "page_negative_feedback"
                    | "page_negative_feedback_unique"
                    | "page_fans_online_per_day"
                    | "page_impressions_unique"
                    | "page_impressions_paid"
                    | "page_impressions_paid_unique"
                    | "page_impressions_organic_v2"
                    | "page_impressions_organic_unique_v2"
                    | "page_impressions_viral"
                    | "page_impressions_viral_unique"
                    | "page_impressions_nonviral"
                    | "page_impressions_nonviral_unique"
                    | "page_posts_impressions"
                    | "page_posts_impressions_unique"
                    | "page_posts_impressions_paid"
                    | "page_posts_impressions_paid_unique"
                    | "page_posts_impressions_organic"
                    | "page_posts_impressions_organic_unique"
                    | "page_posts_served_impressions_organic_unique"
                    | "page_posts_impressions_viral"
                    | "page_posts_impressions_viral_unique"
                    | "page_posts_impressions_nonviral"
                    | "page_posts_impressions_nonviral_unique"
                    | "total_interactions"
                    | "accounts_engaged"
                    | "replies"
                    | "follows_and_unfollows"
                    | "profile_links_taps"
                    | "website_clicks"
                    | "paidFollowers"
                    | "organicFollowerGain"
                    | "careersPageBannerPromoClicks"
                    | "careersPagePromoLinksClicks"
                    | "careersPageEmployeesClicks"
                    | "careersPageJobsClicks"
                    | "careersPageViewsUnique"
                    | "careersPageViews"
                    | "overviewPageViewsUnique"
                    | "overviewPageViews"
                    | "allPageViews"
                    | "follows"
                    | "share"
                    | "views"
                )[];
            };
            headers: { [name: string]: unknown };
        };
        "400": {
            content: {
                "application/json": {
                    code: number;
                    data?: { [key: string]: unknown };
                    message: string;
                };
            };
            headers: { [name: string]: unknown };
        };
        "500": { content?: undefined; headers: { [name: string]: unknown } };
    };
}
getOrganization: {
    parameters: {
        cookie?: undefined;
        header?: undefined;
        path: { id_organization: string };
        query?: { getUse?: boolean };
    };
    requestBody?: undefined;
    responses: {
        "200": {
            content: {
                "application/json": {
                    organization: {
                        _id: string;
                        actual_asigned?: {
                            accounts: number;
                            ai_credits?: number;
                            artificial_inteligence?: boolean;
                            integrations: number;
                            publications: number;
                            space: number;
                            stats?: boolean;
                            twitter_credits?: number;
                            users: number;
                            whatsapp?: boolean;
                        };
                        actual_plan?: {
                            accounts: number;
                            ai_credits?: number;
                            artificial_inteligence?: boolean;
                            integrations: number;
                            publications: number;
                            space: number;
                            stats?: boolean;
                            twitter_credits?: number;
                            users: number;
                            whatsapp?: boolean;
                        };
                        actual_use?: {
                            accounts: number;
                            ai_credits?: number;
                            artificial_inteligence?: boolean;
                            integrations: number;
                            publications: number;
                            space: number;
                            stats?: boolean;
                            twitter_credits?: number;
                            users: number;
                            whatsapp?: boolean;
                        };
                        ai_context?: {
                            audience?: string;
                            avoid?: string;
                            blog_url?: string;
                            brand_name?: string;
                            default_tone?: string;
                            description?: string;
                            keywords?: string[];
                            notes?: string;
                            products?: string;
                            sector?: string;
                            shop_url?: string;
                            social_urls?: string[];
                            value_proposition?: string;
                            website?: string;
                        };
                        creation_date: string;
                        id_client: string;
                        name: string;
                        parent_organization?: string;
                        social_credentials?: {
                            discord?: {
                                application_name?: (...)
                                | (...);
                                client_id?: (...) | (...);
                                has_bot_token?: (...) | (...) | (...);
                                has_client_secret?: (...) | (...) | (...);
                                verified_date?: (...) | (...);
                            };
                        };
                        stats_settings?: { auto_refresh_twitter: boolean };
                    };
                };
            };
            headers: { [name: string]: unknown };
        };
        "400": {
            content: {
                "application/json": {
                    code: number;
                    data?: { [key: string]: unknown };
                    message: string;
                };
            };
            headers: { [name: string]: unknown };
        };
        "500": { content?: undefined; headers: { [name: string]: unknown } };
    };
}
getOrganizationConversationsTotal: {
    parameters: {
        cookie?: undefined;
        header?: undefined;
        path: { id_organization: string };
        query?: {
            from_date?: string;
            group_by?: "day" | "month" | "year";
            to_date?: string;
        };
    };
    requestBody?: undefined;
    responses: {
        "200": {
            content: {
                "application/json": | { total: number }
                | {
                    group: "day" | "month" | "year";
                    stats: { groupValue: number; totalConversations: number }[];
                };
            };
            headers: { [name: string]: unknown };
        };
        "400": {
            content: {
                "application/json": {
                    code: number;
                    data?: { [key: string]: unknown };
                    message: string;
                };
            };
            headers: { [name: string]: unknown };
        };
    };
}
getOrganizationLimits: {
    parameters: {
        cookie?: undefined;
        header?: undefined;
        path: { id_organization: string };
        query?: undefined;
    };
    requestBody?: undefined;
    responses: {
        "200": {
            content: {
                "application/json": {
                    accounts: number;
                    ai_credits?: number;
                    artificial_inteligence?: boolean;
                    integrations: number;
                    publications: number;
                    space: number;
                    stats?: boolean;
                    twitter_credits?: number;
                    users: number;
                    whatsapp?: boolean;
                };
            };
            headers: { [name: string]: unknown };
        };
        "400": {
            content: {
                "application/json": {
                    code: number;
                    data?: { [key: string]: unknown };
                    message: string;
                };
            };
            headers: { [name: string]: unknown };
        };
        "500": { content?: undefined; headers: { [name: string]: unknown } };
    };
}
getOrganizationMetrics: {
    parameters: {
        cookie?: undefined;
        header?: undefined;
        path: { id_organization: string };
        query?: {
            from_date?: string;
            group_by?: "account" | "total" | "day" | "network";
            names?: (
                | "reach"
                | "impressions"
                | "followers"
                | "comments"
                | "engagement"
                | "likes"
                | "shares"
                | "saves"
                | "clicks"
                | "video_views"
                | "profile_views"
                | "followers_gained"
            )[];
            to_date?: string;
        };
    };
    requestBody?: undefined;
    responses: {
        "200": {
            content: {
                "application/json": {
                    group_by: "account"
                    | "total"
                    | "day"
                    | "network";
                    range: {
                        from_date: string;
                        previous_from_date: string;
                        previous_to_date: string;
                        to_date: string;
                    };
                    stats: {
                        group: null
                        | string;
                        name:
                            | "reach"
                            | "impressions"
                            | "followers"
                            | "comments"
                            | "engagement"
                            | "likes"
                            | "shares"
                            | "saves"
                            | "clicks"
                            | "video_views"
                            | "profile_views"
                            | "followers_gained";
                        value: number;
                    }[];
                };
            };
            headers: { [name: string]: unknown };
        };
        "400": {
            content: {
                "application/json": {
                    code: number;
                    data?: { [key: string]: unknown };
                    message: string;
                };
            };
            headers: { [name: string]: unknown };
        };
    };
}
getOrganizationPermissions: {
    parameters: {
        cookie?: undefined;
        header?: undefined;
        path?: undefined;
        query?: undefined;
    };
    requestBody?: undefined;
    responses: {
        "200": {
            content: {
                "application/json": {
                    permissions?: (
                        | "organization:create"
                        | "organization:update"
                        | "organization:read"
                        | "organization:delete"
                        | "organization_roles:create"
                        | "organization_roles:update"
                        | "organization_roles:read"
                        | "organization_roles:delete"
                        | "organization_users_roles:read"
                        | "organization_users_roles:create"
                        | "organization_users_roles:delete"
                        | "accounts:create"
                        | "accounts:update"
                        | "accounts:read"
                        | "accounts:delete"
                        | "products:create"
                        | "products:update"
                        | "products:read"
                        | "products:delete"
                        | "files:create"
                        | "files:update"
                        | "files:read"
                        | "files:delete"
                        | "publications:create"
                        | "publications:update"
                        | "publications:read"
                        | "publications:delete"
                        | "account_stats:read"
                        | "publication_stats:read"
                        | "messages:create"
                        | "messages:read"
                        | "messages:delete"
                        | "contacts:create"
                        | "contacts:read"
                        | "contacts:update"
                        | "contacts:delete"
                        | "ai_plans:create"
                        | "ai_plans:read"
                        | "ai_plans:update"
                        | "ai_plans:delete"
                    )[];
                };
            };
            headers: { [name: string]: unknown };
        };
        "400": {
            content: {
                "application/json": {
                    code: number;
                    data?: { [key: string]: unknown };
                    message: string;
                };
            };
            headers: { [name: string]: unknown };
        };
        "401": {
            content: {
                "application/json": {
                    code: number;
                    data?: { [key: string]: unknown };
                    message: string;
                };
            };
            headers: { [name: string]: unknown };
        };
        "500": {
            content: {
                "application/json": {
                    code: number;
                    data?: { [key: string]: unknown };
                    message: string;
                };
            };
            headers: { [name: string]: unknown };
        };
    };
}
getOrganizationRoles: {
    parameters: {
        cookie?: undefined;
        header?: undefined;
        path: { id_organization: string };
        query?: { limit?: number; offset?: number };
    };
    requestBody?: undefined;
    responses: {
        "200": {
            content: {
                "application/json": {
                    roles?: {
                        _id?: string;
                        creation_date?: string;
                        default?: boolean;
                        id_organization?: string;
                        name?: string;
                        permissions?: (
                            | (...)
                            | (...)
                            | (...)
                            | (...)
                            | (...)
                            | (...)
                            | (...)
                            | (...)
                            | (...)
                            | (...)
                            | (...)
                            | (...)
                            | (...)
                            | (...)
                            | (...)
                            | (...)
                            | (...)
                            | (...)
                            | (...)
                            | (...)
                            | (...)
                            | (...)
                            | (...)
                            | (...)
                            | (...)
                            | (...)
                            | (...)
                            | (...)
                            | (...)
                            | (...)
                            | (...)
                            | (...)
                            | (...)
                            | (...)
                            | (...)
                            | (...)
                            | (...)
                            | (...)
                            | (...)
                            | (...)
                        )[];
                        total_users?: number;
                    }[];
                    total?: number;
                };
            };
            headers: { [name: string]: unknown };
        };
        "400": {
            content: {
                "application/json": {
                    code: number;
                    data?: { [key: string]: unknown };
                    message: string;
                };
            };
            headers: { [name: string]: unknown };
        };
        "401": {
            content: {
                "application/json": {
                    code: number;
                    data?: { [key: string]: unknown };
                    message: string;
                };
            };
            headers: { [name: string]: unknown };
        };
        "500": {
            content: {
                "application/json": {
                    code: number;
                    data?: { [key: string]: unknown };
                    message: string;
                };
            };
            headers: { [name: string]: unknown };
        };
    };
}
getOrganizationUse: {
    parameters: {
        cookie?: undefined;
        header?: undefined;
        path: { id_organization: string };
        query?: undefined;
    };
    requestBody?: undefined;
    responses: {
        "200": {
            content: {
                "application/json": {
                    actual_asigned: {
                        accounts: number;
                        ai_credits?: number;
                        artificial_inteligence?: boolean;
                        integrations: number;
                        publications: number;
                        space: number;
                        stats?: boolean;
                        twitter_credits?: number;
                        users: number;
                        whatsapp?: boolean;
                    };
                    actual_use: {
                        accounts: number;
                        ai_credits?: number;
                        artificial_inteligence?: boolean;
                        integrations: number;
                        publications: number;
                        space: number;
                        stats?: boolean;
                        twitter_credits?: number;
                        users: number;
                        whatsapp?: boolean;
                    };
                    limits: {
                        accounts: number;
                        ai_credits?: number;
                        artificial_inteligence?: boolean;
                        integrations: number;
                        publications: number;
                        space: number;
                        stats?: boolean;
                        twitter_credits?: number;
                        users: number;
                        whatsapp?: boolean;
                    };
                };
            };
            headers: { [name: string]: unknown };
        };
        "400": {
            content: {
                "application/json": {
                    code: number;
                    data?: { [key: string]: unknown };
                    message: string;
                };
            };
            headers: { [name: string]: unknown };
        };
    };
}
getPersistentMenu: {
    parameters: {
        cookie?: undefined;
        header?: undefined;
        path: { id_account: string; id_organization: string };
        query?: undefined;
    };
    requestBody?: undefined;
    responses: {
        "200": {
            content: {
                "application/json": {
                    persistent_menu?: {
                        call_to_actions?: { [key: ...]: ... }[];
                        composer_input_disabled?: boolean;
                        locale?: string;
                    }[];
                };
            };
            headers: { [name: string]: unknown };
        };
        "400": {
            content: {
                "application/json": {
                    code: number;
                    data?: { [key: string]: unknown };
                    message: string;
                };
            };
            headers: { [name: string]: unknown };
        };
        "500": { content?: undefined; headers: { [name: string]: unknown } };
    };
}
getProductCatalogs: {
    parameters: {
        cookie?: undefined;
        header?: undefined;
        path: { id_account: string; id_organization: string };
        query?: { limit?: number; offset?: number };
    };
    requestBody?: undefined;
    responses: {
        "200": {
            content: {
                "application/json": {
                    items: (
                        {
                            default_image_url?: string;
                            feed_count?: number;
                            id?: string;
                            is_catalog_segment?: boolean;
                            is_local_catalog?: boolean;
                            name?: string;
                            product_count?: number;
                        } & { [key: string]: unknown }
                    )[];
                    total: number;
                };
            };
            headers: { [name: string]: unknown };
        };
        "400": {
            content: {
                "application/json": {
                    code: number;
                    data?: { [key: string]: unknown };
                    message: string;
                };
            };
            headers: { [name: string]: unknown };
        };
    };
}
getProducts: {
    parameters: {
        cookie?: undefined;
        header?: undefined;
        path: { id_account: string; id_organization: string };
        query?: {
            limit?: number;
            offset?: number;
            product_catalog_id?: string;
            product_id?: string;
        };
    };
    requestBody?: undefined;
    responses: {
        "200": {
            content: {
                "application/json": {
                    items: (
                        {
                            additional_image_urls?: string[];
                            availability?: | "pending"
                            | "in stock"
                            | "out of stock"
                            | "preorder"
                            | "available for order"
                            | "discontinued"
                            | "mark_as_sold";
                            brand?: string;
                            category?: string;
                            color?: string;
                            condition?: | "new"
                            | "refurbished"
                            | "used"
                            | "used_like_new"
                            | "used_good"
                            | "used_fair"
                            | "cpo"
                            | "open_box_new";
                            currency: string;
                            description?: string;
                            id?: string;
                            image_url: string;
                            name: string;
                            price: number;
                            retailer_id: string;
                            url?: string;
                        } & { [key: string]: unknown }
                    )[];
                    total: number;
                };
            };
            headers: { [name: string]: unknown };
        };
        "400": {
            content: {
                "application/json": {
                    code: number;
                    data?: { [key: string]: unknown };
                    message: string;
                };
            };
            headers: { [name: string]: unknown };
        };
    };
}
getPublication: {
    parameters: {
        cookie?: undefined;
        header?: undefined;
        path: { id_organization: string; id_publication: string };
        query?: undefined;
    };
    requestBody?: undefined;
    responses: {
        "200": {
            content: {
                "application/json": {
                    publication: {
                        _id: string;
                        creation_date: string;
                        engagement_base?: "reach"
                        | "impressions"
                        | "followers";
                        external_identifier?: string;
                        files: {
                            _id: string;
                            cover_image?: { _id: string; cover_image?: ...; cover_offset?: number; creation_date: string; file_externals: { external_identifier: string; external_url: string; social_network: "facebook" | "instagram" | ... 7 more ... | "discord"; }[]; ... 6 more ...; public_path: string; };
                            cover_offset?: number;
                            creation_date: string;
                            file_externals: {
                                external_identifier: string;
                                external_url: string;
                                social_network:
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...);
                            }[];
                            file_format: "mp4"
                            | "jpeg"
                            | "gif"
                            | "png"
                            | "jpg";
                            file_properties: {
                                allowed_social_networks: string[];
                                aspect_ratio: { text: string; value: number };
                                duration: number;
                                height: number;
                                size_in_bytes: number;
                                width: number;
                            };
                            file_type: "video"
                            | "image";
                            id_organization: string;
                            is_temporal: boolean;
                            name: string;
                            public_path: string;
                        }[];
                        id_account: | string
                        | {
                            _id: string;
                            creation_date: string;
                            error_code: number;
                            followers_count?: number;
                            id_client: string;
                            id_organization: string;
                            image?: string;
                            name: string;
                            next_comments_update?: string;
                            next_stats_update?: string;
                            private_message_link?: string;
                            social_network: | "facebook"
                            | "instagram"
                            | "linkedin"
                            | "tiktok"
                            | "twitter"
                            | "whatsapp"
                            | "youtube"
                            | "google_business"
                            | "bluesky"
                            | "discord";
                            username?: string;
                        };
                        id_integration?: string;
                        id_organization: string;
                        metrics?: {
                            clicks?: number;
                            comments?: number;
                            engagement?: number;
                            followers?: number;
                            followers_gained?: number;
                            impressions?: number;
                            likes?: number;
                            profile_views?: number;
                            reach?: number;
                            saves?: number;
                            shares?: number;
                            video_views?: number;
                        };
                        name?: string;
                        next_stats_update?: string;
                        publication_errors: {
                            code: number;
                            data?: { [key: string]: unknown };
                            message: string;
                        }[];
                        publication_type: | "profile"
                        | "page"
                        | "group"
                        | "reels"
                        | "stories"
                        | "message";
                        publish_date?: string;
                        retries: number;
                        social_network: | "facebook"
                        | "instagram"
                        | "linkedin"
                        | "tiktok"
                        | "twitter"
                        | "whatsapp"
                        | "youtube"
                        | "google_business"
                        | "bluesky"
                        | "discord";
                        state: "ready"
                        | "withErrors"
                        | "sended"
                        | "draft"
                        | "publishing";
                        statistics?: {
                            angers?: number;
                            bookmarks?: number;
                            clicks?: number;
                            comments?: number;
                            engagement?: number;
                            follows?: number;
                            hahas?: number;
                            impressions?: number;
                            likes?: number;
                            loves?: number;
                            negative_feedback?: number;
                            page_likes?: number;
                            playback_0_count?: number;
                            playback_100_count?: number;
                            playback_25_count?: number;
                            playback_50_count?: number;
                            playback_75_count?: number;
                            profile_activity?: number;
                            profile_visits?: number;
                            quotes?: number;
                            reach?: number;
                            replys?: number;
                            retwets?: number;
                            saved?: number;
                            share?: number;
                            shareMentions?: number;
                            shares?: number;
                            sorrys?: number;
                            url_link_clicks?: number;
                            user_profile_clicks?: number;
                            video_views?: number;
                            views?: number;
                            wows?: number;
                        };
                        stats_updated_date?: string;
                        text?: string;
                        title?: string;
                        url?: string;
                    };
                };
            };
            headers: { [name: string]: unknown };
        };
        "400": {
            content: {
                "application/json": {
                    code: number;
                    data?: { [key: string]: unknown };
                    message: string;
                };
            };
            headers: { [name: string]: unknown };
        };
        "500": { content?: undefined; headers: { [name: string]: unknown } };
    };
}
getPublicationComments: {
    parameters: {
        cookie?: undefined;
        header?: undefined;
        path: { id_organization: string; id_publication: string };
        query?: { limit?: number; offset?: string };
    };
    requestBody?: undefined;
    responses: {
        "200": {
            content: {
                "application/json": {
                    comments: {
                        _id: string;
                        author: {
                            external_id: string;
                            is_own: boolean;
                            name?: string;
                            profile_pic?: string;
                        };
                        collected_date: string;
                        creation_date: string;
                        deleted: boolean;
                        external_id: string;
                        hidden: boolean;
                        id_account: | string
                        | {
                            _id: string;
                            creation_date: string;
                            error_code: number;
                            followers_count?: number;
                            id_client: string;
                            id_organization: string;
                            image?: string;
                            name: string;
                            next_comments_update?: string;
                            next_stats_update?: string;
                            private_message_link?: string;
                            social_network: | "facebook"
                            | "instagram"
                            | "linkedin"
                            | "tiktok"
                            | "twitter"
                            | "whatsapp"
                            | "youtube"
                            | "google_business"
                            | "bluesky"
                            | "discord";
                            username?: string;
                        };
                        id_organization: string;
                        id_publication?: | string
                        | {
                            _id: string;
                            creation_date: string;
                            engagement_base?: "reach"
                            | "impressions"
                            | "followers";
                            external_identifier?: string;
                            files: {
                                _id: ...;
                                cover_image?: ...;
                                cover_offset?: ...;
                                creation_date: ...;
                                file_externals: ...;
                                file_format: ...;
                                file_properties: ...;
                                file_type: ...;
                                id_organization: ...;
                                is_temporal: ...;
                                name: ...;
                                public_path: ...;
                            }[];
                            id_account: | string
                            | {
                                _id: ...;
                                creation_date: ...;
                                error_code: ...;
                                followers_count?: ...;
                                id_client: ...;
                                id_organization: ...;
                                image?: ...;
                                name: ...;
                                next_comments_update?: ...;
                                next_stats_update?: ...;
                                private_message_link?: ...;
                                social_network: ...;
                                username?: ...;
                            };
                            id_integration?: string;
                            id_organization: string;
                            metrics?: {
                                clicks?: ...;
                                comments?: ...;
                                engagement?: ...;
                                followers?: ...;
                                followers_gained?: ...;
                                impressions?: ...;
                                likes?: ...;
                                profile_views?: ...;
                                reach?: ...;
                                saves?: ...;
                                shares?: ...;
                                video_views?: ...;
                            };
                            name?: string;
                            next_stats_update?: string;
                            publication_errors: { code: ...; data?: ...; message: ... }[];
                            publication_type:
                                | "profile"
                                | "page"
                                | "group"
                                | "reels"
                                | "stories"
                                | "message";
                            publish_date?: string;
                            retries: number;
                            social_network: | "facebook"
                            | "instagram"
                            | "linkedin"
                            | "tiktok"
                            | "twitter"
                            | "whatsapp"
                            | "youtube"
                            | "google_business"
                            | "bluesky"
                            | "discord";
                            state: "ready"
                            | "withErrors"
                            | "sended"
                            | "draft"
                            | "publishing";
                            statistics?: {
                                angers?: ...;
                                bookmarks?: ...;
                                clicks?: ...;
                                comments?: ...;
                                engagement?: ...;
                                follows?: ...;
                                hahas?: ...;
                                impressions?: ...;
                                likes?: ...;
                                loves?: ...;
                                negative_feedback?: ...;
                                page_likes?: ...;
                                playback_0_count?: ...;
                                playback_100_count?: ...;
                                playback_25_count?: ...;
                                playback_50_count?: ...;
                                playback_75_count?: ...;
                                profile_activity?: ...;
                                profile_visits?: ...;
                                quotes?: ...;
                                reach?: ...;
                                replys?: ...;
                                retwets?: ...;
                                saved?: ...;
                                share?: ...;
                                shareMentions?: ...;
                                shares?: ...;
                                sorrys?: ...;
                                url_link_clicks?: ...;
                                user_profile_clicks?: ...;
                                video_views?: ...;
                                views?: ...;
                                wows?: ...;
                            };
                            stats_updated_date?: string;
                            text?: string;
                            title?: string;
                            url?: string;
                        };
                        like_count?: number;
                        our_reply_external_id?: string;
                        parent_external_id?: string;
                        publication_external_id: string;
                        rating?: number;
                        read: boolean;
                        replied: boolean;
                        reply_count?: number;
                        social_network: | "facebook"
                        | "instagram"
                        | "linkedin"
                        | "twitter"
                        | "youtube"
                        | "google_business"
                        | "bluesky"
                        | "discord";
                        text: string;
                    }[];
                    credits_consumed: number;
                    next_cursor?: string;
                    total: number;
                };
            };
            headers: { [name: string]: unknown };
        };
        "400": {
            content: {
                "application/json": {
                    code: number;
                    data?: { [key: string]: unknown };
                    message: string;
                };
            };
            headers: { [name: string]: unknown };
        };
    };
}
getPublicationLimits: {
    parameters: {
        cookie?: undefined;
        header?: undefined;
        path?: undefined;
        query?: undefined;
    };
    requestBody?: undefined;
    responses: {
        "200": {
            content: { "application/json": { max_retries: number } };
            headers: { [name: string]: unknown };
        };
        "400": {
            content: {
                "application/json": {
                    code: number;
                    data?: { [key: string]: unknown };
                    message: string;
                };
            };
            headers: { [name: string]: unknown };
        };
    };
}
getPublicationMetrics: {
    parameters: {
        cookie?: undefined;
        header?: undefined;
        path: { id_organization: string; id_publication: string };
        query?: undefined;
    };
    requestBody?: undefined;
    responses: {
        "200": {
            content: {
                "application/json": {
                    angers?: number;
                    bookmarks?: number;
                    clicks?: number;
                    comments?: number;
                    engagement?: number;
                    follows?: number;
                    hahas?: number;
                    impressions?: number;
                    likes?: number;
                    loves?: number;
                    negative_feedback?: number;
                    page_likes?: number;
                    playback_0_count?: number;
                    playback_100_count?: number;
                    playback_25_count?: number;
                    playback_50_count?: number;
                    playback_75_count?: number;
                    profile_activity?: number;
                    profile_visits?: number;
                    quotes?: number;
                    reach?: number;
                    replys?: number;
                    retwets?: number;
                    saved?: number;
                    share?: number;
                    shareMentions?: number;
                    shares?: number;
                    sorrys?: number;
                    url_link_clicks?: number;
                    user_profile_clicks?: number;
                    video_views?: number;
                    views?: number;
                    wows?: number;
                };
            };
            headers: { [name: string]: unknown };
        };
        "400": {
            content: {
                "application/json": {
                    code: number;
                    data?: { [key: string]: unknown };
                    message: string;
                };
            };
            headers: { [name: string]: unknown };
        };
        "500": { content?: undefined; headers: { [name: string]: unknown } };
    };
}
getPublications: {
    parameters: {
        cookie?: undefined;
        header?: undefined;
        path: { id_organization: string };
        query?: {
            accounts?: string[];
            from_date?: string;
            limit?: number;
            offset?: number;
            orderByPublish?: boolean;
            search?: string;
            social_network?: (
                | "facebook"
                | "instagram"
                | "linkedin"
                | "tiktok"
                | "twitter"
                | "whatsapp"
                | "youtube"
                | "google_business"
                | "bluesky"
                | "discord"
            )[];
            state?: ("ready" | "withErrors" | "sended" | "draft" | "publishing")[];
            to_date?: string;
        };
    };
    requestBody?: undefined;
    responses: {
        "200": {
            content: {
                "application/json": {
                    publications: {
                        _id: string;
                        creation_date: string;
                        engagement_base?: "reach"
                        | "impressions"
                        | "followers";
                        external_identifier?: string;
                        files: {
                            _id: string;
                            cover_image?: { _id: string; cover_image?: ...; cover_offset?: number; creation_date: string; file_externals: { external_identifier: string; external_url: string; social_network: "facebook" | "instagram" | ... 7 more ... | "discord"; }[]; ... 6 more ...; public_path: string; };
                            cover_offset?: number;
                            creation_date: string;
                            file_externals: {
                                external_identifier: ...;
                                external_url: ...;
                                social_network: ...;
                            }[];
                            file_format: "mp4"
                            | "jpeg"
                            | "gif"
                            | "png"
                            | "jpg";
                            file_properties: {
                                allowed_social_networks: (...)[];
                                aspect_ratio: { text: ...; value: ... };
                                duration: number;
                                height: number;
                                size_in_bytes: number;
                                width: number;
                            };
                            file_type: "video"
                            | "image";
                            id_organization: string;
                            is_temporal: boolean;
                            name: string;
                            public_path: string;
                        }[];
                        id_account: | string
                        | {
                            _id: string;
                            creation_date: string;
                            error_code: number;
                            followers_count?: number;
                            id_client: string;
                            id_organization: string;
                            image?: string;
                            name: string;
                            next_comments_update?: string;
                            next_stats_update?: string;
                            private_message_link?: string;
                            social_network: | "facebook"
                            | "instagram"
                            | "linkedin"
                            | "tiktok"
                            | "twitter"
                            | "whatsapp"
                            | "youtube"
                            | "google_business"
                            | "bluesky"
                            | "discord";
                            username?: string;
                        };
                        id_integration?: string;
                        id_organization: string;
                        metrics?: {
                            clicks?: number;
                            comments?: number;
                            engagement?: number;
                            followers?: number;
                            followers_gained?: number;
                            impressions?: number;
                            likes?: number;
                            profile_views?: number;
                            reach?: number;
                            saves?: number;
                            shares?: number;
                            video_views?: number;
                        };
                        name?: string;
                        next_stats_update?: string;
                        publication_errors: {
                            code: number;
                            data?: { [key: ...]: ... };
                            message: string;
                        }[];
                        publication_type: | "profile"
                        | "page"
                        | "group"
                        | "reels"
                        | "stories"
                        | "message";
                        publish_date?: string;
                        retries: number;
                        social_network: | "facebook"
                        | "instagram"
                        | "linkedin"
                        | "tiktok"
                        | "twitter"
                        | "whatsapp"
                        | "youtube"
                        | "google_business"
                        | "bluesky"
                        | "discord";
                        state: "ready"
                        | "withErrors"
                        | "sended"
                        | "draft"
                        | "publishing";
                        statistics?: {
                            angers?: number;
                            bookmarks?: number;
                            clicks?: number;
                            comments?: number;
                            engagement?: number;
                            follows?: number;
                            hahas?: number;
                            impressions?: number;
                            likes?: number;
                            loves?: number;
                            negative_feedback?: number;
                            page_likes?: number;
                            playback_0_count?: number;
                            playback_100_count?: number;
                            playback_25_count?: number;
                            playback_50_count?: number;
                            playback_75_count?: number;
                            profile_activity?: number;
                            profile_visits?: number;
                            quotes?: number;
                            reach?: number;
                            replys?: number;
                            retwets?: number;
                            saved?: number;
                            share?: number;
                            shareMentions?: number;
                            shares?: number;
                            sorrys?: number;
                            url_link_clicks?: number;
                            user_profile_clicks?: number;
                            video_views?: number;
                            views?: number;
                            wows?: number;
                        };
                        stats_updated_date?: string;
                        text?: string;
                        title?: string;
                        url?: string;
                    }[];
                    total: number;
                };
            };
            headers: { [name: string]: unknown };
        };
        "400": {
            content: {
                "application/json": {
                    code: number;
                    data?: { [key: string]: unknown };
                    message: string;
                };
            };
            headers: { [name: string]: unknown };
        };
        "500": { content?: undefined; headers: { [name: string]: unknown } };
    };
}
getPublicationsStats: {
    parameters: {
        cookie?: undefined;
        header?: undefined;
        path: { id_organization: string };
        query?: {
            accounts?: string[];
            from_date?: string;
            limit?: number;
            metric?:
                | "reach"
                | "impressions"
                | "comments"
                | "engagement"
                | "likes"
                | "shares"
                | "saves"
                | "clicks"
                | "video_views"
                | "profile_views";
            offset?: number;
            social_network?: string[];
            summary?: boolean;
            to_date?: string;
        };
    };
    requestBody?: undefined;
    responses: {
        "200": {
            content: {
                "application/json": {
                    metric?: string;
                    publications?: {
                        _id: string;
                        creation_date: string;
                        engagement_base?: "reach"
                        | "impressions"
                        | "followers";
                        external_identifier?: string;
                        files: {
                            _id: string;
                            cover_image?: (...) | (...);
                            cover_offset?: (...) | (...);
                            creation_date: string;
                            file_externals: (...)[];
                            file_format: (...) | (...) | (...) | (...) | (...);
                            file_properties: {
                                allowed_social_networks: ...;
                                aspect_ratio: ...;
                                duration: ...;
                                height: ...;
                                size_in_bytes: ...;
                                width: ...;
                            };
                            file_type: (...)
                            | (...);
                            id_organization: string;
                            is_temporal: boolean;
                            name: string;
                            public_path: string;
                        }[];
                        id_account: | string
                        | {
                            _id: string;
                            creation_date: string;
                            error_code: number;
                            followers_count?: (...)
                            | (...);
                            id_client: string;
                            id_organization: string;
                            image?: (...) | (...);
                            name: string;
                            next_comments_update?: (...) | (...);
                            next_stats_update?: (...) | (...);
                            private_message_link?: (...) | (...);
                            social_network:
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...);
                            username?: (...) | (...);
                        };
                        id_integration?: string;
                        id_organization: string;
                        metrics?: {
                            clicks?: (...)
                            | (...);
                            comments?: (...) | (...);
                            engagement?: (...) | (...);
                            followers?: (...) | (...);
                            followers_gained?: (...) | (...);
                            impressions?: (...) | (...);
                            likes?: (...) | (...);
                            profile_views?: (...) | (...);
                            reach?: (...) | (...);
                            saves?: (...) | (...);
                            shares?: (...) | (...);
                            video_views?: (...) | (...);
                        };
                        name?: string;
                        next_stats_update?: string;
                        publication_errors: {
                            code: number;
                            data?: (...)
                            | (...);
                            message: string;
                        }[];
                        publication_type: | "profile"
                        | "page"
                        | "group"
                        | "reels"
                        | "stories"
                        | "message";
                        publish_date?: string;
                        retries: number;
                        social_network: | "facebook"
                        | "instagram"
                        | "linkedin"
                        | "tiktok"
                        | "twitter"
                        | "whatsapp"
                        | "youtube"
                        | "google_business"
                        | "bluesky"
                        | "discord";
                        state: "ready"
                        | "withErrors"
                        | "sended"
                        | "draft"
                        | "publishing";
                        statistics?: {
                            angers?: (...) | (...);
                            bookmarks?: (...) | (...);
                            clicks?: (...) | (...);
                            comments?: (...) | (...);
                            engagement?: (...) | (...);
                            follows?: (...) | (...);
                            hahas?: (...) | (...);
                            impressions?: (...) | (...);
                            likes?: (...) | (...);
                            loves?: (...) | (...);
                            negative_feedback?: (...) | (...);
                            page_likes?: (...) | (...);
                            playback_0_count?: (...) | (...);
                            playback_100_count?: (...) | (...);
                            playback_25_count?: (...) | (...);
                            playback_50_count?: (...) | (...);
                            playback_75_count?: (...) | (...);
                            profile_activity?: (...) | (...);
                            profile_visits?: (...) | (...);
                            quotes?: (...) | (...);
                            reach?: (...) | (...);
                            replys?: (...) | (...);
                            retwets?: (...) | (...);
                            saved?: (...) | (...);
                            share?: (...) | (...);
                            shareMentions?: (...) | (...);
                            shares?: (...) | (...);
                            sorrys?: (...) | (...);
                            url_link_clicks?: (...) | (...);
                            user_profile_clicks?: (...) | (...);
                            video_views?: (...) | (...);
                            views?: (...) | (...);
                            wows?: (...) | (...);
                        };
                        stats_updated_date?: string;
                        text?: string;
                        title?: string;
                        url?: string;
                    }[];
                    range?: {
                        from_date?: string;
                        previous_from_date?: string;
                        previous_to_date?: string;
                        to_date?: string;
                    };
                    summary?: {
                        by_network?: {
                            metrics?: (...)
                            | (...);
                            publications?: (...) | (...);
                            social_network?: (...) | (...);
                        }[];
                        previous_total?: {
                            clicks?: number;
                            comments?: number;
                            engagement?: number;
                            followers?: number;
                            followers_gained?: number;
                            impressions?: number;
                            likes?: number;
                            profile_views?: number;
                            reach?: number;
                            saves?: number;
                            shares?: number;
                            video_views?: number;
                        };
                        total?: {
                            clicks?: number;
                            comments?: number;
                            engagement?: number;
                            followers?: number;
                            followers_gained?: number;
                            impressions?: number;
                            likes?: number;
                            profile_views?: number;
                            reach?: number;
                            saves?: number;
                            shares?: number;
                            video_views?: number;
                        };
                    };
                    total?: number;
                };
            };
            headers: { [name: string]: unknown };
        };
        "400": {
            content: {
                "application/json": {
                    code: number;
                    data?: { [key: string]: unknown };
                    message: string;
                };
            };
            headers: { [name: string]: unknown };
        };
        "500": { content?: undefined; headers: { [name: string]: unknown } };
    };
}
getPublicationsSummary: {
    parameters: {
        cookie?: undefined;
        header?: undefined;
        path: { id_organization: string };
        query?: { from_date?: string; to_date?: string };
    };
    requestBody?: undefined;
    responses: {
        "200": {
            content: {
                "application/json": {
                    range: {
                        from_date: string;
                        previous_from_date: string;
                        previous_to_date: string;
                        to_date: string;
                    };
                } & {
                    by_day: { day?: string; state?: string; total?: number }[];
                    by_network: {
                        social_network?:
                            | "facebook"
                            | "instagram"
                            | "linkedin"
                            | "tiktok"
                            | "twitter"
                            | "whatsapp"
                            | "youtube"
                            | "google_business"
                            | "bluesky"
                            | "discord";
                        total?: number;
                    }[];
                    by_state: { state?: string; total?: number }[];
                    published_by_day: {
                        day?: string;
                        social_network?:
                            | "facebook"
                            | "instagram"
                            | "linkedin"
                            | "tiktok"
                            | "twitter"
                            | "whatsapp"
                            | "youtube"
                            | "google_business"
                            | "bluesky"
                            | "discord";
                        total?: number;
                    }[];
                    total: number;
                };
            };
            headers: { [name: string]: unknown };
        };
        "400": {
            content: {
                "application/json": {
                    code: number;
                    data?: { [key: string]: unknown };
                    message: string;
                };
            };
            headers: { [name: string]: unknown };
        };
    };
}
getPublicationStatsHistory: {
    parameters: {
        cookie?: undefined;
        header?: undefined;
        path: { id_organization: string; id_publication: string };
        query?: undefined;
    };
    requestBody?: undefined;
    responses: {
        "200": {
            content: {
                "application/json": {
                    engagement_base?: "reach"
                    | "impressions"
                    | "followers";
                    id_publication: string;
                    latest?: {
                        collected_date: string;
                        engagement_base?: "reach" | "impressions" | "followers";
                        metrics: {
                            clicks?: number;
                            comments?: number;
                            engagement?: number;
                            followers?: number;
                            followers_gained?: number;
                            impressions?: number;
                            likes?: number;
                            profile_views?: number;
                            reach?: number;
                            saves?: number;
                            shares?: number;
                            video_views?: number;
                        };
                        raw?: {
                            angers?: number;
                            bookmarks?: number;
                            clicks?: number;
                            comments?: number;
                            engagement?: number;
                            follows?: number;
                            hahas?: number;
                            impressions?: number;
                            likes?: number;
                            loves?: number;
                            negative_feedback?: number;
                            page_likes?: number;
                            playback_0_count?: number;
                            playback_100_count?: number;
                            playback_25_count?: number;
                            playback_50_count?: number;
                            playback_75_count?: number;
                            profile_activity?: number;
                            profile_visits?: number;
                            quotes?: number;
                            reach?: number;
                            replys?: number;
                            retwets?: number;
                            saved?: number;
                            share?: number;
                            shareMentions?: number;
                            shares?: number;
                            sorrys?: number;
                            url_link_clicks?: number;
                            user_profile_clicks?: number;
                            video_views?: number;
                            views?: number;
                            wows?: number;
                        };
                    };
                    metrics?: {
                        clicks?: number;
                        comments?: number;
                        engagement?: number;
                        followers?: number;
                        followers_gained?: number;
                        impressions?: number;
                        likes?: number;
                        profile_views?: number;
                        reach?: number;
                        saves?: number;
                        shares?: number;
                        video_views?: number;
                    };
                    next_stats_update?: string;
                    publish_date?: string;
                    series: {
                        collected_date: string;
                        engagement_base?: "reach"
                        | "impressions"
                        | "followers";
                        metrics: {
                            clicks?: number;
                            comments?: number;
                            engagement?: number;
                            followers?: number;
                            followers_gained?: number;
                            impressions?: number;
                            likes?: number;
                            profile_views?: number;
                            reach?: number;
                            saves?: number;
                            shares?: number;
                            video_views?: number;
                        };
                    }[];
                    social_network: | "facebook"
                    | "instagram"
                    | "linkedin"
                    | "tiktok"
                    | "twitter"
                    | "whatsapp"
                    | "youtube"
                    | "google_business"
                    | "bluesky"
                    | "discord";
                    statistics?: {
                        angers?: number;
                        bookmarks?: number;
                        clicks?: number;
                        comments?: number;
                        engagement?: number;
                        follows?: number;
                        hahas?: number;
                        impressions?: number;
                        likes?: number;
                        loves?: number;
                        negative_feedback?: number;
                        page_likes?: number;
                        playback_0_count?: number;
                        playback_100_count?: number;
                        playback_25_count?: number;
                        playback_50_count?: number;
                        playback_75_count?: number;
                        profile_activity?: number;
                        profile_visits?: number;
                        quotes?: number;
                        reach?: number;
                        replys?: number;
                        retwets?: number;
                        saved?: number;
                        share?: number;
                        shareMentions?: number;
                        shares?: number;
                        sorrys?: number;
                        url_link_clicks?: number;
                        user_profile_clicks?: number;
                        video_views?: number;
                        views?: number;
                        wows?: number;
                    };
                    stats_updated_date?: string;
                };
            };
            headers: { [name: string]: unknown };
        };
        "400": {
            content: {
                "application/json": {
                    code: number;
                    data?: { [key: string]: unknown };
                    message: string;
                };
            };
            headers: { [name: string]: unknown };
        };
        "500": { content?: undefined; headers: { [name: string]: unknown } };
    };
}
getSocialCapabilities: {
    parameters: {
        cookie?: undefined;
        header?: undefined;
        path?: undefined;
        query?: undefined;
    };
    requestBody?: undefined;
    responses: {
        "200": {
            content: {
                "application/json": {
                    [key: string]: {
                        comments: boolean;
                        messages: boolean;
                        persistent_menu: boolean;
                        products: boolean;
                        publications: boolean;
                        webhooks: boolean;
                    };
                };
            };
            headers: { [name: string]: unknown };
        };
        "400": {
            content: {
                "application/json": {
                    code: number;
                    data?: { [key: string]: unknown };
                    message: string;
                };
            };
            headers: { [name: string]: unknown };
        };
    };
}
getSocialCommentActions: {
    parameters: {
        cookie?: undefined;
        header?: undefined;
        path?: undefined;
        query?: undefined;
    };
    requestBody?: undefined;
    responses: {
        "200": {
            content: {
                "application/json": {
                    [key: string]: {
                        delete_others: boolean;
                        delete_own: boolean;
                        hide: boolean;
                        reply: boolean;
                    };
                };
            };
            headers: { [name: string]: unknown };
        };
        "400": {
            content: {
                "application/json": {
                    code: number;
                    data?: { [key: string]: unknown };
                    message: string;
                };
            };
            headers: { [name: string]: unknown };
        };
    };
}
getSocialLimits: {
    parameters: {
        cookie?: undefined;
        header?: undefined;
        path?: undefined;
        query?: undefined;
    };
    requestBody?: undefined;
    responses: {
        "200": {
            content: {
                "application/json": {
                    characters: { [key: string]: number };
                    comment_characters: { [key: string]: number };
                    max_file_size_mb: { [key: string]: number };
                    max_post_bytes: { [key: string]: number };
                    title_characters: { [key: string]: number };
                    total_images: { [key: string]: number };
                    video_duration_in_seconds: { [key: string]: number };
                };
            };
            headers: { [name: string]: unknown };
        };
        "400": {
            content: {
                "application/json": {
                    code: number;
                    data?: { [key: string]: unknown };
                    message: string;
                };
            };
            headers: { [name: string]: unknown };
        };
    };
}
getSocialNetworks: {
    parameters: {
        cookie?: undefined;
        header?: undefined;
        path?: undefined;
        query?: undefined;
    };
    requestBody?: undefined;
    responses: {
        "200": {
            content: {
                "application/json": (
                    | "facebook"
                    | "instagram"
                    | "linkedin"
                    | "tiktok"
                    | "twitter"
                    | "whatsapp"
                    | "youtube"
                    | "google_business"
                    | "bluesky"
                    | "discord"
                )[];
            };
            headers: { [name: string]: unknown };
        };
        "400": {
            content: {
                "application/json": {
                    code: number;
                    data?: { [key: string]: unknown };
                    message: string;
                };
            };
            headers: { [name: string]: unknown };
        };
    };
}
getSocialPublications: {
    parameters: {
        cookie?: undefined;
        header?: undefined;
        path: { id_account: string; id_organization: string };
        query?: { limit?: number; offset?: number };
    };
    requestBody?: undefined;
    responses: {
        "200": {
            content: {
                "application/json": {
                    publications: {
                        _id: string;
                        creation_date: string;
                        engagement_base?: "reach"
                        | "impressions"
                        | "followers";
                        external_identifier?: string;
                        files: {
                            _id: string;
                            cover_image?: { _id: string; cover_image?: ...; cover_offset?: number; creation_date: string; file_externals: { external_identifier: string; external_url: string; social_network: "facebook" | "instagram" | ... 7 more ... | "discord"; }[]; ... 6 more ...; public_path: string; };
                            cover_offset?: number;
                            creation_date: string;
                            file_externals: {
                                external_identifier: ...;
                                external_url: ...;
                                social_network: ...;
                            }[];
                            file_format: "mp4"
                            | "jpeg"
                            | "gif"
                            | "png"
                            | "jpg";
                            file_properties: {
                                allowed_social_networks: (...)[];
                                aspect_ratio: { text: ...; value: ... };
                                duration: number;
                                height: number;
                                size_in_bytes: number;
                                width: number;
                            };
                            file_type: "video"
                            | "image";
                            id_organization: string;
                            is_temporal: boolean;
                            name: string;
                            public_path: string;
                        }[];
                        id_account: | string
                        | {
                            _id: string;
                            creation_date: string;
                            error_code: number;
                            followers_count?: number;
                            id_client: string;
                            id_organization: string;
                            image?: string;
                            name: string;
                            next_comments_update?: string;
                            next_stats_update?: string;
                            private_message_link?: string;
                            social_network: | "facebook"
                            | "instagram"
                            | "linkedin"
                            | "tiktok"
                            | "twitter"
                            | "whatsapp"
                            | "youtube"
                            | "google_business"
                            | "bluesky"
                            | "discord";
                            username?: string;
                        };
                        id_integration?: string;
                        id_organization: string;
                        metrics?: {
                            clicks?: number;
                            comments?: number;
                            engagement?: number;
                            followers?: number;
                            followers_gained?: number;
                            impressions?: number;
                            likes?: number;
                            profile_views?: number;
                            reach?: number;
                            saves?: number;
                            shares?: number;
                            video_views?: number;
                        };
                        name?: string;
                        next_stats_update?: string;
                        publication_errors: {
                            code: number;
                            data?: { [key: ...]: ... };
                            message: string;
                        }[];
                        publication_type: | "profile"
                        | "page"
                        | "group"
                        | "reels"
                        | "stories"
                        | "message";
                        publish_date?: string;
                        retries: number;
                        social_network: | "facebook"
                        | "instagram"
                        | "linkedin"
                        | "tiktok"
                        | "twitter"
                        | "whatsapp"
                        | "youtube"
                        | "google_business"
                        | "bluesky"
                        | "discord";
                        state: "ready"
                        | "withErrors"
                        | "sended"
                        | "draft"
                        | "publishing";
                        statistics?: {
                            angers?: number;
                            bookmarks?: number;
                            clicks?: number;
                            comments?: number;
                            engagement?: number;
                            follows?: number;
                            hahas?: number;
                            impressions?: number;
                            likes?: number;
                            loves?: number;
                            negative_feedback?: number;
                            page_likes?: number;
                            playback_0_count?: number;
                            playback_100_count?: number;
                            playback_25_count?: number;
                            playback_50_count?: number;
                            playback_75_count?: number;
                            profile_activity?: number;
                            profile_visits?: number;
                            quotes?: number;
                            reach?: number;
                            replys?: number;
                            retwets?: number;
                            saved?: number;
                            share?: number;
                            shareMentions?: number;
                            shares?: number;
                            sorrys?: number;
                            url_link_clicks?: number;
                            user_profile_clicks?: number;
                            video_views?: number;
                            views?: number;
                            wows?: number;
                        };
                        stats_updated_date?: string;
                        text?: string;
                        title?: string;
                        url?: string;
                    }[];
                    total: number;
                };
            };
            headers: { [name: string]: unknown };
        };
        "400": {
            content: {
                "application/json": {
                    code: number;
                    data?: { [key: string]: unknown };
                    message: string;
                };
            };
            headers: { [name: string]: unknown };
        };
        "500": { content?: undefined; headers: { [name: string]: unknown } };
    };
}
getTopPublications: {
    parameters: {
        cookie?: undefined;
        header?: undefined;
        path: { id_organization: string };
        query?: {
            from_date?: string;
            limit?: number;
            metric?:
                | "reach"
                | "impressions"
                | "followers"
                | "comments"
                | "engagement"
                | "likes"
                | "shares"
                | "saves"
                | "clicks"
                | "video_views"
                | "profile_views"
                | "followers_gained";
            to_date?: string;
        };
    };
    requestBody?: undefined;
    responses: {
        "200": {
            content: {
                "application/json": {
                    metric: | "reach"
                    | "impressions"
                    | "followers"
                    | "comments"
                    | "engagement"
                    | "likes"
                    | "shares"
                    | "saves"
                    | "clicks"
                    | "video_views"
                    | "profile_views"
                    | "followers_gained";
                    publications: {
                        collected_date?: string;
                        engagement_base?: "reach"
                        | "impressions"
                        | "followers";
                        id_publication: string;
                        metrics: {
                            clicks?: number;
                            comments?: number;
                            engagement?: number;
                            followers?: number;
                            followers_gained?: number;
                            impressions?: number;
                            likes?: number;
                            profile_views?: number;
                            reach?: number;
                            saves?: number;
                            shares?: number;
                            video_views?: number;
                        };
                        publication: {
                            external_identifier?: string;
                            files?: {
                                _id: ...;
                                cover_image?: ...;
                                cover_offset?: ...;
                                creation_date: ...;
                                file_externals: ...;
                                file_format: ...;
                                file_properties: ...;
                                file_type: ...;
                                id_organization: ...;
                                is_temporal: ...;
                                name: ...;
                                public_path: ...;
                            }[];
                            publication_type?: string;
                            text?: string;
                            title?: string;
                            url?: string;
                        };
                        publish_date?: string;
                        social_network: | "facebook"
                        | "instagram"
                        | "linkedin"
                        | "tiktok"
                        | "twitter"
                        | "whatsapp"
                        | "youtube"
                        | "google_business"
                        | "bluesky"
                        | "discord";
                    }[];
                    range: {
                        from_date: string;
                        previous_from_date: string;
                        previous_to_date: string;
                        to_date: string;
                    };
                };
            };
            headers: { [name: string]: unknown };
        };
        "400": {
            content: {
                "application/json": {
                    code: number;
                    data?: { [key: string]: unknown };
                    message: string;
                };
            };
            headers: { [name: string]: unknown };
        };
    };
}
getTotalUnreadComments: {
    parameters: {
        cookie?: undefined;
        header?: undefined;
        path: { id_organization: string };
        query?: undefined;
    };
    requestBody?: undefined;
    responses: {
        "200": {
            content: { "application/json": { total: number } };
            headers: { [name: string]: unknown };
        };
        "400": {
            content: {
                "application/json": {
                    code: number;
                    data?: { [key: string]: unknown };
                    message: string;
                };
            };
            headers: { [name: string]: unknown };
        };
    };
}
getUnreadMessages: {
    parameters: {
        cookie?: undefined;
        header?: undefined;
        path: { id_organization: string };
        query?: undefined;
    };
    requestBody?: undefined;
    responses: {
        "200": {
            content: { "application/json": { total: number } };
            headers: { [name: string]: unknown };
        };
        "400": {
            content: {
                "application/json": {
                    code: number;
                    data?: { [key: string]: unknown };
                    message: string;
                };
            };
            headers: { [name: string]: unknown };
        };
    };
}
getUpload: {
    parameters: {
        cookie?: undefined;
        header?: undefined;
        path: { id_organization: string; id_upload: string };
        query?: undefined;
    };
    requestBody?: undefined;
    responses: {
        "200": {
            content: {
                "application/json": {
                    upload: {
                        _id: string;
                        cover_image?: { _id: string; cover_image?: ...; cover_offset?: number; creation_date: string; file_externals: { external_identifier: string; external_url: string; social_network: "facebook" | "instagram" | ... 7 more ... | "discord"; }[]; ... 6 more ...; public_path: string; };
                        cover_offset?: number;
                        creation_date: string;
                        file_externals: {
                            external_identifier: string;
                            external_url: string;
                            social_network: | "facebook"
                            | "instagram"
                            | "linkedin"
                            | "tiktok"
                            | "twitter"
                            | "whatsapp"
                            | "youtube"
                            | "google_business"
                            | "bluesky"
                            | "discord";
                        }[];
                        file_format: "mp4"
                        | "jpeg"
                        | "gif"
                        | "png"
                        | "jpg";
                        file_properties: {
                            allowed_social_networks: string[];
                            aspect_ratio: { text: string; value: number };
                            duration: number;
                            height: number;
                            size_in_bytes: number;
                            width: number;
                        };
                        file_type: "video"
                        | "image";
                        id_organization: string;
                        is_temporal: boolean;
                        name: string;
                        public_path: string;
                    };
                };
            };
            headers: { [name: string]: unknown };
        };
        "400": {
            content: {
                "application/json": {
                    code: number;
                    data?: { [key: string]: unknown };
                    message: string;
                };
            };
            headers: { [name: string]: unknown };
        };
        "500": { content?: undefined; headers: { [name: string]: unknown } };
    };
}
getUploads: {
    parameters: {
        cookie?: undefined;
        header?: undefined;
        path: { id_organization: string };
        query?: { limit?: number; offset?: number };
    };
    requestBody?: undefined;
    responses: {
        "200": {
            content: {
                "application/json": {
                    total: number;
                    uploads: {
                        _id: string;
                        cover_image?: { _id: string; cover_image?: ...; cover_offset?: number; creation_date: string; file_externals: { external_identifier: string; external_url: string; social_network: "facebook" | "instagram" | ... 7 more ... | "discord"; }[]; ... 6 more ...; public_path: string; };
                        cover_offset?: number;
                        creation_date: string;
                        file_externals: {
                            external_identifier: string;
                            external_url: string;
                            social_network: | "facebook"
                            | "instagram"
                            | "linkedin"
                            | "tiktok"
                            | "twitter"
                            | "whatsapp"
                            | "youtube"
                            | "google_business"
                            | "bluesky"
                            | "discord";
                        }[];
                        file_format: "mp4"
                        | "jpeg"
                        | "gif"
                        | "png"
                        | "jpg";
                        file_properties: {
                            allowed_social_networks: string[];
                            aspect_ratio: { text: string; value: number };
                            duration: number;
                            height: number;
                            size_in_bytes: number;
                            width: number;
                        };
                        file_type: "video"
                        | "image";
                        id_organization: string;
                        is_temporal: boolean;
                        name: string;
                        public_path: string;
                    }[];
                };
            };
            headers: { [name: string]: unknown };
        };
        "400": {
            content: {
                "application/json": {
                    code: number;
                    data?: { [key: string]: unknown };
                    message: string;
                };
            };
            headers: { [name: string]: unknown };
        };
        "500": { content?: undefined; headers: { [name: string]: unknown } };
    };
}
getUserInOrganizationRole: {
    parameters: {
        cookie?: undefined;
        header?: undefined;
        path: { id_organization: string };
        query?: undefined;
    };
    requestBody?: undefined;
    responses: {
        "200": {
            content: {
                "application/json": {
                    total?: number;
                    users?: {
                        email?: string;
                        firstname?: string;
                        id?: string;
                        lastname?: string;
                        username?: string;
                    }[];
                };
            };
            headers: { [name: string]: unknown };
        };
        "400": {
            content: {
                "application/json": {
                    code: number;
                    data?: { [key: string]: unknown };
                    message: string;
                };
            };
            headers: { [name: string]: unknown };
        };
        "500": { content?: undefined; headers: { [name: string]: unknown } };
    };
}
getUsersInClientRole: {
    parameters: {
        cookie?: undefined;
        header?: undefined;
        path: { id_client: string; id_rol: string };
        query?: { limit?: number; offset?: number };
    };
    requestBody?: undefined;
    responses: {
        "200": {
            content: {
                "application/json": {
                    total?: number;
                    users?: {
                        email?: string;
                        firstname?: string;
                        id?: string;
                        lastname?: string;
                        username?: string;
                    }[];
                };
            };
            headers: { [name: string]: unknown };
        };
        "400": {
            content: {
                "application/json": {
                    code: number;
                    data?: { [key: string]: unknown };
                    message: string;
                };
            };
            headers: { [name: string]: unknown };
        };
        "500": { content?: undefined; headers: { [name: string]: unknown } };
    };
}
getUsersInOrganizationRole: {
    parameters: {
        cookie?: undefined;
        header?: undefined;
        path: { id_organization: string; id_rol: string };
        query?: { limit?: number; offset?: number };
    };
    requestBody?: undefined;
    responses: {
        "200": {
            content: {
                "application/json": {
                    total?: number;
                    users?: {
                        email?: string;
                        enabled?: boolean;
                        firstname?: string;
                        id?: string;
                        lastname?: string;
                        roles?: { _id?: ...; name?: ... }[];
                        username?: string;
                    }[];
                };
            };
            headers: { [name: string]: unknown };
        };
        "400": {
            content: {
                "application/json": {
                    code: number;
                    data?: { [key: string]: unknown };
                    message: string;
                };
            };
            headers: { [name: string]: unknown };
        };
        "401": {
            content: {
                "application/json": {
                    code: number;
                    data?: { [key: string]: unknown };
                    message: string;
                };
            };
            headers: { [name: string]: unknown };
        };
        "500": {
            content: {
                "application/json": {
                    code: number;
                    data?: { [key: string]: unknown };
                    message: string;
                };
            };
            headers: { [name: string]: unknown };
        };
    };
}
importUploads: {
    parameters: {
        cookie?: undefined;
        header?: undefined;
        path: { id_organization: string };
        query?: undefined;
    };
    requestBody: {
        content: {
            "application/json": {
                files: { external_id: string; mime_type?: string; name?: string }[];
                id_integration: string;
            };
        };
    };
    responses: {
        "200": {
            content: {
                "application/json": {
                    errors: {
                        code: number;
                        data?: Record<string, never>;
                        external_id?: string;
                        message: string;
                        name?: string;
                    }[];
                    uploads: {
                        _id: string;
                        cover_image?: { _id: string; cover_image?: ...; cover_offset?: number; creation_date: string; file_externals: { external_identifier: string; external_url: string; social_network: "facebook" | "instagram" | ... 7 more ... | "discord"; }[]; ... 6 more ...; public_path: string; };
                        cover_offset?: number;
                        creation_date: string;
                        file_externals: {
                            external_identifier: string;
                            external_url: string;
                            social_network: | "facebook"
                            | "instagram"
                            | "linkedin"
                            | "tiktok"
                            | "twitter"
                            | "whatsapp"
                            | "youtube"
                            | "google_business"
                            | "bluesky"
                            | "discord";
                        }[];
                        file_format: "mp4"
                        | "jpeg"
                        | "gif"
                        | "png"
                        | "jpg";
                        file_properties: {
                            allowed_social_networks: string[];
                            aspect_ratio: { text: string; value: number };
                            duration: number;
                            height: number;
                            size_in_bytes: number;
                            width: number;
                        };
                        file_type: "video"
                        | "image";
                        id_organization: string;
                        is_temporal: boolean;
                        name: string;
                        public_path: string;
                    }[];
                };
            };
            headers: { [name: string]: unknown };
        };
        "400": { content?: undefined; headers: { [name: string]: unknown } };
    };
}
inviteRole: {
    parameters: {
        cookie?: undefined;
        header?: undefined;
        path: { id_client: string; id_rol: string };
        query?: undefined;
    };
    requestBody: { content: { "application/json": { email: string } } };
    responses: {
        "200": {
            content: { "application/json": { success: boolean } };
            headers: { [name: string]: unknown };
        };
        "400": {
            content: {
                "application/json": {
                    code: number;
                    data?: { [key: string]: unknown };
                    message: string;
                };
            };
            headers: { [name: string]: unknown };
        };
        "500": { content?: undefined; headers: { [name: string]: unknown } };
    };
}
inviteUserToOrganizationRole: {
    parameters: {
        cookie?: undefined;
        header?: undefined;
        path: { id_organization: string; id_rol: string };
        query?: undefined;
    };
    requestBody: { content: { "application/json": { email: string } } };
    responses: {
        "200": {
            content: { "application/json": { success: boolean } };
            headers: { [name: string]: unknown };
        };
        "400": {
            content: {
                "application/json": {
                    code: number;
                    data?: { [key: string]: unknown };
                    message: string;
                };
            };
            headers: { [name: string]: unknown };
        };
        "401": {
            content: {
                "application/json": {
                    code: number;
                    data?: { [key: string]: unknown };
                    message: string;
                };
            };
            headers: { [name: string]: unknown };
        };
        "500": {
            content: {
                "application/json": {
                    code: number;
                    data?: { [key: string]: unknown };
                    message: string;
                };
            };
            headers: { [name: string]: unknown };
        };
    };
}
issueToken: {
    parameters: {
        cookie?: undefined;
        header?: undefined;
        path?: undefined;
        query?: undefined;
    };
    requestBody: {
        content: {
            "application/json": {
                client_id?: string;
                client_secret?: string;
                grant_type: "client_credentials";
                scope?: string;
            };
            "application/x-www-form-urlencoded": {
                client_id?: string;
                client_secret?: string;
                grant_type: "client_credentials";
                scope?: string;
            };
        };
    };
    responses: {
        "200": {
            content: {
                "application/json": {
                    access_token: string;
                    expires_in: number;
                    scope?: string;
                    token_type: string;
                };
            };
            headers: { [name: string]: unknown };
        };
        "400": {
            content: {
                "application/json": {
                    error: | "server_error"
                    | "invalid_client"
                    | "slow_down"
                    | "invalid_request"
                    | "unsupported_grant_type";
                    error_description?: string;
                };
            };
            headers: { [name: string]: unknown };
        };
        "401": {
            content: {
                "application/json": {
                    error: | "server_error"
                    | "invalid_client"
                    | "slow_down"
                    | "invalid_request"
                    | "unsupported_grant_type";
                    error_description?: string;
                };
            };
            headers: { [name: string]: unknown };
        };
        "429": {
            content: {
                "application/json": {
                    error: | "server_error"
                    | "invalid_client"
                    | "slow_down"
                    | "invalid_request"
                    | "unsupported_grant_type";
                    error_description?: string;
                };
            };
            headers: { "Retry-After"?: number; [name: string]: unknown };
        };
    };
}
onCommentsWebhook: {
    parameters: {
        cookie?: undefined;
        header?: undefined;
        path?: undefined;
        query?: undefined;
    };
    requestBody: {
        content: {
            "application/json": (
                | {
                    error_code: number;
                    field: "integration_error";
                    id_integration: string;
                    id_organization: string;
                    provider: string;
                }
                | {
                    commentObj?: {
                        _id: string;
                        author: {
                            external_id: string;
                            is_own: boolean;
                            name?: string;
                            profile_pic?: string;
                        };
                        collected_date: string;
                        creation_date: string;
                        deleted: boolean;
                        external_id: string;
                        hidden: boolean;
                        id_account: | string
                        | {
                            _id: string;
                            creation_date: string;
                            error_code: number;
                            followers_count?: (...)
                            | (...);
                            id_client: string;
                            id_organization: string;
                            image?: (...) | (...);
                            name: string;
                            next_comments_update?: (...) | (...);
                            next_stats_update?: (...) | (...);
                            private_message_link?: (...) | (...);
                            social_network:
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...);
                            username?: (...) | (...);
                        };
                        id_organization: string;
                        id_publication?: | string
                        | {
                            _id: string;
                            creation_date: string;
                            engagement_base?: (...)
                            | (...)
                            | (...)
                            | (...);
                            external_identifier?: (...) | (...);
                            files: (...)[];
                            id_account: (...) | (...);
                            id_integration?: (...) | (...);
                            id_organization: string;
                            metrics?: (...) | (...);
                            name?: (...) | (...);
                            next_stats_update?: (...) | (...);
                            publication_errors: (...)[];
                            publication_type: (...) | (...) | (...) | (...) | (...) | (...);
                            publish_date?: (...) | (...);
                            retries: number;
                            social_network:
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...);
                            state: (...) | (...) | (...) | (...) | (...);
                            statistics?: (...) | (...);
                            stats_updated_date?: (...) | (...);
                            text?: (...) | (...);
                            title?: (...) | (...);
                            url?: (...) | (...);
                        };
                        like_count?: number;
                        our_reply_external_id?: string;
                        parent_external_id?: string;
                        publication_external_id: string;
                        rating?: number;
                        read: boolean;
                        replied: boolean;
                        reply_count?: number;
                        social_network: | "facebook"
                        | "instagram"
                        | "linkedin"
                        | "twitter"
                        | "youtube"
                        | "google_business"
                        | "bluesky"
                        | "discord";
                        text: string;
                    };
                    field: | "comments"
                    | "messages"
                    | "new_account"
                    | "change_state_account"
                    | "messaging_postbacks"
                    | "messaging_seen"
                    | "messaging_error";
                    id_account: string;
                    id_contact?: string;
                    id_organization: string;
                    messageObj?: {
                        _id: string;
                        contact_id?: | string
                        | {
                            _id: string;
                            creation_date: string;
                            creator_keycloak_identifier?: (...)
                            | (...);
                            extra_data?: (...) | (...);
                            id_organization: string;
                            last_contact_update: string;
                            name?: (...) | (...);
                            profile_image?: (...) | (...);
                            social_identifiers: (...)[];
                        };
                        creation_date: string;
                        element_external_id?: string;
                        from_contact_id?: | string
                        | {
                            _id: string;
                            creation_date: string;
                            creator_keycloak_identifier?: (...)
                            | (...);
                            extra_data?: (...) | (...);
                            id_organization: string;
                            last_contact_update: string;
                            name?: (...) | (...);
                            profile_image?: (...) | (...);
                            social_identifiers: (...)[];
                        };
                        id_account: string;
                        in_response_external_id?: string;
                        in_response_to?: string;
                        message_errors: {
                            code: number;
                            data?: (...)
                            | (...);
                            message: string;
                        }[];
                        message_options: {
                            files: ((...) | (...))[];
                            files_urls: { mime_type?: ...; url?: ... }[];
                            metaElements?: (...)[];
                            metaQuickReplies?: (...)[];
                            payload?: string;
                            template_language?: string;
                            template_name?: string;
                            whatsappInteractive?: { [key: ...]: ... };
                        };
                        message_type: | "simple_message"
                        | "file_message"
                        | "comment_message"
                        | "publication_message"
                        | "quick_reply_message"
                        | "button_message"
                        | "elements_message"
                        | "postback_message"
                        | "template_message"
                        | "interactive_message";
                        read: boolean;
                        text?: string;
                    };
                    originalChange?: { [key: string]: unknown };
                    social_network:
                        | "facebook"
                        | "instagram"
                        | "linkedin"
                        | "tiktok"
                        | "twitter"
                        | "whatsapp"
                        | "youtube"
                        | "google_business"
                        | "bluesky"
                        | "discord";
                }
            )[];
        };
    };
    responses: {
        "200": { content?: undefined; headers: { [name: string]: unknown } };
    };
}
reconnectIntegration: {
    parameters: {
        cookie?: undefined;
        header?: undefined;
        path: { id_integration: string; id_organization: string };
        query?: undefined;
    };
    requestBody: {
        content: {
            "application/json": | { code: string; provider: "google_drive" }
            | {
                auto_publish?: boolean;
                id_accounts: string[];
                import_image?: boolean;
                provider: "rss";
                publication_type?: string;
                template?: string;
                url: string;
            };
        };
    };
    responses: {
        "200": {
            content: {
                "application/json": {
                    integration: {
                        _id: string;
                        config: {
                            auto_publish?: boolean;
                            id_accounts?: string[];
                            import_image?: boolean;
                            last_checked?: string;
                            publication_type?: string;
                            seen_guids?: string[];
                            template?: string;
                            url?: string;
                        };
                        connected: boolean;
                        creation_date: string;
                        enabled: boolean;
                        error_code?: null
                        | number;
                        external_identifier?: string;
                        id_client: string;
                        id_organization: string;
                        last_used_date?: string;
                        name: string;
                        provider: "google_drive" | "rss";
                    };
                };
            };
            headers: { [name: string]: unknown };
        };
        "400": {
            content: {
                "application/json": {
                    code: number;
                    data?: { [key: string]: unknown };
                    message: string;
                };
            };
            headers: { [name: string]: unknown };
        };
    };
}
regenerateAiPlanPublication: {
    parameters: {
        cookie?: undefined;
        header?: undefined;
        path: {
            id_ai_plan: string;
            id_client: string;
            id_organization: string;
            id_publication: string;
        };
        query?: undefined;
    };
    requestBody: {
        content: { "application/json": { target: "image"
        | "text" } };
    };
    responses: {
        "200": {
            content: {
                "application/json": {
                    credits_spent: number;
                    publication: {
                        _id: string;
                        creation_date: string;
                        engagement_base?: "reach"
                        | "impressions"
                        | "followers";
                        external_identifier?: string;
                        files: {
                            _id: string;
                            cover_image?: { _id: string; cover_image?: ...; cover_offset?: number; creation_date: string; file_externals: { external_identifier: string; external_url: string; social_network: "facebook" | "instagram" | ... 7 more ... | "discord"; }[]; ... 6 more ...; public_path: string; };
                            cover_offset?: number;
                            creation_date: string;
                            file_externals: {
                                external_identifier: string;
                                external_url: string;
                                social_network:
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...);
                            }[];
                            file_format: "mp4"
                            | "jpeg"
                            | "gif"
                            | "png"
                            | "jpg";
                            file_properties: {
                                allowed_social_networks: string[];
                                aspect_ratio: { text: string; value: number };
                                duration: number;
                                height: number;
                                size_in_bytes: number;
                                width: number;
                            };
                            file_type: "video"
                            | "image";
                            id_organization: string;
                            is_temporal: boolean;
                            name: string;
                            public_path: string;
                        }[];
                        id_account: | string
                        | {
                            _id: string;
                            creation_date: string;
                            error_code: number;
                            followers_count?: number;
                            id_client: string;
                            id_organization: string;
                            image?: string;
                            name: string;
                            next_comments_update?: string;
                            next_stats_update?: string;
                            private_message_link?: string;
                            social_network: | "facebook"
                            | "instagram"
                            | "linkedin"
                            | "tiktok"
                            | "twitter"
                            | "whatsapp"
                            | "youtube"
                            | "google_business"
                            | "bluesky"
                            | "discord";
                            username?: string;
                        };
                        id_integration?: string;
                        id_organization: string;
                        metrics?: {
                            clicks?: number;
                            comments?: number;
                            engagement?: number;
                            followers?: number;
                            followers_gained?: number;
                            impressions?: number;
                            likes?: number;
                            profile_views?: number;
                            reach?: number;
                            saves?: number;
                            shares?: number;
                            video_views?: number;
                        };
                        name?: string;
                        next_stats_update?: string;
                        publication_errors: {
                            code: number;
                            data?: { [key: string]: unknown };
                            message: string;
                        }[];
                        publication_type: | "profile"
                        | "page"
                        | "group"
                        | "reels"
                        | "stories"
                        | "message";
                        publish_date?: string;
                        retries: number;
                        social_network: | "facebook"
                        | "instagram"
                        | "linkedin"
                        | "tiktok"
                        | "twitter"
                        | "whatsapp"
                        | "youtube"
                        | "google_business"
                        | "bluesky"
                        | "discord";
                        state: "ready"
                        | "withErrors"
                        | "sended"
                        | "draft"
                        | "publishing";
                        statistics?: {
                            angers?: number;
                            bookmarks?: number;
                            clicks?: number;
                            comments?: number;
                            engagement?: number;
                            follows?: number;
                            hahas?: number;
                            impressions?: number;
                            likes?: number;
                            loves?: number;
                            negative_feedback?: number;
                            page_likes?: number;
                            playback_0_count?: number;
                            playback_100_count?: number;
                            playback_25_count?: number;
                            playback_50_count?: number;
                            playback_75_count?: number;
                            profile_activity?: number;
                            profile_visits?: number;
                            quotes?: number;
                            reach?: number;
                            replys?: number;
                            retwets?: number;
                            saved?: number;
                            share?: number;
                            shareMentions?: number;
                            shares?: number;
                            sorrys?: number;
                            url_link_clicks?: number;
                            user_profile_clicks?: number;
                            video_views?: number;
                            views?: number;
                            wows?: number;
                        };
                        stats_updated_date?: string;
                        text?: string;
                        title?: string;
                        url?: string;
                    };
                };
            };
            headers: { [name: string]: unknown };
        };
        "400": {
            content: {
                "application/json": {
                    code: number;
                    data?: { [key: string]: unknown };
                    message: string;
                };
            };
            headers: { [name: string]: unknown };
        };
        "500": { content?: undefined; headers: { [name: string]: unknown } };
    };
}
removeUserFromOrganizationRole: {
    parameters: {
        cookie?: undefined;
        header?: undefined;
        path: { id_organization: string; id_rol: string; id_user: string };
        query?: undefined;
    };
    requestBody?: undefined;
    responses: {
        "200": {
            content: { "application/json": { success: boolean } };
            headers: { [name: string]: unknown };
        };
        "400": {
            content: {
                "application/json": {
                    code: number;
                    data?: { [key: string]: unknown };
                    message: string;
                };
            };
            headers: { [name: string]: unknown };
        };
        "401": {
            content: {
                "application/json": {
                    code: number;
                    data?: { [key: string]: unknown };
                    message: string;
                };
            };
            headers: { [name: string]: unknown };
        };
        "500": {
            content: {
                "application/json": {
                    code: number;
                    data?: { [key: string]: unknown };
                    message: string;
                };
            };
            headers: { [name: string]: unknown };
        };
    };
}
removeUserRole: {
    parameters: {
        cookie?: undefined;
        header?: undefined;
        path: { id_client: string; id_rol: string; id_user: string };
        query?: undefined;
    };
    requestBody?: undefined;
    responses: {
        "200": {
            content: { "application/json": { success: boolean } };
            headers: { [name: string]: unknown };
        };
        "400": {
            content: {
                "application/json": {
                    code: number;
                    data?: { [key: string]: unknown };
                    message: string;
                };
            };
            headers: { [name: string]: unknown };
        };
        "500": { content?: undefined; headers: { [name: string]: unknown } };
    };
}
replyComment: {
    parameters: {
        cookie?: undefined;
        header?: undefined;
        path: { id_comment: string; id_organization: string };
        query?: undefined;
    };
    requestBody: { content: { "application/json": { text: string } } };
    responses: {
        "200": {
            content: {
                "application/json": {
                    comment: {
                        _id: string;
                        author: {
                            external_id: string;
                            is_own: boolean;
                            name?: string;
                            profile_pic?: string;
                        };
                        collected_date: string;
                        creation_date: string;
                        deleted: boolean;
                        external_id: string;
                        hidden: boolean;
                        id_account: | string
                        | {
                            _id: string;
                            creation_date: string;
                            error_code: number;
                            followers_count?: number;
                            id_client: string;
                            id_organization: string;
                            image?: string;
                            name: string;
                            next_comments_update?: string;
                            next_stats_update?: string;
                            private_message_link?: string;
                            social_network: | "facebook"
                            | "instagram"
                            | "linkedin"
                            | "tiktok"
                            | "twitter"
                            | "whatsapp"
                            | "youtube"
                            | "google_business"
                            | "bluesky"
                            | "discord";
                            username?: string;
                        };
                        id_organization: string;
                        id_publication?: | string
                        | {
                            _id: string;
                            creation_date: string;
                            engagement_base?: "reach"
                            | "impressions"
                            | "followers";
                            external_identifier?: string;
                            files: {
                                _id: string;
                                cover_image?: (...) | (...);
                                cover_offset?: (...) | (...);
                                creation_date: string;
                                file_externals: (...)[];
                                file_format: (...) | (...) | (...) | (...) | (...);
                                file_properties: {
                                    allowed_social_networks: ...;
                                    aspect_ratio: ...;
                                    duration: ...;
                                    height: ...;
                                    size_in_bytes: ...;
                                    width: ...;
                                };
                                file_type: (...)
                                | (...);
                                id_organization: string;
                                is_temporal: boolean;
                                name: string;
                                public_path: string;
                            }[];
                            id_account: | string
                            | {
                                _id: string;
                                creation_date: string;
                                error_code: number;
                                followers_count?: (...)
                                | (...);
                                id_client: string;
                                id_organization: string;
                                image?: (...) | (...);
                                name: string;
                                next_comments_update?: (...) | (...);
                                next_stats_update?: (...) | (...);
                                private_message_link?: (...) | (...);
                                social_network:
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...);
                                username?: (...) | (...);
                            };
                            id_integration?: string;
                            id_organization: string;
                            metrics?: {
                                clicks?: (...)
                                | (...);
                                comments?: (...) | (...);
                                engagement?: (...) | (...);
                                followers?: (...) | (...);
                                followers_gained?: (...) | (...);
                                impressions?: (...) | (...);
                                likes?: (...) | (...);
                                profile_views?: (...) | (...);
                                reach?: (...) | (...);
                                saves?: (...) | (...);
                                shares?: (...) | (...);
                                video_views?: (...) | (...);
                            };
                            name?: string;
                            next_stats_update?: string;
                            publication_errors: {
                                code: number;
                                data?: (...)
                                | (...);
                                message: string;
                            }[];
                            publication_type: | "profile"
                            | "page"
                            | "group"
                            | "reels"
                            | "stories"
                            | "message";
                            publish_date?: string;
                            retries: number;
                            social_network: | "facebook"
                            | "instagram"
                            | "linkedin"
                            | "tiktok"
                            | "twitter"
                            | "whatsapp"
                            | "youtube"
                            | "google_business"
                            | "bluesky"
                            | "discord";
                            state: "ready"
                            | "withErrors"
                            | "sended"
                            | "draft"
                            | "publishing";
                            statistics?: {
                                angers?: (...) | (...);
                                bookmarks?: (...) | (...);
                                clicks?: (...) | (...);
                                comments?: (...) | (...);
                                engagement?: (...) | (...);
                                follows?: (...) | (...);
                                hahas?: (...) | (...);
                                impressions?: (...) | (...);
                                likes?: (...) | (...);
                                loves?: (...) | (...);
                                negative_feedback?: (...) | (...);
                                page_likes?: (...) | (...);
                                playback_0_count?: (...) | (...);
                                playback_100_count?: (...) | (...);
                                playback_25_count?: (...) | (...);
                                playback_50_count?: (...) | (...);
                                playback_75_count?: (...) | (...);
                                profile_activity?: (...) | (...);
                                profile_visits?: (...) | (...);
                                quotes?: (...) | (...);
                                reach?: (...) | (...);
                                replys?: (...) | (...);
                                retwets?: (...) | (...);
                                saved?: (...) | (...);
                                share?: (...) | (...);
                                shareMentions?: (...) | (...);
                                shares?: (...) | (...);
                                sorrys?: (...) | (...);
                                url_link_clicks?: (...) | (...);
                                user_profile_clicks?: (...) | (...);
                                video_views?: (...) | (...);
                                views?: (...) | (...);
                                wows?: (...) | (...);
                            };
                            stats_updated_date?: string;
                            text?: string;
                            title?: string;
                            url?: string;
                        };
                        like_count?: number;
                        our_reply_external_id?: string;
                        parent_external_id?: string;
                        publication_external_id: string;
                        rating?: number;
                        read: boolean;
                        replied: boolean;
                        reply_count?: number;
                        social_network: | "facebook"
                        | "instagram"
                        | "linkedin"
                        | "twitter"
                        | "youtube"
                        | "google_business"
                        | "bluesky"
                        | "discord";
                        text: string;
                    };
                    credits_consumed: number;
                    reply: {
                        _id: string;
                        author: {
                            external_id: string;
                            is_own: boolean;
                            name?: string;
                            profile_pic?: string;
                        };
                        collected_date: string;
                        creation_date: string;
                        deleted: boolean;
                        external_id: string;
                        hidden: boolean;
                        id_account: | string
                        | {
                            _id: string;
                            creation_date: string;
                            error_code: number;
                            followers_count?: number;
                            id_client: string;
                            id_organization: string;
                            image?: string;
                            name: string;
                            next_comments_update?: string;
                            next_stats_update?: string;
                            private_message_link?: string;
                            social_network: | "facebook"
                            | "instagram"
                            | "linkedin"
                            | "tiktok"
                            | "twitter"
                            | "whatsapp"
                            | "youtube"
                            | "google_business"
                            | "bluesky"
                            | "discord";
                            username?: string;
                        };
                        id_organization: string;
                        id_publication?: | string
                        | {
                            _id: string;
                            creation_date: string;
                            engagement_base?: "reach"
                            | "impressions"
                            | "followers";
                            external_identifier?: string;
                            files: {
                                _id: string;
                                cover_image?: (...) | (...);
                                cover_offset?: (...) | (...);
                                creation_date: string;
                                file_externals: (...)[];
                                file_format: (...) | (...) | (...) | (...) | (...);
                                file_properties: {
                                    allowed_social_networks: ...;
                                    aspect_ratio: ...;
                                    duration: ...;
                                    height: ...;
                                    size_in_bytes: ...;
                                    width: ...;
                                };
                                file_type: (...)
                                | (...);
                                id_organization: string;
                                is_temporal: boolean;
                                name: string;
                                public_path: string;
                            }[];
                            id_account: | string
                            | {
                                _id: string;
                                creation_date: string;
                                error_code: number;
                                followers_count?: (...)
                                | (...);
                                id_client: string;
                                id_organization: string;
                                image?: (...) | (...);
                                name: string;
                                next_comments_update?: (...) | (...);
                                next_stats_update?: (...) | (...);
                                private_message_link?: (...) | (...);
                                social_network:
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...);
                                username?: (...) | (...);
                            };
                            id_integration?: string;
                            id_organization: string;
                            metrics?: {
                                clicks?: (...)
                                | (...);
                                comments?: (...) | (...);
                                engagement?: (...) | (...);
                                followers?: (...) | (...);
                                followers_gained?: (...) | (...);
                                impressions?: (...) | (...);
                                likes?: (...) | (...);
                                profile_views?: (...) | (...);
                                reach?: (...) | (...);
                                saves?: (...) | (...);
                                shares?: (...) | (...);
                                video_views?: (...) | (...);
                            };
                            name?: string;
                            next_stats_update?: string;
                            publication_errors: {
                                code: number;
                                data?: (...)
                                | (...);
                                message: string;
                            }[];
                            publication_type: | "profile"
                            | "page"
                            | "group"
                            | "reels"
                            | "stories"
                            | "message";
                            publish_date?: string;
                            retries: number;
                            social_network: | "facebook"
                            | "instagram"
                            | "linkedin"
                            | "tiktok"
                            | "twitter"
                            | "whatsapp"
                            | "youtube"
                            | "google_business"
                            | "bluesky"
                            | "discord";
                            state: "ready"
                            | "withErrors"
                            | "sended"
                            | "draft"
                            | "publishing";
                            statistics?: {
                                angers?: (...) | (...);
                                bookmarks?: (...) | (...);
                                clicks?: (...) | (...);
                                comments?: (...) | (...);
                                engagement?: (...) | (...);
                                follows?: (...) | (...);
                                hahas?: (...) | (...);
                                impressions?: (...) | (...);
                                likes?: (...) | (...);
                                loves?: (...) | (...);
                                negative_feedback?: (...) | (...);
                                page_likes?: (...) | (...);
                                playback_0_count?: (...) | (...);
                                playback_100_count?: (...) | (...);
                                playback_25_count?: (...) | (...);
                                playback_50_count?: (...) | (...);
                                playback_75_count?: (...) | (...);
                                profile_activity?: (...) | (...);
                                profile_visits?: (...) | (...);
                                quotes?: (...) | (...);
                                reach?: (...) | (...);
                                replys?: (...) | (...);
                                retwets?: (...) | (...);
                                saved?: (...) | (...);
                                share?: (...) | (...);
                                shareMentions?: (...) | (...);
                                shares?: (...) | (...);
                                sorrys?: (...) | (...);
                                url_link_clicks?: (...) | (...);
                                user_profile_clicks?: (...) | (...);
                                video_views?: (...) | (...);
                                views?: (...) | (...);
                                wows?: (...) | (...);
                            };
                            stats_updated_date?: string;
                            text?: string;
                            title?: string;
                            url?: string;
                        };
                        like_count?: number;
                        our_reply_external_id?: string;
                        parent_external_id?: string;
                        publication_external_id: string;
                        rating?: number;
                        read: boolean;
                        replied: boolean;
                        reply_count?: number;
                        social_network: | "facebook"
                        | "instagram"
                        | "linkedin"
                        | "twitter"
                        | "youtube"
                        | "google_business"
                        | "bluesky"
                        | "discord";
                        text: string;
                    };
                };
            };
            headers: { [name: string]: unknown };
        };
        "400": {
            content: {
                "application/json": {
                    code: number;
                    data?: { [key: string]: unknown };
                    message: string;
                };
            };
            headers: { [name: string]: unknown };
        };
    };
}
retryAiPlan: {
    parameters: {
        cookie?: undefined;
        header?: undefined;
        path: { id_ai_plan: string; id_client: string; id_organization: string };
        query?: undefined;
    };
    requestBody?: undefined;
    responses: {
        "200": {
            content: {
                "application/json": {
                    ai_plan: {
                        _id: string;
                        accounts: string[];
                        attempts: number;
                        creation_date: string;
                        credits_spent: number;
                        error?: {
                            code: number;
                            data?: { [key: string]: unknown };
                            message: string;
                        };
                        generation_end_date?: string;
                        id_client: string;
                        id_organization: string;
                        keycloak_identifier?: string;
                        options: {
                            allow_images: boolean;
                            gallery_uploads: string[];
                            language: string;
                            max_images?: number;
                            publish_days: number[];
                            shared: boolean;
                            timezone: string;
                            tone?: string;
                            use_organization_context: boolean;
                            week_start: string;
                        };
                        orchestrator_result?: Record<string, never>;
                        organization_context?: {
                            audience?: string;
                            avoid?: string;
                            blog_url?: string;
                            brand_name?: string;
                            default_tone?: string;
                            description?: string;
                            keywords?: string[];
                            notes?: string;
                            products?: string;
                            sector?: string;
                            shop_url?: string;
                            social_urls?: string[];
                            value_proposition?: string;
                            website?: string;
                        };
                        prompt: string;
                        publications: (
                            | string
                            | {
                                _id: string;
                                creation_date: string;
                                engagement_base?: "reach"
                                | "impressions"
                                | "followers";
                                external_identifier?: string;
                                files: {
                                    _id: ...;
                                    cover_image?: ...;
                                    cover_offset?: ...;
                                    creation_date: ...;
                                    file_externals: ...;
                                    file_format: ...;
                                    file_properties: ...;
                                    file_type: ...;
                                    id_organization: ...;
                                    is_temporal: ...;
                                    name: ...;
                                    public_path: ...;
                                }[];
                                id_account: | string
                                | {
                                    _id: ...;
                                    creation_date: ...;
                                    error_code: ...;
                                    followers_count?: ...;
                                    id_client: ...;
                                    id_organization: ...;
                                    image?: ...;
                                    name: ...;
                                    next_comments_update?: ...;
                                    next_stats_update?: ...;
                                    private_message_link?: ...;
                                    social_network: ...;
                                    username?: ...;
                                };
                                id_integration?: string;
                                id_organization: string;
                                metrics?: {
                                    clicks?: ...;
                                    comments?: ...;
                                    engagement?: ...;
                                    followers?: ...;
                                    followers_gained?: ...;
                                    impressions?: ...;
                                    likes?: ...;
                                    profile_views?: ...;
                                    reach?: ...;
                                    saves?: ...;
                                    shares?: ...;
                                    video_views?: ...;
                                };
                                name?: string;
                                next_stats_update?: string;
                                publication_errors: { code: ...; data?: ...; message: ... }[];
                                publication_type:
                                    | "profile"
                                    | "page"
                                    | "group"
                                    | "reels"
                                    | "stories"
                                    | "message";
                                publish_date?: string;
                                retries: number;
                                social_network: | "facebook"
                                | "instagram"
                                | "linkedin"
                                | "tiktok"
                                | "twitter"
                                | "whatsapp"
                                | "youtube"
                                | "google_business"
                                | "bluesky"
                                | "discord";
                                state: "ready"
                                | "withErrors"
                                | "sended"
                                | "draft"
                                | "publishing";
                                statistics?: {
                                    angers?: ...;
                                    bookmarks?: ...;
                                    clicks?: ...;
                                    comments?: ...;
                                    engagement?: ...;
                                    follows?: ...;
                                    hahas?: ...;
                                    impressions?: ...;
                                    likes?: ...;
                                    loves?: ...;
                                    negative_feedback?: ...;
                                    page_likes?: ...;
                                    playback_0_count?: ...;
                                    playback_100_count?: ...;
                                    playback_25_count?: ...;
                                    playback_50_count?: ...;
                                    playback_75_count?: ...;
                                    profile_activity?: ...;
                                    profile_visits?: ...;
                                    quotes?: ...;
                                    reach?: ...;
                                    replys?: ...;
                                    retwets?: ...;
                                    saved?: ...;
                                    share?: ...;
                                    shareMentions?: ...;
                                    shares?: ...;
                                    sorrys?: ...;
                                    url_link_clicks?: ...;
                                    user_profile_clicks?: ...;
                                    video_views?: ...;
                                    views?: ...;
                                    wows?: ...;
                                };
                                stats_updated_date?: string;
                                text?: string;
                                title?: string;
                                url?: string;
                            }
                        )[];
                        state: | "pending"
                        | "generating"
                        | "generated"
                        | "validated"
                        | "failed"
                        | "cancelled";
                    };
                };
            };
            headers: { [name: string]: unknown };
        };
        "400": {
            content: {
                "application/json": {
                    code: number;
                    data?: { [key: string]: unknown };
                    message: string;
                };
            };
            headers: { [name: string]: unknown };
        };
        "500": { content?: undefined; headers: { [name: string]: unknown } };
    };
}
retryPublication: {
    parameters: {
        cookie?: undefined;
        header?: undefined;
        path: { id_organization: string; id_publication: string };
        query?: undefined;
    };
    requestBody?: undefined;
    responses: {
        "200": {
            content: {
                "application/json": {
                    max_retries: number;
                    publication: {
                        _id: string;
                        creation_date: string;
                        engagement_base?: "reach"
                        | "impressions"
                        | "followers";
                        external_identifier?: string;
                        files: {
                            _id: string;
                            cover_image?: { _id: string; cover_image?: ...; cover_offset?: number; creation_date: string; file_externals: { external_identifier: string; external_url: string; social_network: "facebook" | "instagram" | ... 7 more ... | "discord"; }[]; ... 6 more ...; public_path: string; };
                            cover_offset?: number;
                            creation_date: string;
                            file_externals: {
                                external_identifier: string;
                                external_url: string;
                                social_network:
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...);
                            }[];
                            file_format: "mp4"
                            | "jpeg"
                            | "gif"
                            | "png"
                            | "jpg";
                            file_properties: {
                                allowed_social_networks: string[];
                                aspect_ratio: { text: string; value: number };
                                duration: number;
                                height: number;
                                size_in_bytes: number;
                                width: number;
                            };
                            file_type: "video"
                            | "image";
                            id_organization: string;
                            is_temporal: boolean;
                            name: string;
                            public_path: string;
                        }[];
                        id_account: | string
                        | {
                            _id: string;
                            creation_date: string;
                            error_code: number;
                            followers_count?: number;
                            id_client: string;
                            id_organization: string;
                            image?: string;
                            name: string;
                            next_comments_update?: string;
                            next_stats_update?: string;
                            private_message_link?: string;
                            social_network: | "facebook"
                            | "instagram"
                            | "linkedin"
                            | "tiktok"
                            | "twitter"
                            | "whatsapp"
                            | "youtube"
                            | "google_business"
                            | "bluesky"
                            | "discord";
                            username?: string;
                        };
                        id_integration?: string;
                        id_organization: string;
                        metrics?: {
                            clicks?: number;
                            comments?: number;
                            engagement?: number;
                            followers?: number;
                            followers_gained?: number;
                            impressions?: number;
                            likes?: number;
                            profile_views?: number;
                            reach?: number;
                            saves?: number;
                            shares?: number;
                            video_views?: number;
                        };
                        name?: string;
                        next_stats_update?: string;
                        publication_errors: {
                            code: number;
                            data?: { [key: string]: unknown };
                            message: string;
                        }[];
                        publication_type: | "profile"
                        | "page"
                        | "group"
                        | "reels"
                        | "stories"
                        | "message";
                        publish_date?: string;
                        retries: number;
                        social_network: | "facebook"
                        | "instagram"
                        | "linkedin"
                        | "tiktok"
                        | "twitter"
                        | "whatsapp"
                        | "youtube"
                        | "google_business"
                        | "bluesky"
                        | "discord";
                        state: "ready"
                        | "withErrors"
                        | "sended"
                        | "draft"
                        | "publishing";
                        statistics?: {
                            angers?: number;
                            bookmarks?: number;
                            clicks?: number;
                            comments?: number;
                            engagement?: number;
                            follows?: number;
                            hahas?: number;
                            impressions?: number;
                            likes?: number;
                            loves?: number;
                            negative_feedback?: number;
                            page_likes?: number;
                            playback_0_count?: number;
                            playback_100_count?: number;
                            playback_25_count?: number;
                            playback_50_count?: number;
                            playback_75_count?: number;
                            profile_activity?: number;
                            profile_visits?: number;
                            quotes?: number;
                            reach?: number;
                            replys?: number;
                            retwets?: number;
                            saved?: number;
                            share?: number;
                            shareMentions?: number;
                            shares?: number;
                            sorrys?: number;
                            url_link_clicks?: number;
                            user_profile_clicks?: number;
                            video_views?: number;
                            views?: number;
                            wows?: number;
                        };
                        stats_updated_date?: string;
                        text?: string;
                        title?: string;
                        url?: string;
                    };
                };
            };
            headers: { [name: string]: unknown };
        };
        "400": {
            content: {
                "application/json": {
                    code: number;
                    data?: { [key: string]: unknown };
                    message: string;
                };
            };
            headers: { [name: string]: unknown };
        };
        "500": { content?: undefined; headers: { [name: string]: unknown } };
    };
}
setPersistentMenu: {
    parameters: {
        cookie?: undefined;
        header?: undefined;
        path: { id_account: string; id_organization: string };
        query?: undefined;
    };
    requestBody: {
        content: {
            "application/json": {
                persistent_menu?: {
                    call_to_actions?: { [key: string]: unknown }[];
                    composer_input_disabled?: boolean;
                    locale?: string;
                }[];
            };
        };
    };
    responses: {
        "200": {
            content: {
                "application/json": {
                    persistent_menu?: {
                        call_to_actions?: { [key: ...]: ... }[];
                        composer_input_disabled?: boolean;
                        locale?: string;
                    }[];
                };
            };
            headers: { [name: string]: unknown };
        };
        "400": {
            content: {
                "application/json": {
                    code: number;
                    data?: { [key: string]: unknown };
                    message: string;
                };
            };
            headers: { [name: string]: unknown };
        };
        "500": { content?: undefined; headers: { [name: string]: unknown } };
    };
}
updateAccount: {
    parameters: {
        cookie?: undefined;
        header?: undefined;
        path: { id_account: string; id_organization: string };
        query?: undefined;
    };
    requestBody: { content: { "application/json": { name?: string } } };
    responses: {
        "200": {
            content: {
                "application/json": {
                    account: {
                        _id: string;
                        creation_date: string;
                        error_code: number;
                        followers_count?: number;
                        id_client: string;
                        id_organization: string;
                        image?: string;
                        name: string;
                        next_comments_update?: string;
                        next_stats_update?: string;
                        private_message_link?: string;
                        social_network:
                            | "facebook"
                            | "instagram"
                            | "linkedin"
                            | "tiktok"
                            | "twitter"
                            | "whatsapp"
                            | "youtube"
                            | "google_business"
                            | "bluesky"
                            | "discord";
                        username?: string;
                    };
                };
            };
            headers: { [name: string]: unknown };
        };
        "400": {
            content: {
                "application/json": {
                    code: number;
                    data?: { [key: string]: unknown };
                    message: string;
                };
            };
            headers: { [name: string]: unknown };
        };
        "500": { content?: undefined; headers: { [name: string]: unknown } };
    };
}
updateAiSettings: {
    parameters: {
        cookie?: undefined;
        header?: undefined;
        path: { id_client: string };
        query?: undefined;
    };
    requestBody: {
        content: {
            "application/json": {
                image?: | null
                | {
                    api_key?: string;
                    has_api_key?: boolean;
                    model: string;
                    provider: "openrouter"
                    | "openai"
                    | "google"
                    | "anthropic";
                };
                orchestrator?: | null
                | {
                    api_key?: string;
                    has_api_key?: boolean;
                    model: string;
                    provider: "openrouter"
                    | "openai"
                    | "google"
                    | "anthropic";
                };
                text?: | null
                | {
                    api_key?: string;
                    has_api_key?: boolean;
                    model: string;
                    provider: "openrouter"
                    | "openai"
                    | "google"
                    | "anthropic";
                };
            };
        };
    };
    responses: {
        "200": {
            content: {
                "application/json": {
                    client: {
                        _id: string;
                        actual_asigned?: {
                            accounts: number;
                            ai_credits?: number;
                            artificial_inteligence?: boolean;
                            integrations: number;
                            publications: number;
                            space: number;
                            stats?: boolean;
                            twitter_credits?: number;
                            users: number;
                            whatsapp?: boolean;
                        };
                        actual_plan: {
                            current_period_end?: string;
                            current_period_start?: string;
                            enabled: boolean;
                            isEnabled: boolean;
                            plan_data: {
                                accounts: number;
                                ai_credits?: number;
                                artificial_inteligence?: boolean;
                                integrations: number;
                                publications: number;
                                space: number;
                                stats?: boolean;
                                twitter_credits?: number;
                                users: number;
                                whatsapp?: boolean;
                            };
                            plan_identifier: "basic"
                            | "free"
                            | "pro"
                            | "custom";
                            require_action?: boolean;
                            status: string;
                            stripe_customer_id?: string;
                        };
                        actual_use?: {
                            accounts: number;
                            ai_credits?: number;
                            artificial_inteligence?: boolean;
                            integrations: number;
                            publications: number;
                            space: number;
                            stats?: boolean;
                            twitter_credits?: number;
                            users: number;
                            whatsapp?: boolean;
                        };
                        ai_settings?: {
                            image?: | null
                            | {
                                api_key?: (...)
                                | (...);
                                has_api_key?: (...) | (...) | (...);
                                model: string;
                                provider: (...) | (...) | (...) | (...);
                            };
                            orchestrator?: | null
                            | {
                                api_key?: (...)
                                | (...);
                                has_api_key?: (...) | (...) | (...);
                                model: string;
                                provider: (...) | (...) | (...) | (...);
                            };
                            text?: | null
                            | {
                                api_key?: (...)
                                | (...);
                                has_api_key?: (...) | (...) | (...);
                                model: string;
                                provider: (...) | (...) | (...) | (...);
                            };
                        };
                        client_type?: "personal"
                        | "company";
                        creation_date: string;
                        name: string;
                        trial_tested?: boolean;
                    };
                };
            };
            headers: { [name: string]: unknown };
        };
        "400": {
            content: {
                "application/json": {
                    code: number;
                    data?: { [key: string]: unknown };
                    message: string;
                };
            };
            headers: { [name: string]: unknown };
        };
        "500": { content?: undefined; headers: { [name: string]: unknown } };
    };
}

Type declaration

  • parameters: {
        cookie?: undefined;
        header?: undefined;
        path: { id_client: string };
        query?: undefined;
    }
    • Optionalcookie?: undefined
    • Optionalheader?: undefined
    • path: { id_client: string }
      • id_client: string

        Client identifier

    • Optionalquery?: undefined
  • requestBody: {
        content: {
            "application/json": {
                image?:
                    | null
                    | {
                        api_key?: string;
                        has_api_key?: boolean;
                        model: string;
                        provider: "openrouter"
                        | "openai"
                        | "google"
                        | "anthropic";
                    };
                orchestrator?: | null
                | {
                    api_key?: string;
                    has_api_key?: boolean;
                    model: string;
                    provider: "openrouter"
                    | "openai"
                    | "google"
                    | "anthropic";
                };
                text?: | null
                | {
                    api_key?: string;
                    has_api_key?: boolean;
                    model: string;
                    provider: "openrouter"
                    | "openai"
                    | "google"
                    | "anthropic";
                };
            };
        };
    }

    AI provider configuration keyed by scope

  • responses: {
        "200": {
            content: {
                "application/json": {
                    client: {
                        _id: string;
                        actual_asigned?: {
                            accounts: number;
                            ai_credits?: number;
                            artificial_inteligence?: boolean;
                            integrations: number;
                            publications: number;
                            space: number;
                            stats?: boolean;
                            twitter_credits?: number;
                            users: number;
                            whatsapp?: boolean;
                        };
                        actual_plan: {
                            current_period_end?: string;
                            current_period_start?: string;
                            enabled: boolean;
                            isEnabled: boolean;
                            plan_data: {
                                accounts: number;
                                ai_credits?: number;
                                artificial_inteligence?: boolean;
                                integrations: number;
                                publications: number;
                                space: number;
                                stats?: boolean;
                                twitter_credits?: number;
                                users: number;
                                whatsapp?: boolean;
                            };
                            plan_identifier: "basic"
                            | "free"
                            | "pro"
                            | "custom";
                            require_action?: boolean;
                            status: string;
                            stripe_customer_id?: string;
                        };
                        actual_use?: {
                            accounts: number;
                            ai_credits?: number;
                            artificial_inteligence?: boolean;
                            integrations: number;
                            publications: number;
                            space: number;
                            stats?: boolean;
                            twitter_credits?: number;
                            users: number;
                            whatsapp?: boolean;
                        };
                        ai_settings?: {
                            image?: | null
                            | {
                                api_key?: (...)
                                | (...);
                                has_api_key?: (...) | (...) | (...);
                                model: string;
                                provider: (...) | (...) | (...) | (...);
                            };
                            orchestrator?: | null
                            | {
                                api_key?: (...)
                                | (...);
                                has_api_key?: (...) | (...) | (...);
                                model: string;
                                provider: (...) | (...) | (...) | (...);
                            };
                            text?: | null
                            | {
                                api_key?: (...)
                                | (...);
                                has_api_key?: (...) | (...) | (...);
                                model: string;
                                provider: (...) | (...) | (...) | (...);
                            };
                        };
                        client_type?: "personal"
                        | "company";
                        creation_date: string;
                        name: string;
                        trial_tested?: boolean;
                    };
                };
            };
            headers: { [name: string]: unknown };
        };
        "400": {
            content: {
                "application/json": {
                    code: number;
                    data?: { [key: string]: unknown };
                    message: string;
                };
            };
            headers: { [name: string]: unknown };
        };
        "500": { content?: undefined; headers: { [name: string]: unknown } };
    }
    • 200: {
          content: {
              "application/json": {
                  client: {
                      _id: string;
                      actual_asigned?: {
                          accounts: number;
                          ai_credits?: number;
                          artificial_inteligence?: boolean;
                          integrations: number;
                          publications: number;
                          space: number;
                          stats?: boolean;
                          twitter_credits?: number;
                          users: number;
                          whatsapp?: boolean;
                      };
                      actual_plan: {
                          current_period_end?: string;
                          current_period_start?: string;
                          enabled: boolean;
                          isEnabled: boolean;
                          plan_data: {
                              accounts: number;
                              ai_credits?: number;
                              artificial_inteligence?: boolean;
                              integrations: number;
                              publications: number;
                              space: number;
                              stats?: boolean;
                              twitter_credits?: number;
                              users: number;
                              whatsapp?: boolean;
                          };
                          plan_identifier: "basic"
                          | "free"
                          | "pro"
                          | "custom";
                          require_action?: boolean;
                          status: string;
                          stripe_customer_id?: string;
                      };
                      actual_use?: {
                          accounts: number;
                          ai_credits?: number;
                          artificial_inteligence?: boolean;
                          integrations: number;
                          publications: number;
                          space: number;
                          stats?: boolean;
                          twitter_credits?: number;
                          users: number;
                          whatsapp?: boolean;
                      };
                      ai_settings?: {
                          image?: | null
                          | {
                              api_key?: (...)
                              | (...);
                              has_api_key?: (...) | (...) | (...);
                              model: string;
                              provider: (...) | (...) | (...) | (...);
                          };
                          orchestrator?: | null
                          | {
                              api_key?: (...)
                              | (...);
                              has_api_key?: (...) | (...) | (...);
                              model: string;
                              provider: (...) | (...) | (...) | (...);
                          };
                          text?: | null
                          | {
                              api_key?: (...)
                              | (...);
                              has_api_key?: (...) | (...) | (...);
                              model: string;
                              provider: (...) | (...) | (...) | (...);
                          };
                      };
                      client_type?: "personal"
                      | "company";
                      creation_date: string;
                      name: string;
                      trial_tested?: boolean;
                  };
              };
          };
          headers: { [name: string]: unknown };
      }

      Successful operation. Returns the client with the sanitized ai_settings (no API keys).

    • 400: {
          content: {
              "application/json": {
                  code: number;
                  data?: { [key: string]: unknown };
                  message: string;
              };
          };
          headers: { [name: string]: unknown };
      }

      The request failed. The body carries the PlanVortex error code in code:

      | Code | Meaning |
      | --- | --- |
      | `2104` | Invalid AI provider, scope or model. Returned when the scope is unknown, the provider is not in the catalogue, the provider does not support the scope's capability, or model/api_key are missing. |
      | `521` | Invalid client. The identifier is invalid or doesn't exist |
      
    • 500: { content?: undefined; headers: { [name: string]: unknown } }

      Unhandled error by the server

updateClient: {
    parameters: {
        cookie?: undefined;
        header?: undefined;
        path: { id_client: string };
        query?: undefined;
    };
    requestBody: {
        content: {
            "application/json": {
                client_type?: "personal"
                | "professional"
                | "enterprise"
                | "agency";
                name?: string;
            };
        };
    };
    responses: {
        "200": {
            content: {
                "application/json": {
                    client: {
                        _id: string;
                        actual_asigned?: {
                            accounts: number;
                            ai_credits?: number;
                            artificial_inteligence?: boolean;
                            integrations: number;
                            publications: number;
                            space: number;
                            stats?: boolean;
                            twitter_credits?: number;
                            users: number;
                            whatsapp?: boolean;
                        };
                        actual_plan: {
                            current_period_end?: string;
                            current_period_start?: string;
                            enabled: boolean;
                            isEnabled: boolean;
                            plan_data: {
                                accounts: number;
                                ai_credits?: number;
                                artificial_inteligence?: boolean;
                                integrations: number;
                                publications: number;
                                space: number;
                                stats?: boolean;
                                twitter_credits?: number;
                                users: number;
                                whatsapp?: boolean;
                            };
                            plan_identifier: "basic"
                            | "free"
                            | "pro"
                            | "custom";
                            require_action?: boolean;
                            status: string;
                            stripe_customer_id?: string;
                        };
                        actual_use?: {
                            accounts: number;
                            ai_credits?: number;
                            artificial_inteligence?: boolean;
                            integrations: number;
                            publications: number;
                            space: number;
                            stats?: boolean;
                            twitter_credits?: number;
                            users: number;
                            whatsapp?: boolean;
                        };
                        ai_settings?: {
                            image?: | null
                            | {
                                api_key?: (...)
                                | (...);
                                has_api_key?: (...) | (...) | (...);
                                model: string;
                                provider: (...) | (...) | (...) | (...);
                            };
                            orchestrator?: | null
                            | {
                                api_key?: (...)
                                | (...);
                                has_api_key?: (...) | (...) | (...);
                                model: string;
                                provider: (...) | (...) | (...) | (...);
                            };
                            text?: | null
                            | {
                                api_key?: (...)
                                | (...);
                                has_api_key?: (...) | (...) | (...);
                                model: string;
                                provider: (...) | (...) | (...) | (...);
                            };
                        };
                        client_type?: "personal"
                        | "company";
                        creation_date: string;
                        name: string;
                        trial_tested?: boolean;
                    };
                };
            };
            headers: { [name: string]: unknown };
        };
        "400": {
            content: {
                "application/json": {
                    code: number;
                    data?: { [key: string]: unknown };
                    message: string;
                };
            };
            headers: { [name: string]: unknown };
        };
        "500": { content?: undefined; headers: { [name: string]: unknown } };
    };
}
updateClientApp: {
    parameters: {
        cookie?: undefined;
        header?: undefined;
        path: { id_app: string; id_client: string };
        query?: undefined;
    };
    requestBody: {
        content: {
            "application/json": {
                allowed_domains?: string[];
                keycloak_client_idenfifier: string;
                name: string;
                redirect_urls?: string[];
                webhook_url?: string;
            };
        };
    };
    responses: {
        "200": {
            content: {
                "application/json": {
                    client_app: {
                        _id: string;
                        allowed_domains: string[];
                        creation_date: string;
                        deleted: boolean;
                        deleted_date?: string;
                        id_client: string;
                        id_user?: string;
                        keycloak_client_idenfifier: string;
                        name: string;
                        redirect_urls: string[];
                        webhook_url?: string;
                    };
                };
            };
            headers: { [name: string]: unknown };
        };
        "400": {
            content: {
                "application/json": {
                    code: number;
                    data?: { [key: string]: unknown };
                    message: string;
                };
            };
            headers: { [name: string]: unknown };
        };
    };
}
updateClientRole: {
    parameters: {
        cookie?: undefined;
        header?: undefined;
        path: { id_client: string; id_rol: string };
        query?: undefined;
    };
    requestBody: {
        content: {
            "application/json": {
                name: string;
                permissions: (
                    | "client:update"
                    | "client:read"
                    | "client:delete"
                    | "client_app:create"
                    | "client_app:update"
                    | "client_app:read"
                    | "client_app:delete"
                    | "client_roles:create"
                    | "client_roles:update"
                    | "client_roles:read"
                    | "client_roles:delete"
                    | "client_roles_users:read"
                    | "client_roles_users:create"
                    | "client_roles_users:delete"
                    | "client_organization:create"
                    | "client_organization:update"
                    | "client_organization:read"
                    | "client_organization:delete"
                    | "client_organization_roles:read"
                    | "client_organization_roles:create"
                    | "client_organization_roles:update"
                    | "client_organization_roles:delete"
                    | "client_organization_users_roles:read"
                    | "client_organization_users_roles:create"
                    | "client_organization_users_roles:delete"
                    | "client_organization_accounts:read"
                    | "client_organization_accounts:create"
                    | "client_organization_accounts:update"
                    | "client_organization_accounts:delete"
                    | "client_organization_files:read"
                    | "client_organization_files:create"
                    | "client_organization_files:update"
                    | "client_organization_files:delete"
                    | "client_organization_publications:read"
                    | "client_organization_publications:create"
                    | "client_organization_publications:update"
                    | "client_organization_publications:delete"
                    | "client_organization_publications_stats:read"
                    | "client_organization_account_stats:read"
                    | "client_organization_products:create"
                    | "client_organization_products:update"
                    | "client_organization_products:read"
                    | "client_organization_products:delete"
                    | "client_organization_messages:create"
                    | "client_organization_messages:read"
                    | "client_organization_messages:delete"
                    | "client_organization_contacts:create"
                    | "client_organization_contacts:read"
                    | "client_organization_contacts:update"
                    | "client_organization_contacts:delete"
                    | "client_organization_ai_plans:create"
                    | "client_organization_ai_plans:read"
                    | "client_organization_ai_plans:update"
                    | "client_organization_ai_plans:delete"
                )[];
            };
        };
    };
    responses: {
        "200": {
            content: {
                "application/json": {
                    rol?: {
                        name?: string;
                        permissions?: (
                            | "client:update"
                            | "client:read"
                            | "client:delete"
                            | "client_app:create"
                            | "client_app:update"
                            | "client_app:read"
                            | "client_app:delete"
                            | "client_roles:create"
                            | "client_roles:update"
                            | "client_roles:read"
                            | "client_roles:delete"
                            | "client_roles_users:read"
                            | "client_roles_users:create"
                            | "client_roles_users:delete"
                            | "client_organization:create"
                            | "client_organization:update"
                            | "client_organization:read"
                            | "client_organization:delete"
                            | "client_organization_roles:read"
                            | "client_organization_roles:create"
                            | "client_organization_roles:update"
                            | "client_organization_roles:delete"
                            | "client_organization_users_roles:read"
                            | "client_organization_users_roles:create"
                            | "client_organization_users_roles:delete"
                            | "client_organization_accounts:read"
                            | "client_organization_accounts:create"
                            | "client_organization_accounts:update"
                            | "client_organization_accounts:delete"
                            | "client_organization_files:read"
                            | "client_organization_files:create"
                            | "client_organization_files:update"
                            | "client_organization_files:delete"
                            | "client_organization_publications:read"
                            | "client_organization_publications:create"
                            | "client_organization_publications:update"
                            | "client_organization_publications:delete"
                            | "client_organization_publications_stats:read"
                            | "client_organization_account_stats:read"
                        )[];
                    };
                };
            };
            headers: { [name: string]: unknown };
        };
        "400": {
            content: {
                "application/json": {
                    code: number;
                    data?: { [key: string]: unknown };
                    message: string;
                };
            };
            headers: { [name: string]: unknown };
        };
        "500": { content?: undefined; headers: { [name: string]: unknown } };
    };
}
updateComment: {
    parameters: {
        cookie?: undefined;
        header?: undefined;
        path: { id_comment: string; id_organization: string };
        query?: undefined;
    };
    requestBody: {
        content: { "application/json": { hidden?: boolean; read?: boolean } };
    };
    responses: {
        "200": {
            content: {
                "application/json": {
                    comment: {
                        _id: string;
                        author: {
                            external_id: string;
                            is_own: boolean;
                            name?: string;
                            profile_pic?: string;
                        };
                        collected_date: string;
                        creation_date: string;
                        deleted: boolean;
                        external_id: string;
                        hidden: boolean;
                        id_account: | string
                        | {
                            _id: string;
                            creation_date: string;
                            error_code: number;
                            followers_count?: number;
                            id_client: string;
                            id_organization: string;
                            image?: string;
                            name: string;
                            next_comments_update?: string;
                            next_stats_update?: string;
                            private_message_link?: string;
                            social_network: | "facebook"
                            | "instagram"
                            | "linkedin"
                            | "tiktok"
                            | "twitter"
                            | "whatsapp"
                            | "youtube"
                            | "google_business"
                            | "bluesky"
                            | "discord";
                            username?: string;
                        };
                        id_organization: string;
                        id_publication?: | string
                        | {
                            _id: string;
                            creation_date: string;
                            engagement_base?: "reach"
                            | "impressions"
                            | "followers";
                            external_identifier?: string;
                            files: {
                                _id: string;
                                cover_image?: (...) | (...);
                                cover_offset?: (...) | (...);
                                creation_date: string;
                                file_externals: (...)[];
                                file_format: (...) | (...) | (...) | (...) | (...);
                                file_properties: {
                                    allowed_social_networks: ...;
                                    aspect_ratio: ...;
                                    duration: ...;
                                    height: ...;
                                    size_in_bytes: ...;
                                    width: ...;
                                };
                                file_type: (...)
                                | (...);
                                id_organization: string;
                                is_temporal: boolean;
                                name: string;
                                public_path: string;
                            }[];
                            id_account: | string
                            | {
                                _id: string;
                                creation_date: string;
                                error_code: number;
                                followers_count?: (...)
                                | (...);
                                id_client: string;
                                id_organization: string;
                                image?: (...) | (...);
                                name: string;
                                next_comments_update?: (...) | (...);
                                next_stats_update?: (...) | (...);
                                private_message_link?: (...) | (...);
                                social_network:
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...);
                                username?: (...) | (...);
                            };
                            id_integration?: string;
                            id_organization: string;
                            metrics?: {
                                clicks?: (...)
                                | (...);
                                comments?: (...) | (...);
                                engagement?: (...) | (...);
                                followers?: (...) | (...);
                                followers_gained?: (...) | (...);
                                impressions?: (...) | (...);
                                likes?: (...) | (...);
                                profile_views?: (...) | (...);
                                reach?: (...) | (...);
                                saves?: (...) | (...);
                                shares?: (...) | (...);
                                video_views?: (...) | (...);
                            };
                            name?: string;
                            next_stats_update?: string;
                            publication_errors: {
                                code: number;
                                data?: (...)
                                | (...);
                                message: string;
                            }[];
                            publication_type: | "profile"
                            | "page"
                            | "group"
                            | "reels"
                            | "stories"
                            | "message";
                            publish_date?: string;
                            retries: number;
                            social_network: | "facebook"
                            | "instagram"
                            | "linkedin"
                            | "tiktok"
                            | "twitter"
                            | "whatsapp"
                            | "youtube"
                            | "google_business"
                            | "bluesky"
                            | "discord";
                            state: "ready"
                            | "withErrors"
                            | "sended"
                            | "draft"
                            | "publishing";
                            statistics?: {
                                angers?: (...) | (...);
                                bookmarks?: (...) | (...);
                                clicks?: (...) | (...);
                                comments?: (...) | (...);
                                engagement?: (...) | (...);
                                follows?: (...) | (...);
                                hahas?: (...) | (...);
                                impressions?: (...) | (...);
                                likes?: (...) | (...);
                                loves?: (...) | (...);
                                negative_feedback?: (...) | (...);
                                page_likes?: (...) | (...);
                                playback_0_count?: (...) | (...);
                                playback_100_count?: (...) | (...);
                                playback_25_count?: (...) | (...);
                                playback_50_count?: (...) | (...);
                                playback_75_count?: (...) | (...);
                                profile_activity?: (...) | (...);
                                profile_visits?: (...) | (...);
                                quotes?: (...) | (...);
                                reach?: (...) | (...);
                                replys?: (...) | (...);
                                retwets?: (...) | (...);
                                saved?: (...) | (...);
                                share?: (...) | (...);
                                shareMentions?: (...) | (...);
                                shares?: (...) | (...);
                                sorrys?: (...) | (...);
                                url_link_clicks?: (...) | (...);
                                user_profile_clicks?: (...) | (...);
                                video_views?: (...) | (...);
                                views?: (...) | (...);
                                wows?: (...) | (...);
                            };
                            stats_updated_date?: string;
                            text?: string;
                            title?: string;
                            url?: string;
                        };
                        like_count?: number;
                        our_reply_external_id?: string;
                        parent_external_id?: string;
                        publication_external_id: string;
                        rating?: number;
                        read: boolean;
                        replied: boolean;
                        reply_count?: number;
                        social_network: | "facebook"
                        | "instagram"
                        | "linkedin"
                        | "twitter"
                        | "youtube"
                        | "google_business"
                        | "bluesky"
                        | "discord";
                        text: string;
                    };
                };
            };
            headers: { [name: string]: unknown };
        };
        "400": {
            content: {
                "application/json": {
                    code: number;
                    data?: { [key: string]: unknown };
                    message: string;
                };
            };
            headers: { [name: string]: unknown };
        };
    };
}
updateContact: {
    parameters: {
        cookie?: undefined;
        header?: undefined;
        path: { id_contact: string; id_organization: string };
        query?: undefined;
    };
    requestBody: {
        content: {
            "application/json": {
                extra_data?: {
                    address?: string;
                    boolean_property?: boolean;
                    boolean_property2?: boolean;
                    building?: string
                    | number;
                    city?: string;
                    coords?: number[];
                    country?: string;
                    country_code?: string;
                    door?: string | number;
                    floor?: string | number;
                    number?: string | number;
                    number_property?: number;
                    number_property2?: number;
                    place_id?: string;
                    state?: string;
                    string_property?: string;
                    string_property2?: string;
                    zip_code?: string | number;
                };
                name?: string;
                profile_image?: string;
                social_identifiers?: {
                    _id?: string;
                    external_identifier?: string;
                    social_network: | "facebook"
                    | "instagram"
                    | "linkedin"
                    | "tiktok"
                    | "twitter"
                    | "whatsapp"
                    | "youtube"
                    | "google_business"
                    | "bluesky"
                    | "discord"
                    | "email";
                }[];
            };
        };
    };
    responses: {
        "200": {
            content: { "application/json": { success: boolean } };
            headers: { [name: string]: unknown };
        };
        "400": {
            content: {
                "application/json": {
                    code: number;
                    data?: { [key: string]: unknown };
                    message: string;
                };
            };
            headers: { [name: string]: unknown };
        };
    };
}
updateIntegration: {
    parameters: {
        cookie?: undefined;
        header?: undefined;
        path: { id_integration: string; id_organization: string };
        query?: undefined;
    };
    requestBody: {
        content: {
            "application/json": {
                config?: {
                    auto_publish?: boolean;
                    id_accounts?: string[];
                    import_image?: boolean;
                    last_checked?: string;
                    publication_type?: string;
                    seen_guids?: string[];
                    template?: string;
                    url?: string;
                };
                enabled?: boolean;
                name?: string;
            };
        };
    };
    responses: {
        "200": {
            content: {
                "application/json": {
                    integration: {
                        _id: string;
                        config: {
                            auto_publish?: boolean;
                            id_accounts?: string[];
                            import_image?: boolean;
                            last_checked?: string;
                            publication_type?: string;
                            seen_guids?: string[];
                            template?: string;
                            url?: string;
                        };
                        connected: boolean;
                        creation_date: string;
                        enabled: boolean;
                        error_code?: null
                        | number;
                        external_identifier?: string;
                        id_client: string;
                        id_organization: string;
                        last_used_date?: string;
                        name: string;
                        provider: "google_drive" | "rss";
                    };
                };
            };
            headers: { [name: string]: unknown };
        };
        "400": {
            content: {
                "application/json": {
                    code: number;
                    data?: { [key: string]: unknown };
                    message: string;
                };
            };
            headers: { [name: string]: unknown };
        };
    };
}
updateOrganizationAiContext: {
    parameters: {
        cookie?: undefined;
        header?: undefined;
        path: { id_organization: string };
        query?: undefined;
    };
    requestBody: {
        content: {
            "application/json": {
                audience?: string;
                avoid?: string;
                blog_url?: string;
                brand_name?: string;
                default_tone?: string;
                description?: string;
                keywords?: string[];
                notes?: string;
                products?: string;
                sector?: string;
                shop_url?: string;
                social_urls?: string[];
                value_proposition?: string;
                website?: string;
            };
        };
    };
    responses: {
        "200": {
            content: {
                "application/json": {
                    organization: {
                        _id: string;
                        actual_asigned?: {
                            accounts: number;
                            ai_credits?: number;
                            artificial_inteligence?: boolean;
                            integrations: number;
                            publications: number;
                            space: number;
                            stats?: boolean;
                            twitter_credits?: number;
                            users: number;
                            whatsapp?: boolean;
                        };
                        actual_plan?: {
                            accounts: number;
                            ai_credits?: number;
                            artificial_inteligence?: boolean;
                            integrations: number;
                            publications: number;
                            space: number;
                            stats?: boolean;
                            twitter_credits?: number;
                            users: number;
                            whatsapp?: boolean;
                        };
                        actual_use?: {
                            accounts: number;
                            ai_credits?: number;
                            artificial_inteligence?: boolean;
                            integrations: number;
                            publications: number;
                            space: number;
                            stats?: boolean;
                            twitter_credits?: number;
                            users: number;
                            whatsapp?: boolean;
                        };
                        ai_context?: {
                            audience?: string;
                            avoid?: string;
                            blog_url?: string;
                            brand_name?: string;
                            default_tone?: string;
                            description?: string;
                            keywords?: string[];
                            notes?: string;
                            products?: string;
                            sector?: string;
                            shop_url?: string;
                            social_urls?: string[];
                            value_proposition?: string;
                            website?: string;
                        };
                        creation_date: string;
                        id_client: string;
                        name: string;
                        parent_organization?: string;
                        social_credentials?: {
                            discord?: {
                                application_name?: (...)
                                | (...);
                                client_id?: (...) | (...);
                                has_bot_token?: (...) | (...) | (...);
                                has_client_secret?: (...) | (...) | (...);
                                verified_date?: (...) | (...);
                            };
                        };
                        stats_settings?: { auto_refresh_twitter: boolean };
                    };
                };
            };
            headers: { [name: string]: unknown };
        };
        "400": {
            content: {
                "application/json": {
                    code: number;
                    data?: { [key: string]: unknown };
                    message: string;
                };
            };
            headers: { [name: string]: unknown };
        };
        "500": { content?: undefined; headers: { [name: string]: unknown } };
    };
}
updateOrganizationInsideOrganization: {
    parameters: {
        cookie?: undefined;
        header?: undefined;
        path: { id_organization: string };
        query?: undefined;
    };
    requestBody: {
        content: {
            "application/json": {
                actual_plan?: {
                    accounts: number;
                    ai_credits?: number;
                    artificial_inteligence?: boolean;
                    integrations: number;
                    publications: number;
                    space: number;
                    stats?: boolean;
                    twitter_credits?: number;
                    users: number;
                    whatsapp?: boolean;
                };
                stats_settings?: { auto_refresh_twitter: boolean };
            };
        };
    };
    responses: {
        "200": {
            content: {
                "application/json": {
                    organization: {
                        _id: string;
                        actual_asigned?: {
                            accounts: number;
                            ai_credits?: number;
                            artificial_inteligence?: boolean;
                            integrations: number;
                            publications: number;
                            space: number;
                            stats?: boolean;
                            twitter_credits?: number;
                            users: number;
                            whatsapp?: boolean;
                        };
                        actual_plan?: {
                            accounts: number;
                            ai_credits?: number;
                            artificial_inteligence?: boolean;
                            integrations: number;
                            publications: number;
                            space: number;
                            stats?: boolean;
                            twitter_credits?: number;
                            users: number;
                            whatsapp?: boolean;
                        };
                        actual_use?: {
                            accounts: number;
                            ai_credits?: number;
                            artificial_inteligence?: boolean;
                            integrations: number;
                            publications: number;
                            space: number;
                            stats?: boolean;
                            twitter_credits?: number;
                            users: number;
                            whatsapp?: boolean;
                        };
                        ai_context?: {
                            audience?: string;
                            avoid?: string;
                            blog_url?: string;
                            brand_name?: string;
                            default_tone?: string;
                            description?: string;
                            keywords?: string[];
                            notes?: string;
                            products?: string;
                            sector?: string;
                            shop_url?: string;
                            social_urls?: string[];
                            value_proposition?: string;
                            website?: string;
                        };
                        creation_date: string;
                        id_client: string;
                        name: string;
                        parent_organization?: string;
                        social_credentials?: {
                            discord?: {
                                application_name?: (...)
                                | (...);
                                client_id?: (...) | (...);
                                has_bot_token?: (...) | (...) | (...);
                                has_client_secret?: (...) | (...) | (...);
                                verified_date?: (...) | (...);
                            };
                        };
                        stats_settings?: { auto_refresh_twitter: boolean };
                    };
                };
            };
            headers: { [name: string]: unknown };
        };
        "400": {
            content: {
                "application/json": {
                    code: number;
                    data?: { [key: string]: unknown };
                    message: string;
                };
            };
            headers: { [name: string]: unknown };
        };
        "500": { content?: undefined; headers: { [name: string]: unknown } };
    };
}
updateOrganizationRole: {
    parameters: {
        cookie?: undefined;
        header?: undefined;
        path: { id_organization: string; id_rol: string };
        query?: undefined;
    };
    requestBody: {
        content: {
            "application/json": {
                name: string;
                permissions: (
                    | "organization:create"
                    | "organization:update"
                    | "organization:read"
                    | "organization:delete"
                    | "organization_roles:create"
                    | "organization_roles:update"
                    | "organization_roles:read"
                    | "organization_roles:delete"
                    | "organization_users_roles:read"
                    | "organization_users_roles:create"
                    | "organization_users_roles:delete"
                    | "accounts:create"
                    | "accounts:update"
                    | "accounts:read"
                    | "accounts:delete"
                    | "products:create"
                    | "products:update"
                    | "products:read"
                    | "products:delete"
                    | "files:create"
                    | "files:update"
                    | "files:read"
                    | "files:delete"
                    | "publications:create"
                    | "publications:update"
                    | "publications:read"
                    | "publications:delete"
                    | "account_stats:read"
                    | "publication_stats:read"
                    | "messages:create"
                    | "messages:read"
                    | "messages:delete"
                    | "contacts:create"
                    | "contacts:read"
                    | "contacts:update"
                    | "contacts:delete"
                    | "ai_plans:create"
                    | "ai_plans:read"
                    | "ai_plans:update"
                    | "ai_plans:delete"
                )[];
            };
        };
    };
    responses: {
        "200": {
            content: {
                "application/json": {
                    rol?: {
                        _id?: string;
                        creation_date?: string;
                        default?: boolean;
                        id_organization?: string;
                        name?: string;
                        permissions?: (
                            | "organization:create"
                            | "organization:update"
                            | "organization:read"
                            | "organization:delete"
                            | "organization_roles:create"
                            | "organization_roles:update"
                            | "organization_roles:read"
                            | "organization_roles:delete"
                            | "organization_users_roles:read"
                            | "organization_users_roles:create"
                            | "organization_users_roles:delete"
                            | "accounts:create"
                            | "accounts:update"
                            | "accounts:read"
                            | "accounts:delete"
                            | "products:create"
                            | "products:update"
                            | "products:read"
                            | "products:delete"
                            | "files:create"
                            | "files:update"
                            | "files:read"
                            | "files:delete"
                            | "publications:create"
                            | "publications:update"
                            | "publications:read"
                            | "publications:delete"
                            | "account_stats:read"
                            | "publication_stats:read"
                            | "messages:create"
                            | "messages:read"
                            | "messages:delete"
                            | "contacts:create"
                            | "contacts:read"
                            | "contacts:update"
                            | "contacts:delete"
                            | "ai_plans:create"
                            | "ai_plans:read"
                            | "ai_plans:update"
                            | "ai_plans:delete"
                        )[];
                        total_users?: number;
                    };
                };
            };
            headers: { [name: string]: unknown };
        };
        "400": {
            content: {
                "application/json": {
                    code: number;
                    data?: { [key: string]: unknown };
                    message: string;
                };
            };
            headers: { [name: string]: unknown };
        };
        "401": {
            content: {
                "application/json": {
                    code: number;
                    data?: { [key: string]: unknown };
                    message: string;
                };
            };
            headers: { [name: string]: unknown };
        };
        "500": {
            content: {
                "application/json": {
                    code: number;
                    data?: { [key: string]: unknown };
                    message: string;
                };
            };
            headers: { [name: string]: unknown };
        };
    };
}
updateOrganizationSocialCredentials: {
    parameters: {
        cookie?: undefined;
        header?: undefined;
        path: { id_organization: string; social_network: "discord" };
        query?: undefined;
    };
    requestBody: {
        content: {
            "application/json": {
                bot_token?: string;
                client_id?: string;
                client_secret?: string;
            };
        };
    };
    responses: {
        "200": {
            content: {
                "application/json": {
                    organization: {
                        _id: string;
                        actual_asigned?: {
                            accounts: number;
                            ai_credits?: number;
                            artificial_inteligence?: boolean;
                            integrations: number;
                            publications: number;
                            space: number;
                            stats?: boolean;
                            twitter_credits?: number;
                            users: number;
                            whatsapp?: boolean;
                        };
                        actual_plan?: {
                            accounts: number;
                            ai_credits?: number;
                            artificial_inteligence?: boolean;
                            integrations: number;
                            publications: number;
                            space: number;
                            stats?: boolean;
                            twitter_credits?: number;
                            users: number;
                            whatsapp?: boolean;
                        };
                        actual_use?: {
                            accounts: number;
                            ai_credits?: number;
                            artificial_inteligence?: boolean;
                            integrations: number;
                            publications: number;
                            space: number;
                            stats?: boolean;
                            twitter_credits?: number;
                            users: number;
                            whatsapp?: boolean;
                        };
                        ai_context?: {
                            audience?: string;
                            avoid?: string;
                            blog_url?: string;
                            brand_name?: string;
                            default_tone?: string;
                            description?: string;
                            keywords?: string[];
                            notes?: string;
                            products?: string;
                            sector?: string;
                            shop_url?: string;
                            social_urls?: string[];
                            value_proposition?: string;
                            website?: string;
                        };
                        creation_date: string;
                        id_client: string;
                        name: string;
                        parent_organization?: string;
                        social_credentials?: {
                            discord?: {
                                application_name?: (...)
                                | (...);
                                client_id?: (...) | (...);
                                has_bot_token?: (...) | (...) | (...);
                                has_client_secret?: (...) | (...) | (...);
                                verified_date?: (...) | (...);
                            };
                        };
                        stats_settings?: { auto_refresh_twitter: boolean };
                    };
                };
            };
            headers: { [name: string]: unknown };
        };
        "400": {
            content: {
                "application/json": {
                    code: number;
                    data?: { [key: string]: unknown };
                    message: string;
                };
            };
            headers: { [name: string]: unknown };
        };
        "500": { content?: undefined; headers: { [name: string]: unknown } };
    };
}
updateParentOrganization: {
    parameters: {
        cookie?: undefined;
        header?: undefined;
        path: { id_client: string; id_organization: string };
        query?: undefined;
    };
    requestBody: {
        content: {
            "application/json": {
                actual_plan?: {
                    accounts: number;
                    ai_credits?: number;
                    artificial_inteligence?: boolean;
                    integrations: number;
                    publications: number;
                    space: number;
                    stats?: boolean;
                    twitter_credits?: number;
                    users: number;
                    whatsapp?: boolean;
                };
                stats_settings?: { auto_refresh_twitter: boolean };
            };
        };
    };
    responses: {
        "200": {
            content: {
                "application/json": {
                    organization: {
                        _id: string;
                        actual_asigned?: {
                            accounts: number;
                            ai_credits?: number;
                            artificial_inteligence?: boolean;
                            integrations: number;
                            publications: number;
                            space: number;
                            stats?: boolean;
                            twitter_credits?: number;
                            users: number;
                            whatsapp?: boolean;
                        };
                        actual_plan?: {
                            accounts: number;
                            ai_credits?: number;
                            artificial_inteligence?: boolean;
                            integrations: number;
                            publications: number;
                            space: number;
                            stats?: boolean;
                            twitter_credits?: number;
                            users: number;
                            whatsapp?: boolean;
                        };
                        actual_use?: {
                            accounts: number;
                            ai_credits?: number;
                            artificial_inteligence?: boolean;
                            integrations: number;
                            publications: number;
                            space: number;
                            stats?: boolean;
                            twitter_credits?: number;
                            users: number;
                            whatsapp?: boolean;
                        };
                        ai_context?: {
                            audience?: string;
                            avoid?: string;
                            blog_url?: string;
                            brand_name?: string;
                            default_tone?: string;
                            description?: string;
                            keywords?: string[];
                            notes?: string;
                            products?: string;
                            sector?: string;
                            shop_url?: string;
                            social_urls?: string[];
                            value_proposition?: string;
                            website?: string;
                        };
                        creation_date: string;
                        id_client: string;
                        name: string;
                        parent_organization?: string;
                        social_credentials?: {
                            discord?: {
                                application_name?: (...)
                                | (...);
                                client_id?: (...) | (...);
                                has_bot_token?: (...) | (...) | (...);
                                has_client_secret?: (...) | (...) | (...);
                                verified_date?: (...) | (...);
                            };
                        };
                        stats_settings?: { auto_refresh_twitter: boolean };
                    };
                };
            };
            headers: { [name: string]: unknown };
        };
        "400": {
            content: {
                "application/json": {
                    code: number;
                    data?: { [key: string]: unknown };
                    message: string;
                };
            };
            headers: { [name: string]: unknown };
        };
        "500": { content?: undefined; headers: { [name: string]: unknown } };
    };
}
updatePublication: {
    parameters: {
        cookie?: undefined;
        header?: undefined;
        path: { id_organization: string; id_publication: string };
        query?: undefined;
    };
    requestBody: {
        content: {
            "application/json": {
                files?: string[];
                name?: string;
                publication_type?: "profile"
                | "page"
                | "group"
                | "reels"
                | "stories";
                publish_date?: string;
                social_network?:
                    | "facebook"
                    | "instagram"
                    | "linkedin"
                    | "tiktok"
                    | "twitter"
                    | "whatsapp"
                    | "youtube"
                    | "bluesky"
                    | "discord";
                state?: "ready"
                | "withErrors"
                | "sended"
                | "draft"
                | "publishing";
                text?: string;
                title?: string;
            };
        };
    };
    responses: {
        "200": {
            content: {
                "application/json": {
                    publication: {
                        _id: string;
                        creation_date: string;
                        engagement_base?: "reach"
                        | "impressions"
                        | "followers";
                        external_identifier?: string;
                        files: {
                            _id: string;
                            cover_image?: { _id: string; cover_image?: ...; cover_offset?: number; creation_date: string; file_externals: { external_identifier: string; external_url: string; social_network: "facebook" | "instagram" | ... 7 more ... | "discord"; }[]; ... 6 more ...; public_path: string; };
                            cover_offset?: number;
                            creation_date: string;
                            file_externals: {
                                external_identifier: string;
                                external_url: string;
                                social_network:
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...);
                            }[];
                            file_format: "mp4"
                            | "jpeg"
                            | "gif"
                            | "png"
                            | "jpg";
                            file_properties: {
                                allowed_social_networks: string[];
                                aspect_ratio: { text: string; value: number };
                                duration: number;
                                height: number;
                                size_in_bytes: number;
                                width: number;
                            };
                            file_type: "video"
                            | "image";
                            id_organization: string;
                            is_temporal: boolean;
                            name: string;
                            public_path: string;
                        }[];
                        id_account: | string
                        | {
                            _id: string;
                            creation_date: string;
                            error_code: number;
                            followers_count?: number;
                            id_client: string;
                            id_organization: string;
                            image?: string;
                            name: string;
                            next_comments_update?: string;
                            next_stats_update?: string;
                            private_message_link?: string;
                            social_network: | "facebook"
                            | "instagram"
                            | "linkedin"
                            | "tiktok"
                            | "twitter"
                            | "whatsapp"
                            | "youtube"
                            | "google_business"
                            | "bluesky"
                            | "discord";
                            username?: string;
                        };
                        id_integration?: string;
                        id_organization: string;
                        metrics?: {
                            clicks?: number;
                            comments?: number;
                            engagement?: number;
                            followers?: number;
                            followers_gained?: number;
                            impressions?: number;
                            likes?: number;
                            profile_views?: number;
                            reach?: number;
                            saves?: number;
                            shares?: number;
                            video_views?: number;
                        };
                        name?: string;
                        next_stats_update?: string;
                        publication_errors: {
                            code: number;
                            data?: { [key: string]: unknown };
                            message: string;
                        }[];
                        publication_type: | "profile"
                        | "page"
                        | "group"
                        | "reels"
                        | "stories"
                        | "message";
                        publish_date?: string;
                        retries: number;
                        social_network: | "facebook"
                        | "instagram"
                        | "linkedin"
                        | "tiktok"
                        | "twitter"
                        | "whatsapp"
                        | "youtube"
                        | "google_business"
                        | "bluesky"
                        | "discord";
                        state: "ready"
                        | "withErrors"
                        | "sended"
                        | "draft"
                        | "publishing";
                        statistics?: {
                            angers?: number;
                            bookmarks?: number;
                            clicks?: number;
                            comments?: number;
                            engagement?: number;
                            follows?: number;
                            hahas?: number;
                            impressions?: number;
                            likes?: number;
                            loves?: number;
                            negative_feedback?: number;
                            page_likes?: number;
                            playback_0_count?: number;
                            playback_100_count?: number;
                            playback_25_count?: number;
                            playback_50_count?: number;
                            playback_75_count?: number;
                            profile_activity?: number;
                            profile_visits?: number;
                            quotes?: number;
                            reach?: number;
                            replys?: number;
                            retwets?: number;
                            saved?: number;
                            share?: number;
                            shareMentions?: number;
                            shares?: number;
                            sorrys?: number;
                            url_link_clicks?: number;
                            user_profile_clicks?: number;
                            video_views?: number;
                            views?: number;
                            wows?: number;
                        };
                        stats_updated_date?: string;
                        text?: string;
                        title?: string;
                        url?: string;
                    };
                };
            };
            headers: { [name: string]: unknown };
        };
        "400": {
            content: {
                "application/json": {
                    code: number;
                    data?: { [key: string]: unknown };
                    message: string;
                };
            };
            headers: { [name: string]: unknown };
        };
        "500": { content?: undefined; headers: { [name: string]: unknown } };
    };
}

Type declaration

  • parameters: {
        cookie?: undefined;
        header?: undefined;
        path: { id_organization: string; id_publication: string };
        query?: undefined;
    }
    • Optionalcookie?: undefined
    • Optionalheader?: undefined
    • path: { id_organization: string; id_publication: string }
      • id_organization: string

        Organization the publication belongs to

      • id_publication: string

        Publication identifier

    • Optionalquery?: undefined
  • requestBody: {
        content: {
            "application/json": {
                files?: string[];
                name?: string;
                publication_type?: "profile" | "page" | "group" | "reels" | "stories";
                publish_date?: string;
                social_network?:
                    | "facebook"
                    | "instagram"
                    | "linkedin"
                    | "tiktok"
                    | "twitter"
                    | "whatsapp"
                    | "youtube"
                    | "bluesky"
                    | "discord";
                state?: "ready"
                | "withErrors"
                | "sended"
                | "draft"
                | "publishing";
                text?: string;
                title?: string;
            };
        };
    }

    Only the properties you send are updated; the rest keep their current value. social_network is already set on the publication, so it is optional here.

  • responses: {
        "200": {
            content: {
                "application/json": {
                    publication: {
                        _id: string;
                        creation_date: string;
                        engagement_base?: "reach" | "impressions" | "followers";
                        external_identifier?: string;
                        files: {
                            _id: string;
                            cover_image?: { _id: string; cover_image?: ...; cover_offset?: number; creation_date: string; file_externals: { external_identifier: string; external_url: string; social_network: "facebook" | "instagram" | ... 7 more ... | "discord"; }[]; ... 6 more ...; public_path: string; };
                            cover_offset?: number;
                            creation_date: string;
                            file_externals: {
                                external_identifier: string;
                                external_url: string;
                                social_network:
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...);
                            }[];
                            file_format: "mp4"
                            | "jpeg"
                            | "gif"
                            | "png"
                            | "jpg";
                            file_properties: {
                                allowed_social_networks: string[];
                                aspect_ratio: { text: string; value: number };
                                duration: number;
                                height: number;
                                size_in_bytes: number;
                                width: number;
                            };
                            file_type: "video"
                            | "image";
                            id_organization: string;
                            is_temporal: boolean;
                            name: string;
                            public_path: string;
                        }[];
                        id_account: | string
                        | {
                            _id: string;
                            creation_date: string;
                            error_code: number;
                            followers_count?: number;
                            id_client: string;
                            id_organization: string;
                            image?: string;
                            name: string;
                            next_comments_update?: string;
                            next_stats_update?: string;
                            private_message_link?: string;
                            social_network: | "facebook"
                            | "instagram"
                            | "linkedin"
                            | "tiktok"
                            | "twitter"
                            | "whatsapp"
                            | "youtube"
                            | "google_business"
                            | "bluesky"
                            | "discord";
                            username?: string;
                        };
                        id_integration?: string;
                        id_organization: string;
                        metrics?: {
                            clicks?: number;
                            comments?: number;
                            engagement?: number;
                            followers?: number;
                            followers_gained?: number;
                            impressions?: number;
                            likes?: number;
                            profile_views?: number;
                            reach?: number;
                            saves?: number;
                            shares?: number;
                            video_views?: number;
                        };
                        name?: string;
                        next_stats_update?: string;
                        publication_errors: {
                            code: number;
                            data?: { [key: string]: unknown };
                            message: string;
                        }[];
                        publication_type: | "profile"
                        | "page"
                        | "group"
                        | "reels"
                        | "stories"
                        | "message";
                        publish_date?: string;
                        retries: number;
                        social_network: | "facebook"
                        | "instagram"
                        | "linkedin"
                        | "tiktok"
                        | "twitter"
                        | "whatsapp"
                        | "youtube"
                        | "google_business"
                        | "bluesky"
                        | "discord";
                        state: "ready"
                        | "withErrors"
                        | "sended"
                        | "draft"
                        | "publishing";
                        statistics?: {
                            angers?: number;
                            bookmarks?: number;
                            clicks?: number;
                            comments?: number;
                            engagement?: number;
                            follows?: number;
                            hahas?: number;
                            impressions?: number;
                            likes?: number;
                            loves?: number;
                            negative_feedback?: number;
                            page_likes?: number;
                            playback_0_count?: number;
                            playback_100_count?: number;
                            playback_25_count?: number;
                            playback_50_count?: number;
                            playback_75_count?: number;
                            profile_activity?: number;
                            profile_visits?: number;
                            quotes?: number;
                            reach?: number;
                            replys?: number;
                            retwets?: number;
                            saved?: number;
                            share?: number;
                            shareMentions?: number;
                            shares?: number;
                            sorrys?: number;
                            url_link_clicks?: number;
                            user_profile_clicks?: number;
                            video_views?: number;
                            views?: number;
                            wows?: number;
                        };
                        stats_updated_date?: string;
                        text?: string;
                        title?: string;
                        url?: string;
                    };
                };
            };
            headers: { [name: string]: unknown };
        };
        "400": {
            content: {
                "application/json": {
                    code: number;
                    data?: { [key: string]: unknown };
                    message: string;
                };
            };
            headers: { [name: string]: unknown };
        };
        "500": { content?: undefined; headers: { [name: string]: unknown } };
    }
    • 200: {
          content: {
              "application/json": {
                  publication: {
                      _id: string;
                      creation_date: string;
                      engagement_base?: "reach" | "impressions" | "followers";
                      external_identifier?: string;
                      files: {
                          _id: string;
                          cover_image?: { _id: string; cover_image?: ...; cover_offset?: number; creation_date: string; file_externals: { external_identifier: string; external_url: string; social_network: "facebook" | "instagram" | ... 7 more ... | "discord"; }[]; ... 6 more ...; public_path: string; };
                          cover_offset?: number;
                          creation_date: string;
                          file_externals: {
                              external_identifier: string;
                              external_url: string;
                              social_network:
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...);
                          }[];
                          file_format: "mp4"
                          | "jpeg"
                          | "gif"
                          | "png"
                          | "jpg";
                          file_properties: {
                              allowed_social_networks: string[];
                              aspect_ratio: { text: string; value: number };
                              duration: number;
                              height: number;
                              size_in_bytes: number;
                              width: number;
                          };
                          file_type: "video"
                          | "image";
                          id_organization: string;
                          is_temporal: boolean;
                          name: string;
                          public_path: string;
                      }[];
                      id_account: | string
                      | {
                          _id: string;
                          creation_date: string;
                          error_code: number;
                          followers_count?: number;
                          id_client: string;
                          id_organization: string;
                          image?: string;
                          name: string;
                          next_comments_update?: string;
                          next_stats_update?: string;
                          private_message_link?: string;
                          social_network: | "facebook"
                          | "instagram"
                          | "linkedin"
                          | "tiktok"
                          | "twitter"
                          | "whatsapp"
                          | "youtube"
                          | "google_business"
                          | "bluesky"
                          | "discord";
                          username?: string;
                      };
                      id_integration?: string;
                      id_organization: string;
                      metrics?: {
                          clicks?: number;
                          comments?: number;
                          engagement?: number;
                          followers?: number;
                          followers_gained?: number;
                          impressions?: number;
                          likes?: number;
                          profile_views?: number;
                          reach?: number;
                          saves?: number;
                          shares?: number;
                          video_views?: number;
                      };
                      name?: string;
                      next_stats_update?: string;
                      publication_errors: {
                          code: number;
                          data?: { [key: string]: unknown };
                          message: string;
                      }[];
                      publication_type: | "profile"
                      | "page"
                      | "group"
                      | "reels"
                      | "stories"
                      | "message";
                      publish_date?: string;
                      retries: number;
                      social_network: | "facebook"
                      | "instagram"
                      | "linkedin"
                      | "tiktok"
                      | "twitter"
                      | "whatsapp"
                      | "youtube"
                      | "google_business"
                      | "bluesky"
                      | "discord";
                      state: "ready"
                      | "withErrors"
                      | "sended"
                      | "draft"
                      | "publishing";
                      statistics?: {
                          angers?: number;
                          bookmarks?: number;
                          clicks?: number;
                          comments?: number;
                          engagement?: number;
                          follows?: number;
                          hahas?: number;
                          impressions?: number;
                          likes?: number;
                          loves?: number;
                          negative_feedback?: number;
                          page_likes?: number;
                          playback_0_count?: number;
                          playback_100_count?: number;
                          playback_25_count?: number;
                          playback_50_count?: number;
                          playback_75_count?: number;
                          profile_activity?: number;
                          profile_visits?: number;
                          quotes?: number;
                          reach?: number;
                          replys?: number;
                          retwets?: number;
                          saved?: number;
                          share?: number;
                          shareMentions?: number;
                          shares?: number;
                          sorrys?: number;
                          url_link_clicks?: number;
                          user_profile_clicks?: number;
                          video_views?: number;
                          views?: number;
                          wows?: number;
                      };
                      stats_updated_date?: string;
                      text?: string;
                      title?: string;
                      url?: string;
                  };
              };
          };
          headers: { [name: string]: unknown };
      }

      Successful operation

    • 400: {
          content: {
              "application/json": {
                  code: number;
                  data?: { [key: string]: unknown };
                  message: string;
              };
          };
          headers: { [name: string]: unknown };
      }

      The request failed. The body carries the PlanVortex error code in code:

      | Code | Meaning |
      | --- | --- |
      | `1101` | Invalid organization |
      | `917` | Publication doesn't exists |
      | `935` | Invalid publication |
      | `921` | Can't update a publication already sended |
      | `940` | X (Twitter) credits exhausted. Not enough monthly credits to publish this tweet (same link detection and 15/200 tariff as on create). Response data: { used, limit }. |
      | `523` | Invalid application |
      
    • 500: { content?: undefined; headers: { [name: string]: unknown } }

      Unhandled error by the server

updatePublicationByAccount: {
    parameters: {
        cookie?: undefined;
        header?: undefined;
        path: {
            id_account: string;
            id_organization: string;
            id_publication: string;
        };
        query?: undefined;
    };
    requestBody: {
        content: {
            "application/json": {
                files?: string[];
                name?: string;
                publication_type?: "profile"
                | "page"
                | "group"
                | "reels"
                | "stories";
                publish_date?: string;
                social_network?:
                    | "facebook"
                    | "instagram"
                    | "linkedin"
                    | "tiktok"
                    | "twitter"
                    | "whatsapp"
                    | "youtube"
                    | "bluesky"
                    | "discord";
                state?: "ready"
                | "withErrors"
                | "sended"
                | "draft"
                | "publishing";
                text?: string;
                title?: string;
            };
        };
    };
    responses: {
        "200": {
            content: {
                "application/json": {
                    publication: {
                        _id: string;
                        creation_date: string;
                        engagement_base?: "reach"
                        | "impressions"
                        | "followers";
                        external_identifier?: string;
                        files: {
                            _id: string;
                            cover_image?: { _id: string; cover_image?: ...; cover_offset?: number; creation_date: string; file_externals: { external_identifier: string; external_url: string; social_network: "facebook" | "instagram" | ... 7 more ... | "discord"; }[]; ... 6 more ...; public_path: string; };
                            cover_offset?: number;
                            creation_date: string;
                            file_externals: {
                                external_identifier: string;
                                external_url: string;
                                social_network:
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...);
                            }[];
                            file_format: "mp4"
                            | "jpeg"
                            | "gif"
                            | "png"
                            | "jpg";
                            file_properties: {
                                allowed_social_networks: string[];
                                aspect_ratio: { text: string; value: number };
                                duration: number;
                                height: number;
                                size_in_bytes: number;
                                width: number;
                            };
                            file_type: "video"
                            | "image";
                            id_organization: string;
                            is_temporal: boolean;
                            name: string;
                            public_path: string;
                        }[];
                        id_account: | string
                        | {
                            _id: string;
                            creation_date: string;
                            error_code: number;
                            followers_count?: number;
                            id_client: string;
                            id_organization: string;
                            image?: string;
                            name: string;
                            next_comments_update?: string;
                            next_stats_update?: string;
                            private_message_link?: string;
                            social_network: | "facebook"
                            | "instagram"
                            | "linkedin"
                            | "tiktok"
                            | "twitter"
                            | "whatsapp"
                            | "youtube"
                            | "google_business"
                            | "bluesky"
                            | "discord";
                            username?: string;
                        };
                        id_integration?: string;
                        id_organization: string;
                        metrics?: {
                            clicks?: number;
                            comments?: number;
                            engagement?: number;
                            followers?: number;
                            followers_gained?: number;
                            impressions?: number;
                            likes?: number;
                            profile_views?: number;
                            reach?: number;
                            saves?: number;
                            shares?: number;
                            video_views?: number;
                        };
                        name?: string;
                        next_stats_update?: string;
                        publication_errors: {
                            code: number;
                            data?: { [key: string]: unknown };
                            message: string;
                        }[];
                        publication_type: | "profile"
                        | "page"
                        | "group"
                        | "reels"
                        | "stories"
                        | "message";
                        publish_date?: string;
                        retries: number;
                        social_network: | "facebook"
                        | "instagram"
                        | "linkedin"
                        | "tiktok"
                        | "twitter"
                        | "whatsapp"
                        | "youtube"
                        | "google_business"
                        | "bluesky"
                        | "discord";
                        state: "ready"
                        | "withErrors"
                        | "sended"
                        | "draft"
                        | "publishing";
                        statistics?: {
                            angers?: number;
                            bookmarks?: number;
                            clicks?: number;
                            comments?: number;
                            engagement?: number;
                            follows?: number;
                            hahas?: number;
                            impressions?: number;
                            likes?: number;
                            loves?: number;
                            negative_feedback?: number;
                            page_likes?: number;
                            playback_0_count?: number;
                            playback_100_count?: number;
                            playback_25_count?: number;
                            playback_50_count?: number;
                            playback_75_count?: number;
                            profile_activity?: number;
                            profile_visits?: number;
                            quotes?: number;
                            reach?: number;
                            replys?: number;
                            retwets?: number;
                            saved?: number;
                            share?: number;
                            shareMentions?: number;
                            shares?: number;
                            sorrys?: number;
                            url_link_clicks?: number;
                            user_profile_clicks?: number;
                            video_views?: number;
                            views?: number;
                            wows?: number;
                        };
                        stats_updated_date?: string;
                        text?: string;
                        title?: string;
                        url?: string;
                    };
                };
            };
            headers: { [name: string]: unknown };
        };
        "400": {
            content: {
                "application/json": {
                    code: number;
                    data?: { [key: string]: unknown };
                    message: string;
                };
            };
            headers: { [name: string]: unknown };
        };
        "500": { content?: undefined; headers: { [name: string]: unknown } };
    };
}

Type declaration

  • parameters: {
        cookie?: undefined;
        header?: undefined;
        path: {
            id_account: string;
            id_organization: string;
            id_publication: string;
        };
        query?: undefined;
    }
    • Optionalcookie?: undefined
    • Optionalheader?: undefined
    • path: { id_account: string; id_organization: string; id_publication: string }
      • id_account: string

        Connected account identifier

      • id_organization: string

        Organization identifier

      • id_publication: string

        Publication identifier

    • Optionalquery?: undefined
  • requestBody: {
        content: {
            "application/json": {
                files?: string[];
                name?: string;
                publication_type?: "profile" | "page" | "group" | "reels" | "stories";
                publish_date?: string;
                social_network?:
                    | "facebook"
                    | "instagram"
                    | "linkedin"
                    | "tiktok"
                    | "twitter"
                    | "whatsapp"
                    | "youtube"
                    | "bluesky"
                    | "discord";
                state?: "ready"
                | "withErrors"
                | "sended"
                | "draft"
                | "publishing";
                text?: string;
                title?: string;
            };
        };
    }

    Only the properties you send are updated; the rest keep their current value. social_network is already set on the publication, so it is optional here.

  • responses: {
        "200": {
            content: {
                "application/json": {
                    publication: {
                        _id: string;
                        creation_date: string;
                        engagement_base?: "reach" | "impressions" | "followers";
                        external_identifier?: string;
                        files: {
                            _id: string;
                            cover_image?: { _id: string; cover_image?: ...; cover_offset?: number; creation_date: string; file_externals: { external_identifier: string; external_url: string; social_network: "facebook" | "instagram" | ... 7 more ... | "discord"; }[]; ... 6 more ...; public_path: string; };
                            cover_offset?: number;
                            creation_date: string;
                            file_externals: {
                                external_identifier: string;
                                external_url: string;
                                social_network:
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...);
                            }[];
                            file_format: "mp4"
                            | "jpeg"
                            | "gif"
                            | "png"
                            | "jpg";
                            file_properties: {
                                allowed_social_networks: string[];
                                aspect_ratio: { text: string; value: number };
                                duration: number;
                                height: number;
                                size_in_bytes: number;
                                width: number;
                            };
                            file_type: "video"
                            | "image";
                            id_organization: string;
                            is_temporal: boolean;
                            name: string;
                            public_path: string;
                        }[];
                        id_account: | string
                        | {
                            _id: string;
                            creation_date: string;
                            error_code: number;
                            followers_count?: number;
                            id_client: string;
                            id_organization: string;
                            image?: string;
                            name: string;
                            next_comments_update?: string;
                            next_stats_update?: string;
                            private_message_link?: string;
                            social_network: | "facebook"
                            | "instagram"
                            | "linkedin"
                            | "tiktok"
                            | "twitter"
                            | "whatsapp"
                            | "youtube"
                            | "google_business"
                            | "bluesky"
                            | "discord";
                            username?: string;
                        };
                        id_integration?: string;
                        id_organization: string;
                        metrics?: {
                            clicks?: number;
                            comments?: number;
                            engagement?: number;
                            followers?: number;
                            followers_gained?: number;
                            impressions?: number;
                            likes?: number;
                            profile_views?: number;
                            reach?: number;
                            saves?: number;
                            shares?: number;
                            video_views?: number;
                        };
                        name?: string;
                        next_stats_update?: string;
                        publication_errors: {
                            code: number;
                            data?: { [key: string]: unknown };
                            message: string;
                        }[];
                        publication_type: | "profile"
                        | "page"
                        | "group"
                        | "reels"
                        | "stories"
                        | "message";
                        publish_date?: string;
                        retries: number;
                        social_network: | "facebook"
                        | "instagram"
                        | "linkedin"
                        | "tiktok"
                        | "twitter"
                        | "whatsapp"
                        | "youtube"
                        | "google_business"
                        | "bluesky"
                        | "discord";
                        state: "ready"
                        | "withErrors"
                        | "sended"
                        | "draft"
                        | "publishing";
                        statistics?: {
                            angers?: number;
                            bookmarks?: number;
                            clicks?: number;
                            comments?: number;
                            engagement?: number;
                            follows?: number;
                            hahas?: number;
                            impressions?: number;
                            likes?: number;
                            loves?: number;
                            negative_feedback?: number;
                            page_likes?: number;
                            playback_0_count?: number;
                            playback_100_count?: number;
                            playback_25_count?: number;
                            playback_50_count?: number;
                            playback_75_count?: number;
                            profile_activity?: number;
                            profile_visits?: number;
                            quotes?: number;
                            reach?: number;
                            replys?: number;
                            retwets?: number;
                            saved?: number;
                            share?: number;
                            shareMentions?: number;
                            shares?: number;
                            sorrys?: number;
                            url_link_clicks?: number;
                            user_profile_clicks?: number;
                            video_views?: number;
                            views?: number;
                            wows?: number;
                        };
                        stats_updated_date?: string;
                        text?: string;
                        title?: string;
                        url?: string;
                    };
                };
            };
            headers: { [name: string]: unknown };
        };
        "400": {
            content: {
                "application/json": {
                    code: number;
                    data?: { [key: string]: unknown };
                    message: string;
                };
            };
            headers: { [name: string]: unknown };
        };
        "500": { content?: undefined; headers: { [name: string]: unknown } };
    }
    • 200: {
          content: {
              "application/json": {
                  publication: {
                      _id: string;
                      creation_date: string;
                      engagement_base?: "reach" | "impressions" | "followers";
                      external_identifier?: string;
                      files: {
                          _id: string;
                          cover_image?: { _id: string; cover_image?: ...; cover_offset?: number; creation_date: string; file_externals: { external_identifier: string; external_url: string; social_network: "facebook" | "instagram" | ... 7 more ... | "discord"; }[]; ... 6 more ...; public_path: string; };
                          cover_offset?: number;
                          creation_date: string;
                          file_externals: {
                              external_identifier: string;
                              external_url: string;
                              social_network:
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...);
                          }[];
                          file_format: "mp4"
                          | "jpeg"
                          | "gif"
                          | "png"
                          | "jpg";
                          file_properties: {
                              allowed_social_networks: string[];
                              aspect_ratio: { text: string; value: number };
                              duration: number;
                              height: number;
                              size_in_bytes: number;
                              width: number;
                          };
                          file_type: "video"
                          | "image";
                          id_organization: string;
                          is_temporal: boolean;
                          name: string;
                          public_path: string;
                      }[];
                      id_account: | string
                      | {
                          _id: string;
                          creation_date: string;
                          error_code: number;
                          followers_count?: number;
                          id_client: string;
                          id_organization: string;
                          image?: string;
                          name: string;
                          next_comments_update?: string;
                          next_stats_update?: string;
                          private_message_link?: string;
                          social_network: | "facebook"
                          | "instagram"
                          | "linkedin"
                          | "tiktok"
                          | "twitter"
                          | "whatsapp"
                          | "youtube"
                          | "google_business"
                          | "bluesky"
                          | "discord";
                          username?: string;
                      };
                      id_integration?: string;
                      id_organization: string;
                      metrics?: {
                          clicks?: number;
                          comments?: number;
                          engagement?: number;
                          followers?: number;
                          followers_gained?: number;
                          impressions?: number;
                          likes?: number;
                          profile_views?: number;
                          reach?: number;
                          saves?: number;
                          shares?: number;
                          video_views?: number;
                      };
                      name?: string;
                      next_stats_update?: string;
                      publication_errors: {
                          code: number;
                          data?: { [key: string]: unknown };
                          message: string;
                      }[];
                      publication_type: | "profile"
                      | "page"
                      | "group"
                      | "reels"
                      | "stories"
                      | "message";
                      publish_date?: string;
                      retries: number;
                      social_network: | "facebook"
                      | "instagram"
                      | "linkedin"
                      | "tiktok"
                      | "twitter"
                      | "whatsapp"
                      | "youtube"
                      | "google_business"
                      | "bluesky"
                      | "discord";
                      state: "ready"
                      | "withErrors"
                      | "sended"
                      | "draft"
                      | "publishing";
                      statistics?: {
                          angers?: number;
                          bookmarks?: number;
                          clicks?: number;
                          comments?: number;
                          engagement?: number;
                          follows?: number;
                          hahas?: number;
                          impressions?: number;
                          likes?: number;
                          loves?: number;
                          negative_feedback?: number;
                          page_likes?: number;
                          playback_0_count?: number;
                          playback_100_count?: number;
                          playback_25_count?: number;
                          playback_50_count?: number;
                          playback_75_count?: number;
                          profile_activity?: number;
                          profile_visits?: number;
                          quotes?: number;
                          reach?: number;
                          replys?: number;
                          retwets?: number;
                          saved?: number;
                          share?: number;
                          shareMentions?: number;
                          shares?: number;
                          sorrys?: number;
                          url_link_clicks?: number;
                          user_profile_clicks?: number;
                          video_views?: number;
                          views?: number;
                          wows?: number;
                      };
                      stats_updated_date?: string;
                      text?: string;
                      title?: string;
                      url?: string;
                  };
              };
          };
          headers: { [name: string]: unknown };
      }

      Successful operation

    • 400: {
          content: {
              "application/json": {
                  code: number;
                  data?: { [key: string]: unknown };
                  message: string;
              };
          };
          headers: { [name: string]: unknown };
      }

      The request failed. The body carries the PlanVortex error code in code:

      | Code | Meaning |
      | --- | --- |
      | `1101` | Invalid organization |
      | `917` | Publication doesn't exists |
      | `935` | Invalid publication |
      | `921` | Can't update a publication already sended |
      | `940` | X (Twitter) credits exhausted. Not enough monthly credits to publish this tweet (same link detection and 15/200 tariff as on create). Response data: { used, limit }. |
      | `523` | Invalid application |
      
    • 500: { content?: undefined; headers: { [name: string]: unknown } }

      Unhandled error by the server

updateUpload: {
    parameters: {
        cookie?: undefined;
        header?: undefined;
        path: { id_organization: string; id_upload: string };
        query?: undefined;
    };
    requestBody: {
        content: {
            "application/json": { cover_image?: string; cover_offset?: number };
        };
    };
    responses: {
        "200": {
            content: {
                "application/json": {
                    upload: {
                        _id: string;
                        cover_image?: { _id: string; cover_image?: ...; cover_offset?: number; creation_date: string; file_externals: { external_identifier: string; external_url: string; social_network: "facebook" | "instagram" | ... 7 more ... | "discord"; }[]; ... 6 more ...; public_path: string; };
                        cover_offset?: number;
                        creation_date: string;
                        file_externals: {
                            external_identifier: string;
                            external_url: string;
                            social_network: | "facebook"
                            | "instagram"
                            | "linkedin"
                            | "tiktok"
                            | "twitter"
                            | "whatsapp"
                            | "youtube"
                            | "google_business"
                            | "bluesky"
                            | "discord";
                        }[];
                        file_format: "mp4"
                        | "jpeg"
                        | "gif"
                        | "png"
                        | "jpg";
                        file_properties: {
                            allowed_social_networks: string[];
                            aspect_ratio: { text: string; value: number };
                            duration: number;
                            height: number;
                            size_in_bytes: number;
                            width: number;
                        };
                        file_type: "video"
                        | "image";
                        id_organization: string;
                        is_temporal: boolean;
                        name: string;
                        public_path: string;
                    };
                };
            };
            headers: { [name: string]: unknown };
        };
        "400": {
            content: {
                "application/json": {
                    code: number;
                    data?: { [key: string]: unknown };
                    message: string;
                };
            };
            headers: { [name: string]: unknown };
        };
        "500": { content?: undefined; headers: { [name: string]: unknown } };
    };
}
validateAiPlan: {
    parameters: {
        cookie?: undefined;
        header?: undefined;
        path: { id_ai_plan: string; id_client: string; id_organization: string };
        query?: undefined;
    };
    requestBody?: undefined;
    responses: {
        "200": {
            content: {
                "application/json": {
                    ai_plan: {
                        _id: string;
                        accounts: string[];
                        attempts: number;
                        creation_date: string;
                        credits_spent: number;
                        error?: {
                            code: number;
                            data?: { [key: string]: unknown };
                            message: string;
                        };
                        generation_end_date?: string;
                        id_client: string;
                        id_organization: string;
                        keycloak_identifier?: string;
                        options: {
                            allow_images: boolean;
                            gallery_uploads: string[];
                            language: string;
                            max_images?: number;
                            publish_days: number[];
                            shared: boolean;
                            timezone: string;
                            tone?: string;
                            use_organization_context: boolean;
                            week_start: string;
                        };
                        orchestrator_result?: Record<string, never>;
                        organization_context?: {
                            audience?: string;
                            avoid?: string;
                            blog_url?: string;
                            brand_name?: string;
                            default_tone?: string;
                            description?: string;
                            keywords?: string[];
                            notes?: string;
                            products?: string;
                            sector?: string;
                            shop_url?: string;
                            social_urls?: string[];
                            value_proposition?: string;
                            website?: string;
                        };
                        prompt: string;
                        publications: (
                            | string
                            | {
                                _id: string;
                                creation_date: string;
                                engagement_base?: "reach"
                                | "impressions"
                                | "followers";
                                external_identifier?: string;
                                files: {
                                    _id: ...;
                                    cover_image?: ...;
                                    cover_offset?: ...;
                                    creation_date: ...;
                                    file_externals: ...;
                                    file_format: ...;
                                    file_properties: ...;
                                    file_type: ...;
                                    id_organization: ...;
                                    is_temporal: ...;
                                    name: ...;
                                    public_path: ...;
                                }[];
                                id_account: | string
                                | {
                                    _id: ...;
                                    creation_date: ...;
                                    error_code: ...;
                                    followers_count?: ...;
                                    id_client: ...;
                                    id_organization: ...;
                                    image?: ...;
                                    name: ...;
                                    next_comments_update?: ...;
                                    next_stats_update?: ...;
                                    private_message_link?: ...;
                                    social_network: ...;
                                    username?: ...;
                                };
                                id_integration?: string;
                                id_organization: string;
                                metrics?: {
                                    clicks?: ...;
                                    comments?: ...;
                                    engagement?: ...;
                                    followers?: ...;
                                    followers_gained?: ...;
                                    impressions?: ...;
                                    likes?: ...;
                                    profile_views?: ...;
                                    reach?: ...;
                                    saves?: ...;
                                    shares?: ...;
                                    video_views?: ...;
                                };
                                name?: string;
                                next_stats_update?: string;
                                publication_errors: { code: ...; data?: ...; message: ... }[];
                                publication_type:
                                    | "profile"
                                    | "page"
                                    | "group"
                                    | "reels"
                                    | "stories"
                                    | "message";
                                publish_date?: string;
                                retries: number;
                                social_network: | "facebook"
                                | "instagram"
                                | "linkedin"
                                | "tiktok"
                                | "twitter"
                                | "whatsapp"
                                | "youtube"
                                | "google_business"
                                | "bluesky"
                                | "discord";
                                state: "ready"
                                | "withErrors"
                                | "sended"
                                | "draft"
                                | "publishing";
                                statistics?: {
                                    angers?: ...;
                                    bookmarks?: ...;
                                    clicks?: ...;
                                    comments?: ...;
                                    engagement?: ...;
                                    follows?: ...;
                                    hahas?: ...;
                                    impressions?: ...;
                                    likes?: ...;
                                    loves?: ...;
                                    negative_feedback?: ...;
                                    page_likes?: ...;
                                    playback_0_count?: ...;
                                    playback_100_count?: ...;
                                    playback_25_count?: ...;
                                    playback_50_count?: ...;
                                    playback_75_count?: ...;
                                    profile_activity?: ...;
                                    profile_visits?: ...;
                                    quotes?: ...;
                                    reach?: ...;
                                    replys?: ...;
                                    retwets?: ...;
                                    saved?: ...;
                                    share?: ...;
                                    shareMentions?: ...;
                                    shares?: ...;
                                    sorrys?: ...;
                                    url_link_clicks?: ...;
                                    user_profile_clicks?: ...;
                                    video_views?: ...;
                                    views?: ...;
                                    wows?: ...;
                                };
                                stats_updated_date?: string;
                                text?: string;
                                title?: string;
                                url?: string;
                            }
                        )[];
                        state: | "pending"
                        | "generating"
                        | "generated"
                        | "validated"
                        | "failed"
                        | "cancelled";
                    };
                };
            };
            headers: { [name: string]: unknown };
        };
        "400": {
            content: {
                "application/json": {
                    code: number;
                    data?: { [key: string]: unknown };
                    message: string;
                };
            };
            headers: { [name: string]: unknown };
        };
        "500": { content?: undefined; headers: { [name: string]: unknown } };
    };
}