Skip to content

Latest commit

Β 

History

History
563 lines (382 loc) Β· 22.6 KB

CHANGELOG.md

File metadata and controls

563 lines (382 loc) Β· 22.6 KB

Changelog

[0.20.0] - 2026-10-01

Added

  • πŸ“ Markdown Document API: New recommended methods for working with document content

    • replace_markdown_document(document_id, markdown) - Replace document content with Markdown
    • append_markdown_document(document_id, markdown) - Append Markdown to existing content
    • get_markdown_document(document_id) - Read document content back as a Markdown string
    • Markdown is converted to native rich editor blocks on the server (headings, lists, tables, code blocks, checklists, links, etc.)
  • πŸ“œ History pagination: GetHistoryRequest.limit / nextCursor and payload.page (hasMore, nextCursor) for cursor pagination

  • πŸ“œ History filters: boardIds and agentId

Changed

  • πŸ”§ Breaking: get_json_document() now returns the current document content as Lexical JSON ({"root": {"children": [...]}}) instead of the legacy TipTap format ({"default": {"content": [...]}}). The legacy format was frozen on the server at the Lexical migration and no longer reflected document content
    • Migration: read blocks from content["root"]["children"] (node types are listed in the Document Structure reference), or use get_markdown_document() to read content as text
    • Writing with replace_json_document() / append_json_document() and the document structure helpers is unchanged
  • πŸ”§ Breaking: get_history() follows the new API contract
    • Response: payload.histories β†’ payload.items (histories is kept as a deprecated alias)
    • Filters renamed: createdBy β†’ memberIds, keys β†’ eventKeys, groupsIds β†’ groupIds, lastLoadedDate β†’ nextCursor. Old names still work with a DeprecationWarning
    • excludeKeys and tasksIds are no longer supported by the API and are ignored with a warning
    • HistoryItem.id replaces _id; taskId and updatedAt are now optional

Fixed

  • get_space_members() failing on bot members (AI, GitHub, Cursor, Claude, automation) that have no space; Member.kind is now exposed
  • get_tasks() / get_task() failing on custom fields without a value

Deprecated

  • Task.milestone is no longer returned by the API, use Task.milestones
  • JSON document write methods (replace_json_document, append_json_document) and the JSON document DSL remain supported for backward compatibility, but Markdown methods are now the recommended way to write document content

[0.19.0] - 2026-02-17

Added

  • πŸ”€ Move Tasks API: New move_tasks() method for moving tasks between board groups
    • MoveTaskItem - Specify task, target group, and position
    • MoveTasksRequest - Batch move multiple tasks in one call
    • MoveTasksResponse - Response with success/failed task IDs
  • πŸ“œ History API: Added missing filter parameters to GetHistoryRequest
    • createdBy - Filter by creator member IDs
    • dateRangeStart / dateRangeEnd - Date range filters
    • limit - Limit number of results
    • keys - Include only specific event keys
    • tasksIds - Filter by task IDs
    • groupsIds - Filter by group IDs

Changed

  • πŸ”§ Breaking: Removed group field from EditTaskRequest β€” use move_tasks() instead
    • Migration: Replace client.edit_task(EditTaskRequest(task_id=..., group=...)) with client.move_tasks(MoveTasksRequest(moves=[MoveTaskItem(task_id=..., to_group_id=...)]))

[0.18.0] - 2025-10-29

Added

  • πŸ“ Edit Document API: New method to edit document metadata
    • edit_document - Update document properties

[0.17.0] - 2025-10-24

Added

  • 🎬 Embed Blocks: Support for embedding external content (YouTube, Figma, CodeSandbox, etc.)
    • embed_block(url, embed_type, size, is_content_hidden) - Create embed blocks for external content
    • EmbedType enum - Type-safe embed types (YOUTUBE, FIGMA, VIMEO, CODESANDBOX, GITHUB_GIST, MIRO, IFRAME)

[0.16.0] - 2025-10-24

Changed

  • πŸ”§ Breaking: Simplified image_block() API - now accepts file object directly
    • Old API (deprecated): image_block(file_id=..., src=..., file_name=..., file_size=..., extension=..., dimensions=...)
    • New API: image_block(file=uploaded.file, caption="...", width_percent=100)
    • Reduces code by 80% - just pass the file object!
    • All file metadata extracted automatically from uploaded file
    • MIME type auto-detected from extension or file.mime
    • Aspect ratio auto-calculated from dimensions
    • Migration: Replace multiple parameters with single file=uploaded.file parameter

