11import type {
22 SchemaPullRequest ,
33 SchemaRepository ,
4- } from "../../../openapi/openapi-typescript .js"
4+ } from "../../../openapi/index .js"
55
66export interface Actor {
77 readonly active : boolean
@@ -11,6 +11,15 @@ export interface Actor {
1111 readonly name : string
1212 readonly slug : string
1313 readonly type : string
14+ readonly links : ActorLinks
15+ }
16+
17+ export interface ActorLinks {
18+ readonly self : Self [ ]
19+ }
20+
21+ export interface Self {
22+ readonly href : string
1423}
1524
1625export interface Author {
@@ -29,27 +38,30 @@ export interface PRModified {
2938 readonly previousDescription : string
3039 readonly previousDraft : boolean
3140 /** Previous target of the pull request, may not have changed */
32- readonly previousTarget : PreviousTarget
41+ readonly previousTarget : Ref
3342 /** Previous title of the pull request, may not have changed */
3443 readonly previousTitle : string
3544 /** Details of the pull request created. */
3645 readonly pullRequest : PullRequest
3746}
3847
39- export interface PreviousTarget {
48+ export interface Ref {
4049 readonly displayId : string
4150 readonly id : string
42- readonly latestChangeset : string
51+ readonly latestChangeset ? : string
4352 readonly latestCommit : string
4453 readonly type : string
54+ readonly repository ?: Repository
4555}
4656
4757export interface Project {
4858 readonly id : number
4959 readonly key : string
5060 readonly name : string
51- readonly owner : Actor
61+ readonly owner ? : Actor
5262 readonly type : string
63+ readonly public : boolean
64+ readonly links : ActorLinks
5365}
5466
5567export interface PullRequest {
@@ -69,13 +81,7 @@ export interface PullRequest {
6981 readonly toRef : Ref
7082 readonly updatedDate : number
7183 readonly version : number
72- }
73-
74- export interface Ref {
75- readonly displayId : string
76- readonly id : string
77- readonly latestCommit : string
78- readonly repository : Repository
84+ readonly links : ActorLinks
7985}
8086
8187export interface Repository {
@@ -88,4 +94,17 @@ export interface Repository {
8894 readonly slug : string
8995 readonly state : SchemaRepository [ "state" ]
9096 readonly statusMessage : string
97+ readonly hierarchyId : string
98+ readonly archived : boolean
99+ readonly links : RepositoryLinks
100+ }
101+
102+ export interface RepositoryLinks {
103+ readonly clone : Clone [ ]
104+ readonly self : Self [ ]
105+ }
106+
107+ export interface Clone {
108+ readonly href : string
109+ readonly name : string
91110}
0 commit comments