dify/api/services
Harry 9b5e5f0f50 refactor(api): replace dict type hints with Mapping for improved type safety
Updated type hints in several services to use Mapping instead of dict for better compatibility with various dictionary-like objects. Adjusted credential handling to ensure consistent encryption and decryption processes across ToolManager, DatasourceProviderService, ApiToolManageService, BuiltinToolManageService, and MCPToolManageService. This change enhances code clarity and adheres to strong typing practices.
2025-10-29 18:10:38 +08:00
..
auth Issue 23579 (#26777) 2025-10-13 10:16:12 +08:00
enterprise refactor: replace localStorage with HTTP-only cookies for auth tokens (#24365) 2025-10-19 21:29:04 +08:00
entities fix RetrievalMethod StrEnum (#26768) 2025-10-13 10:29:37 +08:00
errors Merge remote-tracking branch 'origin/main' into feat/trigger 2025-09-25 17:14:24 +08:00
plugin Merge branch 'feat/plugin-readme' into feat/trigger 2025-10-23 12:10:44 +08:00
rag_pipeline refactor:Decouple Domain Models from Direct Database Access (#27316) 2025-10-28 09:59:30 +08:00
recommend_app change all to httpx (#26119) 2025-10-10 23:41:16 +08:00
tools refactor(api): replace dict type hints with Mapping for improved type safety 2025-10-29 18:10:38 +08:00
trigger refactor(trigger): streamline OAuth client existence check 2025-10-29 14:22:56 +08:00
workflow feat(trigger): add event_name to PluginTriggerMetadata for enhanced trigger handling 2025-10-28 18:32:06 +08:00
__init__.py chore(api/services): apply ruff reformatting (#7599) 2024-08-26 13:43:57 +08:00
account_service.py Feature:during account initialization, set the interface language to be consistent with the display language(#27029) (#27042) 2025-10-21 15:53:12 +08:00
advanced_prompt_template_service.py chore: adopt StrEnum and auto() for some string-typed enums (#25129) 2025-09-12 21:14:26 +08:00
agent_service.py use deco to avoid current_user (#26077) 2025-10-16 15:45:51 +09:00
annotation_service.py Use hook to get userid (#26839) 2025-10-14 09:20:37 +08:00
api_based_extension_service.py remove bare list, dict, Sequence, None, Any (#25058) 2025-09-06 03:32:23 +08:00
app_dsl_service.py chore: update trigger dsl version to 0.5.0 2025-10-23 15:05:39 +08:00
app_generate_service.py Merge remote-tracking branch 'origin/main' into feat/trigger 2025-10-06 19:12:16 +08:00
app_model_config_service.py remove bare list, dict, Sequence, None, Any (#25058) 2025-09-06 03:32:23 +08:00
app_service.py use deco to avoid current_user (#26077) 2025-10-16 15:45:51 +09:00
async_workflow_service.py refactor: streamline trigger event node metadata handling and update async workflow service for JSON serialization 2025-10-28 17:50:06 +08:00
audio_service.py fix: remove unnecessary Flask context preservation to avoid circular import in audio service (#27380) 2025-10-24 10:41:14 +08:00
billing_service.py use deco to avoid current_user (#26077) 2025-10-16 15:45:51 +09:00
clear_free_plan_tenant_expired_logs.py update sql in batch (#24801) 2025-09-10 13:00:17 +08:00
code_based_extension_service.py remove bare list, dict, Sequence, None, Any (#25058) 2025-09-06 03:32:23 +08:00
conversation_service.py use deco to avoid current_user (#26077) 2025-10-16 15:45:51 +09:00
dataset_service.py fix: knowledge sync from website error (#27534) 2025-10-28 09:46:33 +08:00
datasource_provider_service.py refactor(api): replace dict type hints with Mapping for improved type safety 2025-10-29 18:10:38 +08:00
end_user_service.py refactor: remove common end user operations out of wraps.py and move it into EndUserService 2025-10-18 19:09:55 +08:00
external_knowledge_service.py fix: external knowledge url check ssrf (#26789) 2025-10-13 11:19:00 +08:00
feature_service.py knowledge-pipeline-for-enterprise (#27240) 2025-10-22 10:29:27 +08:00
file_service.py use deco to avoid current_user (#26077) 2025-10-16 15:45:51 +09:00
hit_testing_service.py rm type ignore (#25715) 2025-10-21 11:26:58 +08:00
knowledge_service.py rm type ignore (#25715) 2025-10-21 11:26:58 +08:00
message_service.py Ensure suggested questions parser returns typed sequence (#27104) 2025-10-20 13:01:09 +08:00
metadata_service.py rm type ignore (#25715) 2025-10-21 11:26:58 +08:00
model_load_balancing_service.py chore: add ast-grep rule to convert Optional[T] to T | None (#25560) 2025-09-15 13:06:33 +08:00
model_provider_service.py rm type ignore (#25715) 2025-10-21 11:26:58 +08:00
oauth_server.py use deco to avoid current_user (#26077) 2025-10-16 15:45:51 +09:00
operation_service.py more httpx (#25651) 2025-09-22 23:07:09 +08:00
ops_service.py feat: add Tencent Cloud APM tracing integration (#25657) 2025-10-14 10:21:17 +08:00
recommended_app_service.py chore: add ast-grep rule to convert Optional[T] to T | None (#25560) 2025-09-15 13:06:33 +08:00
saved_message_service.py use deco to avoid current_user (#26077) 2025-10-16 15:45:51 +09:00
tag_service.py one example of Session (#24135) 2025-09-24 03:32:48 +08:00
variable_truncator.py fix(api): Disable SSE events truncation for service api (#27484) 2025-10-27 21:15:44 +08:00
vector_service.py remove .value (#26633) 2025-10-11 09:08:29 +08:00
web_conversation_service.py use deco to avoid current_user (#26077) 2025-10-16 15:45:51 +09:00
webapp_auth_service.py refactor: replace localStorage with HTTP-only cookies for auth tokens (#24365) 2025-10-19 21:29:04 +08:00
website_service.py refactor: Update Firecrawl to use v2 API (#24734) 2025-10-15 10:48:54 +08:00
workflow_app_service.py refactor: improve trigger metadata handling and streamline workflow service 2025-10-28 17:50:06 +08:00
workflow_draft_variable_service.py feat(trigger): system variables for trigger nodes 2025-10-29 18:10:38 +08:00
workflow_run_service.py Feat/add status filter to workflow runs (#26850) 2025-10-18 12:15:29 +08:00
workflow_service.py feat(trigger): system variables for trigger nodes 2025-10-29 18:10:38 +08:00
workspace_service.py Fix basedpyright type errors (#25435) 2025-09-10 01:54:26 +08:00