Commit Graph

8 Commits

Author SHA1 Message Date
Yeuoly ec58236521 fix: apply ruff 2025-10-17 17:42:23 +08:00
Yeuoly ea2542fe9a feat: add comprehensive Lark event support (VC, meeting room, tasks)
- Added video conference (VC) events:
  - meeting_started_v1, meeting_ended_v1
  - join_meeting_v1, leave_meeting_v1
  - recording_started_v1, recording_ended_v1, recording_ready_v1
- Added meeting room events:
  - meeting_room_created_v1
  - meeting_room_status_changed_v1
- Added task events:
  - task_updated_v1
  - task_comment_updated_v1
- Added calendar and contact events:
  - calendar_changed_v4
  - scope_updated_v3
- Added Bitable events:
  - file_bitable_record_changed_v1
  - file_bitable_field_changed_v1

All events properly check SDK fields and use correct data structures.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-14 16:42:03 +08:00
Yeuoly 83cd0ee184 feat: implement 11 new Lark trigger events and convert JSON outputs to proper data structures
- Add IM/Chat events: message_receive_v1, message_reaction_deleted_v1, chat_member_user_withdrawn_v1, chat_member_bot_added_v1, chat_member_bot_deleted_v1
- Add Drive events: file_read_v1, file_title_updated_v1
- Convert all JSON string outputs to proper arrays/objects across all events
- Update YAML schemas to use proper data types (array, object, number) instead of strings
- Fix data structure handling for department_ids, user lists, and complex nested objects
- Register all new events in provider with appropriate handlers

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-14 16:16:50 +08:00
Yeuoly e7314cc0b2 feat: implement additional Lark trigger events
- Add P2ImMessageRecalledV1 event for message recall notifications
- Add P2ContactUserDeletedV3 event for employee deletion/departure
- Add P2DriveFileTrashedV1 event for file trash operations
- Fix department_ids to be array type instead of string in user_deleted_v3
- Register all new events in provider and add handler methods
- Check actual Lark SDK fields for proper data extraction

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-14 15:53:58 +08:00
Yeuoly 5f90901bd5 feat: implement new Lark trigger events for chat disbanded and updated
- Add P2ImChatDisbandedV1 event handler for when chats are disbanded
- Add P2ImChatUpdatedV1 event handler for chat information updates
- Register new events in provider and add to event list
- Check and use actual Lark SDK fields for proper data extraction

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-14 15:47:58 +08:00
Yeuoly a42c364266 fix: remove leaked and unimplemented event registrations from Lark provider
- Remove p2p_chat_entered event registration (no handler file exists)
- Remove p2p_im_chat_member_bot_added_v1 event registration (no handler file exists)
- Fix calendar event name to match file naming (event_changed_v4 instead of calendar_event_changed_v4)
- Clean up unused imports for removed event types

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-14 15:41:00 +08:00
Yeuoly 2d32c0feaa refactor: de-duplicate lark event dispatcher setup (#215)
* refactor: reuse lark event dispatch setup

* fix: expose structured lark trigger payloads

* Update python/examples/lark_trigger/events/contact/user_updated_v3.py

Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>

* Update python/examples/lark_trigger/events/contact/user_updated_v3.py

Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>

* Update python/examples/lark_trigger/events/contact/user_updated_v3.py

Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>

* Update python/examples/lark_trigger/events/contact/user_updated_v3.py

Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>

* Update python/examples/lark_trigger/events/contact/user_updated_v3.py

Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>

---------

Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
2025-10-14 11:23:05 +08:00
Yeuoly c0c30d9378 feat: add comprehensive Lark trigger events implementation
Add Lark/Feishu webhook trigger with 10 event handlers:
- IM events: messages, member changes, reactions, read receipts
- Calendar events: event changes
- Approval events: approval status updates
- Drive events: file creation
- Contact events: employee onboarding, department creation

All events properly extract fields from Lark SDK models with:
- Explicit field declarations (no __dict__ usage)
- Correct data types (integers/booleans preserved)
- Human-friendly labels in EN/ZH/JA languages
- Organized subdirectory structure by domain

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-13 19:10:15 +08:00