1
+ import type {
2
+ SchemaApplicationUser ,
3
+ SchemaProject ,
4
+ SchemaPullRequestParticipant ,
5
+ SchemaRepository ,
6
+ SchemaRestMinimalRef ,
7
+ } from "../../../openapi/openapi-typescript.js"
8
+
1
9
export interface Actor {
2
10
readonly active : boolean
3
11
readonly displayName : string
4
12
readonly emailAddress : string
5
13
readonly id : number
14
+ readonly links : ActorLinks
6
15
readonly name : string
7
16
readonly slug : string
8
- readonly type : string
17
+ readonly type : SchemaApplicationUser [ "type" ]
18
+ }
19
+
20
+ export interface ActorLinks {
21
+ readonly self : Self [ ]
9
22
}
10
23
11
24
export interface Author {
12
25
readonly approved : boolean
13
- readonly role : string
26
+ readonly role : SchemaPullRequestParticipant [ "role" ]
14
27
readonly status : string
15
28
readonly user : Actor
16
29
}
17
30
31
+ export interface Clone {
32
+ readonly href : string
33
+ readonly name : string
34
+ }
35
+
18
36
export interface Comment {
19
37
readonly author : Actor
20
38
readonly comments : unknown [ ]
21
39
readonly createdDate : number
22
40
readonly id : number
23
41
readonly properties : Properties
24
- readonly tasks : unknown [ ]
42
+ readonly severity : string
43
+ readonly state : string
44
+ readonly tasks ?: unknown [ ]
25
45
readonly text : string
46
+ readonly threadResolved : boolean
26
47
readonly updatedDate : number
27
48
readonly version : number
28
49
}
@@ -34,7 +55,7 @@ export interface PRCommentAdded {
34
55
/** The comment created. */
35
56
readonly comment : Comment
36
57
/** Id of the parent comment if one exists. */
37
- readonly commentParentId : number
58
+ readonly commentParentId ? : number
38
59
readonly date : string
39
60
readonly eventKey : "pr:comment:added"
40
61
/** The pull request comment on. */
@@ -44,22 +65,26 @@ export interface PRCommentAdded {
44
65
export interface Project {
45
66
readonly id : number
46
67
readonly key : string
68
+ readonly links : ActorLinks
47
69
readonly name : string
48
70
readonly public : boolean
49
- readonly type : string
71
+ readonly type : SchemaProject [ "type" ]
50
72
}
51
73
52
74
export interface Properties {
53
75
readonly repositoryId : number
76
+ readonly suggestionState : string
54
77
}
55
78
56
79
export interface PullRequest {
57
80
readonly author : Author
58
81
readonly closed : boolean
59
82
readonly createdDate : number
83
+ readonly description : string
60
84
readonly draft : boolean
61
85
readonly fromRef : Ref
62
86
readonly id : number
87
+ readonly links : ActorLinks
63
88
readonly locked : boolean
64
89
readonly open : boolean
65
90
readonly participants : unknown [ ]
@@ -76,16 +101,29 @@ export interface Ref {
76
101
readonly id : string
77
102
readonly latestCommit : string
78
103
readonly repository : Repository
104
+ readonly type : SchemaRestMinimalRef [ "type" ]
79
105
}
80
106
81
107
export interface Repository {
108
+ readonly archived : boolean
82
109
readonly forkable : boolean
110
+ readonly hierarchyId : string
83
111
readonly id : number
112
+ readonly links : RepositoryLinks
84
113
readonly name : string
85
114
readonly project : Project
86
115
readonly public : boolean
87
116
readonly scmId : string
88
117
readonly slug : string
89
- readonly state : string
118
+ readonly state : SchemaRepository [ "state" ]
90
119
readonly statusMessage : string
91
120
}
121
+
122
+ export interface RepositoryLinks {
123
+ readonly clone : Clone [ ]
124
+ readonly self : Self [ ]
125
+ }
126
+
127
+ export interface Self {
128
+ readonly href : string
129
+ }
0 commit comments