[0.15.0] - 2025-10-24

Added

  • βœ… Task Lists (Checklists): Interactive checklists with checked/unchecked states

    • task_list(*items) - Create a checklist container
    • task_item(content, checked=False) - Create individual checklist items
    • Support for nested checklists (unlimited depth)
    • Each task item can contain paragraphs and nested task lists
    • checked attribute tracks completion status (boolean)
    • Auto-generated UIDs for task lists
    • Full integration with document API (replace_json_document, append_json_document)
  • New Document Structure Types:

    • TaskListNode - Type for task list container
    • TaskItemNode - Type for individual checklist items
    • TaskListAttrs - Attributes for task lists (uid)
    • TaskItemAttrs - Attributes for task items (checked status)

[0.14.0] - 2025-10-24

Added

  • πŸ“‘ TOC Block: Automatic table of contents generation

    • toc_block() - Creates interactive document outline
    • Automatically indexes all headings (h1-h6)
    • Clickable navigation links to document sections
    • Auto-updates when document content changes
  • πŸ”— Anchors Block: Related documents and backlinks

    • anchors_block() - Displays document relationships
    • Shows documents that this document links to
    • Shows backlinks (documents linking to this one)
    • Visualizes knowledge graph connections
  • πŸ“„ Siblings Block: Previous/Next document navigation

    • siblings_block() - Creates Previous/Next navigation buttons
    • Shows Previous and Next documents in sequence
    • Typically placed at the bottom of the page
    • Perfect for tutorial series and sequential guides
    • Maintains document order in branch
  • πŸ’» Code Block: Syntax-highlighted code snippets

    • code_block(code, language) - Display code with highlighting
    • Support for Python, JavaScript, TypeScript, Java, C++, Go, Rust, SQL, Bash, and many more
    • Multiline code support
    • Optional language specification

Changed

  • πŸ”§ Headings now auto-generate UIDs: All headings created with heading() now automatically get unique IDs for TOC navigation support
    • UIDs are 12-character alphanumeric strings (e.g., "sEeaN9ddIDsL")
    • Required for TOC block to create working navigation links
    • No breaking changes - UIDs added automatically

[0.13.0] - 2025-10-23

Changed

  • πŸ”§ Breaking: mention_user() now accepts member_id instead of user_id
    • Migration: Update your code to use member_id from get_profile().profile.member_id or get_space_members()
    • Why: Clarifies that the parameter should be member ID, not user ID
    • Example: mention_user(profile.profile.member_id)

[0.12.0] - 2025-10-23

Added

  • πŸ‘€ Mention Blocks: Create interactive references to users, documents, tasks, and milestones

    • mention_user(member_id) - Mention a team member
    • mention_document(id) - Reference a document
    • mention_task(id) - Reference a task
    • mention_milestone(id) - Reference a milestone
    • mention(id, kind) - Generic mention with explicit kind
    • Mentions work in paragraphs, lists, tables, and all document structures
    • Full type safety with TypedDict definitions
  • πŸ“Έ Image Blocks: Embed images in documents

    • image_block() - Create image block with uploaded file
    • Support for dimensions, captions, and custom width
    • Automatic aspect ratio calculation
    • Works with uploaded images via upload_file()
  • πŸ“Ž Files Blocks: Attach files to documents

    • files_block() - Create files block with multiple attachments
    • Support for PDFs, images, videos, and other file types
    • Automatic unique ID generation for each file
    • Works with uploaded files via upload_file()

[0.11.0] - 2025-10-23

Added

  • πŸ’¬ Blockquote: New blockquote() function for creating quoted text and callouts

    • Simple quotes: blockquote("Quote text")
    • Multi-paragraph quotes with formatting
    • Perfect for important notes, warnings, and citations
  • πŸ“‚ Details (Collapsible Sections): New collapsible content blocks

    • details(summary, content) - Create expandable/collapsible sections
    • details_summary() - Always visible header
    • details_content() - Hidden content that expands on click
    • Great for FAQs, technical details, and optional information

[0.10.0] - 2025-10-23

Added

  • πŸ“Š Table Headers: New table_header() function for creating semantic table header cells

