@@ -45,6 +45,66 @@ components:
4545 type : string
4646 example : Stewardship not found.
4747
48+ ActivityActor :
49+ type : object
50+ required : [userId]
51+ description : Profile of the actor who performed an activity. Stored as a snapshot on the activity log.
52+ properties :
53+ userId :
54+ type : string
55+ description : Auth0 sub of the actor.
56+ example : auth0|abc123
57+ username :
58+ type :
59+ - string
60+ - ' null'
61+ description : LFX username of the actor.
62+ example : gaspergrom
63+ displayName :
64+ type :
65+ - string
66+ - ' null'
67+ description : Full display name of the actor.
68+ example : Gašper Grom
69+ avatarUrl :
70+ type :
71+ - string
72+ - ' null'
73+ format : uri
74+ description : Avatar URL of the actor.
75+ example : ' https://avatars.githubusercontent.com/u/12345'
76+
77+ ActorInput :
78+ type : object
79+ required : [userId]
80+ description : >
81+ Profile of the actor performing this action. Stored as a snapshot on the activity log.
82+ `userId` is required. All other fields are optional and can be null.
83+ properties :
84+ userId :
85+ type : string
86+ description : Auth0 sub of the actor. Must match the authenticated user's token sub.
87+ example : auth0|abc123
88+ username :
89+ type :
90+ - string
91+ - ' null'
92+ description : LFX username of the actor.
93+ example : gaspergrom
94+ displayName :
95+ type :
96+ - string
97+ - ' null'
98+ description : Full display name of the actor.
99+ example : Gašper Grom
100+ avatarUrl :
101+ type :
102+ - string
103+ - ' null'
104+ format : uri
105+ description : Avatar URL of the actor.
106+ example : ' https://avatars.githubusercontent.com/u/12345'
107+
48108 StewardshipStatus :
49109 type : string
50110 enum :
@@ -187,8 +247,14 @@ paths:
187247 type : string
188248 description : Package URL (must start with `pkg:`).
189249 example : pkg:npm/lodash
250+ actor :
251+ $ref : ' #/components/schemas/ActorInput'
190252 example :
191253 purl : pkg:npm/lodash
254+ actor :
255+ username : gaspergrom
256+ displayName : Gašper Grom
257+ avatarUrl : ' https://avatars.githubusercontent.com/u/12345'
192258 responses :
193259 ' 200 ' :
194260 description : Stewardship opened (or already open).
@@ -288,10 +354,16 @@ paths:
288354 If true, atomically transitions the stewardship status to `assessing`
289355 in the same transaction as the assignment. Use for the "Assign & move to
290356 Assessing" action to avoid a second round-trip.
357+ actor :
358+ $ref : ' #/components/schemas/ActorInput'
291359 example :
292360 userId : abc123
293361 role : lead
294362 moveToAssessing : true
363+ actor :
364+ username : gaspergrom
365+ displayName : Gašper Grom
366+ avatarUrl : ' https://avatars.githubusercontent.com/u/12345'
295367 responses :
296368 ' 200 ' :
297369 description : Steward assigned.
@@ -386,9 +458,15 @@ paths:
386458 minLength : 1
387459 description : Optional free-text notes for the activity log.
388460 example : Contacted maintainer, no response after 30 days.
461+ actor :
462+ $ref : ' #/components/schemas/ActorInput'
389463 example :
390464 resolutionPath : right_of_first_refusal
391465 notes : Contacted maintainer, no response after 30 days.
466+ actor :
467+ username : gaspergrom
468+ displayName : Gašper Grom
469+ avatarUrl : ' https://avatars.githubusercontent.com/u/12345'
392470 responses :
393471 ' 200 ' :
394472 description : Stewardship escalated.
@@ -485,22 +563,36 @@ paths:
485563 type : string
486564 minLength : 1
487565 description : Optional free-text notes for the activity log.
566+ actor :
567+ $ref : ' #/components/schemas/ActorInput'
488568 examples :
489569 set_active :
490570 summary : Transition to active
491571 value :
492572 status : active
573+ actor :
574+ username : gaspergrom
575+ displayName : Gašper Grom
576+ avatarUrl : ' https://avatars.githubusercontent.com/u/12345'
493577 set_inactive :
494578 summary : Transition to inactive (inactiveReason required)
495579 value :
496580 status : inactive
497581 inactiveReason : stepped_down
498582 notes : Steward stepped down voluntarily.
583+ actor :
584+ username : gaspergrom
585+ displayName : Gašper Grom
586+ avatarUrl : ' https://avatars.githubusercontent.com/u/12345'
499587 set_blocked :
500588 summary : Transition to blocked
501589 value :
502590 status : blocked
503591 notes : Waiting on upstream maintainer response.
592+ actor :
593+ username : gaspergrom
594+ displayName : Gašper Grom
595+ avatarUrl : ' https://avatars.githubusercontent.com/u/12345'
504596 responses :
505597 ' 200 ' :
506598 description : Status updated.
0 commit comments