mirror of
https://github.com/langgenius/dify.git
synced 2026-11-14 07:11:06 +08:00
feat(hitl): improve forms, notifications, and IM contact sync (#45945)
Co-authored-by: zxhlyh <jasonapring2015@outlook.com>
This commit is contained in:
1 parent
116a990765
commit
a4d64bcddd
91 files changed
+2590
-352
No files matched your search
Generated
+7
-3
@@ -15220,6 +15220,8 @@ Set or reset the IM override for a contact. This endpoint is used to override th
|
||||
| default | Error | **application/json**: [ErrorResponse](#errorresponse)<br> |
|
||||
|
||||
### [POST] /workspaces/current/human-input/v2/im-sync-runs
|
||||
**Start or reuse a workspace run using the authenticated Account ID**
|
||||
|
||||
#### Responses
|
||||
|
||||
| Code | Description | Schema |
|
||||
@@ -15231,7 +15233,7 @@ Set or reset the IM override for a contact. This endpoint is used to override th
|
||||
| default | Error | **application/json**: [ErrorResponse](#errorresponse)<br> |
|
||||
|
||||
### [GET] /workspaces/current/human-input/v2/im-sync-runs/latest
|
||||
Return the latest IM sync run summary. The UI uses finished_at as the explicit sync time; the response does not include started_by.
|
||||
Return the latest IM sync run summary. The UI uses finished_at as the explicit sync time; initiator_display_name is resolved from the initiating Account.
|
||||
|
||||
#### Responses
|
||||
|
||||
@@ -26777,6 +26779,7 @@ A trimmed version of `HumanInputContact` that only includes the fields needed fo
|
||||
| ---- | ---- | ----------- | -------- |
|
||||
| avatar_url | string | URL of the contact's avatar. | No |
|
||||
| created_at | integer | Timestamp when the contact was created. | Yes |
|
||||
| email | string | Primary contact email if one exists. | No |
|
||||
| id | string | Unique contact identifier. | Yes |
|
||||
| name | string | Display name shown in the contact directory. | Yes |
|
||||
|
||||
@@ -27139,8 +27142,8 @@ Stable reconciliation bucket for one synchronized directory entry.
|
||||
|
||||
One IM sync run snapshot.
|
||||
|
||||
The latest-only UI displays ``finished_at`` as the explicit sync time. The
|
||||
transport contract intentionally does not expose a ``started_by`` actor.
|
||||
The latest-only UI displays ``finished_at`` as the explicit sync time.
|
||||
The initiator display name is resolved from the initiating Dify Account.
|
||||
|
||||
| Name | Type | Description | Required |
|
||||
| ---- | ---- | ----------- | -------- |
|
||||
@@ -27149,6 +27152,7 @@ transport contract intentionally does not expose a ``started_by`` actor.
|
||||
| error_message | string | Terminal error message. Present only when the sync run status is `failed`. | No |
|
||||
| finished_at | integer | Unix timestamp in seconds when the sync run finished. This is the sync time displayed by the latest-only UI and is None while the run is unfinished. | No |
|
||||
| id | string | Unique sync run identifier. | Yes |
|
||||
| initiator_display_name | string | Current initiating Account name; empty for EE administrators or an unavailable Account. | Yes |
|
||||
| provider | [IMProvider](#improvider) | IM provider associated with the sync run. | Yes |
|
||||
| result_counts | [IMSyncRunResultCounts](#imsyncrunresultcounts) | Aggregate reconciliation counts for the current run snapshot. | Yes |
|
||||
| started_at | integer | Unix timestamp in seconds when the sync run started. | No |
|
||||
|
||||
Reference in new issue
Block a user