Commit Graph

253 Commits

Author SHA1 Message Date
Yeuoly 8c7bc2f075 fix 2025-10-30 18:13:44 +08:00
Harry 9077081304 feat: add parameter options fetching for star event handling
- Introduced a new method _fetch_parameter_options to retrieve parameter options based on credential type and access tokens.
- Enhanced the handling of unauthorized credentials by providing a default option when no valid credentials are available.
- Updated imports to include necessary entities for the new functionality.
2025-10-30 17:50:04 +08:00
Harry 8aa1a10fda refactor: clean up star event handling and remove unused parameter options
- Simplified error message formatting for unrecognized star actions.
- Removed the unused _fetch_parameter_options method and its associated imports to streamline the code.
2025-10-30 17:27:55 +08:00
Harry 3d2ac44761 fix: increase maximum pages for Dropbox file changes retrieval from 3 to 10
- Updated the _MAX_PAGES constant to allow for more pages of changes to be fetched.
- Removed the time constraint on fetching changes to improve efficiency.
2025-10-30 15:33:38 +08:00
Harry b3ca486f68 chore: bump GitHub trigger plugin version to 1.4.1 and update dify_plugin version to 0.6.0b14 2025-10-29 00:44:12 +08:00
Harry 5ebf0410bf chore: update dify_plugin version to 0.6.0b14 in requirements.txt 2025-10-27 13:12:41 +08:00
Harry dc63d7ee74 chore: update Dropbox trigger plugin version to 0.0.1 2025-10-27 11:23:07 +08:00
Harry fd61b3d8df feat: update file_changes event to rename cursor fields and enhance YAML schema
- Renamed cursor fields in the payload from 'cursor_before' and 'cursor_after' to 'cursor_start' and 'cursor_end' for clarity.
- Added descriptions for new cursor fields in the YAML output schema to improve documentation.
2025-10-27 00:49:55 +08:00
Harry 7bdf162dc2 feat: Gmail trigger plugin 2025-10-27 00:48:17 +08:00
Harry 87b19a6751 feat: enhance file_changes event to include detailed payload handling
- Updated _on_event method to accept a Request object and additional parameters.
- Modified payload processing to extract and structure changes, accounts, cursors, and received timestamp.
- Removed unnecessary cursor fields from the output schema in YAML.
2025-10-27 00:48:17 +08:00
Harry 354dc6f2b0 feat: add Dropbox webhook trigger plugin with file change event support 2025-10-27 00:48:17 +08:00
Harry 233084e770 chore: bump GitHub trigger plugin version to 1.4.0 2025-10-27 00:48:17 +08:00
Yeuoly cda9558f90 fix: google drive schema 2025-10-22 15:53:13 +08:00
Yeuoly 9948687009 bump sdk 2025-10-22 13:48:23 +08:00
Yeuoly 688ea3a230 fix: telegram tag 2025-10-22 12:54:32 +08:00
Harry 637944f5f6 refactor: update parameter descriptions to improve clarity across multiple YAML files 2025-10-21 17:27:47 +08:00
Harry 71e0739025 fix: change parameter type from select to checkbox in star.yaml 2025-10-21 11:47:07 +08:00
Harry 89d4ad575e chore: bump GitHub trigger plugin version to 1.3.9 and add OAuth scope configuration
- Updated version in manifest.yaml to 1.3.9.
- Added optional 'scope' field in github.yaml for OAuth API access with default value and help documentation.
2025-10-20 21:26:13 +08:00
Yeuoly 1df767a726 refine: readme 2025-10-20 19:50:30 +08:00
Yeuoly 0f82703661 readme 2025-10-20 18:01:39 +08:00
Yeuoly 966c660b40 (google drive) feat: support filname pattern 2025-10-20 17:52:12 +08:00
Yeuoly 58d7fae693 feat: add parameters 2025-10-20 16:49:11 +08:00
Yeuoly 61df834b64 fix: remove custom tag 2025-10-20 16:12:41 +08:00
Yeuoly b39d19232e fix: remove logs 2025-10-20 15:09:36 +08:00
Yeuoly 3aa1c10beb refactoring: fetch changes inside provider 2025-10-20 15:07:52 +08:00
Harry 39a9a04d64 chore: bump plugin version to 0.6.0b13 and update response field in TriggerDispatchResponse model
- Updated version in pyproject.toml and requirements.txt to 0.6.0b13.
- Changed 'raw_http_response' to 'response' in TriggerDispatchResponse model for clarity.
- Updated GitHub trigger manifest version to 1.3.8.
2025-10-20 12:28:33 +08:00
Harry 8d32dfb347 refactor: add payload to event handler's on_event function 2025-10-20 12:04:43 +08:00
Yeuoly 77efff7c35 Refine Google Drive change_detected.yaml with detailed schema
Based on real webhook data, added comprehensive output schema including:
- Detailed file object properties (id, name, mimeType, createdTime, modifiedTime, etc.)
- Nested user objects for owners and lastModifyingUser
- Complete subscription object with channel metadata and user details
- Proper descriptions for all fields