Fixed

  • πŸ› Test Improvements: Fixed test_get_milestone to create milestone before fetching (no longer depends on existing data)

[0.9.1] - 2025-10-22

Added

  • πŸ“ Horizontal Rule: Added horizontal_rule() helper for creating horizontal dividers

Changed

  • πŸ”§ Breaking: Removed separator() - use horizontal_rule() instead for true HTML-style dividers
    • Migration: Replace separator() with horizontal_rule()

[0.9.0] - 2025-10-22

Added

  • πŸ“ Document Content API: New methods for working with rich document content

    • get_json_document(document_id) - Get document JSON content (renamed from get_document_body)
    • replace_json_document(document_id, content) - Replace with structured content
    • append_document(document_id, description, files) - Append plain text
    • append_json_document(document_id, content) - Append structured content
  • πŸ›  Document Structure Helpers: 11 type-safe builder functions for creating rich content

    • Text & paragraphs: text(), paragraph(), heading()
    • Lists: bullet_list(), ordered_list(), list_item()
    • Tables: table(), table_row(), table_cell()
    • Utilities: link_text(), horizontal_rule()

Changed

  • πŸ”§ Breaking: Renamed get_document_body() β†’ get_json_document() for API consistency
    • Migration: Update client.get_document_body(id) to client.get_json_document(id)

[0.8.1] - 2025-10-21

Fixed

  • ♻️ Refactor: Consolidated color models - replaced SpaceColor and MemberColor with shared ColorInfo model

[0.8.0] - 2025-10-21

Added

  • 🏒 Spaces API: New get_space(space_id) method for retrieving space information
  • πŸ‘₯ Members API: New get_space_members() method for listing all space members

Changed

  • πŸ”§ Breaking: Renamed EAvatarMode β†’ AvatarMode for consistency with TypeScript API
    • Migration: Update from vaiz.models import EAvatarMode to from vaiz.models import AvatarMode

[0.7.3] - 2025-10-21

Added

  • πŸ“ Document Creation API: New create_document() method for creating documents programmatically

Models

  • πŸ“¦ New Request Model: CreateDocumentRequest

[0.7.2] - 2025-01-20

Changed

  • πŸ”§ Models: Enhanced color field types to support both Color enum values and string values for API compatibility
  • βœ… Examples: All code examples now use Color enum for better type safety and IDE support

Fixed

  • πŸ”§ API Compatibility: Fixed color validation to accept both enum values and string colors returned by API
  • πŸ“ Documentation: Removed all references to hex color support in documentation

[0.7.0] - 2025-10-20

Breaking Changes

  • ✨ Changed Enum Names: Renamed all enum classes for consistency:
  • EColor β†’ Color
  • EIcon β†’ Icon
  • EKind β†’ Kind
  • EUploadFileType β†’ UploadFileType
  • Migration: Update imports and usage: from vaiz.models.enums import Color, Icon, Kind, UploadFileType

Added

  • 🎨 Color Palette: Added:
    • Color.Silver - silver color
    • Color.Mint - mint/cyan color
    • Color.Lavender - lavender color

[0.6.0] - 2025-10-20

Breaking Changes

  • πŸ”— Renamed Task Connector Fields for better clarity:
    • right_connectors β†’ blocking (tasks that this task blocks)
    • left_connectors β†’ blockers (tasks that block this task)
    • API mapping is automatic - SDK uses intuitive names, API receives technical names
    • Migration: Replace rightConnectors with blocking and leftConnectors with blockers in your code

Added

  • πŸ”— Task Blockers API: New documentation page explaining blocker relationships
  • πŸ“– Updated Examples: Updated all code examples with new field names

Changed

  • Documentation: Moved from README to dedicated Docusaurus site
  • README: Simplified to quick start guide with links to full documentation
  • CONTRIBUTING.md: Moved to project root as standard practice

Documentation


[0.5.0] - 2025-09-17

Added

  • πŸ“‹ New getTasks Method: Comprehensive task retrieval with filtering and pagination
    • πŸ” Advanced Filtering: Filter by assignees, board, project, completion status, archived status, parent task, milestones, and specific task IDs
    • πŸ“„ Pagination Support: Retrieve tasks in pages with limit (max 50) and skip parameters

