Commit Graph

12 Commits

Author SHA1 Message Date
Harry 9a9dd306ff feat(gmail_trigger): enhance attachment handling and metadata extraction
- Updated the GmailMessageAddedEvent class to support uploading up to 20 attachments, with improved handling for inline content and external links.
- Introduced new methods for extracting links from HTML and text, allowing for better integration of external attachments.
- Modified the output schema in the YAML to reflect changes in attachment metadata, including renaming fields for clarity.
2025-11-05 20:18:30 +08:00
Harry 2b2501268f refactor(gmail_trigger): standardize naming and enhance attachment handling
- Renamed the trigger from "Gmail Trigger" to "gmail_trigger" in the manifest for consistency.
- Improved the GmailMessageAddedEvent class by adding methods for processing attachments, including handling inline data and file uploads.
- Updated the output schema in the YAML to include new fields for attachment metadata, enhancing the event's data structure.
2025-11-05 19:10:04 +08:00
Harry 05df8aa956 refactor(gmail_trigger): update manifest and remove deprecated files
- Renamed the trigger label from "Gmail" to "Gmail Trigger" for clarity.
- Updated the manifest to reflect the new naming convention and removed the old `gmail.yaml` configuration file.
- Deleted the `gmail.py` provider file as part of the cleanup process, streamlining the trigger's implementation.
2025-11-05 16:29:06 +08:00
Harry a1f3f032fd fix(gmail_trigger): improve error handling in GmailLabelAddedEvent
- Enhanced error handling by preserving the original exception context when raising EventIgnoreError.
- This change ensures better debugging and traceability of errors during event processing.
2025-11-04 20:02:17 +08:00
Harry 6b39e1f6d5 refactor(gmail_trigger): remove deprecated Gmail message event handling
- Deleted the GmailMessageEvent class and its associated YAML configuration as part of the cleanup process.
- Updated the GmailTrigger class to remove references to the unified message event, focusing on individual message addition and deletion events.
- Adjusted documentation to reflect the removal of the unified event handling.
2025-11-04 18:36:02 +08:00
Harry 151bb87094 feat(gmail_trigger): enhance Gmail message event handling with addition and deletion tracking
- Updated the GmailMessageEvent class to handle both added and deleted messages, improving event management.
- Introduced a new `cancelled` field in TriggerInvokeEventResponse to indicate event cancellation.
- Enhanced error handling with EventIgnoreError for cases with no relevant messages.
- Updated YAML documentation to reflect changes in event behavior and output schema.
2025-11-04 18:20:39 +08:00
Harry 521447665b docs(gmail_trigger): update README and YAML for improved setup instructions and remove deprecated parameters
- Enhanced the README with detailed setup steps for Google Cloud project and OAuth configuration.
- Added images for better clarity on GCP setup.
- Removed deprecated parameters like `watch_email` and `topic_name` from the YAML schema.
- Introduced label-based filtering in event handling for better message management.
2025-11-04 15:15:49 +08:00
kurokobo ee227778af fix(gmail_trigger): correct types, ensure int, correct permission, and bump sdk (#233)
* fix(gmail_trigger): correct types for client_schema

* fix: ensure int

* fix: add storage permission

* fix: bump sdk version

* fix: bump version
2025-11-04 12:36:57 +08:00
Harry 7bdf162dc2 feat: Gmail trigger plugin 2025-10-27 00:48:17 +08:00
Harry 637944f5f6 refactor: update parameter descriptions to improve clarity across multiple YAML files 2025-10-21 17:27:47 +08:00
Harry 8d32dfb347 refactor: add payload to event handler's on_event function 2025-10-20 12:04: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