dify/api/models
Harry 814787677a feat(trigger): update plugin trigger API and model to use trigger_name
- Modified `PluginTriggerApi` to accept `trigger_name` as a JSON argument and return encoded plugin triggers.
- Updated `WorkflowPluginTrigger` model to replace `trigger_id` with `trigger_name` for better clarity.
- Adjusted `WorkflowPluginTriggerService` to handle the new `trigger_name` field and ensure proper error handling for subscriptions.
- Enhanced `workflow_trigger_fields` to include `trigger_name` in the plugin trigger schema.

This change improves the API's clarity and aligns the model with the updated naming conventions.
2025-09-05 15:56:13 +08:00
..
__init__.py refactor(migrations): remove obsolete plugin_trigger migration file 2025-09-03 15:02:17 +08:00
_workflow_exc.py feat: Persist Variables for Enhanced Debugging Workflow (#20699) 2025-06-24 09:05:29 +08:00
account.py fix(api): fix `DetachedInstanceError` for Account.current_tenant_id (#24789) 2025-08-29 19:12:02 +08:00
api_based_extension.py replace db with sa to get typing support (#23240) 2025-08-02 23:54:23 +08:00
base.py refactor: Use typed SQLAlchemy base model and fix type errors (#19980) 2025-05-21 15:38:03 +08:00
dataset.py feat: fix i18n missing keys and merge upstream/main (#24615) 2025-08-27 15:07:28 +08:00
engine.py feat(api): Add image multimodal support for LLMNode (#17372) 2025-04-30 17:28:02 +08:00
enums.py feat/trigger universal entry (#24358) 2025-08-23 20:18:08 +08:00
model.py chore: change the oauth_provider_apps table to uuidV7 (#24792) 2025-08-29 17:54:14 +08:00
provider.py feat: fix i18n missing keys and merge upstream/main (#24615) 2025-08-27 15:07:28 +08:00
source.py replace db with sa to get typing support (#23240) 2025-08-02 23:54:23 +08:00
task.py feat: fix i18n missing keys and merge upstream/main (#24615) 2025-08-27 15:07:28 +08:00
tools.py [CHORE]: remove redundant-cast (#24807) 2025-09-01 14:05:32 +08:00
trigger.py feat(trigger): plugin trigger workflow 2025-09-03 14:53:27 +08:00
types.py feat(api): Introduce `WorkflowDraftVariable` Model (#19737) 2025-05-19 22:59:56 +08:00
web.py replace db with sa to get typing support (#23240) 2025-08-02 23:54:23 +08:00
workflow.py feat(trigger): update plugin trigger API and model to use trigger_name 2025-09-05 15:56:13 +08:00