Changed

  • πŸ› Fixed Comment Reactions: Made native field optional in CommentReaction model to match API behavior
  • βš™οΈ Modernized Pydantic: Updated deprecated class Config: to modern model_config = ConfigDict() syntax

Technical Details

  • Request Model: GetTasksRequest with comprehensive filtering options
  • Response Models: GetTasksResponse and GetTasksPayload for structured data access

Examples Added

  • πŸ“– examples/get_tasks.py: Comprehensive examples demonstrating all filtering options and pagination

[0.4.10] - 2025-01-27

Added

  • πŸ‘€ Profile Model Enhancements:
    • Added EAvatarMode enum
    • Added new profile fields

Changed

  • 🐍 Python Naming Convention: All profile model fields now use snake_case naming with proper API aliases

[0.4.9] - 2025-08-26

Added

  • πŸ”’ New Custom Field Type: Added ESTIMATION field type to CustomFieldType enum for project estimation fields
  • 🎨 Enhanced Project Colors: Project color field now accepts Color enum values for consistent color management

[0.4.8] - 2025-08-12

Added

  • 🧾 Documents API:
    • get_document_body(document_id) β€” get JSON document body
    • replace_document(document_id, description) β€” replace document content (plain text)
    • Task model convenience: Task.get_task_description(client)
    • Task model convenience: Task.update_task_description(client, description)

[0.4.7] - 2025-01-21

Added

  • 🌐 File Upload from URL: New upload_file_from_url() method for uploading files directly from external URLs
    • πŸ“₯ Direct URL Upload: Upload files without downloading them locally first
    • πŸ” Auto Type Detection: Automatically detect file types from URL extensions and HTTP content-type headers
    • πŸ“ Custom Filenames: Specify custom filenames for uploaded files
    • 🎯 Task Integration: Complete workflow examples for creating tasks with external files
    • πŸ› οΈ Error Handling: Robust handling of network issues, invalid URLs, and missing MIME types
    • πŸ”§ Helper Methods: Private _detect_file_type_from_url_and_content() method for intelligent type detection
    • πŸ“¦ Temporary File Management: Automatic cleanup of temporary files during upload process

Improved

  • πŸ“„ Documentation: Updated README with comprehensive examples of URL upload functionality
  • πŸ§ͺ Test Coverage: Added extensive test suite for URL upload functionality including:
    • Auto-detection tests for different file types
    • Explicit type specification tests
    • Multiple file upload tests
    • Integration tests for task creation with external files
    • Edge case handling for files without extensions
    • Invalid URL error handling tests
  • 🎯 Examples: New example files demonstrating URL upload usage:
    • examples/upload_file_from_url.py - Basic URL upload examples
    • examples/create_task_with_external_file.py - Task creation with external files

Technical Details

  • πŸ”— URL Support: Supports any publicly accessible HTTP/HTTPS URL
  • πŸ“‹ File Type Detection:
    • URL extension matching for common formats (.jpg, .png, .pdf, .mp4, etc.)
    • HTTP Content-Type header analysis
    • Fallback to UploadFileType.File for unknown types
  • πŸ’Ύ Memory Efficient: Streams file downloads to temporary files
  • 🧹 Resource Management: Automatic cleanup of temporary files even on errors
  • πŸ”’ Security: Respects SSL verification settings from client configuration

Fixed

  • 🏷️ Model Fields: Made UploadedFile.mime field optional to handle API responses that don't include MIME type
  • 🌐 URL Reliability: Replaced unstable external URLs in tests with reliable httpbin.org and w3.org endpoints

[0.4.6] - 2025-01-21

Added

  • πŸŽ›οΈ Custom Field Helper Functions: Complete set of strongly-typed helper functions for creating and managing custom fields
    • Field creation helpers: make_text_field(), make_number_field(), make_checkbox_field(), make_date_field(), make_member_field(), make_task_relations_field(), make_select_field(), make_url_field()
    • Field editing helpers: edit_custom_field_name(), edit_custom_field_description(), edit_custom_field_visibility(), edit_custom_field_complete()
    • Select option helpers: make_select_option(), SelectOption class for typed option creation
    • Option management: add_board_custom_field_select_option(), remove_board_custom_field_select_option(), edit_board_custom_field_select_field_option()
    • Task relations helpers: make_task_relation_value(), add_task_relation(), remove_task_relation()
    • Member field helpers: make_member_value(), add_member_to_field(), remove_member_from_field()
    • Date field helpers: make_date_value(), make_date_range_value() with datetime support
    • Value formatting helpers: make_text_value(), make_number_value(), make_checkbox_value(), make_url_value()