This ensures the event output accurately reflects the actual Google Drive API response structure.

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-18 18:18:43 +08:00
Harry cad974b207 feat: enhance GitHub trigger plugin with user ID tracking and event updates
- Added user_id field to EventDispatch and TriggerDispatchResponse models to track the user triggering events.
- Updated GitHub trigger provider to include user_id in event dispatching.
- Modified star event parameters in YAML to simplify naming conventions from "star_created" and "star_deleted" to "created" and "deleted".
- Bumped plugin version in manifest.yaml from 1.3.5 to 1.3.6 to reflect these changes.
2025-10-17 20:58:56 +08:00
Yeuoly 774e288628 fix: telegram yaml 2025-10-17 18:39:54 +08:00
Yeuoly 1004fa255c Fix duplicate labels in Telegram trigger events
- Renamed "Message Received" to more specific labels:
  - message_edited.yaml → "Message Edited"
  - business_message_received.yaml → "Business Message Received"
  - business_message_edited.yaml → "Business Message Edited"
  - channel_post_created.yaml → "Channel Post Created"
  - channel_post_edited.yaml → "Channel Post Edited"

Now all event labels are unique and clearly describe their specific purpose.

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-17 18:39:37 +08:00
Yeuoly 9f33b4dbf3 Add Gmail trigger example plugin with automated subscription (#218)
* Add Gmail trigger example with automatic subscription

* Replace Gmail trigger example with Google Drive trigger
2025-10-17 18:39:00 +08:00
Yeuoly c95ff144ac rename 2025-10-17 17:55:36 +08:00
Yeuoly 10da6e6cfa Refactor Telegram trigger events to follow consistent pattern
- Applied chat_boost event pattern to all 20 Telegram event handlers
- All event classes now inherit from both TelegramUpdateEvent and Event
- Preserved custom _build_variables implementations where present (e.g., message_received.py)
- Simple events now follow the minimal pattern with just update_key defined

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-17 17:53:58 +08:00
Yeuoly ad1d2b2b9a fix: slack 2025-10-17 17:48:46 +08:00
Yeuoly f29f6e67d5 fix: icons 2025-10-17 17:45:18 +08:00
Yeuoly ec58236521 fix: apply ruff 2025-10-17 17:42:23 +08:00
Yeuoly 4058597f87 Codex/implement slack trigger in main.py (#220)
* Expand Slack trigger to full Events API catalog

* Remove Slack trigger subscription constructor

* Remove Slack event selection from subscription schema

* Use official Slack icon asset

* Stop reading Slack signing secret from constructor parameters

* chore: remove tead_id

* refactoring

---------

Co-authored-by: Claude <noreply@anthropic.com>
2025-10-17 17:37:17 +08:00
Yeuoly 242e58790c plugin example: telegram (#219)
* chore: switch telegram trigger icon to svg

* fix: inline telegram trigger schemas

* chore: expand telegram trigger schemas
2025-10-17 17:16:01 +08:00
Yeuoly b9ac72257e Expand Slack trigger to full Events API catalog (#217)
* Expand Slack trigger to full Events API catalog

* Remove Slack trigger subscription constructor

* Remove Slack event selection from subscription schema

* Use official Slack icon asset

* Stop reading Slack signing secret from constructor parameters

* chore: remove tead_id
2025-10-17 16:44:43 +08:00
Harry 14ad64b064 chore: bump GitHub trigger plugin version to 1.3.5
- Updated version in manifest.yaml from 1.3.1 to 1.3.5 to reflect recent changes.
2025-10-16 17:41:08 +08:00
Harry 6220b50946 chore: update GitHub trigger plugin version and remove deprecated issue comment events
- Bumped version from 1.3.0 to 1.3.1 in the manifest.
- Removed deprecated issue comment events: issue_comment_created, issue_comment_edited, issue_comment_deleted.
- Consolidated issue comment handling into a unified structure for better maintainability.
- Updated README to reflect changes in event handling and provide clearer setup instructions.
2025-10-16 17:39:50 +08:00
Harry 7dcaee5bc4 refactor: remove star created and deleted events from GitHub trigger
- Deleted the StarCreatedEvent and StarDeletedEvent classes along with their corresponding YAML configurations.
- Updated the GitHub trigger provider to simplify star event handling by consolidating to a single star event type.

These changes streamline the event structure and improve maintainability.
2025-10-15 17:31:48 +08:00
Yeuoly 199affa82b lark readme 2025-10-15 13:25:08 +08:00
Yeuoly a9230eeecc fix 2025-10-14 20:57:50 +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