@paklo/core 0.7.3 → 0.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/azure/index.d.mts +930 -116
- package/dist/azure/index.mjs +412 -229
- package/dist/azure/index.mjs.map +1 -1
- package/dist/dependabot/index.d.mts +3 -3
- package/dist/dependabot/index.mjs +3 -4
- package/dist/{dependabot-_TVZhG0L.mjs → dependabot-rtPO9HdD.mjs} +21 -14
- package/dist/dependabot-rtPO9HdD.mjs.map +1 -0
- package/dist/github/index.d.mts +1 -1
- package/dist/github/index.mjs +1 -1
- package/dist/{index-BWftXTYB.d.mts → index-BfwWezjJ.d.mts} +1 -1
- package/dist/{index-vaaBSJ7v.d.mts → index-Byxjhvfz.d.mts} +67 -59
- package/dist/{job-DQiSYFHb.mjs → job-BxOZ-hqF.mjs} +2 -2
- package/dist/job-BxOZ-hqF.mjs.map +1 -0
- package/dist/{logger-BqvUa-Ue.mjs → logger-5PEqZVLr.mjs} +10 -3
- package/dist/{logger-BqvUa-Ue.mjs.map → logger-5PEqZVLr.mjs.map} +1 -1
- package/dist/logger.mjs +1 -1
- package/dist/usage.d.mts +1 -1
- package/dist/usage.mjs +1 -1
- package/package.json +6 -9
- package/dist/dependabot-_TVZhG0L.mjs.map +0 -1
- package/dist/http/index.d.mts +0 -121
- package/dist/http/index.mjs +0 -3
- package/dist/http-D2wwAKQ-.mjs +0 -241
- package/dist/http-D2wwAKQ-.mjs.map +0 -1
- package/dist/job-DQiSYFHb.mjs.map +0 -1
package/dist/azure/index.d.mts
CHANGED
|
@@ -1,116 +1,926 @@
|
|
|
1
|
-
import { F as DependabotUpdatePullRequest, St as DependabotExistingGroupPR, a as DependabotCreatePullRequest, bt as DependabotDependency, kn as VariableFinderFn, rn as DependabotConfig, t as DependabotClosePullRequest, wt as DependabotExistingPR } from "../index-
|
|
2
|
-
import "../index-
|
|
1
|
+
import { F as DependabotUpdatePullRequest, St as DependabotExistingGroupPR, a as DependabotCreatePullRequest, bt as DependabotDependency, kn as VariableFinderFn, rn as DependabotConfig, t as DependabotClosePullRequest, wt as DependabotExistingPR } from "../index-Byxjhvfz.mjs";
|
|
2
|
+
import "../index-BfwWezjJ.mjs";
|
|
3
3
|
import * as zod0 from "zod";
|
|
4
|
+
import { z } from "zod";
|
|
4
5
|
import * as zod_v4_core0 from "zod/v4/core";
|
|
5
6
|
|
|
6
7
|
//#region src/azure/types.d.ts
|
|
7
|
-
declare
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
_links
|
|
82
|
-
self: {
|
|
83
|
-
href:
|
|
84
|
-
}
|
|
85
|
-
collection: {
|
|
86
|
-
href:
|
|
87
|
-
}
|
|
88
|
-
web: {
|
|
89
|
-
href:
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
type
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
8
|
+
declare const AzdoVersionControlChangeTypeSchema: z.ZodEnum<{
|
|
9
|
+
all: "all";
|
|
10
|
+
delete: "delete";
|
|
11
|
+
branch: "branch";
|
|
12
|
+
none: "none";
|
|
13
|
+
add: "add";
|
|
14
|
+
edit: "edit";
|
|
15
|
+
encoding: "encoding";
|
|
16
|
+
rename: "rename";
|
|
17
|
+
undelete: "undelete";
|
|
18
|
+
merge: "merge";
|
|
19
|
+
lock: "lock";
|
|
20
|
+
rollback: "rollback";
|
|
21
|
+
sourceRename: "sourceRename";
|
|
22
|
+
targetRename: "targetRename";
|
|
23
|
+
property: "property";
|
|
24
|
+
}>;
|
|
25
|
+
type AzdoVersionControlChangeType = z.infer<typeof AzdoVersionControlChangeTypeSchema>;
|
|
26
|
+
declare const AZDO_PULL_REQUEST_MERGE_STRATEGIES: readonly ["noFastForward", "squash", "rebase", "rebaseMerge"];
|
|
27
|
+
declare const AzdoPullRequestMergeStrategySchema: z.ZodEnum<{
|
|
28
|
+
noFastForward: "noFastForward";
|
|
29
|
+
squash: "squash";
|
|
30
|
+
rebase: "rebase";
|
|
31
|
+
rebaseMerge: "rebaseMerge";
|
|
32
|
+
}>;
|
|
33
|
+
type AzdoPullRequestMergeStrategy = z.infer<typeof AzdoPullRequestMergeStrategySchema>;
|
|
34
|
+
declare const AzdoCommentThreadStatusSchema: z.ZodEnum<{
|
|
35
|
+
unknown: "unknown";
|
|
36
|
+
active: "active";
|
|
37
|
+
fixed: "fixed";
|
|
38
|
+
wontFix: "wontFix";
|
|
39
|
+
closed: "closed";
|
|
40
|
+
byDesign: "byDesign";
|
|
41
|
+
pending: "pending";
|
|
42
|
+
}>;
|
|
43
|
+
type AzdoCommentThreadStatus = z.infer<typeof AzdoCommentThreadStatusSchema>;
|
|
44
|
+
declare const AzdoCommentTypeSchema: z.ZodEnum<{
|
|
45
|
+
unknown: "unknown";
|
|
46
|
+
text: "text";
|
|
47
|
+
codeChange: "codeChange";
|
|
48
|
+
system: "system";
|
|
49
|
+
}>;
|
|
50
|
+
type AzdoCommentType = z.infer<typeof AzdoCommentTypeSchema>;
|
|
51
|
+
declare const AzdoPullRequestAsyncStatusSchema: z.ZodEnum<{
|
|
52
|
+
notSet: "notSet";
|
|
53
|
+
queued: "queued";
|
|
54
|
+
conflicts: "conflicts";
|
|
55
|
+
succeeded: "succeeded";
|
|
56
|
+
rejectedByPolicy: "rejectedByPolicy";
|
|
57
|
+
failure: "failure";
|
|
58
|
+
}>;
|
|
59
|
+
type AzdoPullRequestAsyncStatus = z.infer<typeof AzdoPullRequestAsyncStatusSchema>;
|
|
60
|
+
declare const AzdoPullRequestStatusSchema: z.ZodEnum<{
|
|
61
|
+
all: "all";
|
|
62
|
+
active: "active";
|
|
63
|
+
notSet: "notSet";
|
|
64
|
+
abandoned: "abandoned";
|
|
65
|
+
completed: "completed";
|
|
66
|
+
}>;
|
|
67
|
+
type AzdoPullRequestStatus = z.infer<typeof AzdoPullRequestStatusSchema>;
|
|
68
|
+
declare const AzdoProjectSchema: z.ZodObject<{
|
|
69
|
+
id: z.ZodString;
|
|
70
|
+
name: z.ZodString;
|
|
71
|
+
description: z.ZodOptional<z.ZodString>;
|
|
72
|
+
url: z.ZodString;
|
|
73
|
+
state: z.ZodEnum<{
|
|
74
|
+
all: "all";
|
|
75
|
+
deleted: "deleted";
|
|
76
|
+
deleting: "deleting";
|
|
77
|
+
new: "new";
|
|
78
|
+
wellFormed: "wellFormed";
|
|
79
|
+
createPending: "createPending";
|
|
80
|
+
unchanged: "unchanged";
|
|
81
|
+
}>;
|
|
82
|
+
_links: z.ZodOptional<z.ZodObject<{
|
|
83
|
+
self: z.ZodObject<{
|
|
84
|
+
href: z.ZodString;
|
|
85
|
+
}, z.core.$strip>;
|
|
86
|
+
collection: z.ZodObject<{
|
|
87
|
+
href: z.ZodString;
|
|
88
|
+
}, z.core.$strip>;
|
|
89
|
+
web: z.ZodObject<{
|
|
90
|
+
href: z.ZodString;
|
|
91
|
+
}, z.core.$strip>;
|
|
92
|
+
}, z.core.$strip>>;
|
|
93
|
+
}, z.core.$strip>;
|
|
94
|
+
type AzdoProject = z.infer<typeof AzdoProjectSchema>;
|
|
95
|
+
declare const AzdoRepositorySchema: z.ZodObject<{
|
|
96
|
+
id: z.ZodString;
|
|
97
|
+
name: z.ZodString;
|
|
98
|
+
defaultBranch: z.ZodOptional<z.ZodString>;
|
|
99
|
+
project: z.ZodObject<{
|
|
100
|
+
id: z.ZodString;
|
|
101
|
+
name: z.ZodString;
|
|
102
|
+
description: z.ZodOptional<z.ZodString>;
|
|
103
|
+
url: z.ZodString;
|
|
104
|
+
state: z.ZodEnum<{
|
|
105
|
+
all: "all";
|
|
106
|
+
deleted: "deleted";
|
|
107
|
+
deleting: "deleting";
|
|
108
|
+
new: "new";
|
|
109
|
+
wellFormed: "wellFormed";
|
|
110
|
+
createPending: "createPending";
|
|
111
|
+
unchanged: "unchanged";
|
|
112
|
+
}>;
|
|
113
|
+
_links: z.ZodOptional<z.ZodObject<{
|
|
114
|
+
self: z.ZodObject<{
|
|
115
|
+
href: z.ZodString;
|
|
116
|
+
}, z.core.$strip>;
|
|
117
|
+
collection: z.ZodObject<{
|
|
118
|
+
href: z.ZodString;
|
|
119
|
+
}, z.core.$strip>;
|
|
120
|
+
web: z.ZodObject<{
|
|
121
|
+
href: z.ZodString;
|
|
122
|
+
}, z.core.$strip>;
|
|
123
|
+
}, z.core.$strip>>;
|
|
124
|
+
}, z.core.$strip>;
|
|
125
|
+
isDisabled: z.ZodOptional<z.ZodBoolean>;
|
|
126
|
+
isFork: z.ZodOptional<z.ZodBoolean>;
|
|
127
|
+
url: z.ZodString;
|
|
128
|
+
remoteUrl: z.ZodString;
|
|
129
|
+
webUrl: z.ZodString;
|
|
130
|
+
}, z.core.$strip>;
|
|
131
|
+
type AzdoRepository = z.infer<typeof AzdoRepositorySchema>;
|
|
104
132
|
type AzdoListResponse<T> = {
|
|
105
|
-
value
|
|
133
|
+
value?: T;
|
|
106
134
|
count: number;
|
|
107
135
|
};
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
136
|
+
declare const AzdoIdentitySchema: z.ZodObject<{
|
|
137
|
+
id: z.ZodString;
|
|
138
|
+
displayName: z.ZodString;
|
|
139
|
+
url: z.ZodString;
|
|
140
|
+
}, z.core.$strip>;
|
|
141
|
+
type AzdoIdentity = z.infer<typeof AzdoIdentitySchema>;
|
|
142
|
+
declare const AzdoIdentityRefSchema: z.ZodObject<{
|
|
143
|
+
id: z.ZodOptional<z.ZodString>;
|
|
144
|
+
displayName: z.ZodOptional<z.ZodString>;
|
|
145
|
+
url: z.ZodOptional<z.ZodString>;
|
|
146
|
+
}, z.core.$strip>;
|
|
147
|
+
type AzdoIdentityRef = z.infer<typeof AzdoIdentityRefSchema>;
|
|
148
|
+
declare const AzdoConnectionDataSchema: z.ZodObject<{
|
|
149
|
+
authenticatedUser: z.ZodObject<{
|
|
150
|
+
id: z.ZodString;
|
|
151
|
+
displayName: z.ZodString;
|
|
152
|
+
url: z.ZodString;
|
|
153
|
+
}, z.core.$strip>;
|
|
154
|
+
authorizedUser: z.ZodObject<{
|
|
155
|
+
id: z.ZodString;
|
|
156
|
+
displayName: z.ZodString;
|
|
157
|
+
url: z.ZodString;
|
|
158
|
+
}, z.core.$strip>;
|
|
159
|
+
}, z.core.$strip>;
|
|
160
|
+
type AzdoConnectionData = z.infer<typeof AzdoConnectionDataSchema>;
|
|
161
|
+
declare const AzdoGitUserDateSchema: z.ZodObject<{
|
|
162
|
+
name: z.ZodString;
|
|
163
|
+
email: z.ZodString;
|
|
164
|
+
date: z.ZodOptional<z.ZodString>;
|
|
165
|
+
}, z.core.$strip>;
|
|
166
|
+
type AzdoGitUserDate = z.infer<typeof AzdoGitUserDateSchema>;
|
|
167
|
+
declare const AzdoGitRefSchema: z.ZodObject<{
|
|
168
|
+
name: z.ZodString;
|
|
169
|
+
objectId: z.ZodString;
|
|
170
|
+
isLocked: z.ZodOptional<z.ZodBoolean>;
|
|
171
|
+
}, z.core.$strip>;
|
|
172
|
+
type AzdoGitRef = z.infer<typeof AzdoGitRefSchema>;
|
|
173
|
+
declare const AzdoGitRefUpdateResultSchema: z.ZodObject<{
|
|
174
|
+
name: z.ZodString;
|
|
175
|
+
objectId: z.ZodString;
|
|
176
|
+
isLocked: z.ZodOptional<z.ZodBoolean>;
|
|
177
|
+
oldObjectId: z.ZodString;
|
|
178
|
+
newObjectId: z.ZodString;
|
|
179
|
+
success: z.ZodBoolean;
|
|
180
|
+
customMessage: z.ZodOptional<z.ZodString>;
|
|
181
|
+
}, z.core.$strip>;
|
|
182
|
+
type AzdoGitRefUpdateResult = z.infer<typeof AzdoGitRefUpdateResultSchema>;
|
|
183
|
+
declare const AzdoGitChangeSchema: z.ZodObject<{
|
|
184
|
+
changeType: z.ZodEnum<{
|
|
185
|
+
all: "all";
|
|
186
|
+
delete: "delete";
|
|
187
|
+
branch: "branch";
|
|
188
|
+
none: "none";
|
|
189
|
+
add: "add";
|
|
190
|
+
edit: "edit";
|
|
191
|
+
encoding: "encoding";
|
|
192
|
+
rename: "rename";
|
|
193
|
+
undelete: "undelete";
|
|
194
|
+
merge: "merge";
|
|
195
|
+
lock: "lock";
|
|
196
|
+
rollback: "rollback";
|
|
197
|
+
sourceRename: "sourceRename";
|
|
198
|
+
targetRename: "targetRename";
|
|
199
|
+
property: "property";
|
|
200
|
+
}>;
|
|
201
|
+
newContent: z.ZodOptional<z.ZodObject<{
|
|
202
|
+
content: z.ZodString;
|
|
203
|
+
contentType: z.ZodEnum<{
|
|
204
|
+
rawtext: "rawtext";
|
|
205
|
+
base64encoded: "base64encoded";
|
|
206
|
+
}>;
|
|
207
|
+
}, z.core.$strip>>;
|
|
208
|
+
}, z.core.$strip>;
|
|
209
|
+
type AzdoGitChange = z.infer<typeof AzdoGitChangeSchema>;
|
|
210
|
+
declare const AzdoGitCommitRefSchema: z.ZodObject<{
|
|
211
|
+
commitId: z.ZodOptional<z.ZodString>;
|
|
212
|
+
author: z.ZodOptional<z.ZodObject<{
|
|
213
|
+
name: z.ZodString;
|
|
214
|
+
email: z.ZodString;
|
|
215
|
+
date: z.ZodOptional<z.ZodString>;
|
|
216
|
+
}, z.core.$strip>>;
|
|
217
|
+
committer: z.ZodOptional<z.ZodObject<{
|
|
218
|
+
name: z.ZodString;
|
|
219
|
+
email: z.ZodString;
|
|
220
|
+
date: z.ZodOptional<z.ZodString>;
|
|
221
|
+
}, z.core.$strip>>;
|
|
222
|
+
changes: z.ZodArray<z.ZodObject<{
|
|
223
|
+
changeType: z.ZodEnum<{
|
|
224
|
+
all: "all";
|
|
225
|
+
delete: "delete";
|
|
226
|
+
branch: "branch";
|
|
227
|
+
none: "none";
|
|
228
|
+
add: "add";
|
|
229
|
+
edit: "edit";
|
|
230
|
+
encoding: "encoding";
|
|
231
|
+
rename: "rename";
|
|
232
|
+
undelete: "undelete";
|
|
233
|
+
merge: "merge";
|
|
234
|
+
lock: "lock";
|
|
235
|
+
rollback: "rollback";
|
|
236
|
+
sourceRename: "sourceRename";
|
|
237
|
+
targetRename: "targetRename";
|
|
238
|
+
property: "property";
|
|
239
|
+
}>;
|
|
240
|
+
newContent: z.ZodOptional<z.ZodObject<{
|
|
241
|
+
content: z.ZodString;
|
|
242
|
+
contentType: z.ZodEnum<{
|
|
243
|
+
rawtext: "rawtext";
|
|
244
|
+
base64encoded: "base64encoded";
|
|
245
|
+
}>;
|
|
246
|
+
}, z.core.$strip>>;
|
|
247
|
+
}, z.core.$strip>>;
|
|
248
|
+
}, z.core.$strip>;
|
|
249
|
+
type AzdoGitCommitRef = z.infer<typeof AzdoGitCommitRefSchema>;
|
|
250
|
+
declare const AzdoGitPushSchema: z.ZodObject<{
|
|
251
|
+
commits: z.ZodArray<z.ZodObject<{
|
|
252
|
+
commitId: z.ZodOptional<z.ZodString>;
|
|
253
|
+
author: z.ZodOptional<z.ZodObject<{
|
|
254
|
+
name: z.ZodString;
|
|
255
|
+
email: z.ZodString;
|
|
256
|
+
date: z.ZodOptional<z.ZodString>;
|
|
257
|
+
}, z.core.$strip>>;
|
|
258
|
+
committer: z.ZodOptional<z.ZodObject<{
|
|
259
|
+
name: z.ZodString;
|
|
260
|
+
email: z.ZodString;
|
|
261
|
+
date: z.ZodOptional<z.ZodString>;
|
|
262
|
+
}, z.core.$strip>>;
|
|
263
|
+
changes: z.ZodArray<z.ZodObject<{
|
|
264
|
+
changeType: z.ZodEnum<{
|
|
265
|
+
all: "all";
|
|
266
|
+
delete: "delete";
|
|
267
|
+
branch: "branch";
|
|
268
|
+
none: "none";
|
|
269
|
+
add: "add";
|
|
270
|
+
edit: "edit";
|
|
271
|
+
encoding: "encoding";
|
|
272
|
+
rename: "rename";
|
|
273
|
+
undelete: "undelete";
|
|
274
|
+
merge: "merge";
|
|
275
|
+
lock: "lock";
|
|
276
|
+
rollback: "rollback";
|
|
277
|
+
sourceRename: "sourceRename";
|
|
278
|
+
targetRename: "targetRename";
|
|
279
|
+
property: "property";
|
|
280
|
+
}>;
|
|
281
|
+
newContent: z.ZodOptional<z.ZodObject<{
|
|
282
|
+
content: z.ZodString;
|
|
283
|
+
contentType: z.ZodEnum<{
|
|
284
|
+
rawtext: "rawtext";
|
|
285
|
+
base64encoded: "base64encoded";
|
|
286
|
+
}>;
|
|
287
|
+
}, z.core.$strip>>;
|
|
288
|
+
}, z.core.$strip>>;
|
|
289
|
+
}, z.core.$strip>>;
|
|
290
|
+
refUpdates: z.ZodArray<z.ZodObject<{
|
|
291
|
+
name: z.ZodString;
|
|
292
|
+
objectId: z.ZodString;
|
|
293
|
+
isLocked: z.ZodOptional<z.ZodBoolean>;
|
|
294
|
+
}, z.core.$strip>>;
|
|
295
|
+
}, z.core.$strip>;
|
|
296
|
+
type AzdoGitPush = z.infer<typeof AzdoGitPushSchema>;
|
|
297
|
+
declare const AzdoGitPushCreateSchema: z.ZodObject<{
|
|
298
|
+
refUpdates: z.ZodArray<z.ZodObject<{
|
|
299
|
+
name: z.ZodString;
|
|
300
|
+
oldObjectId: z.ZodString;
|
|
301
|
+
newObjectId: z.ZodOptional<z.ZodString>;
|
|
302
|
+
}, z.core.$strip>>;
|
|
303
|
+
commits: z.ZodArray<z.ZodObject<{
|
|
304
|
+
comment: z.ZodString;
|
|
305
|
+
author: z.ZodOptional<z.ZodObject<{
|
|
306
|
+
name: z.ZodString;
|
|
307
|
+
email: z.ZodString;
|
|
308
|
+
date: z.ZodOptional<z.ZodString>;
|
|
309
|
+
}, z.core.$strip>>;
|
|
310
|
+
changes: z.ZodArray<z.ZodObject<{
|
|
311
|
+
changeType: z.ZodEnum<{
|
|
312
|
+
all: "all";
|
|
313
|
+
delete: "delete";
|
|
314
|
+
branch: "branch";
|
|
315
|
+
none: "none";
|
|
316
|
+
add: "add";
|
|
317
|
+
edit: "edit";
|
|
318
|
+
encoding: "encoding";
|
|
319
|
+
rename: "rename";
|
|
320
|
+
undelete: "undelete";
|
|
321
|
+
merge: "merge";
|
|
322
|
+
lock: "lock";
|
|
323
|
+
rollback: "rollback";
|
|
324
|
+
sourceRename: "sourceRename";
|
|
325
|
+
targetRename: "targetRename";
|
|
326
|
+
property: "property";
|
|
327
|
+
}>;
|
|
328
|
+
newContent: z.ZodOptional<z.ZodObject<{
|
|
329
|
+
content: z.ZodString;
|
|
330
|
+
contentType: z.ZodEnum<{
|
|
331
|
+
rawtext: "rawtext";
|
|
332
|
+
base64encoded: "base64encoded";
|
|
333
|
+
}>;
|
|
334
|
+
}, z.core.$strip>>;
|
|
335
|
+
item: z.ZodObject<{
|
|
336
|
+
path: z.ZodString;
|
|
337
|
+
}, z.core.$strip>;
|
|
338
|
+
}, z.core.$strip>>;
|
|
339
|
+
}, z.core.$strip>>;
|
|
340
|
+
}, z.core.$strip>;
|
|
341
|
+
type AzdoGitPushCreate = z.infer<typeof AzdoGitPushCreateSchema>;
|
|
342
|
+
declare const AzdoGitBranchStatsSchema: z.ZodObject<{
|
|
343
|
+
aheadCount: z.ZodNumber;
|
|
344
|
+
behindCount: z.ZodNumber;
|
|
345
|
+
}, z.core.$strip>;
|
|
346
|
+
type AzdoGitBranchStats = z.infer<typeof AzdoGitBranchStatsSchema>;
|
|
347
|
+
declare const AzdoRepositoryItemSchema: z.ZodObject<{
|
|
348
|
+
latestProcessedChange: z.ZodOptional<z.ZodObject<{
|
|
349
|
+
commitId: z.ZodOptional<z.ZodString>;
|
|
350
|
+
author: z.ZodOptional<z.ZodObject<{
|
|
351
|
+
name: z.ZodString;
|
|
352
|
+
email: z.ZodString;
|
|
353
|
+
date: z.ZodOptional<z.ZodString>;
|
|
354
|
+
}, z.core.$strip>>;
|
|
355
|
+
committer: z.ZodOptional<z.ZodObject<{
|
|
356
|
+
name: z.ZodString;
|
|
357
|
+
email: z.ZodString;
|
|
358
|
+
date: z.ZodOptional<z.ZodString>;
|
|
359
|
+
}, z.core.$strip>>;
|
|
360
|
+
changes: z.ZodArray<z.ZodObject<{
|
|
361
|
+
changeType: z.ZodEnum<{
|
|
362
|
+
all: "all";
|
|
363
|
+
delete: "delete";
|
|
364
|
+
branch: "branch";
|
|
365
|
+
none: "none";
|
|
366
|
+
add: "add";
|
|
367
|
+
edit: "edit";
|
|
368
|
+
encoding: "encoding";
|
|
369
|
+
rename: "rename";
|
|
370
|
+
undelete: "undelete";
|
|
371
|
+
merge: "merge";
|
|
372
|
+
lock: "lock";
|
|
373
|
+
rollback: "rollback";
|
|
374
|
+
sourceRename: "sourceRename";
|
|
375
|
+
targetRename: "targetRename";
|
|
376
|
+
property: "property";
|
|
377
|
+
}>;
|
|
378
|
+
newContent: z.ZodOptional<z.ZodObject<{
|
|
379
|
+
content: z.ZodString;
|
|
380
|
+
contentType: z.ZodEnum<{
|
|
381
|
+
rawtext: "rawtext";
|
|
382
|
+
base64encoded: "base64encoded";
|
|
383
|
+
}>;
|
|
384
|
+
}, z.core.$strip>>;
|
|
385
|
+
}, z.core.$strip>>;
|
|
386
|
+
}, z.core.$strip>>;
|
|
387
|
+
content: z.ZodOptional<z.ZodString>;
|
|
388
|
+
}, z.core.$strip>;
|
|
389
|
+
type AzdoRepositoryItem = z.infer<typeof AzdoRepositoryItemSchema>;
|
|
390
|
+
declare const AzdoPullRequestSchema: z.ZodObject<{
|
|
391
|
+
pullRequestId: z.ZodNumber;
|
|
392
|
+
status: z.ZodEnum<{
|
|
393
|
+
all: "all";
|
|
394
|
+
active: "active";
|
|
395
|
+
notSet: "notSet";
|
|
396
|
+
abandoned: "abandoned";
|
|
397
|
+
completed: "completed";
|
|
398
|
+
}>;
|
|
399
|
+
isDraft: z.ZodBoolean;
|
|
400
|
+
sourceRefName: z.ZodString;
|
|
401
|
+
targetRefName: z.ZodString;
|
|
402
|
+
lastMergeCommit: z.ZodObject<{
|
|
403
|
+
commitId: z.ZodOptional<z.ZodString>;
|
|
404
|
+
author: z.ZodOptional<z.ZodObject<{
|
|
405
|
+
name: z.ZodString;
|
|
406
|
+
email: z.ZodString;
|
|
407
|
+
date: z.ZodOptional<z.ZodString>;
|
|
408
|
+
}, z.core.$strip>>;
|
|
409
|
+
committer: z.ZodOptional<z.ZodObject<{
|
|
410
|
+
name: z.ZodString;
|
|
411
|
+
email: z.ZodString;
|
|
412
|
+
date: z.ZodOptional<z.ZodString>;
|
|
413
|
+
}, z.core.$strip>>;
|
|
414
|
+
changes: z.ZodArray<z.ZodObject<{
|
|
415
|
+
changeType: z.ZodEnum<{
|
|
416
|
+
all: "all";
|
|
417
|
+
delete: "delete";
|
|
418
|
+
branch: "branch";
|
|
419
|
+
none: "none";
|
|
420
|
+
add: "add";
|
|
421
|
+
edit: "edit";
|
|
422
|
+
encoding: "encoding";
|
|
423
|
+
rename: "rename";
|
|
424
|
+
undelete: "undelete";
|
|
425
|
+
merge: "merge";
|
|
426
|
+
lock: "lock";
|
|
427
|
+
rollback: "rollback";
|
|
428
|
+
sourceRename: "sourceRename";
|
|
429
|
+
targetRename: "targetRename";
|
|
430
|
+
property: "property";
|
|
431
|
+
}>;
|
|
432
|
+
newContent: z.ZodOptional<z.ZodObject<{
|
|
433
|
+
content: z.ZodString;
|
|
434
|
+
contentType: z.ZodEnum<{
|
|
435
|
+
rawtext: "rawtext";
|
|
436
|
+
base64encoded: "base64encoded";
|
|
437
|
+
}>;
|
|
438
|
+
}, z.core.$strip>>;
|
|
439
|
+
}, z.core.$strip>>;
|
|
440
|
+
}, z.core.$strip>;
|
|
441
|
+
lastMergeSourceCommit: z.ZodObject<{
|
|
442
|
+
commitId: z.ZodOptional<z.ZodString>;
|
|
443
|
+
author: z.ZodOptional<z.ZodObject<{
|
|
444
|
+
name: z.ZodString;
|
|
445
|
+
email: z.ZodString;
|
|
446
|
+
date: z.ZodOptional<z.ZodString>;
|
|
447
|
+
}, z.core.$strip>>;
|
|
448
|
+
committer: z.ZodOptional<z.ZodObject<{
|
|
449
|
+
name: z.ZodString;
|
|
450
|
+
email: z.ZodString;
|
|
451
|
+
date: z.ZodOptional<z.ZodString>;
|
|
452
|
+
}, z.core.$strip>>;
|
|
453
|
+
changes: z.ZodArray<z.ZodObject<{
|
|
454
|
+
changeType: z.ZodEnum<{
|
|
455
|
+
all: "all";
|
|
456
|
+
delete: "delete";
|
|
457
|
+
branch: "branch";
|
|
458
|
+
none: "none";
|
|
459
|
+
add: "add";
|
|
460
|
+
edit: "edit";
|
|
461
|
+
encoding: "encoding";
|
|
462
|
+
rename: "rename";
|
|
463
|
+
undelete: "undelete";
|
|
464
|
+
merge: "merge";
|
|
465
|
+
lock: "lock";
|
|
466
|
+
rollback: "rollback";
|
|
467
|
+
sourceRename: "sourceRename";
|
|
468
|
+
targetRename: "targetRename";
|
|
469
|
+
property: "property";
|
|
470
|
+
}>;
|
|
471
|
+
newContent: z.ZodOptional<z.ZodObject<{
|
|
472
|
+
content: z.ZodString;
|
|
473
|
+
contentType: z.ZodEnum<{
|
|
474
|
+
rawtext: "rawtext";
|
|
475
|
+
base64encoded: "base64encoded";
|
|
476
|
+
}>;
|
|
477
|
+
}, z.core.$strip>>;
|
|
478
|
+
}, z.core.$strip>>;
|
|
479
|
+
}, z.core.$strip>;
|
|
480
|
+
mergeStatus: z.ZodEnum<{
|
|
481
|
+
notSet: "notSet";
|
|
482
|
+
queued: "queued";
|
|
483
|
+
conflicts: "conflicts";
|
|
484
|
+
succeeded: "succeeded";
|
|
485
|
+
rejectedByPolicy: "rejectedByPolicy";
|
|
486
|
+
failure: "failure";
|
|
487
|
+
}>;
|
|
488
|
+
autoCompleteSetBy: z.ZodOptional<z.ZodObject<{
|
|
489
|
+
id: z.ZodOptional<z.ZodString>;
|
|
490
|
+
displayName: z.ZodOptional<z.ZodString>;
|
|
491
|
+
url: z.ZodOptional<z.ZodString>;
|
|
492
|
+
}, z.core.$strip>>;
|
|
493
|
+
closedBy: z.ZodOptional<z.ZodObject<{
|
|
494
|
+
id: z.ZodOptional<z.ZodString>;
|
|
495
|
+
displayName: z.ZodOptional<z.ZodString>;
|
|
496
|
+
url: z.ZodOptional<z.ZodString>;
|
|
497
|
+
}, z.core.$strip>>;
|
|
498
|
+
}, z.core.$strip>;
|
|
499
|
+
type AzdoPullRequest = z.infer<typeof AzdoPullRequestSchema>;
|
|
500
|
+
declare const AdoPropertiesSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
501
|
+
$type: z.ZodString;
|
|
502
|
+
$value: z.ZodString;
|
|
503
|
+
}, z.core.$strip>>;
|
|
504
|
+
type AdoProperties = z.infer<typeof AdoPropertiesSchema>;
|
|
505
|
+
declare const AzdoIdentityRefWithVoteSchema: z.ZodObject<{
|
|
506
|
+
id: z.ZodOptional<z.ZodString>;
|
|
507
|
+
displayName: z.ZodOptional<z.ZodString>;
|
|
508
|
+
vote: z.ZodOptional<z.ZodNumber>;
|
|
509
|
+
hasDeclined: z.ZodOptional<z.ZodBoolean>;
|
|
510
|
+
isFlagged: z.ZodOptional<z.ZodBoolean>;
|
|
511
|
+
isRequired: z.ZodOptional<z.ZodBoolean>;
|
|
512
|
+
}, z.core.$strip>;
|
|
513
|
+
type AzdoIdentityRefWithVote = z.infer<typeof AzdoIdentityRefWithVoteSchema>;
|
|
514
|
+
declare const AzdoPullRequestCommentSchema: z.ZodObject<{
|
|
515
|
+
id: z.ZodNumber;
|
|
516
|
+
parentCommentId: z.ZodNullable<z.ZodNumber>;
|
|
517
|
+
content: z.ZodString;
|
|
518
|
+
commentType: z.ZodEnum<{
|
|
519
|
+
unknown: "unknown";
|
|
520
|
+
text: "text";
|
|
521
|
+
codeChange: "codeChange";
|
|
522
|
+
system: "system";
|
|
523
|
+
}>;
|
|
524
|
+
publishedDate: z.ZodString;
|
|
525
|
+
author: z.ZodOptional<z.ZodObject<{
|
|
526
|
+
id: z.ZodOptional<z.ZodString>;
|
|
527
|
+
displayName: z.ZodOptional<z.ZodString>;
|
|
528
|
+
url: z.ZodOptional<z.ZodString>;
|
|
529
|
+
}, z.core.$strip>>;
|
|
530
|
+
}, z.core.$strip>;
|
|
531
|
+
type AzdoPullRequestComment = z.infer<typeof AzdoPullRequestCommentSchema>;
|
|
532
|
+
declare const AzdoPullRequestCommentThreadSchema: z.ZodObject<{
|
|
533
|
+
id: z.ZodNumber;
|
|
534
|
+
comments: z.ZodArray<z.ZodObject<{
|
|
535
|
+
id: z.ZodNumber;
|
|
536
|
+
parentCommentId: z.ZodNullable<z.ZodNumber>;
|
|
537
|
+
content: z.ZodString;
|
|
538
|
+
commentType: z.ZodEnum<{
|
|
539
|
+
unknown: "unknown";
|
|
540
|
+
text: "text";
|
|
541
|
+
codeChange: "codeChange";
|
|
542
|
+
system: "system";
|
|
543
|
+
}>;
|
|
544
|
+
publishedDate: z.ZodString;
|
|
545
|
+
author: z.ZodOptional<z.ZodObject<{
|
|
546
|
+
id: z.ZodOptional<z.ZodString>;
|
|
547
|
+
displayName: z.ZodOptional<z.ZodString>;
|
|
548
|
+
url: z.ZodOptional<z.ZodString>;
|
|
549
|
+
}, z.core.$strip>>;
|
|
550
|
+
}, z.core.$strip>>;
|
|
551
|
+
status: z.ZodEnum<{
|
|
552
|
+
unknown: "unknown";
|
|
553
|
+
active: "active";
|
|
554
|
+
fixed: "fixed";
|
|
555
|
+
wontFix: "wontFix";
|
|
556
|
+
closed: "closed";
|
|
557
|
+
byDesign: "byDesign";
|
|
558
|
+
pending: "pending";
|
|
559
|
+
}>;
|
|
560
|
+
}, z.core.$strip>;
|
|
561
|
+
type AzdoPullRequestCommentThread = z.infer<typeof AzdoPullRequestCommentThreadSchema>;
|
|
562
|
+
declare const AzdoSubscriptionSchema: z.ZodObject<{
|
|
563
|
+
id: z.ZodOptional<z.ZodString>;
|
|
564
|
+
status: z.ZodEnum<{
|
|
565
|
+
enabled: "enabled";
|
|
566
|
+
onProbation: "onProbation";
|
|
567
|
+
disabledByUser: "disabledByUser";
|
|
568
|
+
disabledBySystem: "disabledBySystem";
|
|
569
|
+
disabledByInactiveIdentity: "disabledByInactiveIdentity";
|
|
570
|
+
}>;
|
|
571
|
+
publisherId: z.ZodString;
|
|
572
|
+
publisherInputs: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
573
|
+
consumerId: z.ZodOptional<z.ZodString>;
|
|
574
|
+
consumerActionId: z.ZodOptional<z.ZodString>;
|
|
575
|
+
consumerInputs: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
576
|
+
eventType: z.ZodString;
|
|
577
|
+
resourceVersion: z.ZodString;
|
|
578
|
+
eventDescription: z.ZodOptional<z.ZodString>;
|
|
579
|
+
actionDescription: z.ZodOptional<z.ZodString>;
|
|
580
|
+
}, z.core.$strip>;
|
|
581
|
+
type AzdoSubscription = z.infer<typeof AzdoSubscriptionSchema>;
|
|
582
|
+
declare const AzdoSubscriptionsQueryResponseSchema: z.ZodObject<{
|
|
583
|
+
results: z.ZodArray<z.ZodObject<{
|
|
584
|
+
id: z.ZodOptional<z.ZodString>;
|
|
585
|
+
status: z.ZodEnum<{
|
|
586
|
+
enabled: "enabled";
|
|
587
|
+
onProbation: "onProbation";
|
|
588
|
+
disabledByUser: "disabledByUser";
|
|
589
|
+
disabledBySystem: "disabledBySystem";
|
|
590
|
+
disabledByInactiveIdentity: "disabledByInactiveIdentity";
|
|
591
|
+
}>;
|
|
592
|
+
publisherId: z.ZodString;
|
|
593
|
+
publisherInputs: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
594
|
+
consumerId: z.ZodOptional<z.ZodString>;
|
|
595
|
+
consumerActionId: z.ZodOptional<z.ZodString>;
|
|
596
|
+
consumerInputs: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
597
|
+
eventType: z.ZodString;
|
|
598
|
+
resourceVersion: z.ZodString;
|
|
599
|
+
eventDescription: z.ZodOptional<z.ZodString>;
|
|
600
|
+
actionDescription: z.ZodOptional<z.ZodString>;
|
|
601
|
+
}, z.core.$strip>>;
|
|
602
|
+
}, z.core.$strip>;
|
|
603
|
+
type AzdoSubscriptionsQueryResponse = z.infer<typeof AzdoSubscriptionsQueryResponseSchema>;
|
|
604
|
+
declare const AzdoSubscriptionsQueryInputFilterSchema: z.ZodObject<{
|
|
605
|
+
conditions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
606
|
+
caseSensitive: z.ZodOptional<z.ZodBoolean>;
|
|
607
|
+
inputId: z.ZodOptional<z.ZodString>;
|
|
608
|
+
inputValue: z.ZodOptional<z.ZodString>;
|
|
609
|
+
operator: z.ZodEnum<{
|
|
610
|
+
equals: "equals";
|
|
611
|
+
notEquals: "notEquals";
|
|
612
|
+
}>;
|
|
613
|
+
}, z.core.$strip>>>;
|
|
614
|
+
}, z.core.$strip>;
|
|
615
|
+
type AzdoSubscriptionsQueryInputFilter = z.infer<typeof AzdoSubscriptionsQueryInputFilterSchema>;
|
|
616
|
+
declare const AzdoSubscriptionsQuerySchema: z.ZodObject<{
|
|
617
|
+
consumerActionId: z.ZodOptional<z.ZodString>;
|
|
618
|
+
consumerId: z.ZodOptional<z.ZodString>;
|
|
619
|
+
consumerInputFilters: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
620
|
+
conditions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
621
|
+
caseSensitive: z.ZodOptional<z.ZodBoolean>;
|
|
622
|
+
inputId: z.ZodOptional<z.ZodString>;
|
|
623
|
+
inputValue: z.ZodOptional<z.ZodString>;
|
|
624
|
+
operator: z.ZodEnum<{
|
|
625
|
+
equals: "equals";
|
|
626
|
+
notEquals: "notEquals";
|
|
627
|
+
}>;
|
|
628
|
+
}, z.core.$strip>>>;
|
|
629
|
+
}, z.core.$strip>>>;
|
|
630
|
+
eventType: z.ZodOptional<z.ZodString>;
|
|
631
|
+
publisherId: z.ZodOptional<z.ZodString>;
|
|
632
|
+
publisherInputFilters: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
633
|
+
conditions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
634
|
+
caseSensitive: z.ZodOptional<z.ZodBoolean>;
|
|
635
|
+
inputId: z.ZodOptional<z.ZodString>;
|
|
636
|
+
inputValue: z.ZodOptional<z.ZodString>;
|
|
637
|
+
operator: z.ZodEnum<{
|
|
638
|
+
equals: "equals";
|
|
639
|
+
notEquals: "notEquals";
|
|
640
|
+
}>;
|
|
641
|
+
}, z.core.$strip>>>;
|
|
642
|
+
}, z.core.$strip>>>;
|
|
643
|
+
subscriberId: z.ZodOptional<z.ZodString>;
|
|
644
|
+
}, z.core.$strip>;
|
|
645
|
+
type AzdoSubscriptionsQuery = z.infer<typeof AzdoSubscriptionsQuerySchema>;
|
|
646
|
+
declare const AzdoEventTypeSchema: z.ZodEnum<{
|
|
647
|
+
"git.push": "git.push";
|
|
648
|
+
"git.pullrequest.updated": "git.pullrequest.updated";
|
|
649
|
+
"git.pullrequest.merged": "git.pullrequest.merged";
|
|
650
|
+
"ms.vss-code.git-pullrequest-comment-event": "ms.vss-code.git-pullrequest-comment-event";
|
|
651
|
+
}>;
|
|
652
|
+
type AzdoEventType = z.infer<typeof AzdoEventTypeSchema>;
|
|
653
|
+
declare const AzdoEventRepositorySchema: z.ZodObject<{
|
|
654
|
+
id: z.ZodString;
|
|
655
|
+
name: z.ZodString;
|
|
656
|
+
project: z.ZodObject<{
|
|
657
|
+
id: z.ZodString;
|
|
658
|
+
name: z.ZodString;
|
|
659
|
+
url: z.ZodString;
|
|
660
|
+
}, z.core.$strip>;
|
|
661
|
+
defaultBranch: z.ZodOptional<z.ZodString>;
|
|
662
|
+
remoteUrl: z.ZodString;
|
|
663
|
+
}, z.core.$strip>;
|
|
664
|
+
declare const AzdoEventPullRequestResourceSchema: z.ZodObject<{
|
|
665
|
+
repository: z.ZodObject<{
|
|
666
|
+
id: z.ZodString;
|
|
667
|
+
name: z.ZodString;
|
|
668
|
+
project: z.ZodObject<{
|
|
669
|
+
id: z.ZodString;
|
|
670
|
+
name: z.ZodString;
|
|
671
|
+
url: z.ZodString;
|
|
672
|
+
}, z.core.$strip>;
|
|
673
|
+
defaultBranch: z.ZodOptional<z.ZodString>;
|
|
674
|
+
remoteUrl: z.ZodString;
|
|
675
|
+
}, z.core.$strip>;
|
|
676
|
+
pullRequestId: z.ZodNumber;
|
|
677
|
+
status: z.ZodEnum<{
|
|
678
|
+
all: "all";
|
|
679
|
+
active: "active";
|
|
680
|
+
notSet: "notSet";
|
|
681
|
+
abandoned: "abandoned";
|
|
682
|
+
completed: "completed";
|
|
683
|
+
}>;
|
|
684
|
+
title: z.ZodString;
|
|
685
|
+
sourceRefName: z.ZodString;
|
|
686
|
+
targetRefName: z.ZodString;
|
|
687
|
+
mergeStatus: z.ZodEnum<{
|
|
688
|
+
notSet: "notSet";
|
|
689
|
+
queued: "queued";
|
|
690
|
+
conflicts: "conflicts";
|
|
691
|
+
succeeded: "succeeded";
|
|
692
|
+
rejectedByPolicy: "rejectedByPolicy";
|
|
693
|
+
failure: "failure";
|
|
694
|
+
}>;
|
|
695
|
+
mergeId: z.ZodString;
|
|
696
|
+
url: z.ZodString;
|
|
697
|
+
}, z.core.$strip>;
|
|
698
|
+
type AzdoEventPullRequestResource = z.infer<typeof AzdoEventPullRequestResourceSchema>;
|
|
699
|
+
declare const AzdoEventPullRequestCommentEventResourceSchema: z.ZodObject<{
|
|
700
|
+
pullRequest: z.ZodObject<{
|
|
701
|
+
repository: z.ZodObject<{
|
|
702
|
+
id: z.ZodString;
|
|
703
|
+
name: z.ZodString;
|
|
704
|
+
project: z.ZodObject<{
|
|
705
|
+
id: z.ZodString;
|
|
706
|
+
name: z.ZodString;
|
|
707
|
+
url: z.ZodString;
|
|
708
|
+
}, z.core.$strip>;
|
|
709
|
+
defaultBranch: z.ZodOptional<z.ZodString>;
|
|
710
|
+
remoteUrl: z.ZodString;
|
|
711
|
+
}, z.core.$strip>;
|
|
712
|
+
pullRequestId: z.ZodNumber;
|
|
713
|
+
status: z.ZodEnum<{
|
|
714
|
+
all: "all";
|
|
715
|
+
active: "active";
|
|
716
|
+
notSet: "notSet";
|
|
717
|
+
abandoned: "abandoned";
|
|
718
|
+
completed: "completed";
|
|
719
|
+
}>;
|
|
720
|
+
title: z.ZodString;
|
|
721
|
+
sourceRefName: z.ZodString;
|
|
722
|
+
targetRefName: z.ZodString;
|
|
723
|
+
mergeStatus: z.ZodEnum<{
|
|
724
|
+
notSet: "notSet";
|
|
725
|
+
queued: "queued";
|
|
726
|
+
conflicts: "conflicts";
|
|
727
|
+
succeeded: "succeeded";
|
|
728
|
+
rejectedByPolicy: "rejectedByPolicy";
|
|
729
|
+
failure: "failure";
|
|
730
|
+
}>;
|
|
731
|
+
mergeId: z.ZodString;
|
|
732
|
+
url: z.ZodString;
|
|
733
|
+
}, z.core.$strip>;
|
|
734
|
+
comment: z.ZodObject<{
|
|
735
|
+
id: z.ZodNumber;
|
|
736
|
+
parentCommentId: z.ZodNullable<z.ZodNumber>;
|
|
737
|
+
content: z.ZodString;
|
|
738
|
+
commentType: z.ZodEnum<{
|
|
739
|
+
unknown: "unknown";
|
|
740
|
+
text: "text";
|
|
741
|
+
codeChange: "codeChange";
|
|
742
|
+
system: "system";
|
|
743
|
+
}>;
|
|
744
|
+
publishedDate: z.ZodString;
|
|
745
|
+
author: z.ZodOptional<z.ZodObject<{
|
|
746
|
+
id: z.ZodOptional<z.ZodString>;
|
|
747
|
+
displayName: z.ZodOptional<z.ZodString>;
|
|
748
|
+
url: z.ZodOptional<z.ZodString>;
|
|
749
|
+
}, z.core.$strip>>;
|
|
750
|
+
}, z.core.$strip>;
|
|
751
|
+
}, z.core.$strip>;
|
|
752
|
+
type AzdoEventPullRequestCommentEventResource = z.infer<typeof AzdoEventPullRequestCommentEventResourceSchema>;
|
|
753
|
+
declare const AzdoEventCodePushResourceSchema: z.ZodObject<{
|
|
754
|
+
repository: z.ZodObject<{
|
|
755
|
+
id: z.ZodString;
|
|
756
|
+
name: z.ZodString;
|
|
757
|
+
project: z.ZodObject<{
|
|
758
|
+
id: z.ZodString;
|
|
759
|
+
name: z.ZodString;
|
|
760
|
+
url: z.ZodString;
|
|
761
|
+
}, z.core.$strip>;
|
|
762
|
+
defaultBranch: z.ZodOptional<z.ZodString>;
|
|
763
|
+
remoteUrl: z.ZodString;
|
|
764
|
+
}, z.core.$strip>;
|
|
765
|
+
refUpdates: z.ZodArray<z.ZodObject<{
|
|
766
|
+
name: z.ZodString;
|
|
767
|
+
oldObjectId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
768
|
+
newObjectId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
769
|
+
}, z.core.$strip>>;
|
|
770
|
+
}, z.core.$strip>;
|
|
771
|
+
type AzdoEventCodePushResource = z.infer<typeof AzdoEventCodePushResourceSchema>;
|
|
772
|
+
declare const AzdoEventSchema: z.ZodIntersection<z.ZodObject<{
|
|
773
|
+
subscriptionId: z.ZodString;
|
|
774
|
+
notificationId: z.ZodNumber;
|
|
775
|
+
}, z.core.$strip>, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
776
|
+
eventType: z.ZodLiteral<"git.push">;
|
|
777
|
+
resource: z.ZodObject<{
|
|
778
|
+
repository: z.ZodObject<{
|
|
779
|
+
id: z.ZodString;
|
|
780
|
+
name: z.ZodString;
|
|
781
|
+
project: z.ZodObject<{
|
|
782
|
+
id: z.ZodString;
|
|
783
|
+
name: z.ZodString;
|
|
784
|
+
url: z.ZodString;
|
|
785
|
+
}, z.core.$strip>;
|
|
786
|
+
defaultBranch: z.ZodOptional<z.ZodString>;
|
|
787
|
+
remoteUrl: z.ZodString;
|
|
788
|
+
}, z.core.$strip>;
|
|
789
|
+
refUpdates: z.ZodArray<z.ZodObject<{
|
|
790
|
+
name: z.ZodString;
|
|
791
|
+
oldObjectId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
792
|
+
newObjectId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
793
|
+
}, z.core.$strip>>;
|
|
794
|
+
}, z.core.$strip>;
|
|
795
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
796
|
+
eventType: z.ZodLiteral<"git.pullrequest.updated">;
|
|
797
|
+
resource: z.ZodObject<{
|
|
798
|
+
repository: z.ZodObject<{
|
|
799
|
+
id: z.ZodString;
|
|
800
|
+
name: z.ZodString;
|
|
801
|
+
project: z.ZodObject<{
|
|
802
|
+
id: z.ZodString;
|
|
803
|
+
name: z.ZodString;
|
|
804
|
+
url: z.ZodString;
|
|
805
|
+
}, z.core.$strip>;
|
|
806
|
+
defaultBranch: z.ZodOptional<z.ZodString>;
|
|
807
|
+
remoteUrl: z.ZodString;
|
|
808
|
+
}, z.core.$strip>;
|
|
809
|
+
pullRequestId: z.ZodNumber;
|
|
810
|
+
status: z.ZodEnum<{
|
|
811
|
+
all: "all";
|
|
812
|
+
active: "active";
|
|
813
|
+
notSet: "notSet";
|
|
814
|
+
abandoned: "abandoned";
|
|
815
|
+
completed: "completed";
|
|
816
|
+
}>;
|
|
817
|
+
title: z.ZodString;
|
|
818
|
+
sourceRefName: z.ZodString;
|
|
819
|
+
targetRefName: z.ZodString;
|
|
820
|
+
mergeStatus: z.ZodEnum<{
|
|
821
|
+
notSet: "notSet";
|
|
822
|
+
queued: "queued";
|
|
823
|
+
conflicts: "conflicts";
|
|
824
|
+
succeeded: "succeeded";
|
|
825
|
+
rejectedByPolicy: "rejectedByPolicy";
|
|
826
|
+
failure: "failure";
|
|
827
|
+
}>;
|
|
828
|
+
mergeId: z.ZodString;
|
|
829
|
+
url: z.ZodString;
|
|
830
|
+
}, z.core.$strip>;
|
|
831
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
832
|
+
eventType: z.ZodLiteral<"git.pullrequest.merged">;
|
|
833
|
+
resource: z.ZodObject<{
|
|
834
|
+
repository: z.ZodObject<{
|
|
835
|
+
id: z.ZodString;
|
|
836
|
+
name: z.ZodString;
|
|
837
|
+
project: z.ZodObject<{
|
|
838
|
+
id: z.ZodString;
|
|
839
|
+
name: z.ZodString;
|
|
840
|
+
url: z.ZodString;
|
|
841
|
+
}, z.core.$strip>;
|
|
842
|
+
defaultBranch: z.ZodOptional<z.ZodString>;
|
|
843
|
+
remoteUrl: z.ZodString;
|
|
844
|
+
}, z.core.$strip>;
|
|
845
|
+
pullRequestId: z.ZodNumber;
|
|
846
|
+
status: z.ZodEnum<{
|
|
847
|
+
all: "all";
|
|
848
|
+
active: "active";
|
|
849
|
+
notSet: "notSet";
|
|
850
|
+
abandoned: "abandoned";
|
|
851
|
+
completed: "completed";
|
|
852
|
+
}>;
|
|
853
|
+
title: z.ZodString;
|
|
854
|
+
sourceRefName: z.ZodString;
|
|
855
|
+
targetRefName: z.ZodString;
|
|
856
|
+
mergeStatus: z.ZodEnum<{
|
|
857
|
+
notSet: "notSet";
|
|
858
|
+
queued: "queued";
|
|
859
|
+
conflicts: "conflicts";
|
|
860
|
+
succeeded: "succeeded";
|
|
861
|
+
rejectedByPolicy: "rejectedByPolicy";
|
|
862
|
+
failure: "failure";
|
|
863
|
+
}>;
|
|
864
|
+
mergeId: z.ZodString;
|
|
865
|
+
url: z.ZodString;
|
|
866
|
+
}, z.core.$strip>;
|
|
867
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
868
|
+
eventType: z.ZodLiteral<"ms.vss-code.git-pullrequest-comment-event">;
|
|
869
|
+
resource: z.ZodObject<{
|
|
870
|
+
pullRequest: z.ZodObject<{
|
|
871
|
+
repository: z.ZodObject<{
|
|
872
|
+
id: z.ZodString;
|
|
873
|
+
name: z.ZodString;
|
|
874
|
+
project: z.ZodObject<{
|
|
875
|
+
id: z.ZodString;
|
|
876
|
+
name: z.ZodString;
|
|
877
|
+
url: z.ZodString;
|
|
878
|
+
}, z.core.$strip>;
|
|
879
|
+
defaultBranch: z.ZodOptional<z.ZodString>;
|
|
880
|
+
remoteUrl: z.ZodString;
|
|
881
|
+
}, z.core.$strip>;
|
|
882
|
+
pullRequestId: z.ZodNumber;
|
|
883
|
+
status: z.ZodEnum<{
|
|
884
|
+
all: "all";
|
|
885
|
+
active: "active";
|
|
886
|
+
notSet: "notSet";
|
|
887
|
+
abandoned: "abandoned";
|
|
888
|
+
completed: "completed";
|
|
889
|
+
}>;
|
|
890
|
+
title: z.ZodString;
|
|
891
|
+
sourceRefName: z.ZodString;
|
|
892
|
+
targetRefName: z.ZodString;
|
|
893
|
+
mergeStatus: z.ZodEnum<{
|
|
894
|
+
notSet: "notSet";
|
|
895
|
+
queued: "queued";
|
|
896
|
+
conflicts: "conflicts";
|
|
897
|
+
succeeded: "succeeded";
|
|
898
|
+
rejectedByPolicy: "rejectedByPolicy";
|
|
899
|
+
failure: "failure";
|
|
900
|
+
}>;
|
|
901
|
+
mergeId: z.ZodString;
|
|
902
|
+
url: z.ZodString;
|
|
903
|
+
}, z.core.$strip>;
|
|
904
|
+
comment: z.ZodObject<{
|
|
905
|
+
id: z.ZodNumber;
|
|
906
|
+
parentCommentId: z.ZodNullable<z.ZodNumber>;
|
|
907
|
+
content: z.ZodString;
|
|
908
|
+
commentType: z.ZodEnum<{
|
|
909
|
+
unknown: "unknown";
|
|
910
|
+
text: "text";
|
|
911
|
+
codeChange: "codeChange";
|
|
912
|
+
system: "system";
|
|
913
|
+
}>;
|
|
914
|
+
publishedDate: z.ZodString;
|
|
915
|
+
author: z.ZodOptional<z.ZodObject<{
|
|
916
|
+
id: z.ZodOptional<z.ZodString>;
|
|
917
|
+
displayName: z.ZodOptional<z.ZodString>;
|
|
918
|
+
url: z.ZodOptional<z.ZodString>;
|
|
919
|
+
}, z.core.$strip>>;
|
|
920
|
+
}, z.core.$strip>;
|
|
921
|
+
}, z.core.$strip>;
|
|
922
|
+
}, z.core.$strip>], "eventType">>;
|
|
923
|
+
type AzdoEvent = z.infer<typeof AzdoEventSchema>;
|
|
114
924
|
//#endregion
|
|
115
925
|
//#region src/azure/models.d.ts
|
|
116
926
|
/**
|
|
@@ -122,7 +932,7 @@ declare const DEVOPS_PR_PROPERTY_DEPENDABOT_PACKAGE_MANAGER = "Dependabot.Packag
|
|
|
122
932
|
declare const DEVOPS_PR_PROPERTY_DEPENDABOT_DEPENDENCIES = "Dependabot.Dependencies";
|
|
123
933
|
/** File change */
|
|
124
934
|
interface IFileChange {
|
|
125
|
-
changeType:
|
|
935
|
+
changeType: AzdoVersionControlChangeType;
|
|
126
936
|
path: string;
|
|
127
937
|
content?: string;
|
|
128
938
|
encoding?: string;
|
|
@@ -155,7 +965,7 @@ interface ICreatePullRequest {
|
|
|
155
965
|
commitMessage: string;
|
|
156
966
|
autoComplete?: {
|
|
157
967
|
ignorePolicyConfigIds?: number[];
|
|
158
|
-
mergeStrategy?:
|
|
968
|
+
mergeStrategy?: AzdoPullRequestMergeStrategy;
|
|
159
969
|
};
|
|
160
970
|
assignees?: string[];
|
|
161
971
|
labels?: string[];
|
|
@@ -216,6 +1026,11 @@ type AzureDevOpsOrganizationUrl = {
|
|
|
216
1026
|
organisation: string;
|
|
217
1027
|
/** Virtual directory if present (on-premises only) */
|
|
218
1028
|
'virtual-directory'?: string;
|
|
1029
|
+
/**
|
|
1030
|
+
* Organization Identity API URL (different from the API endpoint).
|
|
1031
|
+
* Used for querying user identities.
|
|
1032
|
+
*/
|
|
1033
|
+
'identity-api-url': URL;
|
|
219
1034
|
};
|
|
220
1035
|
type AzureDevOpsProjectUrl = AzureDevOpsOrganizationUrl & {
|
|
221
1036
|
/** Project ID or Name */
|
|
@@ -258,6 +1073,7 @@ declare class AzureDevOpsWebApiClient {
|
|
|
258
1073
|
private readonly identityApiUrl;
|
|
259
1074
|
private readonly accessToken;
|
|
260
1075
|
private readonly debug;
|
|
1076
|
+
private readonly client;
|
|
261
1077
|
private authenticatedUserId?;
|
|
262
1078
|
private resolvedUserIds;
|
|
263
1079
|
static API_VERSION: string;
|
|
@@ -275,9 +1091,9 @@ declare class AzureDevOpsWebApiClient {
|
|
|
275
1091
|
* @returns
|
|
276
1092
|
*/
|
|
277
1093
|
resolveIdentityId(userNameEmailOrGroupName: string): Promise<string | undefined>;
|
|
278
|
-
getProjects(): Promise<AzdoListResponse<AzdoProject> | undefined>;
|
|
1094
|
+
getProjects(): Promise<AzdoListResponse<AzdoProject[]> | undefined>;
|
|
279
1095
|
getProject(idOrName: string): Promise<AzdoProject | undefined>;
|
|
280
|
-
getRepositories(projectIdOrName: string): Promise<AzdoListResponse<AzdoRepository> | undefined>;
|
|
1096
|
+
getRepositories(projectIdOrName: string): Promise<AzdoListResponse<AzdoRepository[]> | undefined>;
|
|
281
1097
|
getRepository(projectIdOrName: string, repositoryIdOrName: string): Promise<AzdoRepository | undefined>;
|
|
282
1098
|
getRepositoryItem(projectIdOrName: string, repositoryIdOrName: string, path: string, includeContent?: boolean, latestProcessedChange?: boolean): Promise<AzdoRepositoryItem | undefined>;
|
|
283
1099
|
/**
|
|
@@ -339,12 +1155,9 @@ declare class AzureDevOpsWebApiClient {
|
|
|
339
1155
|
* Requires scope "Code (Write)" (vso.code_write).
|
|
340
1156
|
*/
|
|
341
1157
|
addCommentThread(comment: IPullRequestComment): Promise<number | undefined>;
|
|
342
|
-
private
|
|
343
|
-
private
|
|
344
|
-
private restApiPut;
|
|
345
|
-
private restApiPatch;
|
|
1158
|
+
private makeUrl;
|
|
1159
|
+
private createClient;
|
|
346
1160
|
}
|
|
347
|
-
declare function sendRestApiRequestWithRetry(method: string, url: string, payload: unknown, requestAsync: () => Promise<Response>, isDebug?: boolean, retryCount?: number, retryDelay?: number): Promise<any>;
|
|
348
1161
|
//#endregion
|
|
349
1162
|
//#region src/azure/config.d.ts
|
|
350
1163
|
/**
|
|
@@ -375,6 +1188,7 @@ declare function getDependabotConfig({
|
|
|
375
1188
|
//#endregion
|
|
376
1189
|
//#region src/azure/utils.d.ts
|
|
377
1190
|
declare function normalizeFilePath(path: string): string;
|
|
1191
|
+
declare function normalizeBranchName(branch: string): string;
|
|
378
1192
|
declare function normalizeBranchName(branch?: string): string | undefined;
|
|
379
1193
|
declare const DependenciesPrPropertySchema: zod0.ZodUnion<[zod0.ZodArray<zod0.ZodObject<{
|
|
380
1194
|
'dependency-name': zod0.ZodString;
|
|
@@ -401,5 +1215,5 @@ declare function getPullRequestCloseReasonForOutputData(data: DependabotClosePul
|
|
|
401
1215
|
declare function getPullRequestDependenciesPropertyValueForOutputData(data: DependabotCreatePullRequest): DependabotExistingPR[] | DependabotExistingGroupPR;
|
|
402
1216
|
declare function getPullRequestDescription(packageManager: string, body: string | null | undefined, dependencies: DependabotDependency[]): string;
|
|
403
1217
|
//#endregion
|
|
404
|
-
export { ANONYMOUS_USER_ID, AzdoListResponse, AzdoProject, AzdoRepository, AzdoRepositoryItem, type AzureDevOpsOrganizationUrl, type AzureDevOpsProjectUrl, type AzureDevOpsRepositoryUrl, AzureDevOpsWebApiClient,
|
|
1218
|
+
export { ANONYMOUS_USER_ID, AZDO_PULL_REQUEST_MERGE_STRATEGIES, AdoProperties, AdoPropertiesSchema, AzdoCommentThreadStatus, AzdoCommentThreadStatusSchema, AzdoCommentType, AzdoCommentTypeSchema, AzdoConnectionData, AzdoConnectionDataSchema, AzdoEvent, AzdoEventCodePushResource, AzdoEventCodePushResourceSchema, AzdoEventPullRequestCommentEventResource, AzdoEventPullRequestCommentEventResourceSchema, AzdoEventPullRequestResource, AzdoEventPullRequestResourceSchema, AzdoEventRepositorySchema, AzdoEventSchema, AzdoEventType, AzdoEventTypeSchema, AzdoGitBranchStats, AzdoGitBranchStatsSchema, AzdoGitChange, AzdoGitChangeSchema, AzdoGitCommitRef, AzdoGitCommitRefSchema, AzdoGitPush, AzdoGitPushCreate, AzdoGitPushCreateSchema, AzdoGitPushSchema, AzdoGitRef, AzdoGitRefSchema, AzdoGitRefUpdateResult, AzdoGitRefUpdateResultSchema, AzdoGitUserDate, AzdoGitUserDateSchema, AzdoIdentity, AzdoIdentityRef, AzdoIdentityRefSchema, AzdoIdentityRefWithVote, AzdoIdentityRefWithVoteSchema, AzdoIdentitySchema, AzdoListResponse, AzdoProject, AzdoProjectSchema, AzdoPullRequest, AzdoPullRequestAsyncStatus, AzdoPullRequestAsyncStatusSchema, AzdoPullRequestComment, AzdoPullRequestCommentSchema, AzdoPullRequestCommentThread, AzdoPullRequestCommentThreadSchema, AzdoPullRequestMergeStrategy, AzdoPullRequestMergeStrategySchema, AzdoPullRequestSchema, AzdoPullRequestStatus, AzdoPullRequestStatusSchema, AzdoRepository, AzdoRepositoryItem, AzdoRepositoryItemSchema, AzdoRepositorySchema, AzdoSubscription, AzdoSubscriptionSchema, AzdoSubscriptionsQuery, AzdoSubscriptionsQueryInputFilter, AzdoSubscriptionsQueryInputFilterSchema, AzdoSubscriptionsQueryResponse, AzdoSubscriptionsQueryResponseSchema, AzdoSubscriptionsQuerySchema, AzdoVersionControlChangeType, AzdoVersionControlChangeTypeSchema, type AzureDevOpsOrganizationUrl, type AzureDevOpsProjectUrl, type AzureDevOpsRepositoryUrl, AzureDevOpsWebApiClient, DEVOPS_PR_PROPERTY_DEPENDABOT_DEPENDENCIES, DEVOPS_PR_PROPERTY_DEPENDABOT_PACKAGE_MANAGER, DEVOPS_PR_PROPERTY_MICROSOFT_GIT_SOURCE_REF_NAME, DependenciesPrPropertySchema, IAbandonPullRequest, IApprovePullRequest, ICreatePullRequest, IFileChange, IPullRequestComment, IPullRequestProperties, IUpdatePullRequest, buildPullRequestProperties, extractOrganizationUrl, extractProjectUrl, extractRepositoryUrl, getDependabotConfig, getPullRequestChangedFilesForOutputData, getPullRequestCloseReasonForOutputData, getPullRequestDependenciesPropertyValueForOutputData, getPullRequestDescription, getPullRequestForDependencyNames, normalizeBranchName, normalizeFilePath, parsePullRequestProperties };
|
|
405
1219
|
//# sourceMappingURL=index.d.mts.map
|