Improved

  • πŸ”§ Enhanced API: Complete CRUD operations for custom fields with strongly-typed helpers
  • πŸ”— Relations Management: Simplified task relationship handling with add/remove functions
  • πŸ‘₯ Member Management: Easy member assignment with single/multiple member support
  • πŸ“… Date Handling: Automatic datetime formatting and range support
  • πŸ“ Value Formatting: Type-safe value preparation for all field types
  • 🎨 Better UX: Automatic ID generation for select options with collision-safe hashing

Fixed

  • πŸ› Model Compatibility: Made BoardCustomField.name optional to match API response behavior
  • βœ… Test Stability: Fixed board custom field tests to handle API response variations

Technical Details

  • All helper functions return properly typed request objects ready for API calls
  • All value helpers return properly formatted data for immediate use with CustomField
  • Smart member field management maintains appropriate data types (string vs list)
  • Date helpers support both datetime objects and ISO strings
  • Field editing helpers allow partial updates with optional parameters
  • Enhanced EditBoardCustomFieldRequest model with name field support
  • Support for both Color/Icon enums and string values for maximum flexibility
  • Helper functions handle option format conversion automatically
  • Full backward compatibility with existing custom field APIs

[0.4.5] - 2025-01-21

Fixed

  • πŸ”§ Pydantic v2 Compatibility: Fixed Optional field definitions to use Field(default=None, alias="...") instead of Field(None, alias="...")
  • πŸ› οΈ Linter Issues: Resolved linter warnings about missing default values for Optional fields
  • πŸ“ Code Quality: Improved code clarity by using explicit named parameters in Field definitions

Technical Details

  • Follows Pydantic v2 best practices for Optional field definitions

[0.4.4] - 2025-01-21

Changed

  • 🐍 Unified Python Style: All SDK models now use Python snake_case convention (due_start, due_end, task_id, board_id, etc.)
  • πŸ”„ Backward Compatibility: Full support for legacy camelCase fields through aliases (dueStart, dueEnd, taskId, boardId, etc.)
  • πŸ“– Updated Documentation: All README examples and documentation now use snake_case style
  • πŸ”§ Enhanced Examples: All example files updated to demonstrate proper Python conventions
  • βœ… Improved Tests: Fixed test infrastructure and enhanced coverage

Fixed

  • Corrected field aliases for all models to ensure proper API communication

Technical Details

  • Added Field aliases to all models: Task, CreateTaskRequest, EditTaskRequest, board models, etc.
  • Updated API methods to use by_alias=True where needed for proper camelCase serialization
  • Enhanced VaizBaseModel inheritance for consistent field handling
  • Maintained 100% test coverage

[0.4.3] - 2024-06-18

Changed

  • The kind field in all models (including GetHistoryRequest) now uses the Kind enum instead of a string.
  • All usages, tests, and documentation updated to use Kind (e.g., Kind.Task) instead of string values.

Fixed

  • Improved type safety for entity kind selection in history and related APIs.

[0.4.2] - 2024-06-17

Added

  • New get_history method for retrieving history of tasks and other entities
  • Models: GetHistoryRequest, GetHistoryResponse, HistoryItem, HistoryData
  • Enum: Kind for supported entity types (Space, Project, Task, Document, Board, Milestone)
  • Usage example: examples/get_history.py
  • Tests for the new method

Changed

  • All models and API now use Kind enum for the kind field instead of string
  • All usages, tests, and documentation updated to use Kind (e.g., Kind.Task) instead of string values

Fixed

  • Fixed aliases and types for file and task models
  • Improved environment variable handling in examples

[0.4.1] - 2024-06-16

Changed

  • Improved datetime support in all models
  • Updated examples and tests for new models

[0.4.0] - 2024-06-16

Added

  • Full comment system: create, edit, delete comments, reactions, attachments
  • Automatic datetime conversion in all models
  • New examples and documentation for working with dates

Breaking Changes

  • All date fields now return datetime objects instead of strings
  • All models now inherit from VaizBaseModel for datetime support