🔍 Code Extractor

Browse Components

Showing 20 of 1585 components

  • function get_available_sections_for_document

    Flask API endpoint that retrieves text sections available to add to a specific document by filtering out sections already included in that document.

    File: /tf/active/vicechatdev/vice_ai/new_app.py | Lines: 1760-1790

    flask api-endpoint document-management authorization filtering
  • function get_text_section_usage

    Flask API endpoint that retrieves usage information for a specific text section, showing which documents reference it. Requires authentication and verifies section ownership before returning usage data.

    File: /tf/active/vicechatdev/vice_ai/new_app.py | Lines: 1734-1756

    flask api-endpoint rest-api authentication authorization
  • function duplicate_text_section

    Flask API endpoint that creates a duplicate of an existing text section with ownership verification and optional custom title.

    File: /tf/active/vicechatdev/vice_ai/new_app.py | Lines: 1698-1729

    flask api-endpoint text-section duplicate copy
  • function get_section_chat_history

    Flask API endpoint that retrieves chat history for a specific text section, verifying user ownership before returning messages.

    File: /tf/active/vicechatdev/vice_ai/new_app.py | Lines: 1673-1694

    flask api rest-endpoint chat-history authentication
  • function move_section

    Flask API endpoint that moves a section (text or data) up or down within a document's section order, with authentication and ownership verification.

    File: /tf/active/vicechatdev/vice_ai/new_app.py | Lines: 1597-1667

    flask api-endpoint document-management section-reordering authentication
  • function export_document

    Flask route handler that exports a document in either DOCX or PDF format, verifying user ownership and document access before generating the export file.

    File: /tf/active/vicechatdev/vice_ai/new_app.py | Lines: 1539-1591

    flask export document pdf docx
  • function add_existing_data_section_to_document

    Flask API endpoint that adds an existing data section to a document after verifying ownership and access permissions for both the document and data section.

    File: /tf/active/vicechatdev/vice_ai/new_app.py | Lines: 1486-1534

    flask api-endpoint document-management data-section authentication
  • function add_existing_section_to_document

    Flask API endpoint that adds an existing text section to a document with advanced positioning options, copy creation, and access control validation.

    File: /tf/active/vicechatdev/vice_ai/new_app.py | Lines: 1397-1482

    flask api-endpoint document-management text-section authentication
  • function create_text_section_for_document

    Flask API endpoint that creates or adds text sections to a document with three action modes: creating new sections, adding existing sections, or duplicating existing sections.

    File: /tf/active/vicechatdev/vice_ai/new_app.py | Lines: 1275-1393

    flask api-endpoint document-management text-sections crud-operations
  • function get_document_text_sections

    Flask API endpoint that retrieves all text and data sections for a specific document, verifying user ownership and returning sections sorted by position.

    File: /tf/active/vicechatdev/vice_ai/new_app.py | Lines: 1230-1269

    flask api rest-endpoint document-management authentication
  • function revert_document_to_version

    Flask API endpoint that reverts a document to a specific previous version after verifying user ownership and authentication.

    File: /tf/active/vicechatdev/vice_ai/new_app.py | Lines: 1198-1224

    flask api-endpoint document-management version-control authentication
  • function delete_document_v1

    Flask API endpoint that deletes a document after verifying ownership and authentication.

    File: /tf/active/vicechatdev/vice_ai/new_app.py | Lines: 1117-1137

    flask api rest delete document-management
  • function get_documents_v1

    Flask API endpoint that retrieves all documents belonging to the currently authenticated user and returns them as JSON.

    File: /tf/active/vicechatdev/vice_ai/new_app.py | Lines: 932-942

    flask api rest endpoint documents
  • function init_text_section_chat

    Flask API endpoint that initializes a chat session for a standalone text section, creating a mock chat session object for frontend compatibility after verifying user ownership.

    File: /tf/active/vicechatdev/vice_ai/new_app.py | Lines: 899-927

    flask api-endpoint chat initialization authentication
  • function clear_text_section_chat

    Flask API endpoint that clears the chat history for a specific text section after verifying user ownership.

    File: /tf/active/vicechatdev/vice_ai/new_app.py | Lines: 876-895

    flask api-endpoint delete-operation chat-management authentication
  • function chat_with_text_section

    Flask API endpoint that enables AI-powered chat conversations about a specific text section, with support for multiple LLM models and document context.

    File: /tf/active/vicechatdev/vice_ai/new_app.py | Lines: 758-872

    flask api-endpoint chat ai-assistant llm
  • function revert_text_section

    Flask API endpoint that reverts a text section to a specific previous version, verifying user ownership before performing the revert operation.

    File: /tf/active/vicechatdev/vice_ai/new_app.py | Lines: 729-753

    flask api-endpoint versioning revert text-section
  • function get_text_section_versions

    Flask API endpoint that retrieves all historical versions of a specific text section, with ownership verification and authentication required.

    File: /tf/active/vicechatdev/vice_ai/new_app.py | Lines: 712-725

    flask api rest-endpoint versioning version-control
  • function delete_text_section

    Flask API endpoint that deletes a text section after verifying user ownership and authentication.

    File: /tf/active/vicechatdev/vice_ai/new_app.py | Lines: 688-707

    flask api delete rest-api authentication
  • function update_text_section

    Flask API endpoint that updates either the title or content of a text section, with ownership verification and version tracking.

    File: /tf/active/vicechatdev/vice_ai/new_app.py | Lines: 632-683

    flask api rest update text-section