跳到主要内容

WorkflowProjectInvitation

idstringrequired
workflowIdstringrequired
tokenstringrequired

服务端签发的邀请 token,前端使用 ${origin}/invite/${token} 拼接完整链接。

roleWorkflowInvitationRolerequired

Possible values: [manager, runner, viewer]

createdBystring
createdByProfile object
userIdstringrequired
displayNamestringrequired
emailstring

Optional email address for the profile summary.

avatarUrlstring

Optional avatar image URL or data URL for the uploader profile.

createdAtstring<date-time>required
expiresAtstring<date-time>required
acceptedBystring
acceptedByProfile object
userIdstringrequired
displayNamestringrequired
emailstring

Optional email address for the profile summary.

avatarUrlstring

Optional avatar image URL or data URL for the uploader profile.

acceptedAtstring<date-time>
revokedAtstring<date-time>
WorkflowProjectInvitation
{
"id": "string",
"workflowId": "string",
"token": "string",
"role": "manager",
"createdBy": "string",
"createdByProfile": {
"userId": "string",
"displayName": "string",
"email": "string",
"avatarUrl": "string"
},
"createdAt": "2024-07-29T15:51:28.071Z",
"expiresAt": "2024-07-29T15:51:28.071Z",
"acceptedBy": "string",
"acceptedByProfile": {
"userId": "string",
"displayName": "string",
"email": "string",
"avatarUrl": "string"
},
"acceptedAt": "2024-07-29T15:51:28.071Z",
"revokedAt": "2024-07-29T15:51:28.071Z"
}