1
+ import type {
2
+ SchemaApplicationUser ,
3
+ SchemaProject ,
4
+ SchemaPullRequest ,
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 {
@@ -15,6 +28,11 @@ export interface Author {
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 PRReviewerUpdated {
19
37
/** The user who created the pull request. */
20
38
readonly actor : Actor
@@ -31,9 +49,11 @@ export interface PRReviewerUpdated {
31
49
export interface Project {
32
50
readonly id : number
33
51
readonly key : string
52
+ readonly links : ActorLinks
34
53
readonly name : string
35
- readonly owner : Actor
36
- readonly type : string
54
+ readonly owner ?: Actor
55
+ readonly public : boolean
56
+ readonly type : SchemaProject [ "type" ]
37
57
}
38
58
39
59
export interface PullRequest {
@@ -44,11 +64,12 @@ export interface PullRequest {
44
64
readonly draft : boolean
45
65
readonly fromRef : Ref
46
66
readonly id : number
67
+ readonly links : ActorLinks
47
68
readonly locked : boolean
48
69
readonly open : boolean
49
- readonly participants : unknown [ ]
70
+ readonly participants : Author [ ]
50
71
readonly reviewers : Author [ ]
51
- readonly state : string
72
+ readonly state : SchemaPullRequest [ "state" ]
52
73
readonly title : string
53
74
readonly toRef : Ref
54
75
readonly updatedDate : number
@@ -60,16 +81,29 @@ export interface Ref {
60
81
readonly id : string
61
82
readonly latestCommit : string
62
83
readonly repository : Repository
84
+ readonly type : SchemaRestMinimalRef [ "type" ]
63
85
}
64
86
65
87
export interface Repository {
88
+ readonly archived : boolean
66
89
readonly forkable : boolean
90
+ readonly hierarchyId : string
67
91
readonly id : number
92
+ readonly links : RepositoryLinks
68
93
readonly name : string
69
94
readonly project : Project
70
95
readonly public : boolean
71
96
readonly scmId : string
72
97
readonly slug : string
73
- readonly state : string
98
+ readonly state : SchemaRepository [ "state" ]
74
99
readonly statusMessage : string
75
100
}
101
+
102
+ export interface RepositoryLinks {
103
+ readonly clone : Clone [ ]
104
+ readonly self : Self [ ]
105
+ }
106
+
107
+ export interface Self {
108
+ readonly href : string
109
+ }
0 commit comments