Commit Graph

684 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 c1c40a4c9d Merge remote-tracking branch 'origin/main' into feat/trigger
# Conflicts:
#	python/pyproject.toml
2025-10-27 11:33:59 +08:00
Harry b19a8b5f7b chore: bump version to 0.6.0b14 in pyproject.toml 2025-10-27 11:30:47 +08:00
Harry 129c43dad0 fix: update EventConfiguration to use default_factory for parameters and enhance file_changes YAML schema
- Changed parameters in EventConfiguration to use default_factory for better initialization.
- Added parameters section in file_changes YAML to improve event documentation.
2025-10-27 11:29:30 +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
Maries f049858db4 chore: bump to 0.5.1 (#224) 2025-10-20 14:41:22 +08:00
Harry df2073fbb1 Merge remote-tracking branch 'origin/main' into feat/trigger 2025-10-20 14:39:39 +08:00
Maries 569e68ac62 refactor: update model provider to use ModelFactory for instance mana… (#223)
* refactor: update model provider to use ModelFactory for instance management

* refactor: integrate ModelFactory for model instance mapping in tests

* refactor: remove unused imports and clean up test files
2025-10-20 14:27:20 +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 77a503422f add payload to 2025-10-18 18:20:35 +08:00
Yeuoly 8fc93f4024 feat: support payload in distaptch_event and _on_event 2025-10-18 18:18: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 04937bdaf7 chore: bump plugin version to 0.6.0b12 in pyproject.toml 2025-10-17 20:58:56 +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