@paklo/core 0.8.0 → 0.10.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 +1605 -289
- package/dist/azure/index.mjs +951 -478
- 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-E0nM5Xbb.mjs → dependabot-DVf7lAEG.mjs} +82 -20
- package/dist/dependabot-DVf7lAEG.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-bwD11mTZ.d.mts → index-CFWMNvXg.d.mts} +105 -46
- package/dist/{job-DanO84YW.mjs → job-COuliaYg.mjs} +13 -16
- package/dist/{job-DanO84YW.mjs.map → job-COuliaYg.mjs.map} +1 -1
- package/dist/{logger-BqvUa-Ue.mjs → logger-3Qfh9NUj.mjs} +11 -4
- package/dist/logger-3Qfh9NUj.mjs.map +1 -0
- package/dist/logger.mjs +1 -1
- package/dist/usage.d.mts +1 -1
- package/dist/usage.mjs +1 -1
- package/package.json +5 -8
- package/dist/dependabot-E0nM5Xbb.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/logger-BqvUa-Ue.mjs.map +0 -1
package/dist/azure/index.d.mts
CHANGED
|
@@ -1,209 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "../index-
|
|
3
|
-
import
|
|
4
|
-
import
|
|
1
|
+
import { Jt as DependabotPersistedPr, Un as VariableFinderFn, W as DependabotUpdatePullRequest, f as DependabotCreatePullRequest, vn as DependabotConfig } from "../index-CFWMNvXg.mjs";
|
|
2
|
+
import "../index-BfwWezjJ.mjs";
|
|
3
|
+
import { z } from "zod";
|
|
4
|
+
import { KyInstance } from "ky";
|
|
5
5
|
|
|
6
|
-
//#region src/azure/types.d.ts
|
|
7
|
-
declare enum VersionControlChangeType {
|
|
8
|
-
None = 0,
|
|
9
|
-
Add = 1,
|
|
10
|
-
Edit = 2,
|
|
11
|
-
Encoding = 4,
|
|
12
|
-
Rename = 8,
|
|
13
|
-
Delete = 16,
|
|
14
|
-
Undelete = 32,
|
|
15
|
-
Branch = 64,
|
|
16
|
-
Merge = 128,
|
|
17
|
-
Lock = 256,
|
|
18
|
-
Rollback = 512,
|
|
19
|
-
SourceRename = 1024,
|
|
20
|
-
TargetRename = 2048,
|
|
21
|
-
Property = 4096,
|
|
22
|
-
All = 8191,
|
|
23
|
-
}
|
|
24
|
-
declare enum GitPullRequestMergeStrategy {
|
|
25
|
-
NoFastForward = 1,
|
|
26
|
-
Squash = 2,
|
|
27
|
-
Rebase = 3,
|
|
28
|
-
RebaseMerge = 4,
|
|
29
|
-
}
|
|
30
|
-
declare enum CommentThreadStatus {
|
|
31
|
-
Unknown = 0,
|
|
32
|
-
Active = 1,
|
|
33
|
-
Fixed = 2,
|
|
34
|
-
WontFix = 3,
|
|
35
|
-
Closed = 4,
|
|
36
|
-
ByDesign = 5,
|
|
37
|
-
Pending = 6,
|
|
38
|
-
}
|
|
39
|
-
declare enum CommentType {
|
|
40
|
-
Unknown = 0,
|
|
41
|
-
Text = 1,
|
|
42
|
-
CodeChange = 2,
|
|
43
|
-
System = 3,
|
|
44
|
-
}
|
|
45
|
-
declare enum ItemContentType {
|
|
46
|
-
RawText = 0,
|
|
47
|
-
Base64Encoded = 1,
|
|
48
|
-
}
|
|
49
|
-
declare enum PullRequestAsyncStatus {
|
|
50
|
-
NotSet = 0,
|
|
51
|
-
Queued = 1,
|
|
52
|
-
Conflicts = 2,
|
|
53
|
-
Succeeded = 3,
|
|
54
|
-
RejectedByPolicy = 4,
|
|
55
|
-
Failure = 5,
|
|
56
|
-
}
|
|
57
|
-
declare enum PullRequestStatus {
|
|
58
|
-
NotSet = 0,
|
|
59
|
-
Active = 1,
|
|
60
|
-
Abandoned = 2,
|
|
61
|
-
Completed = 3,
|
|
62
|
-
All = 4,
|
|
63
|
-
}
|
|
64
|
-
type IdentityRefWithVote = {
|
|
65
|
-
id?: string;
|
|
66
|
-
displayName?: string;
|
|
67
|
-
uniqueName?: string;
|
|
68
|
-
url?: string;
|
|
69
|
-
imageUrl?: string;
|
|
70
|
-
vote?: number;
|
|
71
|
-
hasDeclined?: boolean;
|
|
72
|
-
isFlagged?: boolean;
|
|
73
|
-
isRequired?: boolean;
|
|
74
|
-
};
|
|
75
|
-
type AzdoProject = {
|
|
76
|
-
id: string;
|
|
77
|
-
name: string;
|
|
78
|
-
description?: string;
|
|
79
|
-
url: string;
|
|
80
|
-
state: 'deleting' | 'new' | 'wellFormed' | 'createPending' | 'all' | 'unchanged' | 'deleted';
|
|
81
|
-
_links?: {
|
|
82
|
-
self: {
|
|
83
|
-
href: string;
|
|
84
|
-
};
|
|
85
|
-
collection: {
|
|
86
|
-
href: string;
|
|
87
|
-
};
|
|
88
|
-
web: {
|
|
89
|
-
href: string;
|
|
90
|
-
};
|
|
91
|
-
};
|
|
92
|
-
};
|
|
93
|
-
type AzdoRepository = {
|
|
94
|
-
id: string;
|
|
95
|
-
name: string;
|
|
96
|
-
defaultBranch?: string;
|
|
97
|
-
project: AzdoProject;
|
|
98
|
-
isDisabled?: boolean;
|
|
99
|
-
isFork?: boolean;
|
|
100
|
-
url: string;
|
|
101
|
-
remoteUrl: string;
|
|
102
|
-
webUrl: string;
|
|
103
|
-
};
|
|
104
|
-
type AzdoListResponse<T> = {
|
|
105
|
-
value: T[];
|
|
106
|
-
count: number;
|
|
107
|
-
};
|
|
108
|
-
type AzdoRepositoryItem = {
|
|
109
|
-
latestProcessedChange?: {
|
|
110
|
-
commitId?: string;
|
|
111
|
-
};
|
|
112
|
-
content?: string;
|
|
113
|
-
};
|
|
114
|
-
//#endregion
|
|
115
|
-
//#region src/azure/models.d.ts
|
|
116
|
-
/**
|
|
117
|
-
* Pull request property names used to store metadata about the pull request.
|
|
118
|
-
* https://learn.microsoft.com/en-us/rest/api/azure/devops/git/pull-request-properties
|
|
119
|
-
*/
|
|
120
|
-
declare const DEVOPS_PR_PROPERTY_MICROSOFT_GIT_SOURCE_REF_NAME = "Microsoft.Git.PullRequest.SourceRefName";
|
|
121
|
-
declare const DEVOPS_PR_PROPERTY_DEPENDABOT_PACKAGE_MANAGER = "Dependabot.PackageManager";
|
|
122
|
-
declare const DEVOPS_PR_PROPERTY_DEPENDABOT_DEPENDENCIES = "Dependabot.Dependencies";
|
|
123
|
-
/** File change */
|
|
124
|
-
interface IFileChange {
|
|
125
|
-
changeType: VersionControlChangeType;
|
|
126
|
-
path: string;
|
|
127
|
-
content?: string;
|
|
128
|
-
encoding?: string;
|
|
129
|
-
}
|
|
130
|
-
/** Pull request properties */
|
|
131
|
-
interface IPullRequestProperties {
|
|
132
|
-
id: number;
|
|
133
|
-
properties?: {
|
|
134
|
-
name: string;
|
|
135
|
-
value: string;
|
|
136
|
-
}[];
|
|
137
|
-
}
|
|
138
|
-
/** Pull request creation request */
|
|
139
|
-
interface ICreatePullRequest {
|
|
140
|
-
project: string;
|
|
141
|
-
repository: string;
|
|
142
|
-
source: {
|
|
143
|
-
commit: string;
|
|
144
|
-
branch: string;
|
|
145
|
-
};
|
|
146
|
-
target: {
|
|
147
|
-
branch: string;
|
|
148
|
-
};
|
|
149
|
-
author?: {
|
|
150
|
-
email: string;
|
|
151
|
-
name: string;
|
|
152
|
-
};
|
|
153
|
-
title: string;
|
|
154
|
-
description: string;
|
|
155
|
-
commitMessage: string;
|
|
156
|
-
autoComplete?: {
|
|
157
|
-
ignorePolicyConfigIds?: number[];
|
|
158
|
-
mergeStrategy?: GitPullRequestMergeStrategy;
|
|
159
|
-
};
|
|
160
|
-
assignees?: string[];
|
|
161
|
-
labels?: string[];
|
|
162
|
-
workItems?: string[];
|
|
163
|
-
changes: IFileChange[];
|
|
164
|
-
properties?: {
|
|
165
|
-
name: string;
|
|
166
|
-
value: string;
|
|
167
|
-
}[];
|
|
168
|
-
}
|
|
169
|
-
/** Pull request update request */
|
|
170
|
-
interface IUpdatePullRequest {
|
|
171
|
-
project: string;
|
|
172
|
-
repository: string;
|
|
173
|
-
pullRequestId: number;
|
|
174
|
-
commit: string;
|
|
175
|
-
author?: {
|
|
176
|
-
email: string;
|
|
177
|
-
name: string;
|
|
178
|
-
};
|
|
179
|
-
changes: IFileChange[];
|
|
180
|
-
skipIfDraft?: boolean;
|
|
181
|
-
skipIfCommitsFromAuthorsOtherThan?: string;
|
|
182
|
-
skipIfNotBehindTargetBranch?: boolean;
|
|
183
|
-
}
|
|
184
|
-
/** Pull request approval request */
|
|
185
|
-
interface IApprovePullRequest {
|
|
186
|
-
project: string;
|
|
187
|
-
repository: string;
|
|
188
|
-
pullRequestId: number;
|
|
189
|
-
}
|
|
190
|
-
/** Pull request abandon request */
|
|
191
|
-
interface IAbandonPullRequest {
|
|
192
|
-
project: string;
|
|
193
|
-
repository: string;
|
|
194
|
-
pullRequestId: number;
|
|
195
|
-
comment?: string;
|
|
196
|
-
deleteSourceBranch?: boolean;
|
|
197
|
-
}
|
|
198
|
-
/** Pull request comment */
|
|
199
|
-
interface IPullRequestComment {
|
|
200
|
-
project: string;
|
|
201
|
-
repository: string;
|
|
202
|
-
pullRequestId: number;
|
|
203
|
-
content: string;
|
|
204
|
-
userId?: string;
|
|
205
|
-
}
|
|
206
|
-
//#endregion
|
|
207
6
|
//#region src/azure/url-parts.d.ts
|
|
208
7
|
type AzureDevOpsOrganizationUrl = {
|
|
209
8
|
/** URL of the organisation. This may lack the project name */
|
|
@@ -216,6 +15,11 @@ type AzureDevOpsOrganizationUrl = {
|
|
|
216
15
|
organisation: string;
|
|
217
16
|
/** Virtual directory if present (on-premises only) */
|
|
218
17
|
'virtual-directory'?: string;
|
|
18
|
+
/**
|
|
19
|
+
* Organization Identity API URL (different from the API endpoint).
|
|
20
|
+
* Used for querying user identities.
|
|
21
|
+
*/
|
|
22
|
+
'identity-api-url': URL;
|
|
219
23
|
};
|
|
220
24
|
type AzureDevOpsProjectUrl = AzureDevOpsOrganizationUrl & {
|
|
221
25
|
/** Project ID or Name */
|
|
@@ -249,107 +53,1117 @@ declare function extractRepositoryUrl({
|
|
|
249
53
|
repository: string;
|
|
250
54
|
}): AzureDevOpsRepositoryUrl;
|
|
251
55
|
//#endregion
|
|
252
|
-
//#region src/azure/client.d.ts
|
|
253
|
-
|
|
56
|
+
//#region src/azure/client/client-base.d.ts
|
|
57
|
+
declare class BaseAzureDevOpsClient {
|
|
58
|
+
protected readonly client: KyInstance;
|
|
59
|
+
constructor(client: KyInstance);
|
|
60
|
+
protected makeUrl(path: string): string;
|
|
61
|
+
protected makeUrl(path: string, apiVersion: string): string;
|
|
62
|
+
protected makeUrl(path: string, params: Record<string, unknown>): string;
|
|
63
|
+
protected makeUrl(path: string, params: Record<string, unknown>, apiVersion: string): string;
|
|
64
|
+
}
|
|
65
|
+
//#endregion
|
|
66
|
+
//#region src/azure/client/types.d.ts
|
|
67
|
+
declare const AzdoVersionControlChangeTypeSchema: z.ZodEnum<{
|
|
68
|
+
none: "none";
|
|
69
|
+
add: "add";
|
|
70
|
+
edit: "edit";
|
|
71
|
+
encoding: "encoding";
|
|
72
|
+
rename: "rename";
|
|
73
|
+
delete: "delete";
|
|
74
|
+
undelete: "undelete";
|
|
75
|
+
branch: "branch";
|
|
76
|
+
merge: "merge";
|
|
77
|
+
lock: "lock";
|
|
78
|
+
rollback: "rollback";
|
|
79
|
+
sourceRename: "sourceRename";
|
|
80
|
+
targetRename: "targetRename";
|
|
81
|
+
property: "property";
|
|
82
|
+
all: "all";
|
|
83
|
+
}>;
|
|
84
|
+
type AzdoVersionControlChangeType = z.infer<typeof AzdoVersionControlChangeTypeSchema>;
|
|
85
|
+
declare const AZDO_PULL_REQUEST_MERGE_STRATEGIES: readonly ["noFastForward", "squash", "rebase", "rebaseMerge"];
|
|
86
|
+
declare const AzdoPullRequestMergeStrategySchema: z.ZodEnum<{
|
|
87
|
+
noFastForward: "noFastForward";
|
|
88
|
+
squash: "squash";
|
|
89
|
+
rebase: "rebase";
|
|
90
|
+
rebaseMerge: "rebaseMerge";
|
|
91
|
+
}>;
|
|
92
|
+
type AzdoPullRequestMergeStrategy = z.infer<typeof AzdoPullRequestMergeStrategySchema>;
|
|
93
|
+
declare const AzdoCommentThreadStatusSchema: z.ZodEnum<{
|
|
94
|
+
unknown: "unknown";
|
|
95
|
+
active: "active";
|
|
96
|
+
fixed: "fixed";
|
|
97
|
+
wontFix: "wontFix";
|
|
98
|
+
closed: "closed";
|
|
99
|
+
byDesign: "byDesign";
|
|
100
|
+
pending: "pending";
|
|
101
|
+
}>;
|
|
102
|
+
type AzdoCommentThreadStatus = z.infer<typeof AzdoCommentThreadStatusSchema>;
|
|
103
|
+
declare const AzdoCommentTypeSchema: z.ZodEnum<{
|
|
104
|
+
unknown: "unknown";
|
|
105
|
+
text: "text";
|
|
106
|
+
codeChange: "codeChange";
|
|
107
|
+
system: "system";
|
|
108
|
+
}>;
|
|
109
|
+
type AzdoCommentType = z.infer<typeof AzdoCommentTypeSchema>;
|
|
110
|
+
declare const AzdoPullRequestAsyncStatusSchema: z.ZodEnum<{
|
|
111
|
+
notSet: "notSet";
|
|
112
|
+
queued: "queued";
|
|
113
|
+
conflicts: "conflicts";
|
|
114
|
+
succeeded: "succeeded";
|
|
115
|
+
rejectedByPolicy: "rejectedByPolicy";
|
|
116
|
+
failure: "failure";
|
|
117
|
+
}>;
|
|
118
|
+
type AzdoPullRequestAsyncStatus = z.infer<typeof AzdoPullRequestAsyncStatusSchema>;
|
|
119
|
+
declare const AzdoPullRequestStatusSchema: z.ZodEnum<{
|
|
120
|
+
all: "all";
|
|
121
|
+
notSet: "notSet";
|
|
122
|
+
active: "active";
|
|
123
|
+
abandoned: "abandoned";
|
|
124
|
+
completed: "completed";
|
|
125
|
+
}>;
|
|
126
|
+
type AzdoPullRequestStatus = z.infer<typeof AzdoPullRequestStatusSchema>;
|
|
127
|
+
declare const AzdoProjectSchema: z.ZodObject<{
|
|
128
|
+
id: z.ZodString;
|
|
129
|
+
name: z.ZodString;
|
|
130
|
+
description: z.ZodOptional<z.ZodString>;
|
|
131
|
+
url: z.ZodString;
|
|
132
|
+
state: z.ZodEnum<{
|
|
133
|
+
all: "all";
|
|
134
|
+
deleted: "deleted";
|
|
135
|
+
deleting: "deleting";
|
|
136
|
+
new: "new";
|
|
137
|
+
wellFormed: "wellFormed";
|
|
138
|
+
createPending: "createPending";
|
|
139
|
+
unchanged: "unchanged";
|
|
140
|
+
}>;
|
|
141
|
+
_links: z.ZodOptional<z.ZodObject<{
|
|
142
|
+
self: z.ZodObject<{
|
|
143
|
+
href: z.ZodString;
|
|
144
|
+
}, z.core.$strip>;
|
|
145
|
+
collection: z.ZodObject<{
|
|
146
|
+
href: z.ZodString;
|
|
147
|
+
}, z.core.$strip>;
|
|
148
|
+
web: z.ZodObject<{
|
|
149
|
+
href: z.ZodString;
|
|
150
|
+
}, z.core.$strip>;
|
|
151
|
+
}, z.core.$strip>>;
|
|
152
|
+
}, z.core.$strip>;
|
|
153
|
+
type AzdoProject = z.infer<typeof AzdoProjectSchema>;
|
|
154
|
+
declare const AzdoRepositorySchema: z.ZodObject<{
|
|
155
|
+
id: z.ZodString;
|
|
156
|
+
name: z.ZodString;
|
|
157
|
+
defaultBranch: z.ZodOptional<z.ZodString>;
|
|
158
|
+
project: z.ZodObject<{
|
|
159
|
+
id: z.ZodString;
|
|
160
|
+
name: z.ZodString;
|
|
161
|
+
description: z.ZodOptional<z.ZodString>;
|
|
162
|
+
url: z.ZodString;
|
|
163
|
+
state: z.ZodEnum<{
|
|
164
|
+
all: "all";
|
|
165
|
+
deleted: "deleted";
|
|
166
|
+
deleting: "deleting";
|
|
167
|
+
new: "new";
|
|
168
|
+
wellFormed: "wellFormed";
|
|
169
|
+
createPending: "createPending";
|
|
170
|
+
unchanged: "unchanged";
|
|
171
|
+
}>;
|
|
172
|
+
_links: z.ZodOptional<z.ZodObject<{
|
|
173
|
+
self: z.ZodObject<{
|
|
174
|
+
href: z.ZodString;
|
|
175
|
+
}, z.core.$strip>;
|
|
176
|
+
collection: z.ZodObject<{
|
|
177
|
+
href: z.ZodString;
|
|
178
|
+
}, z.core.$strip>;
|
|
179
|
+
web: z.ZodObject<{
|
|
180
|
+
href: z.ZodString;
|
|
181
|
+
}, z.core.$strip>;
|
|
182
|
+
}, z.core.$strip>>;
|
|
183
|
+
}, z.core.$strip>;
|
|
184
|
+
isDisabled: z.ZodOptional<z.ZodBoolean>;
|
|
185
|
+
isFork: z.ZodOptional<z.ZodBoolean>;
|
|
186
|
+
url: z.ZodString;
|
|
187
|
+
remoteUrl: z.ZodString;
|
|
188
|
+
webUrl: z.ZodString;
|
|
189
|
+
}, z.core.$strip>;
|
|
190
|
+
type AzdoRepository = z.infer<typeof AzdoRepositorySchema>;
|
|
191
|
+
type AzdoResponse<T> = {
|
|
192
|
+
value?: T;
|
|
193
|
+
count: number;
|
|
194
|
+
};
|
|
195
|
+
declare const AzdoIdentitySchema: z.ZodObject<{
|
|
196
|
+
id: z.ZodString;
|
|
197
|
+
displayName: z.ZodString;
|
|
198
|
+
url: z.ZodString;
|
|
199
|
+
}, z.core.$strip>;
|
|
200
|
+
type AzdoIdentity = z.infer<typeof AzdoIdentitySchema>;
|
|
201
|
+
declare const AzdoIdentityRefSchema: z.ZodObject<{
|
|
202
|
+
id: z.ZodOptional<z.ZodString>;
|
|
203
|
+
displayName: z.ZodOptional<z.ZodString>;
|
|
204
|
+
uniqueName: z.ZodOptional<z.ZodString>;
|
|
205
|
+
url: z.ZodOptional<z.ZodString>;
|
|
206
|
+
}, z.core.$strip>;
|
|
207
|
+
type AzdoIdentityRef = z.infer<typeof AzdoIdentityRefSchema>;
|
|
208
|
+
declare const AzdoConnectionDataSchema: z.ZodObject<{
|
|
209
|
+
authenticatedUser: z.ZodObject<{
|
|
210
|
+
id: z.ZodString;
|
|
211
|
+
displayName: z.ZodString;
|
|
212
|
+
url: z.ZodString;
|
|
213
|
+
}, z.core.$strip>;
|
|
214
|
+
authorizedUser: z.ZodObject<{
|
|
215
|
+
id: z.ZodString;
|
|
216
|
+
displayName: z.ZodString;
|
|
217
|
+
url: z.ZodString;
|
|
218
|
+
}, z.core.$strip>;
|
|
219
|
+
}, z.core.$strip>;
|
|
220
|
+
type AzdoConnectionData = z.infer<typeof AzdoConnectionDataSchema>;
|
|
221
|
+
declare const AzdoGitUserDateSchema: z.ZodObject<{
|
|
222
|
+
name: z.ZodString;
|
|
223
|
+
email: z.ZodString;
|
|
224
|
+
date: z.ZodOptional<z.ZodString>;
|
|
225
|
+
}, z.core.$strip>;
|
|
226
|
+
type AzdoGitUserDate = z.infer<typeof AzdoGitUserDateSchema>;
|
|
227
|
+
declare const AzdoGitRefSchema: z.ZodObject<{
|
|
228
|
+
name: z.ZodString;
|
|
229
|
+
objectId: z.ZodString;
|
|
230
|
+
isLocked: z.ZodOptional<z.ZodBoolean>;
|
|
231
|
+
}, z.core.$strip>;
|
|
232
|
+
type AzdoGitRef = z.infer<typeof AzdoGitRefSchema>;
|
|
233
|
+
declare const AzdoGitRefUpdateResultSchema: z.ZodObject<{
|
|
234
|
+
name: z.ZodString;
|
|
235
|
+
objectId: z.ZodString;
|
|
236
|
+
isLocked: z.ZodOptional<z.ZodBoolean>;
|
|
237
|
+
oldObjectId: z.ZodString;
|
|
238
|
+
newObjectId: z.ZodString;
|
|
239
|
+
success: z.ZodBoolean;
|
|
240
|
+
customMessage: z.ZodOptional<z.ZodString>;
|
|
241
|
+
}, z.core.$strip>;
|
|
242
|
+
type AzdoGitRefUpdateResult = z.infer<typeof AzdoGitRefUpdateResultSchema>;
|
|
243
|
+
declare const AzdoGitChangeSchema: z.ZodObject<{
|
|
244
|
+
changeType: z.ZodEnum<{
|
|
245
|
+
none: "none";
|
|
246
|
+
add: "add";
|
|
247
|
+
edit: "edit";
|
|
248
|
+
encoding: "encoding";
|
|
249
|
+
rename: "rename";
|
|
250
|
+
delete: "delete";
|
|
251
|
+
undelete: "undelete";
|
|
252
|
+
branch: "branch";
|
|
253
|
+
merge: "merge";
|
|
254
|
+
lock: "lock";
|
|
255
|
+
rollback: "rollback";
|
|
256
|
+
sourceRename: "sourceRename";
|
|
257
|
+
targetRename: "targetRename";
|
|
258
|
+
property: "property";
|
|
259
|
+
all: "all";
|
|
260
|
+
}>;
|
|
261
|
+
item: z.ZodOptional<z.ZodObject<{
|
|
262
|
+
path: z.ZodString;
|
|
263
|
+
}, z.core.$strip>>;
|
|
264
|
+
newContent: z.ZodOptional<z.ZodObject<{
|
|
265
|
+
content: z.ZodString;
|
|
266
|
+
contentType: z.ZodEnum<{
|
|
267
|
+
rawtext: "rawtext";
|
|
268
|
+
base64encoded: "base64encoded";
|
|
269
|
+
}>;
|
|
270
|
+
}, z.core.$strip>>;
|
|
271
|
+
originalPath: z.ZodOptional<z.ZodString>;
|
|
272
|
+
}, z.core.$strip>;
|
|
273
|
+
type AzdoGitChange = z.infer<typeof AzdoGitChangeSchema>;
|
|
274
|
+
declare const AzdoGitCommitRefSchema: z.ZodObject<{
|
|
275
|
+
commitId: z.ZodString;
|
|
276
|
+
author: z.ZodOptional<z.ZodObject<{
|
|
277
|
+
name: z.ZodString;
|
|
278
|
+
email: z.ZodString;
|
|
279
|
+
date: z.ZodOptional<z.ZodString>;
|
|
280
|
+
}, z.core.$strip>>;
|
|
281
|
+
committer: z.ZodOptional<z.ZodObject<{
|
|
282
|
+
name: z.ZodString;
|
|
283
|
+
email: z.ZodString;
|
|
284
|
+
date: z.ZodOptional<z.ZodString>;
|
|
285
|
+
}, z.core.$strip>>;
|
|
286
|
+
changes: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
287
|
+
changeType: z.ZodEnum<{
|
|
288
|
+
none: "none";
|
|
289
|
+
add: "add";
|
|
290
|
+
edit: "edit";
|
|
291
|
+
encoding: "encoding";
|
|
292
|
+
rename: "rename";
|
|
293
|
+
delete: "delete";
|
|
294
|
+
undelete: "undelete";
|
|
295
|
+
branch: "branch";
|
|
296
|
+
merge: "merge";
|
|
297
|
+
lock: "lock";
|
|
298
|
+
rollback: "rollback";
|
|
299
|
+
sourceRename: "sourceRename";
|
|
300
|
+
targetRename: "targetRename";
|
|
301
|
+
property: "property";
|
|
302
|
+
all: "all";
|
|
303
|
+
}>;
|
|
304
|
+
item: z.ZodOptional<z.ZodObject<{
|
|
305
|
+
path: z.ZodString;
|
|
306
|
+
}, z.core.$strip>>;
|
|
307
|
+
newContent: z.ZodOptional<z.ZodObject<{
|
|
308
|
+
content: z.ZodString;
|
|
309
|
+
contentType: z.ZodEnum<{
|
|
310
|
+
rawtext: "rawtext";
|
|
311
|
+
base64encoded: "base64encoded";
|
|
312
|
+
}>;
|
|
313
|
+
}, z.core.$strip>>;
|
|
314
|
+
originalPath: z.ZodOptional<z.ZodString>;
|
|
315
|
+
}, z.core.$strip>>>;
|
|
316
|
+
}, z.core.$strip>;
|
|
317
|
+
type AzdoGitCommitRef = z.infer<typeof AzdoGitCommitRefSchema>;
|
|
318
|
+
declare const AzdoGitPushSchema: z.ZodObject<{
|
|
319
|
+
commits: z.ZodArray<z.ZodObject<{
|
|
320
|
+
commitId: z.ZodString;
|
|
321
|
+
author: z.ZodOptional<z.ZodObject<{
|
|
322
|
+
name: z.ZodString;
|
|
323
|
+
email: z.ZodString;
|
|
324
|
+
date: z.ZodOptional<z.ZodString>;
|
|
325
|
+
}, z.core.$strip>>;
|
|
326
|
+
committer: z.ZodOptional<z.ZodObject<{
|
|
327
|
+
name: z.ZodString;
|
|
328
|
+
email: z.ZodString;
|
|
329
|
+
date: z.ZodOptional<z.ZodString>;
|
|
330
|
+
}, z.core.$strip>>;
|
|
331
|
+
changes: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
332
|
+
changeType: z.ZodEnum<{
|
|
333
|
+
none: "none";
|
|
334
|
+
add: "add";
|
|
335
|
+
edit: "edit";
|
|
336
|
+
encoding: "encoding";
|
|
337
|
+
rename: "rename";
|
|
338
|
+
delete: "delete";
|
|
339
|
+
undelete: "undelete";
|
|
340
|
+
branch: "branch";
|
|
341
|
+
merge: "merge";
|
|
342
|
+
lock: "lock";
|
|
343
|
+
rollback: "rollback";
|
|
344
|
+
sourceRename: "sourceRename";
|
|
345
|
+
targetRename: "targetRename";
|
|
346
|
+
property: "property";
|
|
347
|
+
all: "all";
|
|
348
|
+
}>;
|
|
349
|
+
item: z.ZodOptional<z.ZodObject<{
|
|
350
|
+
path: z.ZodString;
|
|
351
|
+
}, z.core.$strip>>;
|
|
352
|
+
newContent: z.ZodOptional<z.ZodObject<{
|
|
353
|
+
content: z.ZodString;
|
|
354
|
+
contentType: z.ZodEnum<{
|
|
355
|
+
rawtext: "rawtext";
|
|
356
|
+
base64encoded: "base64encoded";
|
|
357
|
+
}>;
|
|
358
|
+
}, z.core.$strip>>;
|
|
359
|
+
originalPath: z.ZodOptional<z.ZodString>;
|
|
360
|
+
}, z.core.$strip>>>;
|
|
361
|
+
}, z.core.$strip>>;
|
|
362
|
+
refUpdates: z.ZodArray<z.ZodObject<{
|
|
363
|
+
name: z.ZodString;
|
|
364
|
+
objectId: z.ZodString;
|
|
365
|
+
isLocked: z.ZodOptional<z.ZodBoolean>;
|
|
366
|
+
}, z.core.$strip>>;
|
|
367
|
+
}, z.core.$strip>;
|
|
368
|
+
type AzdoGitPush = z.infer<typeof AzdoGitPushSchema>;
|
|
369
|
+
declare const AzdoGitRefUpdateSchema: z.ZodObject<{
|
|
370
|
+
name: z.ZodString;
|
|
371
|
+
oldObjectId: z.ZodString;
|
|
372
|
+
newObjectId: z.ZodOptional<z.ZodString>;
|
|
373
|
+
isLocked: z.ZodOptional<z.ZodBoolean>;
|
|
374
|
+
}, z.core.$strip>;
|
|
375
|
+
type AzdoGitRefUpdate = z.infer<typeof AzdoGitRefUpdateSchema>;
|
|
376
|
+
declare const AzdoGitPushCreateSchema: z.ZodObject<{
|
|
377
|
+
refUpdates: z.ZodArray<z.ZodObject<{
|
|
378
|
+
name: z.ZodString;
|
|
379
|
+
oldObjectId: z.ZodString;
|
|
380
|
+
newObjectId: z.ZodOptional<z.ZodString>;
|
|
381
|
+
isLocked: z.ZodOptional<z.ZodBoolean>;
|
|
382
|
+
}, z.core.$strip>>;
|
|
383
|
+
commits: z.ZodArray<z.ZodObject<{
|
|
384
|
+
comment: z.ZodString;
|
|
385
|
+
author: z.ZodOptional<z.ZodObject<{
|
|
386
|
+
name: z.ZodString;
|
|
387
|
+
email: z.ZodString;
|
|
388
|
+
date: z.ZodOptional<z.ZodString>;
|
|
389
|
+
}, z.core.$strip>>;
|
|
390
|
+
changes: z.ZodArray<z.ZodObject<{
|
|
391
|
+
changeType: z.ZodEnum<{
|
|
392
|
+
none: "none";
|
|
393
|
+
add: "add";
|
|
394
|
+
edit: "edit";
|
|
395
|
+
encoding: "encoding";
|
|
396
|
+
rename: "rename";
|
|
397
|
+
delete: "delete";
|
|
398
|
+
undelete: "undelete";
|
|
399
|
+
branch: "branch";
|
|
400
|
+
merge: "merge";
|
|
401
|
+
lock: "lock";
|
|
402
|
+
rollback: "rollback";
|
|
403
|
+
sourceRename: "sourceRename";
|
|
404
|
+
targetRename: "targetRename";
|
|
405
|
+
property: "property";
|
|
406
|
+
all: "all";
|
|
407
|
+
}>;
|
|
408
|
+
item: z.ZodOptional<z.ZodObject<{
|
|
409
|
+
path: z.ZodString;
|
|
410
|
+
}, z.core.$strip>>;
|
|
411
|
+
newContent: z.ZodOptional<z.ZodObject<{
|
|
412
|
+
content: z.ZodString;
|
|
413
|
+
contentType: z.ZodEnum<{
|
|
414
|
+
rawtext: "rawtext";
|
|
415
|
+
base64encoded: "base64encoded";
|
|
416
|
+
}>;
|
|
417
|
+
}, z.core.$strip>>;
|
|
418
|
+
originalPath: z.ZodOptional<z.ZodString>;
|
|
419
|
+
}, z.core.$strip>>;
|
|
420
|
+
}, z.core.$strip>>;
|
|
421
|
+
}, z.core.$strip>;
|
|
422
|
+
type AzdoGitPushCreate = z.infer<typeof AzdoGitPushCreateSchema>;
|
|
423
|
+
declare const AzdoGitBranchStatsSchema: z.ZodObject<{
|
|
424
|
+
aheadCount: z.ZodNumber;
|
|
425
|
+
behindCount: z.ZodNumber;
|
|
426
|
+
}, z.core.$strip>;
|
|
427
|
+
type AzdoGitBranchStats = z.infer<typeof AzdoGitBranchStatsSchema>;
|
|
428
|
+
declare const AzdoGitCommitDiffsSchema: z.ZodObject<{
|
|
429
|
+
allChangesIncluded: z.ZodBoolean;
|
|
430
|
+
baseCommit: z.ZodString;
|
|
431
|
+
changes: z.ZodArray<z.ZodObject<{
|
|
432
|
+
changeType: z.ZodEnum<{
|
|
433
|
+
none: "none";
|
|
434
|
+
add: "add";
|
|
435
|
+
edit: "edit";
|
|
436
|
+
encoding: "encoding";
|
|
437
|
+
rename: "rename";
|
|
438
|
+
delete: "delete";
|
|
439
|
+
undelete: "undelete";
|
|
440
|
+
branch: "branch";
|
|
441
|
+
merge: "merge";
|
|
442
|
+
lock: "lock";
|
|
443
|
+
rollback: "rollback";
|
|
444
|
+
sourceRename: "sourceRename";
|
|
445
|
+
targetRename: "targetRename";
|
|
446
|
+
property: "property";
|
|
447
|
+
all: "all";
|
|
448
|
+
}>;
|
|
449
|
+
item: z.ZodOptional<z.ZodObject<{
|
|
450
|
+
path: z.ZodString;
|
|
451
|
+
}, z.core.$strip>>;
|
|
452
|
+
newContent: z.ZodOptional<z.ZodObject<{
|
|
453
|
+
content: z.ZodString;
|
|
454
|
+
contentType: z.ZodEnum<{
|
|
455
|
+
rawtext: "rawtext";
|
|
456
|
+
base64encoded: "base64encoded";
|
|
457
|
+
}>;
|
|
458
|
+
}, z.core.$strip>>;
|
|
459
|
+
originalPath: z.ZodOptional<z.ZodString>;
|
|
460
|
+
}, z.core.$strip>>;
|
|
461
|
+
targetCommit: z.ZodString;
|
|
462
|
+
}, z.core.$strip>;
|
|
463
|
+
type AzdoGitCommitDiffs = z.infer<typeof AzdoGitCommitDiffsSchema>;
|
|
464
|
+
declare const AzdoRepositoryItemSchema: z.ZodObject<{
|
|
465
|
+
latestProcessedChange: z.ZodOptional<z.ZodObject<{
|
|
466
|
+
commitId: z.ZodString;
|
|
467
|
+
author: z.ZodOptional<z.ZodObject<{
|
|
468
|
+
name: z.ZodString;
|
|
469
|
+
email: z.ZodString;
|
|
470
|
+
date: z.ZodOptional<z.ZodString>;
|
|
471
|
+
}, z.core.$strip>>;
|
|
472
|
+
committer: z.ZodOptional<z.ZodObject<{
|
|
473
|
+
name: z.ZodString;
|
|
474
|
+
email: z.ZodString;
|
|
475
|
+
date: z.ZodOptional<z.ZodString>;
|
|
476
|
+
}, z.core.$strip>>;
|
|
477
|
+
changes: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
478
|
+
changeType: z.ZodEnum<{
|
|
479
|
+
none: "none";
|
|
480
|
+
add: "add";
|
|
481
|
+
edit: "edit";
|
|
482
|
+
encoding: "encoding";
|
|
483
|
+
rename: "rename";
|
|
484
|
+
delete: "delete";
|
|
485
|
+
undelete: "undelete";
|
|
486
|
+
branch: "branch";
|
|
487
|
+
merge: "merge";
|
|
488
|
+
lock: "lock";
|
|
489
|
+
rollback: "rollback";
|
|
490
|
+
sourceRename: "sourceRename";
|
|
491
|
+
targetRename: "targetRename";
|
|
492
|
+
property: "property";
|
|
493
|
+
all: "all";
|
|
494
|
+
}>;
|
|
495
|
+
item: z.ZodOptional<z.ZodObject<{
|
|
496
|
+
path: z.ZodString;
|
|
497
|
+
}, z.core.$strip>>;
|
|
498
|
+
newContent: z.ZodOptional<z.ZodObject<{
|
|
499
|
+
content: z.ZodString;
|
|
500
|
+
contentType: z.ZodEnum<{
|
|
501
|
+
rawtext: "rawtext";
|
|
502
|
+
base64encoded: "base64encoded";
|
|
503
|
+
}>;
|
|
504
|
+
}, z.core.$strip>>;
|
|
505
|
+
originalPath: z.ZodOptional<z.ZodString>;
|
|
506
|
+
}, z.core.$strip>>>;
|
|
507
|
+
}, z.core.$strip>>;
|
|
508
|
+
content: z.ZodOptional<z.ZodString>;
|
|
509
|
+
}, z.core.$strip>;
|
|
510
|
+
type AzdoRepositoryItem = z.infer<typeof AzdoRepositoryItemSchema>;
|
|
511
|
+
declare const AzdoIdentityRefWithVoteSchema: z.ZodObject<{
|
|
512
|
+
id: z.ZodOptional<z.ZodString>;
|
|
513
|
+
displayName: z.ZodOptional<z.ZodString>;
|
|
514
|
+
vote: z.ZodOptional<z.ZodNumber>;
|
|
515
|
+
hasDeclined: z.ZodOptional<z.ZodBoolean>;
|
|
516
|
+
isFlagged: z.ZodOptional<z.ZodBoolean>;
|
|
517
|
+
isRequired: z.ZodOptional<z.ZodBoolean>;
|
|
518
|
+
}, z.core.$strip>;
|
|
519
|
+
type AzdoIdentityRefWithVote = z.infer<typeof AzdoIdentityRefWithVoteSchema>;
|
|
520
|
+
declare const AzdoPullRequestSchema: z.ZodObject<{
|
|
521
|
+
pullRequestId: z.ZodNumber;
|
|
522
|
+
status: z.ZodEnum<{
|
|
523
|
+
all: "all";
|
|
524
|
+
notSet: "notSet";
|
|
525
|
+
active: "active";
|
|
526
|
+
abandoned: "abandoned";
|
|
527
|
+
completed: "completed";
|
|
528
|
+
}>;
|
|
529
|
+
isDraft: z.ZodBoolean;
|
|
530
|
+
sourceRefName: z.ZodString;
|
|
531
|
+
targetRefName: z.ZodString;
|
|
532
|
+
title: z.ZodString;
|
|
533
|
+
description: z.ZodOptional<z.ZodString>;
|
|
534
|
+
lastMergeCommit: z.ZodObject<{
|
|
535
|
+
commitId: z.ZodString;
|
|
536
|
+
author: z.ZodOptional<z.ZodObject<{
|
|
537
|
+
name: z.ZodString;
|
|
538
|
+
email: z.ZodString;
|
|
539
|
+
date: z.ZodOptional<z.ZodString>;
|
|
540
|
+
}, z.core.$strip>>;
|
|
541
|
+
committer: z.ZodOptional<z.ZodObject<{
|
|
542
|
+
name: z.ZodString;
|
|
543
|
+
email: z.ZodString;
|
|
544
|
+
date: z.ZodOptional<z.ZodString>;
|
|
545
|
+
}, z.core.$strip>>;
|
|
546
|
+
changes: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
547
|
+
changeType: z.ZodEnum<{
|
|
548
|
+
none: "none";
|
|
549
|
+
add: "add";
|
|
550
|
+
edit: "edit";
|
|
551
|
+
encoding: "encoding";
|
|
552
|
+
rename: "rename";
|
|
553
|
+
delete: "delete";
|
|
554
|
+
undelete: "undelete";
|
|
555
|
+
branch: "branch";
|
|
556
|
+
merge: "merge";
|
|
557
|
+
lock: "lock";
|
|
558
|
+
rollback: "rollback";
|
|
559
|
+
sourceRename: "sourceRename";
|
|
560
|
+
targetRename: "targetRename";
|
|
561
|
+
property: "property";
|
|
562
|
+
all: "all";
|
|
563
|
+
}>;
|
|
564
|
+
item: z.ZodOptional<z.ZodObject<{
|
|
565
|
+
path: z.ZodString;
|
|
566
|
+
}, z.core.$strip>>;
|
|
567
|
+
newContent: z.ZodOptional<z.ZodObject<{
|
|
568
|
+
content: z.ZodString;
|
|
569
|
+
contentType: z.ZodEnum<{
|
|
570
|
+
rawtext: "rawtext";
|
|
571
|
+
base64encoded: "base64encoded";
|
|
572
|
+
}>;
|
|
573
|
+
}, z.core.$strip>>;
|
|
574
|
+
originalPath: z.ZodOptional<z.ZodString>;
|
|
575
|
+
}, z.core.$strip>>>;
|
|
576
|
+
}, z.core.$strip>;
|
|
577
|
+
lastMergeSourceCommit: z.ZodObject<{
|
|
578
|
+
commitId: z.ZodString;
|
|
579
|
+
author: z.ZodOptional<z.ZodObject<{
|
|
580
|
+
name: z.ZodString;
|
|
581
|
+
email: z.ZodString;
|
|
582
|
+
date: z.ZodOptional<z.ZodString>;
|
|
583
|
+
}, z.core.$strip>>;
|
|
584
|
+
committer: z.ZodOptional<z.ZodObject<{
|
|
585
|
+
name: z.ZodString;
|
|
586
|
+
email: z.ZodString;
|
|
587
|
+
date: z.ZodOptional<z.ZodString>;
|
|
588
|
+
}, z.core.$strip>>;
|
|
589
|
+
changes: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
590
|
+
changeType: z.ZodEnum<{
|
|
591
|
+
none: "none";
|
|
592
|
+
add: "add";
|
|
593
|
+
edit: "edit";
|
|
594
|
+
encoding: "encoding";
|
|
595
|
+
rename: "rename";
|
|
596
|
+
delete: "delete";
|
|
597
|
+
undelete: "undelete";
|
|
598
|
+
branch: "branch";
|
|
599
|
+
merge: "merge";
|
|
600
|
+
lock: "lock";
|
|
601
|
+
rollback: "rollback";
|
|
602
|
+
sourceRename: "sourceRename";
|
|
603
|
+
targetRename: "targetRename";
|
|
604
|
+
property: "property";
|
|
605
|
+
all: "all";
|
|
606
|
+
}>;
|
|
607
|
+
item: z.ZodOptional<z.ZodObject<{
|
|
608
|
+
path: z.ZodString;
|
|
609
|
+
}, z.core.$strip>>;
|
|
610
|
+
newContent: z.ZodOptional<z.ZodObject<{
|
|
611
|
+
content: z.ZodString;
|
|
612
|
+
contentType: z.ZodEnum<{
|
|
613
|
+
rawtext: "rawtext";
|
|
614
|
+
base64encoded: "base64encoded";
|
|
615
|
+
}>;
|
|
616
|
+
}, z.core.$strip>>;
|
|
617
|
+
originalPath: z.ZodOptional<z.ZodString>;
|
|
618
|
+
}, z.core.$strip>>>;
|
|
619
|
+
}, z.core.$strip>;
|
|
620
|
+
mergeStatus: z.ZodEnum<{
|
|
621
|
+
notSet: "notSet";
|
|
622
|
+
queued: "queued";
|
|
623
|
+
conflicts: "conflicts";
|
|
624
|
+
succeeded: "succeeded";
|
|
625
|
+
rejectedByPolicy: "rejectedByPolicy";
|
|
626
|
+
failure: "failure";
|
|
627
|
+
}>;
|
|
628
|
+
reviewers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
629
|
+
id: z.ZodOptional<z.ZodString>;
|
|
630
|
+
displayName: z.ZodOptional<z.ZodString>;
|
|
631
|
+
vote: z.ZodOptional<z.ZodNumber>;
|
|
632
|
+
hasDeclined: z.ZodOptional<z.ZodBoolean>;
|
|
633
|
+
isFlagged: z.ZodOptional<z.ZodBoolean>;
|
|
634
|
+
isRequired: z.ZodOptional<z.ZodBoolean>;
|
|
635
|
+
}, z.core.$strip>>>;
|
|
636
|
+
workItemRefs: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
637
|
+
id: z.ZodString;
|
|
638
|
+
}, z.core.$strip>>>;
|
|
639
|
+
labels: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
640
|
+
name: z.ZodString;
|
|
641
|
+
}, z.core.$strip>>>;
|
|
642
|
+
autoCompleteSetBy: z.ZodOptional<z.ZodObject<{
|
|
643
|
+
id: z.ZodOptional<z.ZodString>;
|
|
644
|
+
displayName: z.ZodOptional<z.ZodString>;
|
|
645
|
+
uniqueName: z.ZodOptional<z.ZodString>;
|
|
646
|
+
url: z.ZodOptional<z.ZodString>;
|
|
647
|
+
}, z.core.$strip>>;
|
|
648
|
+
completionOptions: z.ZodOptional<z.ZodObject<{
|
|
649
|
+
autoCompleteIgnoreConfigIds: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
650
|
+
deleteSourceBranch: z.ZodOptional<z.ZodBoolean>;
|
|
651
|
+
mergeCommitMessage: z.ZodOptional<z.ZodString>;
|
|
652
|
+
mergeStrategy: z.ZodOptional<z.ZodEnum<{
|
|
653
|
+
noFastForward: "noFastForward";
|
|
654
|
+
squash: "squash";
|
|
655
|
+
rebase: "rebase";
|
|
656
|
+
rebaseMerge: "rebaseMerge";
|
|
657
|
+
}>>;
|
|
658
|
+
transitionWorkItems: z.ZodOptional<z.ZodBoolean>;
|
|
659
|
+
}, z.core.$strip>>;
|
|
660
|
+
closedBy: z.ZodOptional<z.ZodObject<{
|
|
661
|
+
id: z.ZodOptional<z.ZodString>;
|
|
662
|
+
displayName: z.ZodOptional<z.ZodString>;
|
|
663
|
+
uniqueName: z.ZodOptional<z.ZodString>;
|
|
664
|
+
url: z.ZodOptional<z.ZodString>;
|
|
665
|
+
}, z.core.$strip>>;
|
|
666
|
+
}, z.core.$strip>;
|
|
667
|
+
type AzdoPullRequest = z.infer<typeof AzdoPullRequestSchema>;
|
|
668
|
+
declare const AzdoPropertiesSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
669
|
+
$type: z.ZodString;
|
|
670
|
+
$value: z.ZodString;
|
|
671
|
+
}, z.core.$strip>>;
|
|
672
|
+
type AzdoProperties = z.infer<typeof AzdoPropertiesSchema>;
|
|
673
|
+
declare const AzdoPullRequestCommentSchema: z.ZodObject<{
|
|
674
|
+
id: z.ZodOptional<z.ZodNumber>;
|
|
675
|
+
parentCommentId: z.ZodOptional<z.ZodNumber>;
|
|
676
|
+
content: z.ZodString;
|
|
677
|
+
commentType: z.ZodEnum<{
|
|
678
|
+
unknown: "unknown";
|
|
679
|
+
text: "text";
|
|
680
|
+
codeChange: "codeChange";
|
|
681
|
+
system: "system";
|
|
682
|
+
}>;
|
|
683
|
+
publishedDate: z.ZodOptional<z.ZodString>;
|
|
684
|
+
author: z.ZodObject<{
|
|
685
|
+
id: z.ZodOptional<z.ZodString>;
|
|
686
|
+
displayName: z.ZodOptional<z.ZodString>;
|
|
687
|
+
uniqueName: z.ZodOptional<z.ZodString>;
|
|
688
|
+
url: z.ZodOptional<z.ZodString>;
|
|
689
|
+
}, z.core.$strip>;
|
|
690
|
+
}, z.core.$strip>;
|
|
691
|
+
type AzdoPullRequestComment = z.infer<typeof AzdoPullRequestCommentSchema>;
|
|
692
|
+
declare const AzdoPullRequestCommentThreadSchema: z.ZodObject<{
|
|
693
|
+
id: z.ZodNumber;
|
|
694
|
+
comments: z.ZodArray<z.ZodObject<{
|
|
695
|
+
id: z.ZodOptional<z.ZodNumber>;
|
|
696
|
+
parentCommentId: z.ZodOptional<z.ZodNumber>;
|
|
697
|
+
content: z.ZodString;
|
|
698
|
+
commentType: z.ZodEnum<{
|
|
699
|
+
unknown: "unknown";
|
|
700
|
+
text: "text";
|
|
701
|
+
codeChange: "codeChange";
|
|
702
|
+
system: "system";
|
|
703
|
+
}>;
|
|
704
|
+
publishedDate: z.ZodOptional<z.ZodString>;
|
|
705
|
+
author: z.ZodObject<{
|
|
706
|
+
id: z.ZodOptional<z.ZodString>;
|
|
707
|
+
displayName: z.ZodOptional<z.ZodString>;
|
|
708
|
+
uniqueName: z.ZodOptional<z.ZodString>;
|
|
709
|
+
url: z.ZodOptional<z.ZodString>;
|
|
710
|
+
}, z.core.$strip>;
|
|
711
|
+
}, z.core.$strip>>;
|
|
712
|
+
status: z.ZodEnum<{
|
|
713
|
+
unknown: "unknown";
|
|
714
|
+
active: "active";
|
|
715
|
+
fixed: "fixed";
|
|
716
|
+
wontFix: "wontFix";
|
|
717
|
+
closed: "closed";
|
|
718
|
+
byDesign: "byDesign";
|
|
719
|
+
pending: "pending";
|
|
720
|
+
}>;
|
|
721
|
+
}, z.core.$strip>;
|
|
722
|
+
type AzdoPullRequestCommentThread = z.infer<typeof AzdoPullRequestCommentThreadSchema>;
|
|
723
|
+
declare const AzdoSubscriptionSchema: z.ZodObject<{
|
|
724
|
+
id: z.ZodString;
|
|
725
|
+
status: z.ZodEnum<{
|
|
726
|
+
enabled: "enabled";
|
|
727
|
+
onProbation: "onProbation";
|
|
728
|
+
disabledByUser: "disabledByUser";
|
|
729
|
+
disabledBySystem: "disabledBySystem";
|
|
730
|
+
disabledByInactiveIdentity: "disabledByInactiveIdentity";
|
|
731
|
+
}>;
|
|
732
|
+
publisherId: z.ZodString;
|
|
733
|
+
publisherInputs: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
734
|
+
consumerId: z.ZodOptional<z.ZodString>;
|
|
735
|
+
consumerActionId: z.ZodOptional<z.ZodString>;
|
|
736
|
+
consumerInputs: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
737
|
+
eventType: z.ZodString;
|
|
738
|
+
resourceVersion: z.ZodString;
|
|
739
|
+
eventDescription: z.ZodOptional<z.ZodString>;
|
|
740
|
+
actionDescription: z.ZodOptional<z.ZodString>;
|
|
741
|
+
}, z.core.$strip>;
|
|
742
|
+
type AzdoSubscription = z.infer<typeof AzdoSubscriptionSchema>;
|
|
743
|
+
declare const AzdoSubscriptionsQueryResponseSchema: z.ZodObject<{
|
|
744
|
+
results: z.ZodArray<z.ZodObject<{
|
|
745
|
+
id: z.ZodString;
|
|
746
|
+
status: z.ZodEnum<{
|
|
747
|
+
enabled: "enabled";
|
|
748
|
+
onProbation: "onProbation";
|
|
749
|
+
disabledByUser: "disabledByUser";
|
|
750
|
+
disabledBySystem: "disabledBySystem";
|
|
751
|
+
disabledByInactiveIdentity: "disabledByInactiveIdentity";
|
|
752
|
+
}>;
|
|
753
|
+
publisherId: z.ZodString;
|
|
754
|
+
publisherInputs: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
755
|
+
consumerId: z.ZodOptional<z.ZodString>;
|
|
756
|
+
consumerActionId: z.ZodOptional<z.ZodString>;
|
|
757
|
+
consumerInputs: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
758
|
+
eventType: z.ZodString;
|
|
759
|
+
resourceVersion: z.ZodString;
|
|
760
|
+
eventDescription: z.ZodOptional<z.ZodString>;
|
|
761
|
+
actionDescription: z.ZodOptional<z.ZodString>;
|
|
762
|
+
}, z.core.$strip>>;
|
|
763
|
+
}, z.core.$strip>;
|
|
764
|
+
type AzdoSubscriptionsQueryResponse = z.infer<typeof AzdoSubscriptionsQueryResponseSchema>;
|
|
765
|
+
declare const AzdoSubscriptionsQueryInputFilterSchema: z.ZodObject<{
|
|
766
|
+
conditions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
767
|
+
caseSensitive: z.ZodOptional<z.ZodBoolean>;
|
|
768
|
+
inputId: z.ZodOptional<z.ZodString>;
|
|
769
|
+
inputValue: z.ZodOptional<z.ZodString>;
|
|
770
|
+
operator: z.ZodEnum<{
|
|
771
|
+
equals: "equals";
|
|
772
|
+
notEquals: "notEquals";
|
|
773
|
+
}>;
|
|
774
|
+
}, z.core.$strip>>>;
|
|
775
|
+
}, z.core.$strip>;
|
|
776
|
+
type AzdoSubscriptionsQueryInputFilter = z.infer<typeof AzdoSubscriptionsQueryInputFilterSchema>;
|
|
777
|
+
declare const AzdoSubscriptionsQuerySchema: z.ZodObject<{
|
|
778
|
+
consumerActionId: z.ZodOptional<z.ZodString>;
|
|
779
|
+
consumerId: z.ZodOptional<z.ZodString>;
|
|
780
|
+
consumerInputFilters: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
781
|
+
conditions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
782
|
+
caseSensitive: z.ZodOptional<z.ZodBoolean>;
|
|
783
|
+
inputId: z.ZodOptional<z.ZodString>;
|
|
784
|
+
inputValue: z.ZodOptional<z.ZodString>;
|
|
785
|
+
operator: z.ZodEnum<{
|
|
786
|
+
equals: "equals";
|
|
787
|
+
notEquals: "notEquals";
|
|
788
|
+
}>;
|
|
789
|
+
}, z.core.$strip>>>;
|
|
790
|
+
}, z.core.$strip>>>;
|
|
791
|
+
eventType: z.ZodOptional<z.ZodString>;
|
|
792
|
+
publisherId: z.ZodOptional<z.ZodString>;
|
|
793
|
+
publisherInputFilters: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
794
|
+
conditions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
795
|
+
caseSensitive: z.ZodOptional<z.ZodBoolean>;
|
|
796
|
+
inputId: z.ZodOptional<z.ZodString>;
|
|
797
|
+
inputValue: z.ZodOptional<z.ZodString>;
|
|
798
|
+
operator: z.ZodEnum<{
|
|
799
|
+
equals: "equals";
|
|
800
|
+
notEquals: "notEquals";
|
|
801
|
+
}>;
|
|
802
|
+
}, z.core.$strip>>>;
|
|
803
|
+
}, z.core.$strip>>>;
|
|
804
|
+
subscriberId: z.ZodOptional<z.ZodString>;
|
|
805
|
+
}, z.core.$strip>;
|
|
806
|
+
type AzdoSubscriptionsQuery = z.infer<typeof AzdoSubscriptionsQuerySchema>;
|
|
807
|
+
type AzdoPrExtractedWithProperties = {
|
|
808
|
+
pullRequestId: number;
|
|
809
|
+
properties?: {
|
|
810
|
+
name: string;
|
|
811
|
+
value: string;
|
|
812
|
+
}[];
|
|
813
|
+
};
|
|
814
|
+
type AzdoFileChange = {
|
|
815
|
+
changeType: AzdoVersionControlChangeType;
|
|
816
|
+
path: string;
|
|
817
|
+
content?: string;
|
|
818
|
+
encoding?: 'utf-8' | 'base64';
|
|
819
|
+
};
|
|
820
|
+
//#endregion
|
|
821
|
+
//#region src/azure/client/client-connection.d.ts
|
|
822
|
+
declare class ConnectionClient extends BaseAzureDevOpsClient {
|
|
823
|
+
/**
|
|
824
|
+
* Get the connection data for the current user.
|
|
825
|
+
*/
|
|
826
|
+
get(): Promise<AzdoConnectionData>;
|
|
827
|
+
}
|
|
828
|
+
//#endregion
|
|
829
|
+
//#region src/azure/client/client-git.d.ts
|
|
830
|
+
declare class GitClient extends BaseAzureDevOpsClient {
|
|
831
|
+
getItem(projectIdOrName: string, repositoryIdOrName: string, path: string, includeContent?: boolean, latestProcessedChange?: boolean): Promise<AzdoRepositoryItem | undefined>;
|
|
832
|
+
getPush(projectIdOrName: string, repositoryIdOrName: string, pushId: number, includeCommits?: number, includeRefUpdates?: boolean): Promise<AzdoGitPush>;
|
|
833
|
+
createPush(projectIdOrName: string, repositoryIdOrName: string, push: AzdoGitPushCreate): Promise<AzdoGitPush>;
|
|
834
|
+
getDiffCommits(projectIdOrName: string, repositoryIdOrName: string, baseVersion: string, targetVersion: string): Promise<AzdoGitCommitDiffs>;
|
|
835
|
+
updateRef(projectIdOrName: string, repositoryIdOrName: string, ref: AzdoGitRefUpdate[]): Promise<AzdoGitRefUpdateResult[] | undefined>;
|
|
836
|
+
}
|
|
837
|
+
//#endregion
|
|
838
|
+
//#region src/azure/client/client-identity.d.ts
|
|
839
|
+
declare class IdentityClient extends BaseAzureDevOpsClient {
|
|
840
|
+
/**
|
|
841
|
+
* Get the identities that match the given user name, email, or group name.
|
|
842
|
+
* Requires scope "Identity (Read)" (vso.identity).
|
|
843
|
+
* @param filterValue username, email, or group name
|
|
844
|
+
* @returns
|
|
845
|
+
*/
|
|
846
|
+
get(filterValue: string): Promise<AzdoIdentity[] | undefined>;
|
|
847
|
+
}
|
|
848
|
+
//#endregion
|
|
849
|
+
//#region src/azure/client/client-projects.d.ts
|
|
850
|
+
declare class ProjectsClient extends BaseAzureDevOpsClient {
|
|
851
|
+
list(): Promise<AzdoProject[] | undefined>;
|
|
852
|
+
get(idOrName: string): Promise<AzdoProject | undefined>;
|
|
853
|
+
}
|
|
854
|
+
//#endregion
|
|
855
|
+
//#region src/azure/client/client-pull-requests.d.ts
|
|
856
|
+
declare class PullRequestsClient extends BaseAzureDevOpsClient {
|
|
857
|
+
/**
|
|
858
|
+
* List pull requests
|
|
859
|
+
* Requires scope "Code (Read)" (vso.code).
|
|
860
|
+
* @param projectIdOrName
|
|
861
|
+
* @param repositoryIdOrName
|
|
862
|
+
* @param creatorId ID of the user who created the pull requests
|
|
863
|
+
* @param status The status of the pull requests to filter by
|
|
864
|
+
*/
|
|
865
|
+
list(projectIdOrName: string, repositoryIdOrName: string, creatorId: string, status: AzdoPullRequestStatus): Promise<AzdoPullRequest[] | undefined>;
|
|
866
|
+
get(projectIdOrName: string, repositoryIdOrName: string, pullRequestId: number): Promise<AzdoPullRequest | undefined>;
|
|
867
|
+
create(projectIdOrName: string, repositoryIdOrName: string, pr: Partial<AzdoPullRequest>): Promise<AzdoPullRequest>;
|
|
868
|
+
update(projectIdOrName: string, repositoryIdOrName: string, pullRequestId: number, pr: Partial<AzdoPullRequest>): Promise<AzdoPullRequest>;
|
|
869
|
+
getProperties(projectIdOrName: string, repositoryIdOrName: string, pullRequestId: number): Promise<{
|
|
870
|
+
name: string;
|
|
871
|
+
value: string;
|
|
872
|
+
}[]>;
|
|
873
|
+
setProperties(projectIdOrName: string, repositoryIdOrName: string, pullRequestId: number, properties: {
|
|
874
|
+
name: string;
|
|
875
|
+
value: string;
|
|
876
|
+
}[]): Promise<AzdoResponse<AzdoProperties>>;
|
|
877
|
+
/**
|
|
878
|
+
* Approve a pull request.
|
|
879
|
+
* Requires scope "Code (Write)" (vso.code_write).
|
|
880
|
+
*/
|
|
881
|
+
approve(projectIdOrName: string, repositoryIdOrName: string, pullRequestId: number, userId: string): Promise<AzdoIdentityRefWithVote>;
|
|
882
|
+
/**
|
|
883
|
+
* Abandon a pull request.
|
|
884
|
+
* Requires scope "Code (Write)" (vso.code_write).
|
|
885
|
+
*/
|
|
886
|
+
abandon(projectIdOrName: string, repositoryIdOrName: string, pullRequestId: number, userId: string): Promise<AzdoPullRequest>;
|
|
887
|
+
/**
|
|
888
|
+
* Get commits of a pull request.
|
|
889
|
+
* Requires scope "Code (Read)" (vso.code_read).
|
|
890
|
+
*/
|
|
891
|
+
getCommits(projectIdOrName: string, repositoryIdOrName: string, pullRequestId: number): Promise<AzdoGitCommitRef[] | undefined>;
|
|
892
|
+
/**
|
|
893
|
+
* Create a comment thread on a pull request.
|
|
894
|
+
* Requires scope "Code (Write)" (vso.code_write).
|
|
895
|
+
*/
|
|
896
|
+
createCommentThread(projectIdOrName: string, repositoryIdOrName: string, pullRequestId: number, thread: Partial<AzdoPullRequestCommentThread>): Promise<AzdoPullRequestCommentThread>;
|
|
897
|
+
}
|
|
898
|
+
//#endregion
|
|
899
|
+
//#region src/azure/client/client-repositories.d.ts
|
|
900
|
+
declare class RepositoriesClient extends BaseAzureDevOpsClient {
|
|
901
|
+
list(projectIdOrName: string): Promise<AzdoRepository[] | undefined>;
|
|
902
|
+
get(projectIdOrName: string, repositoryIdOrName: string): Promise<AzdoRepository | undefined>;
|
|
903
|
+
/**
|
|
904
|
+
* Get the list of refs (a.k.a branch names) for a repository.
|
|
905
|
+
* Requires scope "Code (Read)" (vso.code).
|
|
906
|
+
* @param projectIdOrName
|
|
907
|
+
* @param repositoryIdOrName
|
|
908
|
+
* @returns
|
|
909
|
+
*/
|
|
910
|
+
getRefs(projectIdOrName: string, repositoryIdOrName: string): Promise<AzdoGitRef[] | undefined>;
|
|
911
|
+
getBranchStats(projectIdOrName: string, repositoryIdOrName: string, branchName: string): Promise<AzdoGitBranchStats | undefined>;
|
|
912
|
+
}
|
|
913
|
+
//#endregion
|
|
914
|
+
//#region src/azure/client/client-subscriptions.d.ts
|
|
915
|
+
declare class HookSubscriptionsClient extends BaseAzureDevOpsClient {
|
|
916
|
+
query(query: AzdoSubscriptionsQuery): Promise<AzdoSubscription[]>;
|
|
917
|
+
create(subscription: Partial<AzdoSubscription>): Promise<AzdoSubscription>;
|
|
918
|
+
replace(subscriptionId: string, subscription: AzdoSubscription): Promise<AzdoSubscription>;
|
|
919
|
+
delete(subscriptionId: string): Promise<void>;
|
|
920
|
+
}
|
|
921
|
+
//#endregion
|
|
922
|
+
//#region src/azure/client/client.d.ts
|
|
923
|
+
declare class AzureDevOpsClient {
|
|
924
|
+
readonly organizationSlug: string;
|
|
925
|
+
readonly organizationUrl: string;
|
|
926
|
+
readonly connection: ConnectionClient;
|
|
927
|
+
readonly identity: IdentityClient;
|
|
928
|
+
readonly projects: ProjectsClient;
|
|
929
|
+
readonly repositories: RepositoriesClient;
|
|
930
|
+
readonly git: GitClient;
|
|
931
|
+
readonly pullRequests: PullRequestsClient;
|
|
932
|
+
readonly subscriptions: HookSubscriptionsClient;
|
|
933
|
+
constructor(url: AzureDevOpsOrganizationUrl, accessToken: string, debug?: boolean);
|
|
934
|
+
private static createClientOptions;
|
|
935
|
+
}
|
|
936
|
+
//#endregion
|
|
937
|
+
//#region src/azure/client/constants.d.ts
|
|
938
|
+
declare const API_VERSION = "5.0";
|
|
939
|
+
declare const API_VERSION_PREVIEW = "5.0-preview";
|
|
940
|
+
/** Returned when no user is authenticated */
|
|
254
941
|
declare const ANONYMOUS_USER_ID = "aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa";
|
|
255
|
-
/**
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
942
|
+
/**
|
|
943
|
+
* Pull request property names used to store metadata about the pull request.
|
|
944
|
+
* https://learn.microsoft.com/en-us/rest/api/azure/devops/git/pull-request-properties
|
|
945
|
+
*/
|
|
946
|
+
declare const PR_PROPERTY_MICROSOFT_GIT_SOURCE_REF_NAME = "Microsoft.Git.PullRequest.SourceRefName";
|
|
947
|
+
declare const PR_PROPERTY_DEPENDABOT_PACKAGE_MANAGER = "Dependabot.PackageManager";
|
|
948
|
+
declare const PR_PROPERTY_DEPENDABOT_DEPENDENCIES = "Dependabot.Dependencies";
|
|
949
|
+
declare const PR_DESCRIPTION_MAX_LENGTH = 4000;
|
|
950
|
+
//#endregion
|
|
951
|
+
//#region src/azure/client/utils.d.ts
|
|
952
|
+
declare function buildPullRequestProperties(packageManager: string, dependencies: DependabotPersistedPr): {
|
|
953
|
+
name: string;
|
|
954
|
+
value: string;
|
|
955
|
+
}[];
|
|
956
|
+
declare function parsePullRequestProperties(pullRequests: AzdoPrExtractedWithProperties[], packageManager: string | null): Record<string, DependabotPersistedPr>;
|
|
957
|
+
declare function getPullRequestForDependencyNames(existingPullRequests: AzdoPrExtractedWithProperties[], packageManager: string, dependencyNames: string[]): AzdoPrExtractedWithProperties | undefined;
|
|
958
|
+
declare function getPullRequestChangedFiles(data: DependabotCreatePullRequest | DependabotUpdatePullRequest): {
|
|
959
|
+
changeType: "add" | "edit" | "delete";
|
|
960
|
+
path: string;
|
|
961
|
+
content: string | undefined;
|
|
962
|
+
encoding: "utf-8" | "base64";
|
|
963
|
+
}[];
|
|
964
|
+
//#endregion
|
|
965
|
+
//#region src/azure/client/wrapper.d.ts
|
|
966
|
+
type AzdoRepositoryOptions = {
|
|
967
|
+
project: string;
|
|
968
|
+
repository: string;
|
|
969
|
+
};
|
|
970
|
+
type AzdoPullRequestCreateOptions = AzdoRepositoryOptions & {
|
|
971
|
+
source: {
|
|
972
|
+
branch: string;
|
|
973
|
+
commit: string;
|
|
974
|
+
};
|
|
975
|
+
target: {
|
|
976
|
+
branch: string;
|
|
977
|
+
};
|
|
978
|
+
author: AzdoGitUserDate;
|
|
979
|
+
title: string;
|
|
980
|
+
description: string;
|
|
981
|
+
commitMessage: string;
|
|
982
|
+
autoComplete?: {
|
|
983
|
+
ignorePolicyConfigIds?: number[];
|
|
984
|
+
mergeStrategy?: AzdoPullRequestMergeStrategy;
|
|
985
|
+
};
|
|
986
|
+
assignees?: string[];
|
|
987
|
+
labels?: string[];
|
|
988
|
+
workItems?: string[];
|
|
989
|
+
changes: AzdoFileChange[];
|
|
990
|
+
properties?: {
|
|
991
|
+
name: string;
|
|
992
|
+
value: string;
|
|
993
|
+
}[];
|
|
994
|
+
};
|
|
995
|
+
type AzdoPullRequestOptions = AzdoRepositoryOptions & {
|
|
996
|
+
pullRequestId: number;
|
|
997
|
+
};
|
|
998
|
+
type AzdoPullRequestUpdateOptions = AzdoPullRequestOptions & {
|
|
999
|
+
commit: string;
|
|
1000
|
+
author: AzdoGitUserDate;
|
|
1001
|
+
changes: AzdoFileChange[];
|
|
1002
|
+
};
|
|
1003
|
+
type AzdoPullRequestAbandonOptions = AzdoPullRequestOptions & {
|
|
1004
|
+
comment?: string;
|
|
1005
|
+
deleteSourceBranch?: boolean;
|
|
1006
|
+
};
|
|
1007
|
+
type AzdoPullRequestCommentCreateOptions = AzdoPullRequestOptions & {
|
|
1008
|
+
content: string;
|
|
1009
|
+
userId?: string;
|
|
1010
|
+
};
|
|
1011
|
+
declare class AzureDevOpsClientWrapper {
|
|
1012
|
+
readonly inner: AzureDevOpsClient;
|
|
261
1013
|
private authenticatedUserId?;
|
|
262
1014
|
private resolvedUserIds;
|
|
263
|
-
|
|
264
|
-
|
|
1015
|
+
/**
|
|
1016
|
+
* Create a new Azure DevOps client wrapper.
|
|
1017
|
+
* @param url The Azure DevOps organization URL
|
|
1018
|
+
* @param accessToken The personal access token for authentication
|
|
1019
|
+
* @param debug Enable debug logging for API requests (default: false)
|
|
1020
|
+
*/
|
|
265
1021
|
constructor(url: AzureDevOpsOrganizationUrl, accessToken: string, debug?: boolean);
|
|
266
1022
|
/**
|
|
267
1023
|
* Get the identity of the authenticated user.
|
|
268
|
-
*
|
|
1024
|
+
* The result is cached after the first call to avoid repeated API requests.
|
|
269
1025
|
*/
|
|
270
1026
|
getUserId(): Promise<string>;
|
|
271
1027
|
/**
|
|
272
1028
|
* Get the identity id from a user name, email, or group name.
|
|
1029
|
+
* Results are cached to avoid repeated API requests for the same identifier.
|
|
1030
|
+
*
|
|
273
1031
|
* Requires scope "Identity (Read)" (vso.identity).
|
|
274
|
-
* @param
|
|
275
|
-
* @returns
|
|
1032
|
+
* @param identifier Username, email, or group name to resolve
|
|
1033
|
+
* @returns The resolved identity ID, or undefined if not found or on error
|
|
276
1034
|
*/
|
|
277
|
-
resolveIdentityId(
|
|
278
|
-
getProjects(): Promise<AzdoListResponse<AzdoProject> | undefined>;
|
|
279
|
-
getProject(idOrName: string): Promise<AzdoProject | undefined>;
|
|
280
|
-
getRepositories(projectIdOrName: string): Promise<AzdoListResponse<AzdoRepository> | undefined>;
|
|
281
|
-
getRepository(projectIdOrName: string, repositoryIdOrName: string): Promise<AzdoRepository | undefined>;
|
|
282
|
-
getRepositoryItem(projectIdOrName: string, repositoryIdOrName: string, path: string, includeContent?: boolean, latestProcessedChange?: boolean): Promise<AzdoRepositoryItem | undefined>;
|
|
1035
|
+
resolveIdentityId(identifier: string): Promise<string | undefined>;
|
|
283
1036
|
/**
|
|
284
1037
|
* Get the default branch for a repository.
|
|
1038
|
+
*
|
|
285
1039
|
* Requires scope "Code (Read)" (vso.code).
|
|
286
|
-
* @param project
|
|
287
|
-
* @
|
|
288
|
-
* @returns
|
|
1040
|
+
* @param options Repository identification options (project and repository)
|
|
1041
|
+
* @returns The normalized default branch name (e.g., "main"), or undefined if not found
|
|
289
1042
|
*/
|
|
290
|
-
getDefaultBranch(
|
|
1043
|
+
getDefaultBranch(options: AzdoRepositoryOptions): Promise<string | undefined>;
|
|
291
1044
|
/**
|
|
292
1045
|
* Get the list of branch names for a repository.
|
|
1046
|
+
*
|
|
293
1047
|
* Requires scope "Code (Read)" (vso.code).
|
|
294
|
-
* @param project
|
|
295
|
-
* @
|
|
296
|
-
* @returns
|
|
1048
|
+
* @param options Repository identification options (project and repository)
|
|
1049
|
+
* @returns Array of normalized branch names, or undefined if not found
|
|
297
1050
|
*/
|
|
298
|
-
getBranchNames(
|
|
1051
|
+
getBranchNames(options: AzdoRepositoryOptions): Promise<string[] | undefined>;
|
|
299
1052
|
/**
|
|
300
|
-
* Get the properties for all active pull
|
|
1053
|
+
* Get the properties for all active pull requests created by the specified user.
|
|
1054
|
+
* This retrieves both the pull request IDs and their associated properties.
|
|
1055
|
+
*
|
|
301
1056
|
* Requires scope "Code (Read)" (vso.code).
|
|
302
|
-
* @param
|
|
303
|
-
* @
|
|
304
|
-
* @param creator
|
|
305
|
-
* @returns
|
|
1057
|
+
* @param options Repository identification options including the creator user ID
|
|
1058
|
+
* @returns Array of pull request IDs with their properties, empty array on error
|
|
306
1059
|
*/
|
|
307
|
-
getActivePullRequestProperties(
|
|
1060
|
+
getActivePullRequestProperties({
|
|
1061
|
+
project,
|
|
1062
|
+
repository,
|
|
1063
|
+
creatorId
|
|
1064
|
+
}: AzdoRepositoryOptions & {
|
|
1065
|
+
creatorId: string;
|
|
1066
|
+
}): Promise<AzdoPrExtractedWithProperties[]>;
|
|
308
1067
|
/**
|
|
309
|
-
* Create a new pull request.
|
|
1068
|
+
* Create a new pull request with the specified changes.
|
|
1069
|
+
* This method performs the following operations:
|
|
1070
|
+
* 1. Resolves assignee identities for assignees (if specified)
|
|
1071
|
+
* 2. Creates a new branch and pushes changes
|
|
1072
|
+
* 3. Creates the pull request with assignees (optional reviewers), labels, and work items
|
|
1073
|
+
* 4. Sets pull request properties for dependency metadata
|
|
1074
|
+
* 5. Configures auto-complete options (if specified)
|
|
1075
|
+
*
|
|
310
1076
|
* Requires scope "Code (Write)" (vso.code_write).
|
|
311
1077
|
* Requires scope "Identity (Read)" (vso.identity), if assignees are specified.
|
|
312
|
-
* @param
|
|
313
|
-
* @returns
|
|
1078
|
+
* @param options Pull request creation options including changes, assignees, and auto-complete settings
|
|
1079
|
+
* @returns The created pull request ID, or null on error
|
|
314
1080
|
*/
|
|
315
|
-
createPullRequest(
|
|
1081
|
+
createPullRequest(options: AzdoPullRequestCreateOptions): Promise<number | null>;
|
|
316
1082
|
/**
|
|
317
|
-
* Update
|
|
1083
|
+
* Update an existing pull request with new changes.
|
|
1084
|
+
* This method performs the following operations:
|
|
1085
|
+
* 1. Validates the pull request hasn't been modified by another author
|
|
1086
|
+
* 2. Checks if the source branch is behind the target branch
|
|
1087
|
+
* 3. Rebases the target branch into the source branch if needed
|
|
1088
|
+
* 4. Pushes the new changes to the source branch
|
|
1089
|
+
*
|
|
318
1090
|
* Requires scope "Code (Read & Write)" (vso.code, vso.code_write).
|
|
319
|
-
* @param
|
|
320
|
-
* @returns
|
|
1091
|
+
* @param options Pull request update options including the commit and changes
|
|
1092
|
+
* @returns True if successful, false on error
|
|
321
1093
|
*/
|
|
322
|
-
updatePullRequest(
|
|
1094
|
+
updatePullRequest(options: AzdoPullRequestUpdateOptions): Promise<boolean>;
|
|
323
1095
|
/**
|
|
324
|
-
* Approve a pull request.
|
|
1096
|
+
* Approve a pull request as the authenticated user.
|
|
1097
|
+
* Sets the reviewer vote to 10 (approved).
|
|
1098
|
+
*
|
|
325
1099
|
* Requires scope "Code (Write)" (vso.code_write).
|
|
326
|
-
* @param
|
|
327
|
-
* @returns
|
|
1100
|
+
* @param options Pull request identification options
|
|
1101
|
+
* @returns True if successful, false on error
|
|
328
1102
|
*/
|
|
329
|
-
approvePullRequest(
|
|
1103
|
+
approvePullRequest(options: AzdoPullRequestOptions): Promise<boolean>;
|
|
330
1104
|
/**
|
|
331
|
-
* Abandon a pull request.
|
|
1105
|
+
* Abandon a pull request and optionally delete its source branch.
|
|
1106
|
+
* This method performs the following operations:
|
|
1107
|
+
* 1. Adds an optional comment explaining the abandonment reason
|
|
1108
|
+
* 2. Sets the pull request status to abandoned
|
|
1109
|
+
* 3. Deletes the source branch if requested
|
|
1110
|
+
*
|
|
332
1111
|
* Requires scope "Code (Write)" (vso.code_write).
|
|
333
|
-
* @param
|
|
334
|
-
* @returns
|
|
1112
|
+
* @param options Pull request abandonment options including optional comment and branch deletion flag
|
|
1113
|
+
* @returns True if successful, false on error
|
|
335
1114
|
*/
|
|
336
|
-
abandonPullRequest(
|
|
1115
|
+
abandonPullRequest(options: AzdoPullRequestAbandonOptions): Promise<boolean>;
|
|
337
1116
|
/**
|
|
338
1117
|
* Add a comment thread on a pull request.
|
|
1118
|
+
* The comment thread is created with a closed status and system comment type.
|
|
1119
|
+
*
|
|
339
1120
|
* Requires scope "Code (Write)" (vso.code_write).
|
|
1121
|
+
* @param options Comment creation options including content and optional user ID
|
|
1122
|
+
* @returns The created thread ID, or undefined on error
|
|
340
1123
|
*/
|
|
341
|
-
addCommentThread(
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
1124
|
+
addCommentThread(options: AzdoPullRequestCommentCreateOptions): Promise<number | undefined>;
|
|
1125
|
+
/**
|
|
1126
|
+
* Create or update webhook subscriptions for Azure DevOps events.
|
|
1127
|
+
* This sets up subscriptions for various git events (push, pull request updates, repository changes, etc.)
|
|
1128
|
+
* and ensures they are configured to send webhooks to the specified URL.
|
|
1129
|
+
* Existing subscriptions matching the URL will be updated, otherwise new subscriptions are created.
|
|
1130
|
+
*
|
|
1131
|
+
* Requires scope "Service Hooks (Read & Write)" (vso.hooks_write).
|
|
1132
|
+
* @returns Array of subscription IDs that were created or updated
|
|
1133
|
+
*/
|
|
1134
|
+
createOrUpdateHookSubscriptions({
|
|
1135
|
+
url,
|
|
1136
|
+
headers,
|
|
1137
|
+
project
|
|
1138
|
+
}: {
|
|
1139
|
+
url: string;
|
|
1140
|
+
headers: Record<string, string>;
|
|
1141
|
+
project: string;
|
|
1142
|
+
}): Promise<void>;
|
|
1143
|
+
/**
|
|
1144
|
+
* Remove all webhook subscriptions for a specific URL.
|
|
1145
|
+
* This finds all subscriptions matching the provided URL and deletes them.
|
|
1146
|
+
*
|
|
1147
|
+
* Requires scope "Service Hooks (Read & Write)" (vso.hooks_write).
|
|
1148
|
+
*/
|
|
1149
|
+
deleteHookSubscriptions({
|
|
1150
|
+
url,
|
|
1151
|
+
project
|
|
1152
|
+
}: {
|
|
1153
|
+
url: string;
|
|
1154
|
+
project: string;
|
|
1155
|
+
}): Promise<void>;
|
|
1156
|
+
private mergeCommitMessage;
|
|
1157
|
+
private isGuid;
|
|
1158
|
+
private buildSubscriptionsQuery;
|
|
1159
|
+
private makeTfsPublisherInputs;
|
|
1160
|
+
private makeWebhookConsumerInputs;
|
|
346
1161
|
}
|
|
347
|
-
declare function sendRestApiRequestWithRetry(method: string, url: string, payload: unknown, requestAsync: () => Promise<Response>, isDebug?: boolean, retryCount?: number, retryDelay?: number): Promise<any>;
|
|
348
1162
|
//#endregion
|
|
349
1163
|
//#region src/azure/config.d.ts
|
|
350
1164
|
/**
|
|
351
1165
|
* Parse the dependabot config YAML file to specify update configuration.
|
|
352
|
-
* The file should be located at any of `
|
|
1166
|
+
* The file should be located at any of `CONFIG_FILE_PATHS_AZURE`.
|
|
353
1167
|
*
|
|
354
1168
|
* To view YAML file format, visit
|
|
355
1169
|
* https://docs.github.com/en/github/administering-a-repository/configuration-options-for-dependency-updates#allow
|
|
@@ -373,33 +1187,535 @@ declare function getDependabotConfig({
|
|
|
373
1187
|
variableFinder: VariableFinderFn;
|
|
374
1188
|
}): Promise<DependabotConfig>;
|
|
375
1189
|
//#endregion
|
|
376
|
-
//#region src/azure/
|
|
377
|
-
declare
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
declare
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
1190
|
+
//#region src/azure/events.d.ts
|
|
1191
|
+
declare const AzdoEventTypeSchema: z.ZodEnum<{
|
|
1192
|
+
"git.push": "git.push";
|
|
1193
|
+
"git.pullrequest.updated": "git.pullrequest.updated";
|
|
1194
|
+
"git.pullrequest.merged": "git.pullrequest.merged";
|
|
1195
|
+
"git.repo.created": "git.repo.created";
|
|
1196
|
+
"git.repo.deleted": "git.repo.deleted";
|
|
1197
|
+
"git.repo.renamed": "git.repo.renamed";
|
|
1198
|
+
"git.repo.statuschanged": "git.repo.statuschanged";
|
|
1199
|
+
"ms.vss-code.git-pullrequest-comment-event": "ms.vss-code.git-pullrequest-comment-event";
|
|
1200
|
+
}>;
|
|
1201
|
+
type AzdoEventType = z.infer<typeof AzdoEventTypeSchema>;
|
|
1202
|
+
declare const AzdoEventRepositorySchema: z.ZodObject<{
|
|
1203
|
+
id: z.ZodString;
|
|
1204
|
+
name: z.ZodString;
|
|
1205
|
+
project: z.ZodObject<{
|
|
1206
|
+
id: z.ZodString;
|
|
1207
|
+
name: z.ZodString;
|
|
1208
|
+
url: z.ZodString;
|
|
1209
|
+
}, z.core.$strip>;
|
|
1210
|
+
defaultBranch: z.ZodOptional<z.ZodString>;
|
|
1211
|
+
remoteUrl: z.ZodString;
|
|
1212
|
+
}, z.core.$strip>;
|
|
1213
|
+
declare const AzdoEventCodePushResourceSchema: z.ZodObject<{
|
|
1214
|
+
repository: z.ZodObject<{
|
|
1215
|
+
id: z.ZodString;
|
|
1216
|
+
name: z.ZodString;
|
|
1217
|
+
project: z.ZodObject<{
|
|
1218
|
+
id: z.ZodString;
|
|
1219
|
+
name: z.ZodString;
|
|
1220
|
+
url: z.ZodString;
|
|
1221
|
+
}, z.core.$strip>;
|
|
1222
|
+
defaultBranch: z.ZodOptional<z.ZodString>;
|
|
1223
|
+
remoteUrl: z.ZodString;
|
|
1224
|
+
}, z.core.$strip>;
|
|
1225
|
+
commits: z.ZodArray<z.ZodObject<{
|
|
1226
|
+
commitId: z.ZodString;
|
|
1227
|
+
author: z.ZodOptional<z.ZodObject<{
|
|
1228
|
+
name: z.ZodString;
|
|
1229
|
+
email: z.ZodString;
|
|
1230
|
+
date: z.ZodOptional<z.ZodString>;
|
|
1231
|
+
}, z.core.$strip>>;
|
|
1232
|
+
committer: z.ZodOptional<z.ZodObject<{
|
|
1233
|
+
name: z.ZodString;
|
|
1234
|
+
email: z.ZodString;
|
|
1235
|
+
date: z.ZodOptional<z.ZodString>;
|
|
1236
|
+
}, z.core.$strip>>;
|
|
1237
|
+
changes: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1238
|
+
changeType: z.ZodEnum<{
|
|
1239
|
+
none: "none";
|
|
1240
|
+
add: "add";
|
|
1241
|
+
edit: "edit";
|
|
1242
|
+
encoding: "encoding";
|
|
1243
|
+
rename: "rename";
|
|
1244
|
+
delete: "delete";
|
|
1245
|
+
undelete: "undelete";
|
|
1246
|
+
branch: "branch";
|
|
1247
|
+
merge: "merge";
|
|
1248
|
+
lock: "lock";
|
|
1249
|
+
rollback: "rollback";
|
|
1250
|
+
sourceRename: "sourceRename";
|
|
1251
|
+
targetRename: "targetRename";
|
|
1252
|
+
property: "property";
|
|
1253
|
+
all: "all";
|
|
1254
|
+
}>;
|
|
1255
|
+
item: z.ZodOptional<z.ZodObject<{
|
|
1256
|
+
path: z.ZodString;
|
|
1257
|
+
}, z.core.$strip>>;
|
|
1258
|
+
newContent: z.ZodOptional<z.ZodObject<{
|
|
1259
|
+
content: z.ZodString;
|
|
1260
|
+
contentType: z.ZodEnum<{
|
|
1261
|
+
rawtext: "rawtext";
|
|
1262
|
+
base64encoded: "base64encoded";
|
|
1263
|
+
}>;
|
|
1264
|
+
}, z.core.$strip>>;
|
|
1265
|
+
originalPath: z.ZodOptional<z.ZodString>;
|
|
1266
|
+
}, z.core.$strip>>>;
|
|
1267
|
+
}, z.core.$strip>>;
|
|
1268
|
+
refUpdates: z.ZodArray<z.ZodObject<{
|
|
1269
|
+
name: z.ZodString;
|
|
1270
|
+
oldObjectId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1271
|
+
newObjectId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1272
|
+
}, z.core.$strip>>;
|
|
1273
|
+
pushId: z.ZodNumber;
|
|
1274
|
+
url: z.ZodString;
|
|
1275
|
+
}, z.core.$strip>;
|
|
1276
|
+
type AzdoEventCodePushResource = z.infer<typeof AzdoEventCodePushResourceSchema>;
|
|
1277
|
+
declare const AzdoEventPullRequestResourceSchema: z.ZodObject<{
|
|
1278
|
+
repository: z.ZodObject<{
|
|
1279
|
+
id: z.ZodString;
|
|
1280
|
+
name: z.ZodString;
|
|
1281
|
+
project: z.ZodObject<{
|
|
1282
|
+
id: z.ZodString;
|
|
1283
|
+
name: z.ZodString;
|
|
1284
|
+
url: z.ZodString;
|
|
1285
|
+
}, z.core.$strip>;
|
|
1286
|
+
defaultBranch: z.ZodOptional<z.ZodString>;
|
|
1287
|
+
remoteUrl: z.ZodString;
|
|
1288
|
+
}, z.core.$strip>;
|
|
1289
|
+
pullRequestId: z.ZodNumber;
|
|
1290
|
+
status: z.ZodEnum<{
|
|
1291
|
+
all: "all";
|
|
1292
|
+
notSet: "notSet";
|
|
1293
|
+
active: "active";
|
|
1294
|
+
abandoned: "abandoned";
|
|
1295
|
+
completed: "completed";
|
|
1296
|
+
}>;
|
|
1297
|
+
createdBy: z.ZodObject<{
|
|
1298
|
+
id: z.ZodOptional<z.ZodString>;
|
|
1299
|
+
displayName: z.ZodOptional<z.ZodString>;
|
|
1300
|
+
uniqueName: z.ZodOptional<z.ZodString>;
|
|
1301
|
+
url: z.ZodOptional<z.ZodString>;
|
|
1302
|
+
}, z.core.$strip>;
|
|
1303
|
+
title: z.ZodString;
|
|
1304
|
+
sourceRefName: z.ZodString;
|
|
1305
|
+
targetRefName: z.ZodString;
|
|
1306
|
+
mergeStatus: z.ZodEnum<{
|
|
1307
|
+
notSet: "notSet";
|
|
1308
|
+
queued: "queued";
|
|
1309
|
+
conflicts: "conflicts";
|
|
1310
|
+
succeeded: "succeeded";
|
|
1311
|
+
rejectedByPolicy: "rejectedByPolicy";
|
|
1312
|
+
failure: "failure";
|
|
1313
|
+
}>;
|
|
1314
|
+
mergeId: z.ZodString;
|
|
1315
|
+
url: z.ZodString;
|
|
1316
|
+
}, z.core.$strip>;
|
|
1317
|
+
type AzdoEventPullRequestResource = z.infer<typeof AzdoEventPullRequestResourceSchema>;
|
|
1318
|
+
declare const AzdoEventRepositoryCreatedResourceSchema: z.ZodObject<{
|
|
1319
|
+
repository: z.ZodObject<{
|
|
1320
|
+
id: z.ZodString;
|
|
1321
|
+
name: z.ZodString;
|
|
1322
|
+
project: z.ZodObject<{
|
|
1323
|
+
id: z.ZodString;
|
|
1324
|
+
name: z.ZodString;
|
|
1325
|
+
url: z.ZodString;
|
|
1326
|
+
}, z.core.$strip>;
|
|
1327
|
+
defaultBranch: z.ZodOptional<z.ZodString>;
|
|
1328
|
+
remoteUrl: z.ZodString;
|
|
1329
|
+
}, z.core.$strip>;
|
|
1330
|
+
}, z.core.$strip>;
|
|
1331
|
+
type AzdoEventRepositoryCreatedResource = z.infer<typeof AzdoEventRepositoryCreatedResourceSchema>;
|
|
1332
|
+
declare const AzdoEventRepositoryDeletedResourceSchema: z.ZodObject<{
|
|
1333
|
+
project: z.ZodObject<{
|
|
1334
|
+
id: z.ZodString;
|
|
1335
|
+
name: z.ZodString;
|
|
1336
|
+
url: z.ZodString;
|
|
1337
|
+
}, z.core.$strip>;
|
|
1338
|
+
repositoryId: z.ZodString;
|
|
1339
|
+
repositoryName: z.ZodString;
|
|
1340
|
+
isHardDelete: z.ZodBoolean;
|
|
1341
|
+
}, z.core.$strip>;
|
|
1342
|
+
type AzdoEventRepositoryDeletedResource = z.infer<typeof AzdoEventRepositoryDeletedResourceSchema>;
|
|
1343
|
+
declare const AzdoEventRepositoryRenamedResourceSchema: z.ZodObject<{
|
|
1344
|
+
oldName: z.ZodString;
|
|
1345
|
+
newName: z.ZodString;
|
|
1346
|
+
repository: z.ZodObject<{
|
|
1347
|
+
id: z.ZodString;
|
|
1348
|
+
name: z.ZodString;
|
|
1349
|
+
project: z.ZodObject<{
|
|
1350
|
+
id: z.ZodString;
|
|
1351
|
+
name: z.ZodString;
|
|
1352
|
+
url: z.ZodString;
|
|
1353
|
+
}, z.core.$strip>;
|
|
1354
|
+
defaultBranch: z.ZodOptional<z.ZodString>;
|
|
1355
|
+
remoteUrl: z.ZodString;
|
|
1356
|
+
}, z.core.$strip>;
|
|
1357
|
+
}, z.core.$strip>;
|
|
1358
|
+
type AzdoEventRepositoryRenamedResource = z.infer<typeof AzdoEventRepositoryRenamedResourceSchema>;
|
|
1359
|
+
declare const AzdoEventRepositoryStatusChangedResourceSchema: z.ZodObject<{
|
|
1360
|
+
disabled: z.ZodBoolean;
|
|
1361
|
+
repository: z.ZodObject<{
|
|
1362
|
+
id: z.ZodString;
|
|
1363
|
+
name: z.ZodString;
|
|
1364
|
+
project: z.ZodObject<{
|
|
1365
|
+
id: z.ZodString;
|
|
1366
|
+
name: z.ZodString;
|
|
1367
|
+
url: z.ZodString;
|
|
1368
|
+
}, z.core.$strip>;
|
|
1369
|
+
defaultBranch: z.ZodOptional<z.ZodString>;
|
|
1370
|
+
remoteUrl: z.ZodString;
|
|
1371
|
+
}, z.core.$strip>;
|
|
1372
|
+
}, z.core.$strip>;
|
|
1373
|
+
type AzdoEventRepositoryStatusChangedResource = z.infer<typeof AzdoEventRepositoryStatusChangedResourceSchema>;
|
|
1374
|
+
declare const AzdoEventPullRequestCommentEventResourceSchema: z.ZodObject<{
|
|
1375
|
+
pullRequest: z.ZodObject<{
|
|
1376
|
+
repository: z.ZodObject<{
|
|
1377
|
+
id: z.ZodString;
|
|
1378
|
+
name: z.ZodString;
|
|
1379
|
+
project: z.ZodObject<{
|
|
1380
|
+
id: z.ZodString;
|
|
1381
|
+
name: z.ZodString;
|
|
1382
|
+
url: z.ZodString;
|
|
1383
|
+
}, z.core.$strip>;
|
|
1384
|
+
defaultBranch: z.ZodOptional<z.ZodString>;
|
|
1385
|
+
remoteUrl: z.ZodString;
|
|
1386
|
+
}, z.core.$strip>;
|
|
1387
|
+
pullRequestId: z.ZodNumber;
|
|
1388
|
+
status: z.ZodEnum<{
|
|
1389
|
+
all: "all";
|
|
1390
|
+
notSet: "notSet";
|
|
1391
|
+
active: "active";
|
|
1392
|
+
abandoned: "abandoned";
|
|
1393
|
+
completed: "completed";
|
|
1394
|
+
}>;
|
|
1395
|
+
createdBy: z.ZodObject<{
|
|
1396
|
+
id: z.ZodOptional<z.ZodString>;
|
|
1397
|
+
displayName: z.ZodOptional<z.ZodString>;
|
|
1398
|
+
uniqueName: z.ZodOptional<z.ZodString>;
|
|
1399
|
+
url: z.ZodOptional<z.ZodString>;
|
|
1400
|
+
}, z.core.$strip>;
|
|
1401
|
+
title: z.ZodString;
|
|
1402
|
+
sourceRefName: z.ZodString;
|
|
1403
|
+
targetRefName: z.ZodString;
|
|
1404
|
+
mergeStatus: z.ZodEnum<{
|
|
1405
|
+
notSet: "notSet";
|
|
1406
|
+
queued: "queued";
|
|
1407
|
+
conflicts: "conflicts";
|
|
1408
|
+
succeeded: "succeeded";
|
|
1409
|
+
rejectedByPolicy: "rejectedByPolicy";
|
|
1410
|
+
failure: "failure";
|
|
1411
|
+
}>;
|
|
1412
|
+
mergeId: z.ZodString;
|
|
1413
|
+
url: z.ZodString;
|
|
1414
|
+
}, z.core.$strip>;
|
|
1415
|
+
comment: z.ZodObject<{
|
|
1416
|
+
id: z.ZodOptional<z.ZodNumber>;
|
|
1417
|
+
parentCommentId: z.ZodOptional<z.ZodNumber>;
|
|
1418
|
+
content: z.ZodString;
|
|
1419
|
+
commentType: z.ZodEnum<{
|
|
1420
|
+
unknown: "unknown";
|
|
1421
|
+
text: "text";
|
|
1422
|
+
codeChange: "codeChange";
|
|
1423
|
+
system: "system";
|
|
1424
|
+
}>;
|
|
1425
|
+
publishedDate: z.ZodOptional<z.ZodString>;
|
|
1426
|
+
author: z.ZodObject<{
|
|
1427
|
+
id: z.ZodOptional<z.ZodString>;
|
|
1428
|
+
displayName: z.ZodOptional<z.ZodString>;
|
|
1429
|
+
uniqueName: z.ZodOptional<z.ZodString>;
|
|
1430
|
+
url: z.ZodOptional<z.ZodString>;
|
|
1431
|
+
}, z.core.$strip>;
|
|
1432
|
+
}, z.core.$strip>;
|
|
1433
|
+
}, z.core.$strip>;
|
|
1434
|
+
type AzdoEventPullRequestCommentEventResource = z.infer<typeof AzdoEventPullRequestCommentEventResourceSchema>;
|
|
1435
|
+
declare const AzdoEventSchema: z.ZodIntersection<z.ZodObject<{
|
|
1436
|
+
subscriptionId: z.ZodString;
|
|
1437
|
+
notificationId: z.ZodNumber;
|
|
1438
|
+
id: z.ZodString;
|
|
1439
|
+
publisherId: z.ZodString;
|
|
1440
|
+
resourceVersion: z.ZodEnum<{
|
|
1441
|
+
"1.0": "1.0";
|
|
1442
|
+
"1.0-preview.1": "1.0-preview.1";
|
|
1443
|
+
"2.0": "2.0";
|
|
1444
|
+
}>;
|
|
1445
|
+
createdDate: z.ZodCoercedDate<unknown>;
|
|
1446
|
+
}, z.core.$strip>, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1447
|
+
eventType: z.ZodLiteral<"git.push">;
|
|
1448
|
+
resource: z.ZodObject<{
|
|
1449
|
+
repository: z.ZodObject<{
|
|
1450
|
+
id: z.ZodString;
|
|
1451
|
+
name: z.ZodString;
|
|
1452
|
+
project: z.ZodObject<{
|
|
1453
|
+
id: z.ZodString;
|
|
1454
|
+
name: z.ZodString;
|
|
1455
|
+
url: z.ZodString;
|
|
1456
|
+
}, z.core.$strip>;
|
|
1457
|
+
defaultBranch: z.ZodOptional<z.ZodString>;
|
|
1458
|
+
remoteUrl: z.ZodString;
|
|
1459
|
+
}, z.core.$strip>;
|
|
1460
|
+
commits: z.ZodArray<z.ZodObject<{
|
|
1461
|
+
commitId: z.ZodString;
|
|
1462
|
+
author: z.ZodOptional<z.ZodObject<{
|
|
1463
|
+
name: z.ZodString;
|
|
1464
|
+
email: z.ZodString;
|
|
1465
|
+
date: z.ZodOptional<z.ZodString>;
|
|
1466
|
+
}, z.core.$strip>>;
|
|
1467
|
+
committer: z.ZodOptional<z.ZodObject<{
|
|
1468
|
+
name: z.ZodString;
|
|
1469
|
+
email: z.ZodString;
|
|
1470
|
+
date: z.ZodOptional<z.ZodString>;
|
|
1471
|
+
}, z.core.$strip>>;
|
|
1472
|
+
changes: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1473
|
+
changeType: z.ZodEnum<{
|
|
1474
|
+
none: "none";
|
|
1475
|
+
add: "add";
|
|
1476
|
+
edit: "edit";
|
|
1477
|
+
encoding: "encoding";
|
|
1478
|
+
rename: "rename";
|
|
1479
|
+
delete: "delete";
|
|
1480
|
+
undelete: "undelete";
|
|
1481
|
+
branch: "branch";
|
|
1482
|
+
merge: "merge";
|
|
1483
|
+
lock: "lock";
|
|
1484
|
+
rollback: "rollback";
|
|
1485
|
+
sourceRename: "sourceRename";
|
|
1486
|
+
targetRename: "targetRename";
|
|
1487
|
+
property: "property";
|
|
1488
|
+
all: "all";
|
|
1489
|
+
}>;
|
|
1490
|
+
item: z.ZodOptional<z.ZodObject<{
|
|
1491
|
+
path: z.ZodString;
|
|
1492
|
+
}, z.core.$strip>>;
|
|
1493
|
+
newContent: z.ZodOptional<z.ZodObject<{
|
|
1494
|
+
content: z.ZodString;
|
|
1495
|
+
contentType: z.ZodEnum<{
|
|
1496
|
+
rawtext: "rawtext";
|
|
1497
|
+
base64encoded: "base64encoded";
|
|
1498
|
+
}>;
|
|
1499
|
+
}, z.core.$strip>>;
|
|
1500
|
+
originalPath: z.ZodOptional<z.ZodString>;
|
|
1501
|
+
}, z.core.$strip>>>;
|
|
1502
|
+
}, z.core.$strip>>;
|
|
1503
|
+
refUpdates: z.ZodArray<z.ZodObject<{
|
|
1504
|
+
name: z.ZodString;
|
|
1505
|
+
oldObjectId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1506
|
+
newObjectId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1507
|
+
}, z.core.$strip>>;
|
|
1508
|
+
pushId: z.ZodNumber;
|
|
1509
|
+
url: z.ZodString;
|
|
1510
|
+
}, z.core.$strip>;
|
|
1511
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1512
|
+
eventType: z.ZodLiteral<"git.pullrequest.updated">;
|
|
1513
|
+
resource: z.ZodObject<{
|
|
1514
|
+
repository: z.ZodObject<{
|
|
1515
|
+
id: z.ZodString;
|
|
1516
|
+
name: z.ZodString;
|
|
1517
|
+
project: z.ZodObject<{
|
|
1518
|
+
id: z.ZodString;
|
|
1519
|
+
name: z.ZodString;
|
|
1520
|
+
url: z.ZodString;
|
|
1521
|
+
}, z.core.$strip>;
|
|
1522
|
+
defaultBranch: z.ZodOptional<z.ZodString>;
|
|
1523
|
+
remoteUrl: z.ZodString;
|
|
1524
|
+
}, z.core.$strip>;
|
|
1525
|
+
pullRequestId: z.ZodNumber;
|
|
1526
|
+
status: z.ZodEnum<{
|
|
1527
|
+
all: "all";
|
|
1528
|
+
notSet: "notSet";
|
|
1529
|
+
active: "active";
|
|
1530
|
+
abandoned: "abandoned";
|
|
1531
|
+
completed: "completed";
|
|
1532
|
+
}>;
|
|
1533
|
+
createdBy: z.ZodObject<{
|
|
1534
|
+
id: z.ZodOptional<z.ZodString>;
|
|
1535
|
+
displayName: z.ZodOptional<z.ZodString>;
|
|
1536
|
+
uniqueName: z.ZodOptional<z.ZodString>;
|
|
1537
|
+
url: z.ZodOptional<z.ZodString>;
|
|
1538
|
+
}, z.core.$strip>;
|
|
1539
|
+
title: z.ZodString;
|
|
1540
|
+
sourceRefName: z.ZodString;
|
|
1541
|
+
targetRefName: z.ZodString;
|
|
1542
|
+
mergeStatus: z.ZodEnum<{
|
|
1543
|
+
notSet: "notSet";
|
|
1544
|
+
queued: "queued";
|
|
1545
|
+
conflicts: "conflicts";
|
|
1546
|
+
succeeded: "succeeded";
|
|
1547
|
+
rejectedByPolicy: "rejectedByPolicy";
|
|
1548
|
+
failure: "failure";
|
|
1549
|
+
}>;
|
|
1550
|
+
mergeId: z.ZodString;
|
|
1551
|
+
url: z.ZodString;
|
|
1552
|
+
}, z.core.$strip>;
|
|
1553
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1554
|
+
eventType: z.ZodLiteral<"git.pullrequest.merged">;
|
|
1555
|
+
resource: z.ZodObject<{
|
|
1556
|
+
repository: z.ZodObject<{
|
|
1557
|
+
id: z.ZodString;
|
|
1558
|
+
name: z.ZodString;
|
|
1559
|
+
project: z.ZodObject<{
|
|
1560
|
+
id: z.ZodString;
|
|
1561
|
+
name: z.ZodString;
|
|
1562
|
+
url: z.ZodString;
|
|
1563
|
+
}, z.core.$strip>;
|
|
1564
|
+
defaultBranch: z.ZodOptional<z.ZodString>;
|
|
1565
|
+
remoteUrl: z.ZodString;
|
|
1566
|
+
}, z.core.$strip>;
|
|
1567
|
+
pullRequestId: z.ZodNumber;
|
|
1568
|
+
status: z.ZodEnum<{
|
|
1569
|
+
all: "all";
|
|
1570
|
+
notSet: "notSet";
|
|
1571
|
+
active: "active";
|
|
1572
|
+
abandoned: "abandoned";
|
|
1573
|
+
completed: "completed";
|
|
1574
|
+
}>;
|
|
1575
|
+
createdBy: z.ZodObject<{
|
|
1576
|
+
id: z.ZodOptional<z.ZodString>;
|
|
1577
|
+
displayName: z.ZodOptional<z.ZodString>;
|
|
1578
|
+
uniqueName: z.ZodOptional<z.ZodString>;
|
|
1579
|
+
url: z.ZodOptional<z.ZodString>;
|
|
1580
|
+
}, z.core.$strip>;
|
|
1581
|
+
title: z.ZodString;
|
|
1582
|
+
sourceRefName: z.ZodString;
|
|
1583
|
+
targetRefName: z.ZodString;
|
|
1584
|
+
mergeStatus: z.ZodEnum<{
|
|
1585
|
+
notSet: "notSet";
|
|
1586
|
+
queued: "queued";
|
|
1587
|
+
conflicts: "conflicts";
|
|
1588
|
+
succeeded: "succeeded";
|
|
1589
|
+
rejectedByPolicy: "rejectedByPolicy";
|
|
1590
|
+
failure: "failure";
|
|
1591
|
+
}>;
|
|
1592
|
+
mergeId: z.ZodString;
|
|
1593
|
+
url: z.ZodString;
|
|
1594
|
+
}, z.core.$strip>;
|
|
1595
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1596
|
+
eventType: z.ZodLiteral<"git.repo.created">;
|
|
1597
|
+
resource: z.ZodObject<{
|
|
1598
|
+
repository: z.ZodObject<{
|
|
1599
|
+
id: z.ZodString;
|
|
1600
|
+
name: z.ZodString;
|
|
1601
|
+
project: z.ZodObject<{
|
|
1602
|
+
id: z.ZodString;
|
|
1603
|
+
name: z.ZodString;
|
|
1604
|
+
url: z.ZodString;
|
|
1605
|
+
}, z.core.$strip>;
|
|
1606
|
+
defaultBranch: z.ZodOptional<z.ZodString>;
|
|
1607
|
+
remoteUrl: z.ZodString;
|
|
1608
|
+
}, z.core.$strip>;
|
|
1609
|
+
}, z.core.$strip>;
|
|
1610
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1611
|
+
eventType: z.ZodLiteral<"git.repo.deleted">;
|
|
1612
|
+
resource: z.ZodObject<{
|
|
1613
|
+
project: z.ZodObject<{
|
|
1614
|
+
id: z.ZodString;
|
|
1615
|
+
name: z.ZodString;
|
|
1616
|
+
url: z.ZodString;
|
|
1617
|
+
}, z.core.$strip>;
|
|
1618
|
+
repositoryId: z.ZodString;
|
|
1619
|
+
repositoryName: z.ZodString;
|
|
1620
|
+
isHardDelete: z.ZodBoolean;
|
|
1621
|
+
}, z.core.$strip>;
|
|
1622
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1623
|
+
eventType: z.ZodLiteral<"git.repo.renamed">;
|
|
1624
|
+
resource: z.ZodObject<{
|
|
1625
|
+
oldName: z.ZodString;
|
|
1626
|
+
newName: z.ZodString;
|
|
1627
|
+
repository: z.ZodObject<{
|
|
1628
|
+
id: z.ZodString;
|
|
1629
|
+
name: z.ZodString;
|
|
1630
|
+
project: z.ZodObject<{
|
|
1631
|
+
id: z.ZodString;
|
|
1632
|
+
name: z.ZodString;
|
|
1633
|
+
url: z.ZodString;
|
|
1634
|
+
}, z.core.$strip>;
|
|
1635
|
+
defaultBranch: z.ZodOptional<z.ZodString>;
|
|
1636
|
+
remoteUrl: z.ZodString;
|
|
1637
|
+
}, z.core.$strip>;
|
|
1638
|
+
}, z.core.$strip>;
|
|
1639
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1640
|
+
eventType: z.ZodLiteral<"git.repo.statuschanged">;
|
|
1641
|
+
resource: z.ZodObject<{
|
|
1642
|
+
disabled: z.ZodBoolean;
|
|
1643
|
+
repository: z.ZodObject<{
|
|
1644
|
+
id: z.ZodString;
|
|
1645
|
+
name: z.ZodString;
|
|
1646
|
+
project: z.ZodObject<{
|
|
1647
|
+
id: z.ZodString;
|
|
1648
|
+
name: z.ZodString;
|
|
1649
|
+
url: z.ZodString;
|
|
1650
|
+
}, z.core.$strip>;
|
|
1651
|
+
defaultBranch: z.ZodOptional<z.ZodString>;
|
|
1652
|
+
remoteUrl: z.ZodString;
|
|
1653
|
+
}, z.core.$strip>;
|
|
1654
|
+
}, z.core.$strip>;
|
|
1655
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1656
|
+
eventType: z.ZodLiteral<"ms.vss-code.git-pullrequest-comment-event">;
|
|
1657
|
+
resource: z.ZodObject<{
|
|
1658
|
+
pullRequest: z.ZodObject<{
|
|
1659
|
+
repository: z.ZodObject<{
|
|
1660
|
+
id: z.ZodString;
|
|
1661
|
+
name: z.ZodString;
|
|
1662
|
+
project: z.ZodObject<{
|
|
1663
|
+
id: z.ZodString;
|
|
1664
|
+
name: z.ZodString;
|
|
1665
|
+
url: z.ZodString;
|
|
1666
|
+
}, z.core.$strip>;
|
|
1667
|
+
defaultBranch: z.ZodOptional<z.ZodString>;
|
|
1668
|
+
remoteUrl: z.ZodString;
|
|
1669
|
+
}, z.core.$strip>;
|
|
1670
|
+
pullRequestId: z.ZodNumber;
|
|
1671
|
+
status: z.ZodEnum<{
|
|
1672
|
+
all: "all";
|
|
1673
|
+
notSet: "notSet";
|
|
1674
|
+
active: "active";
|
|
1675
|
+
abandoned: "abandoned";
|
|
1676
|
+
completed: "completed";
|
|
1677
|
+
}>;
|
|
1678
|
+
createdBy: z.ZodObject<{
|
|
1679
|
+
id: z.ZodOptional<z.ZodString>;
|
|
1680
|
+
displayName: z.ZodOptional<z.ZodString>;
|
|
1681
|
+
uniqueName: z.ZodOptional<z.ZodString>;
|
|
1682
|
+
url: z.ZodOptional<z.ZodString>;
|
|
1683
|
+
}, z.core.$strip>;
|
|
1684
|
+
title: z.ZodString;
|
|
1685
|
+
sourceRefName: z.ZodString;
|
|
1686
|
+
targetRefName: z.ZodString;
|
|
1687
|
+
mergeStatus: z.ZodEnum<{
|
|
1688
|
+
notSet: "notSet";
|
|
1689
|
+
queued: "queued";
|
|
1690
|
+
conflicts: "conflicts";
|
|
1691
|
+
succeeded: "succeeded";
|
|
1692
|
+
rejectedByPolicy: "rejectedByPolicy";
|
|
1693
|
+
failure: "failure";
|
|
1694
|
+
}>;
|
|
1695
|
+
mergeId: z.ZodString;
|
|
1696
|
+
url: z.ZodString;
|
|
1697
|
+
}, z.core.$strip>;
|
|
1698
|
+
comment: z.ZodObject<{
|
|
1699
|
+
id: z.ZodOptional<z.ZodNumber>;
|
|
1700
|
+
parentCommentId: z.ZodOptional<z.ZodNumber>;
|
|
1701
|
+
content: z.ZodString;
|
|
1702
|
+
commentType: z.ZodEnum<{
|
|
1703
|
+
unknown: "unknown";
|
|
1704
|
+
text: "text";
|
|
1705
|
+
codeChange: "codeChange";
|
|
1706
|
+
system: "system";
|
|
1707
|
+
}>;
|
|
1708
|
+
publishedDate: z.ZodOptional<z.ZodString>;
|
|
1709
|
+
author: z.ZodObject<{
|
|
1710
|
+
id: z.ZodOptional<z.ZodString>;
|
|
1711
|
+
displayName: z.ZodOptional<z.ZodString>;
|
|
1712
|
+
uniqueName: z.ZodOptional<z.ZodString>;
|
|
1713
|
+
url: z.ZodOptional<z.ZodString>;
|
|
1714
|
+
}, z.core.$strip>;
|
|
1715
|
+
}, z.core.$strip>;
|
|
1716
|
+
}, z.core.$strip>;
|
|
1717
|
+
}, z.core.$strip>], "eventType">>;
|
|
1718
|
+
type AzdoEvent = z.infer<typeof AzdoEventSchema>;
|
|
403
1719
|
//#endregion
|
|
404
|
-
export { ANONYMOUS_USER_ID,
|
|
1720
|
+
export { ANONYMOUS_USER_ID, API_VERSION, API_VERSION_PREVIEW, AZDO_PULL_REQUEST_MERGE_STRATEGIES, AzdoCommentThreadStatus, AzdoCommentThreadStatusSchema, AzdoCommentType, AzdoCommentTypeSchema, AzdoConnectionData, AzdoConnectionDataSchema, AzdoEvent, AzdoEventCodePushResource, AzdoEventCodePushResourceSchema, AzdoEventPullRequestCommentEventResource, AzdoEventPullRequestCommentEventResourceSchema, AzdoEventPullRequestResource, AzdoEventPullRequestResourceSchema, AzdoEventRepositoryCreatedResource, AzdoEventRepositoryCreatedResourceSchema, AzdoEventRepositoryDeletedResource, AzdoEventRepositoryDeletedResourceSchema, AzdoEventRepositoryRenamedResource, AzdoEventRepositoryRenamedResourceSchema, AzdoEventRepositorySchema, AzdoEventRepositoryStatusChangedResource, AzdoEventRepositoryStatusChangedResourceSchema, AzdoEventSchema, AzdoEventType, AzdoEventTypeSchema, AzdoFileChange, AzdoGitBranchStats, AzdoGitBranchStatsSchema, AzdoGitChange, AzdoGitChangeSchema, AzdoGitCommitDiffs, AzdoGitCommitDiffsSchema, AzdoGitCommitRef, AzdoGitCommitRefSchema, AzdoGitPush, AzdoGitPushCreate, AzdoGitPushCreateSchema, AzdoGitPushSchema, AzdoGitRef, AzdoGitRefSchema, AzdoGitRefUpdate, AzdoGitRefUpdateResult, AzdoGitRefUpdateResultSchema, AzdoGitRefUpdateSchema, AzdoGitUserDate, AzdoGitUserDateSchema, AzdoIdentity, AzdoIdentityRef, AzdoIdentityRefSchema, AzdoIdentityRefWithVote, AzdoIdentityRefWithVoteSchema, AzdoIdentitySchema, AzdoPrExtractedWithProperties, AzdoProject, AzdoProjectSchema, AzdoProperties, AzdoPropertiesSchema, AzdoPullRequest, AzdoPullRequestAsyncStatus, AzdoPullRequestAsyncStatusSchema, AzdoPullRequestComment, AzdoPullRequestCommentSchema, AzdoPullRequestCommentThread, AzdoPullRequestCommentThreadSchema, AzdoPullRequestMergeStrategy, AzdoPullRequestMergeStrategySchema, AzdoPullRequestSchema, AzdoPullRequestStatus, AzdoPullRequestStatusSchema, AzdoRepository, AzdoRepositoryItem, AzdoRepositoryItemSchema, AzdoRepositorySchema, AzdoResponse, AzdoSubscription, AzdoSubscriptionSchema, AzdoSubscriptionsQuery, AzdoSubscriptionsQueryInputFilter, AzdoSubscriptionsQueryInputFilterSchema, AzdoSubscriptionsQueryResponse, AzdoSubscriptionsQueryResponseSchema, AzdoSubscriptionsQuerySchema, AzdoVersionControlChangeType, AzdoVersionControlChangeTypeSchema, AzureDevOpsClient, AzureDevOpsClientWrapper, type AzureDevOpsOrganizationUrl, type AzureDevOpsProjectUrl, type AzureDevOpsRepositoryUrl, PR_DESCRIPTION_MAX_LENGTH, PR_PROPERTY_DEPENDABOT_DEPENDENCIES, PR_PROPERTY_DEPENDABOT_PACKAGE_MANAGER, PR_PROPERTY_MICROSOFT_GIT_SOURCE_REF_NAME, buildPullRequestProperties, extractOrganizationUrl, extractProjectUrl, extractRepositoryUrl, getDependabotConfig, getPullRequestChangedFiles, getPullRequestForDependencyNames, parsePullRequestProperties };
|
|
405
1721
|
//# sourceMappingURL=index.d.mts.map
|