@distilled.cloud/forgejo 0.0.0 → 1.0.0-rc.9
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/LICENSE +201 -0
- package/README.md +71 -0
- package/lib/credentials.d.ts +35 -0
- package/lib/credentials.d.ts.map +1 -0
- package/lib/credentials.js +57 -0
- package/lib/credentials.js.map +1 -0
- package/lib/errors.d.ts +56 -0
- package/lib/errors.d.ts.map +1 -0
- package/lib/errors.js +36 -0
- package/lib/errors.js.map +1 -0
- package/lib/index.d.ts +28 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +28 -0
- package/lib/index.js.map +1 -0
- package/lib/protocol.d.ts +18 -0
- package/lib/protocol.d.ts.map +1 -0
- package/lib/protocol.js +61 -0
- package/lib/protocol.js.map +1 -0
- package/lib/retry.d.ts +50 -0
- package/lib/retry.d.ts.map +1 -0
- package/lib/retry.js +43 -0
- package/lib/retry.js.map +1 -0
- package/lib/services/activitypub.d.ts +121 -0
- package/lib/services/activitypub.d.ts.map +1 -0
- package/lib/services/activitypub.js +202 -0
- package/lib/services/activitypub.js.map +1 -0
- package/lib/services/admin.d.ts +1196 -0
- package/lib/services/admin.d.ts.map +1 -0
- package/lib/services/admin.js +1276 -0
- package/lib/services/admin.js.map +1 -0
- package/lib/services/index.d.ts +11 -0
- package/lib/services/index.d.ts.map +1 -0
- package/lib/services/index.js +12 -0
- package/lib/services/index.js.map +1 -0
- package/lib/services/issue.d.ts +1479 -0
- package/lib/services/issue.d.ts.map +1 -0
- package/lib/services/issue.js +1732 -0
- package/lib/services/issue.js.map +1 -0
- package/lib/services/miscellaneous.d.ts +494 -0
- package/lib/services/miscellaneous.d.ts.map +1 -0
- package/lib/services/miscellaneous.js +471 -0
- package/lib/services/miscellaneous.js.map +1 -0
- package/lib/services/notification.d.ts +390 -0
- package/lib/services/notification.d.ts.map +1 -0
- package/lib/services/notification.js +344 -0
- package/lib/services/notification.js.map +1 -0
- package/lib/services/organization.d.ts +1593 -0
- package/lib/services/organization.d.ts.map +1 -0
- package/lib/services/organization.js +1672 -0
- package/lib/services/organization.js.map +1 -0
- package/lib/services/package.d.ts +347 -0
- package/lib/services/package.d.ts.map +1 -0
- package/lib/services/package.js +320 -0
- package/lib/services/package.js.map +1 -0
- package/lib/services/repository.d.ts +4770 -0
- package/lib/services/repository.d.ts.map +1 -0
- package/lib/services/repository.js +5449 -0
- package/lib/services/repository.js.map +1 -0
- package/lib/services/settings.d.ts +67 -0
- package/lib/services/settings.d.ts.map +1 -0
- package/lib/services/settings.js +87 -0
- package/lib/services/settings.js.map +1 -0
- package/lib/services/user.d.ts +1764 -0
- package/lib/services/user.d.ts.map +1 -0
- package/lib/services/user.js +1921 -0
- package/lib/services/user.js.map +1 -0
- package/lib/traits.d.ts +10 -0
- package/lib/traits.d.ts.map +1 -0
- package/lib/traits.js +11 -0
- package/lib/traits.js.map +1 -0
- package/package.json +78 -6
- package/src/credentials.ts +89 -0
- package/src/errors.ts +72 -0
- package/src/index.ts +31 -0
- package/src/protocol.ts +86 -0
- package/src/retry.ts +74 -0
- package/src/services/activitypub.ts +415 -0
- package/src/services/admin.ts +3103 -0
- package/src/services/index.ts +11 -0
- package/src/services/issue.ts +3949 -0
- package/src/services/miscellaneous.ts +1118 -0
- package/src/services/notification.ts +847 -0
- package/src/services/organization.ts +4008 -0
- package/src/services/package.ts +767 -0
- package/src/services/repository.ts +12839 -0
- package/src/services/settings.ts +190 -0
- package/src/services/user.ts +4669 -0
- package/src/traits.ts +44 -0
|
@@ -0,0 +1,1479 @@
|
|
|
1
|
+
import * as S from "@distilled.cloud/core/schema";
|
|
2
|
+
import * as API from "@distilled.cloud/core/api";
|
|
3
|
+
import { type ForgejoOpError, type ForgejoOpContext } from "../protocol.ts";
|
|
4
|
+
export type { ForgejoOpError, ForgejoOpContext };
|
|
5
|
+
declare const BadRequest_base: S.Class<BadRequest, S.TaggedStruct<"BadRequest", {
|
|
6
|
+
readonly code: any;
|
|
7
|
+
readonly message: any;
|
|
8
|
+
}>, import("effect/Cause").YieldableError> & (new (...args: any[]) => {
|
|
9
|
+
"@distilled.cloud/error/categories": {
|
|
10
|
+
BadRequestError: true;
|
|
11
|
+
};
|
|
12
|
+
});
|
|
13
|
+
export declare class BadRequest extends /*@__PURE__*/ BadRequest_base {
|
|
14
|
+
}
|
|
15
|
+
declare const Conflict_base: S.Class<Conflict, S.TaggedStruct<"Conflict", {
|
|
16
|
+
readonly code: any;
|
|
17
|
+
readonly message: any;
|
|
18
|
+
}>, import("effect/Cause").YieldableError> & (new (...args: any[]) => {
|
|
19
|
+
"@distilled.cloud/error/categories": {
|
|
20
|
+
ConflictError: true;
|
|
21
|
+
};
|
|
22
|
+
});
|
|
23
|
+
export declare class Conflict extends /*@__PURE__*/ Conflict_base {
|
|
24
|
+
}
|
|
25
|
+
declare const Forbidden_base: S.Class<Forbidden, S.TaggedStruct<"Forbidden", {
|
|
26
|
+
readonly code: any;
|
|
27
|
+
readonly message: any;
|
|
28
|
+
}>, import("effect/Cause").YieldableError> & (new (...args: any[]) => {
|
|
29
|
+
"@distilled.cloud/error/categories": {
|
|
30
|
+
AuthError: true;
|
|
31
|
+
};
|
|
32
|
+
});
|
|
33
|
+
export declare class Forbidden extends /*@__PURE__*/ Forbidden_base {
|
|
34
|
+
}
|
|
35
|
+
declare const Locked_base: S.Class<Locked, S.TaggedStruct<"Locked", {
|
|
36
|
+
readonly code: any;
|
|
37
|
+
readonly message: any;
|
|
38
|
+
}>, import("effect/Cause").YieldableError>;
|
|
39
|
+
export declare class Locked extends /*@__PURE__*/ Locked_base {
|
|
40
|
+
}
|
|
41
|
+
declare const NotFound_base: S.Class<NotFound, S.TaggedStruct<"NotFound", {
|
|
42
|
+
readonly code: any;
|
|
43
|
+
readonly message: any;
|
|
44
|
+
}>, import("effect/Cause").YieldableError> & (new (...args: any[]) => {
|
|
45
|
+
"@distilled.cloud/error/categories": {
|
|
46
|
+
BadRequestError: true;
|
|
47
|
+
};
|
|
48
|
+
});
|
|
49
|
+
export declare class NotFound extends /*@__PURE__*/ NotFound_base {
|
|
50
|
+
}
|
|
51
|
+
declare const UnprocessableEntity_base: S.Class<UnprocessableEntity, S.TaggedStruct<"UnprocessableEntity", {
|
|
52
|
+
readonly code: any;
|
|
53
|
+
readonly message: any;
|
|
54
|
+
}>, import("effect/Cause").YieldableError> & (new (...args: any[]) => {
|
|
55
|
+
"@distilled.cloud/error/categories": {
|
|
56
|
+
BadRequestError: true;
|
|
57
|
+
};
|
|
58
|
+
});
|
|
59
|
+
export declare class UnprocessableEntity extends /*@__PURE__*/ UnprocessableEntity_base {
|
|
60
|
+
}
|
|
61
|
+
export type CreateIssueRequestAssigneesList = Array<string>;
|
|
62
|
+
export declare const CreateIssueRequestAssigneesList: S.Schema<CreateIssueRequestAssigneesList>;
|
|
63
|
+
/** list of label ids */
|
|
64
|
+
export type CreateIssueRequestLabelsList = Array<number>;
|
|
65
|
+
export declare const CreateIssueRequestLabelsList: S.Schema<CreateIssueRequestLabelsList>;
|
|
66
|
+
export interface CreateIssueRequest {
|
|
67
|
+
/** owner of the repo */
|
|
68
|
+
owner: string;
|
|
69
|
+
/** name of the repo */
|
|
70
|
+
repo: string;
|
|
71
|
+
/** deprecated */
|
|
72
|
+
assignee?: string;
|
|
73
|
+
assignees?: CreateIssueRequestAssigneesList;
|
|
74
|
+
body?: string;
|
|
75
|
+
closed?: boolean;
|
|
76
|
+
due_date?: string;
|
|
77
|
+
/** list of label ids */
|
|
78
|
+
labels?: CreateIssueRequestLabelsList;
|
|
79
|
+
/** milestone id */
|
|
80
|
+
milestone?: number;
|
|
81
|
+
ref?: string;
|
|
82
|
+
title: string;
|
|
83
|
+
}
|
|
84
|
+
export declare const CreateIssueRequest: S.Schema<CreateIssueRequest>;
|
|
85
|
+
export type AttachmentType = "attachment" | "external";
|
|
86
|
+
export declare const AttachmentType: any;
|
|
87
|
+
/** Attachment a generic attachment */
|
|
88
|
+
export interface Attachment {
|
|
89
|
+
browser_download_url?: string;
|
|
90
|
+
created_at?: string;
|
|
91
|
+
download_count?: number;
|
|
92
|
+
id?: number;
|
|
93
|
+
name?: string;
|
|
94
|
+
size?: number;
|
|
95
|
+
type?: AttachmentType;
|
|
96
|
+
uuid?: string;
|
|
97
|
+
}
|
|
98
|
+
export declare const Attachment: S.Schema<Attachment>;
|
|
99
|
+
export type IssueAssetsList = Array<Attachment>;
|
|
100
|
+
export declare const IssueAssetsList: S.Schema<IssueAssetsList>;
|
|
101
|
+
/** User represents a user */
|
|
102
|
+
export interface User {
|
|
103
|
+
/** Is user active */
|
|
104
|
+
active?: boolean;
|
|
105
|
+
/** URL to the user's avatar */
|
|
106
|
+
avatar_url?: string;
|
|
107
|
+
created?: string;
|
|
108
|
+
/** the user's description */
|
|
109
|
+
description?: string;
|
|
110
|
+
email?: string;
|
|
111
|
+
/** user counts */
|
|
112
|
+
followers_count?: number;
|
|
113
|
+
following_count?: number;
|
|
114
|
+
/** the user's full name */
|
|
115
|
+
full_name?: string;
|
|
116
|
+
/** URL to the user's profile page */
|
|
117
|
+
html_url?: string;
|
|
118
|
+
/** the user's id */
|
|
119
|
+
id: number;
|
|
120
|
+
/** Is the user an administrator */
|
|
121
|
+
is_admin?: boolean;
|
|
122
|
+
/** User locale */
|
|
123
|
+
language?: string;
|
|
124
|
+
last_login?: string;
|
|
125
|
+
/** the user's location */
|
|
126
|
+
location?: string;
|
|
127
|
+
/** the user's username */
|
|
128
|
+
login: string;
|
|
129
|
+
/** the user's authentication sign-in name. */
|
|
130
|
+
login_name?: string;
|
|
131
|
+
/** Is user login prohibited */
|
|
132
|
+
prohibit_login?: boolean;
|
|
133
|
+
/** the user's pronouns */
|
|
134
|
+
pronouns?: string;
|
|
135
|
+
/** Is user restricted */
|
|
136
|
+
restricted?: boolean;
|
|
137
|
+
/** The ID of the user's Authentication Source */
|
|
138
|
+
source_id?: number;
|
|
139
|
+
starred_repos_count?: number;
|
|
140
|
+
/** User visibility level option: public, limited, private */
|
|
141
|
+
visibility?: string;
|
|
142
|
+
/** the user's website */
|
|
143
|
+
website?: string;
|
|
144
|
+
}
|
|
145
|
+
export declare const User: S.Schema<User>;
|
|
146
|
+
export type IssueAssigneesList = Array<User>;
|
|
147
|
+
export declare const IssueAssigneesList: S.Schema<IssueAssigneesList>;
|
|
148
|
+
/** Label a label to an issue or a pr */
|
|
149
|
+
export interface Label {
|
|
150
|
+
color: string;
|
|
151
|
+
description?: string;
|
|
152
|
+
exclusive?: boolean;
|
|
153
|
+
id: number;
|
|
154
|
+
is_archived?: boolean;
|
|
155
|
+
name: string;
|
|
156
|
+
url?: string;
|
|
157
|
+
}
|
|
158
|
+
export declare const Label: S.Schema<Label>;
|
|
159
|
+
export type IssueLabelsList = Array<Label>;
|
|
160
|
+
export declare const IssueLabelsList: S.Schema<IssueLabelsList>;
|
|
161
|
+
/** Milestone milestone is a collection of issues on one repository */
|
|
162
|
+
export interface Milestone {
|
|
163
|
+
closed_at?: string;
|
|
164
|
+
closed_issues?: number;
|
|
165
|
+
created_at?: string;
|
|
166
|
+
description?: string;
|
|
167
|
+
due_on?: string;
|
|
168
|
+
id?: number;
|
|
169
|
+
open_issues?: number;
|
|
170
|
+
state?: string;
|
|
171
|
+
title?: string;
|
|
172
|
+
updated_at?: string;
|
|
173
|
+
}
|
|
174
|
+
export declare const Milestone: S.Schema<Milestone>;
|
|
175
|
+
/** PullRequestMeta PR info if an issue is a PR */
|
|
176
|
+
export interface PullRequestMeta {
|
|
177
|
+
draft?: boolean;
|
|
178
|
+
html_url?: string;
|
|
179
|
+
merged?: boolean;
|
|
180
|
+
merged_at?: string;
|
|
181
|
+
}
|
|
182
|
+
export declare const PullRequestMeta: S.Schema<PullRequestMeta>;
|
|
183
|
+
/** RepositoryMeta basic repository information */
|
|
184
|
+
export interface RepositoryMeta {
|
|
185
|
+
full_name?: string;
|
|
186
|
+
id?: number;
|
|
187
|
+
name?: string;
|
|
188
|
+
owner?: string;
|
|
189
|
+
}
|
|
190
|
+
export declare const RepositoryMeta: S.Schema<RepositoryMeta>;
|
|
191
|
+
/** Issue represents an issue in a repository */
|
|
192
|
+
export interface Issue {
|
|
193
|
+
assets?: IssueAssetsList;
|
|
194
|
+
assignee?: User;
|
|
195
|
+
assignees?: IssueAssigneesList;
|
|
196
|
+
body?: string;
|
|
197
|
+
closed_at?: string;
|
|
198
|
+
comments?: number;
|
|
199
|
+
created_at?: string;
|
|
200
|
+
due_date?: string;
|
|
201
|
+
html_url?: string;
|
|
202
|
+
id?: number;
|
|
203
|
+
is_locked?: boolean;
|
|
204
|
+
labels?: IssueLabelsList;
|
|
205
|
+
milestone?: Milestone;
|
|
206
|
+
number?: number;
|
|
207
|
+
original_author?: string;
|
|
208
|
+
original_author_id?: number;
|
|
209
|
+
pin_order?: number;
|
|
210
|
+
pull_request?: PullRequestMeta;
|
|
211
|
+
ref?: string;
|
|
212
|
+
repository?: RepositoryMeta;
|
|
213
|
+
state?: string;
|
|
214
|
+
title?: string;
|
|
215
|
+
updated_at?: string;
|
|
216
|
+
url?: string;
|
|
217
|
+
user?: User;
|
|
218
|
+
}
|
|
219
|
+
export declare const Issue: S.Schema<Issue>;
|
|
220
|
+
export interface CreateIssueAttachmentRequest {
|
|
221
|
+
/** owner of the repo */
|
|
222
|
+
owner: string;
|
|
223
|
+
/** name of the repo */
|
|
224
|
+
repo: string;
|
|
225
|
+
/** index of the issue */
|
|
226
|
+
index: number;
|
|
227
|
+
/** name of the attachment */
|
|
228
|
+
name?: string;
|
|
229
|
+
/** time of the attachment's creation. This is a timestamp in RFC 3339 format */
|
|
230
|
+
updated_at?: string;
|
|
231
|
+
}
|
|
232
|
+
export declare const CreateIssueAttachmentRequest: S.Schema<CreateIssueAttachmentRequest>;
|
|
233
|
+
export interface CreateIssueBlockingRequest {
|
|
234
|
+
/** owner of the repo */
|
|
235
|
+
owner: string;
|
|
236
|
+
/** name of the repo */
|
|
237
|
+
repo: string;
|
|
238
|
+
/** index of the issue */
|
|
239
|
+
index: number;
|
|
240
|
+
}
|
|
241
|
+
export declare const CreateIssueBlockingRequest: S.Schema<CreateIssueBlockingRequest>;
|
|
242
|
+
export interface CreateIssueCommentAttachmentRequest {
|
|
243
|
+
/** owner of the repo */
|
|
244
|
+
owner: string;
|
|
245
|
+
/** name of the repo */
|
|
246
|
+
repo: string;
|
|
247
|
+
/** id of the comment */
|
|
248
|
+
id: number;
|
|
249
|
+
/** name of the attachment */
|
|
250
|
+
name?: string;
|
|
251
|
+
/** time of the attachment's creation. This is a timestamp in RFC 3339 format */
|
|
252
|
+
updated_at?: string;
|
|
253
|
+
}
|
|
254
|
+
export declare const CreateIssueCommentAttachmentRequest: S.Schema<CreateIssueCommentAttachmentRequest>;
|
|
255
|
+
export interface CreateIssueDependenciesRequest {
|
|
256
|
+
/** owner of the repo */
|
|
257
|
+
owner: string;
|
|
258
|
+
/** name of the repo */
|
|
259
|
+
repo: string;
|
|
260
|
+
/** index of the issue */
|
|
261
|
+
index: number;
|
|
262
|
+
}
|
|
263
|
+
export declare const CreateIssueDependenciesRequest: S.Schema<CreateIssueDependenciesRequest>;
|
|
264
|
+
export interface DeleteIssueRequest {
|
|
265
|
+
/** owner of the repo */
|
|
266
|
+
owner: string;
|
|
267
|
+
/** name of the repo */
|
|
268
|
+
repo: string;
|
|
269
|
+
/** index of issue to delete */
|
|
270
|
+
index: number;
|
|
271
|
+
}
|
|
272
|
+
export declare const DeleteIssueRequest: S.Schema<DeleteIssueRequest>;
|
|
273
|
+
export interface DeleteIssueResponse {
|
|
274
|
+
}
|
|
275
|
+
export declare const DeleteIssueResponse: S.Schema<DeleteIssueResponse>;
|
|
276
|
+
export interface DeleteIssueAttachmentRequest {
|
|
277
|
+
/** owner of the repo */
|
|
278
|
+
owner: string;
|
|
279
|
+
/** name of the repo */
|
|
280
|
+
repo: string;
|
|
281
|
+
/** index of the issue */
|
|
282
|
+
index: number;
|
|
283
|
+
/** id of the attachment to delete */
|
|
284
|
+
attachment_id: number;
|
|
285
|
+
}
|
|
286
|
+
export declare const DeleteIssueAttachmentRequest: S.Schema<DeleteIssueAttachmentRequest>;
|
|
287
|
+
export interface DeleteIssueAttachmentResponse {
|
|
288
|
+
}
|
|
289
|
+
export declare const DeleteIssueAttachmentResponse: S.Schema<DeleteIssueAttachmentResponse>;
|
|
290
|
+
export interface DeleteIssueCommentAttachmentRequest {
|
|
291
|
+
/** owner of the repo */
|
|
292
|
+
owner: string;
|
|
293
|
+
/** name of the repo */
|
|
294
|
+
repo: string;
|
|
295
|
+
/** id of the comment */
|
|
296
|
+
id: number;
|
|
297
|
+
/** id of the attachment to delete */
|
|
298
|
+
attachment_id: number;
|
|
299
|
+
}
|
|
300
|
+
export declare const DeleteIssueCommentAttachmentRequest: S.Schema<DeleteIssueCommentAttachmentRequest>;
|
|
301
|
+
export interface DeleteIssueCommentAttachmentResponse {
|
|
302
|
+
}
|
|
303
|
+
export declare const DeleteIssueCommentAttachmentResponse: S.Schema<DeleteIssueCommentAttachmentResponse>;
|
|
304
|
+
export interface DeleteIssueReactionRequest {
|
|
305
|
+
/** owner of the repo */
|
|
306
|
+
owner: string;
|
|
307
|
+
/** name of the repo */
|
|
308
|
+
repo: string;
|
|
309
|
+
/** index of the issue */
|
|
310
|
+
index: number;
|
|
311
|
+
content?: string;
|
|
312
|
+
}
|
|
313
|
+
export declare const DeleteIssueReactionRequest: S.Schema<DeleteIssueReactionRequest>;
|
|
314
|
+
export interface DeleteIssueReactionResponse {
|
|
315
|
+
}
|
|
316
|
+
export declare const DeleteIssueReactionResponse: S.Schema<DeleteIssueReactionResponse>;
|
|
317
|
+
export type EditIssueRequestAssigneesList = Array<string>;
|
|
318
|
+
export declare const EditIssueRequestAssigneesList: S.Schema<EditIssueRequestAssigneesList>;
|
|
319
|
+
export interface EditIssueRequest {
|
|
320
|
+
/** owner of the repo */
|
|
321
|
+
owner: string;
|
|
322
|
+
/** name of the repo */
|
|
323
|
+
repo: string;
|
|
324
|
+
/** index of the issue to edit */
|
|
325
|
+
index: number;
|
|
326
|
+
/** deprecated */
|
|
327
|
+
assignee?: string;
|
|
328
|
+
assignees?: EditIssueRequestAssigneesList;
|
|
329
|
+
body?: string;
|
|
330
|
+
due_date?: string;
|
|
331
|
+
milestone?: number;
|
|
332
|
+
ref?: string;
|
|
333
|
+
state?: string;
|
|
334
|
+
title?: string;
|
|
335
|
+
unset_due_date?: boolean;
|
|
336
|
+
updated_at?: string;
|
|
337
|
+
}
|
|
338
|
+
export declare const EditIssueRequest: S.Schema<EditIssueRequest>;
|
|
339
|
+
export interface EditIssueAttachmentRequest {
|
|
340
|
+
/** owner of the repo */
|
|
341
|
+
owner: string;
|
|
342
|
+
/** name of the repo */
|
|
343
|
+
repo: string;
|
|
344
|
+
/** index of the issue */
|
|
345
|
+
index: number;
|
|
346
|
+
/** id of the attachment to edit */
|
|
347
|
+
attachment_id: number;
|
|
348
|
+
/** (Can only be set if existing attachment is of external type) */
|
|
349
|
+
browser_download_url?: string;
|
|
350
|
+
name?: string;
|
|
351
|
+
}
|
|
352
|
+
export declare const EditIssueAttachmentRequest: S.Schema<EditIssueAttachmentRequest>;
|
|
353
|
+
export interface EditIssueCommentAttachmentRequest {
|
|
354
|
+
/** owner of the repo */
|
|
355
|
+
owner: string;
|
|
356
|
+
/** name of the repo */
|
|
357
|
+
repo: string;
|
|
358
|
+
/** id of the comment */
|
|
359
|
+
id: number;
|
|
360
|
+
/** id of the attachment to edit */
|
|
361
|
+
attachment_id: number;
|
|
362
|
+
/** (Can only be set if existing attachment is of external type) */
|
|
363
|
+
browser_download_url?: string;
|
|
364
|
+
name?: string;
|
|
365
|
+
}
|
|
366
|
+
export declare const EditIssueCommentAttachmentRequest: S.Schema<EditIssueCommentAttachmentRequest>;
|
|
367
|
+
export interface EditIssueDeadlineRequest {
|
|
368
|
+
/** owner of the repo */
|
|
369
|
+
owner: string;
|
|
370
|
+
/** name of the repo */
|
|
371
|
+
repo: string;
|
|
372
|
+
/** index of the issue to create or update a deadline on */
|
|
373
|
+
index: number;
|
|
374
|
+
due_date: string;
|
|
375
|
+
}
|
|
376
|
+
export declare const EditIssueDeadlineRequest: S.Schema<EditIssueDeadlineRequest>;
|
|
377
|
+
/** IssueDeadline represents an issue deadline */
|
|
378
|
+
export interface IssueDeadline {
|
|
379
|
+
due_date?: string;
|
|
380
|
+
}
|
|
381
|
+
export declare const IssueDeadline: S.Schema<IssueDeadline>;
|
|
382
|
+
export interface GetIssueRequest {
|
|
383
|
+
/** owner of the repo */
|
|
384
|
+
owner: string;
|
|
385
|
+
/** name of the repo */
|
|
386
|
+
repo: string;
|
|
387
|
+
/** index of the issue to get */
|
|
388
|
+
index: number;
|
|
389
|
+
}
|
|
390
|
+
export declare const GetIssueRequest: S.Schema<GetIssueRequest>;
|
|
391
|
+
export interface GetIssueAttachmentRequest {
|
|
392
|
+
/** owner of the repo */
|
|
393
|
+
owner: string;
|
|
394
|
+
/** name of the repo */
|
|
395
|
+
repo: string;
|
|
396
|
+
/** index of the issue */
|
|
397
|
+
index: number;
|
|
398
|
+
/** id of the attachment to get */
|
|
399
|
+
attachment_id: number;
|
|
400
|
+
}
|
|
401
|
+
export declare const GetIssueAttachmentRequest: S.Schema<GetIssueAttachmentRequest>;
|
|
402
|
+
export interface GetIssueCommentAttachmentRequest {
|
|
403
|
+
/** owner of the repo */
|
|
404
|
+
owner: string;
|
|
405
|
+
/** name of the repo */
|
|
406
|
+
repo: string;
|
|
407
|
+
/** id of the comment */
|
|
408
|
+
id: number;
|
|
409
|
+
/** id of the attachment to get */
|
|
410
|
+
attachment_id: number;
|
|
411
|
+
}
|
|
412
|
+
export declare const GetIssueCommentAttachmentRequest: S.Schema<GetIssueCommentAttachmentRequest>;
|
|
413
|
+
export interface GetIssueReactionsRequest {
|
|
414
|
+
/** owner of the repo */
|
|
415
|
+
owner: string;
|
|
416
|
+
/** name of the repo */
|
|
417
|
+
repo: string;
|
|
418
|
+
/** index of the issue */
|
|
419
|
+
index: number;
|
|
420
|
+
/** page number of results to return (1-based) */
|
|
421
|
+
page?: number;
|
|
422
|
+
/** page size of results */
|
|
423
|
+
limit?: number;
|
|
424
|
+
}
|
|
425
|
+
export declare const GetIssueReactionsRequest: S.Schema<GetIssueReactionsRequest>;
|
|
426
|
+
/** Reaction contain one reaction */
|
|
427
|
+
export interface Reaction {
|
|
428
|
+
content?: string;
|
|
429
|
+
created_at?: string;
|
|
430
|
+
user?: User;
|
|
431
|
+
}
|
|
432
|
+
export declare const Reaction: S.Schema<Reaction>;
|
|
433
|
+
export type GetIssueReactionsResponseBodyList = Array<Reaction>;
|
|
434
|
+
export declare const GetIssueReactionsResponseBodyList: S.Schema<GetIssueReactionsResponseBodyList>;
|
|
435
|
+
export type GetIssueReactionsResponse = GetIssueReactionsResponseBodyList;
|
|
436
|
+
export declare const GetIssueReactionsResponse: S.Schema<GetIssueReactionsResponse>;
|
|
437
|
+
/** Labels can be a list of integers representing label IDs or a list of strings representing label names */
|
|
438
|
+
export type IssueAddLabelRequestLabelsList = Array<unknown>;
|
|
439
|
+
export declare const IssueAddLabelRequestLabelsList: S.Schema<IssueAddLabelRequestLabelsList>;
|
|
440
|
+
export interface IssueAddLabelRequest {
|
|
441
|
+
/** owner of the repo */
|
|
442
|
+
owner: string;
|
|
443
|
+
/** name of the repo */
|
|
444
|
+
repo: string;
|
|
445
|
+
/** index of the issue */
|
|
446
|
+
index: number;
|
|
447
|
+
/** Labels can be a list of integers representing label IDs or a list of strings representing label names */
|
|
448
|
+
labels?: IssueAddLabelRequestLabelsList;
|
|
449
|
+
updated_at?: string;
|
|
450
|
+
}
|
|
451
|
+
export declare const IssueAddLabelRequest: S.Schema<IssueAddLabelRequest>;
|
|
452
|
+
export type IssueAddLabelResponseBodyList = Array<Label>;
|
|
453
|
+
export declare const IssueAddLabelResponseBodyList: S.Schema<IssueAddLabelResponseBodyList>;
|
|
454
|
+
export type IssueAddLabelResponse = IssueAddLabelResponseBodyList;
|
|
455
|
+
export declare const IssueAddLabelResponse: S.Schema<IssueAddLabelResponse>;
|
|
456
|
+
export interface IssueAddSubscriptionRequest {
|
|
457
|
+
/** owner of the repo */
|
|
458
|
+
owner: string;
|
|
459
|
+
/** name of the repo */
|
|
460
|
+
repo: string;
|
|
461
|
+
/** index of the issue */
|
|
462
|
+
index: number;
|
|
463
|
+
/** user to subscribe */
|
|
464
|
+
user: string;
|
|
465
|
+
}
|
|
466
|
+
export declare const IssueAddSubscriptionRequest: S.Schema<IssueAddSubscriptionRequest>;
|
|
467
|
+
export interface IssueAddSubscriptionResponse {
|
|
468
|
+
}
|
|
469
|
+
export declare const IssueAddSubscriptionResponse: S.Schema<IssueAddSubscriptionResponse>;
|
|
470
|
+
export interface IssueAddTimeRequest {
|
|
471
|
+
/** owner of the repo */
|
|
472
|
+
owner: string;
|
|
473
|
+
/** name of the repo */
|
|
474
|
+
repo: string;
|
|
475
|
+
/** index of the issue */
|
|
476
|
+
index: number;
|
|
477
|
+
created?: string;
|
|
478
|
+
/** time in seconds */
|
|
479
|
+
time: number;
|
|
480
|
+
/** User who spent the time (optional) */
|
|
481
|
+
user_name?: string;
|
|
482
|
+
}
|
|
483
|
+
export declare const IssueAddTimeRequest: S.Schema<IssueAddTimeRequest>;
|
|
484
|
+
/** TrackedTime worked time for an issue / pr */
|
|
485
|
+
export interface TrackedTime {
|
|
486
|
+
created?: string;
|
|
487
|
+
id?: number;
|
|
488
|
+
issue?: Issue;
|
|
489
|
+
/** deprecated (only for backwards compatibility) */
|
|
490
|
+
issue_id?: number;
|
|
491
|
+
/** Time in seconds */
|
|
492
|
+
time?: number;
|
|
493
|
+
/** deprecated (only for backwards compatibility) */
|
|
494
|
+
user_id?: number;
|
|
495
|
+
user_name?: string;
|
|
496
|
+
}
|
|
497
|
+
export declare const TrackedTime: S.Schema<TrackedTime>;
|
|
498
|
+
export interface IssueCheckSubscriptionRequest {
|
|
499
|
+
/** owner of the repo */
|
|
500
|
+
owner: string;
|
|
501
|
+
/** name of the repo */
|
|
502
|
+
repo: string;
|
|
503
|
+
/** index of the issue */
|
|
504
|
+
index: number;
|
|
505
|
+
}
|
|
506
|
+
export declare const IssueCheckSubscriptionRequest: S.Schema<IssueCheckSubscriptionRequest>;
|
|
507
|
+
/** WatchInfo represents an API watch status of one repository */
|
|
508
|
+
export interface WatchInfo {
|
|
509
|
+
created_at?: string;
|
|
510
|
+
ignored?: boolean;
|
|
511
|
+
reason?: unknown;
|
|
512
|
+
repository_url?: string;
|
|
513
|
+
subscribed?: boolean;
|
|
514
|
+
url?: string;
|
|
515
|
+
}
|
|
516
|
+
export declare const WatchInfo: S.Schema<WatchInfo>;
|
|
517
|
+
export interface IssueClearLabelsRequest {
|
|
518
|
+
/** owner of the repo */
|
|
519
|
+
owner: string;
|
|
520
|
+
/** name of the repo */
|
|
521
|
+
repo: string;
|
|
522
|
+
/** index of the issue */
|
|
523
|
+
index: number;
|
|
524
|
+
updated_at?: string;
|
|
525
|
+
}
|
|
526
|
+
export declare const IssueClearLabelsRequest: S.Schema<IssueClearLabelsRequest>;
|
|
527
|
+
export interface IssueClearLabelsResponse {
|
|
528
|
+
}
|
|
529
|
+
export declare const IssueClearLabelsResponse: S.Schema<IssueClearLabelsResponse>;
|
|
530
|
+
export interface IssueCreateCommentRequest {
|
|
531
|
+
/** owner of the repo */
|
|
532
|
+
owner: string;
|
|
533
|
+
/** name of the repo */
|
|
534
|
+
repo: string;
|
|
535
|
+
/** index of the issue */
|
|
536
|
+
index: number;
|
|
537
|
+
/** The body of the comment */
|
|
538
|
+
body: string;
|
|
539
|
+
/** The time of the comment's update, needs admin or repository owner permission */
|
|
540
|
+
updated_at?: string;
|
|
541
|
+
}
|
|
542
|
+
export declare const IssueCreateCommentRequest: S.Schema<IssueCreateCommentRequest>;
|
|
543
|
+
/** The attachments to the comment */
|
|
544
|
+
export type CommentAssetsList = Array<Attachment>;
|
|
545
|
+
export declare const CommentAssetsList: S.Schema<CommentAssetsList>;
|
|
546
|
+
/** Comment represents a comment on a commit or issue */
|
|
547
|
+
export interface Comment {
|
|
548
|
+
/** The attachments to the comment */
|
|
549
|
+
assets?: CommentAssetsList;
|
|
550
|
+
/** The body of the comment */
|
|
551
|
+
body?: string;
|
|
552
|
+
/** The time of the comment's creation */
|
|
553
|
+
created_at?: string;
|
|
554
|
+
/** The HTML URL of the comment */
|
|
555
|
+
html_url?: string;
|
|
556
|
+
/** The identifier of the comment */
|
|
557
|
+
id?: number;
|
|
558
|
+
/** The HTML URL of the issue if the comment is posted on an issue, else empty string */
|
|
559
|
+
issue_url?: string;
|
|
560
|
+
/** The original author that posted the comment if it was not posted locally, else empty string */
|
|
561
|
+
original_author?: string;
|
|
562
|
+
/** The ID of the original author that posted the comment if it was not posted locally, else 0 */
|
|
563
|
+
original_author_id?: number;
|
|
564
|
+
/** The HTML URL of the pull request if the comment is posted on a pull request, else empty string */
|
|
565
|
+
pull_request_url?: string;
|
|
566
|
+
/** The time of the comment's update */
|
|
567
|
+
updated_at?: string;
|
|
568
|
+
user?: User;
|
|
569
|
+
}
|
|
570
|
+
export declare const Comment: S.Schema<Comment>;
|
|
571
|
+
export interface IssueCreateLabelRequest {
|
|
572
|
+
/** owner of the repo */
|
|
573
|
+
owner: string;
|
|
574
|
+
/** name of the repo */
|
|
575
|
+
repo: string;
|
|
576
|
+
color: string;
|
|
577
|
+
description?: string;
|
|
578
|
+
exclusive?: boolean;
|
|
579
|
+
is_archived?: boolean;
|
|
580
|
+
name: string;
|
|
581
|
+
}
|
|
582
|
+
export declare const IssueCreateLabelRequest: S.Schema<IssueCreateLabelRequest>;
|
|
583
|
+
export type IssueCreateMilestoneRequestState = "open" | "closed";
|
|
584
|
+
export declare const IssueCreateMilestoneRequestState: any;
|
|
585
|
+
export interface IssueCreateMilestoneRequest {
|
|
586
|
+
/** owner of the repo */
|
|
587
|
+
owner: string;
|
|
588
|
+
/** name of the repo */
|
|
589
|
+
repo: string;
|
|
590
|
+
description?: string;
|
|
591
|
+
due_on?: string;
|
|
592
|
+
state?: IssueCreateMilestoneRequestState | (string & {});
|
|
593
|
+
title?: string;
|
|
594
|
+
}
|
|
595
|
+
export declare const IssueCreateMilestoneRequest: S.Schema<IssueCreateMilestoneRequest>;
|
|
596
|
+
export interface IssueDeleteCommentRequest {
|
|
597
|
+
/** owner of the repo */
|
|
598
|
+
owner: string;
|
|
599
|
+
/** name of the repo */
|
|
600
|
+
repo: string;
|
|
601
|
+
/** id of comment to delete */
|
|
602
|
+
id: number;
|
|
603
|
+
}
|
|
604
|
+
export declare const IssueDeleteCommentRequest: S.Schema<IssueDeleteCommentRequest>;
|
|
605
|
+
export interface IssueDeleteCommentResponse {
|
|
606
|
+
}
|
|
607
|
+
export declare const IssueDeleteCommentResponse: S.Schema<IssueDeleteCommentResponse>;
|
|
608
|
+
export interface IssueDeleteCommentReactionRequest {
|
|
609
|
+
/** owner of the repo */
|
|
610
|
+
owner: string;
|
|
611
|
+
/** name of the repo */
|
|
612
|
+
repo: string;
|
|
613
|
+
/** id of the comment to edit */
|
|
614
|
+
id: number;
|
|
615
|
+
content?: string;
|
|
616
|
+
}
|
|
617
|
+
export declare const IssueDeleteCommentReactionRequest: S.Schema<IssueDeleteCommentReactionRequest>;
|
|
618
|
+
export interface IssueDeleteCommentReactionResponse {
|
|
619
|
+
}
|
|
620
|
+
export declare const IssueDeleteCommentReactionResponse: S.Schema<IssueDeleteCommentReactionResponse>;
|
|
621
|
+
export interface IssueDeleteLabelRequest {
|
|
622
|
+
/** owner of the repo */
|
|
623
|
+
owner: string;
|
|
624
|
+
/** name of the repo */
|
|
625
|
+
repo: string;
|
|
626
|
+
/** id of the label to delete */
|
|
627
|
+
id: number;
|
|
628
|
+
}
|
|
629
|
+
export declare const IssueDeleteLabelRequest: S.Schema<IssueDeleteLabelRequest>;
|
|
630
|
+
export interface IssueDeleteLabelResponse {
|
|
631
|
+
}
|
|
632
|
+
export declare const IssueDeleteLabelResponse: S.Schema<IssueDeleteLabelResponse>;
|
|
633
|
+
export interface IssueDeleteMilestoneRequest {
|
|
634
|
+
/** owner of the repo */
|
|
635
|
+
owner: string;
|
|
636
|
+
/** name of the repo */
|
|
637
|
+
repo: string;
|
|
638
|
+
/** the milestone to delete, identified by ID and if not available by name */
|
|
639
|
+
id: number;
|
|
640
|
+
}
|
|
641
|
+
export declare const IssueDeleteMilestoneRequest: S.Schema<IssueDeleteMilestoneRequest>;
|
|
642
|
+
export interface IssueDeleteMilestoneResponse {
|
|
643
|
+
}
|
|
644
|
+
export declare const IssueDeleteMilestoneResponse: S.Schema<IssueDeleteMilestoneResponse>;
|
|
645
|
+
export interface IssueDeleteStopWatchRequest {
|
|
646
|
+
/** owner of the repo */
|
|
647
|
+
owner: string;
|
|
648
|
+
/** name of the repo */
|
|
649
|
+
repo: string;
|
|
650
|
+
/** index of the issue to stop the stopwatch on */
|
|
651
|
+
index: number;
|
|
652
|
+
}
|
|
653
|
+
export declare const IssueDeleteStopWatchRequest: S.Schema<IssueDeleteStopWatchRequest>;
|
|
654
|
+
export interface IssueDeleteStopWatchResponse {
|
|
655
|
+
}
|
|
656
|
+
export declare const IssueDeleteStopWatchResponse: S.Schema<IssueDeleteStopWatchResponse>;
|
|
657
|
+
export interface IssueDeleteSubscriptionRequest {
|
|
658
|
+
/** owner of the repo */
|
|
659
|
+
owner: string;
|
|
660
|
+
/** name of the repo */
|
|
661
|
+
repo: string;
|
|
662
|
+
/** index of the issue */
|
|
663
|
+
index: number;
|
|
664
|
+
/** user witch unsubscribe */
|
|
665
|
+
user: string;
|
|
666
|
+
}
|
|
667
|
+
export declare const IssueDeleteSubscriptionRequest: S.Schema<IssueDeleteSubscriptionRequest>;
|
|
668
|
+
export interface IssueDeleteSubscriptionResponse {
|
|
669
|
+
}
|
|
670
|
+
export declare const IssueDeleteSubscriptionResponse: S.Schema<IssueDeleteSubscriptionResponse>;
|
|
671
|
+
export interface IssueDeleteTimeRequest {
|
|
672
|
+
/** owner of the repo */
|
|
673
|
+
owner: string;
|
|
674
|
+
/** name of the repo */
|
|
675
|
+
repo: string;
|
|
676
|
+
/** index of the issue */
|
|
677
|
+
index: number;
|
|
678
|
+
/** id of time to delete */
|
|
679
|
+
id: number;
|
|
680
|
+
}
|
|
681
|
+
export declare const IssueDeleteTimeRequest: S.Schema<IssueDeleteTimeRequest>;
|
|
682
|
+
export interface IssueDeleteTimeResponse {
|
|
683
|
+
}
|
|
684
|
+
export declare const IssueDeleteTimeResponse: S.Schema<IssueDeleteTimeResponse>;
|
|
685
|
+
export interface IssueEditCommentRequest {
|
|
686
|
+
/** owner of the repo */
|
|
687
|
+
owner: string;
|
|
688
|
+
/** name of the repo */
|
|
689
|
+
repo: string;
|
|
690
|
+
/** id of the comment to edit */
|
|
691
|
+
id: number;
|
|
692
|
+
/** The body of the comment */
|
|
693
|
+
body: string;
|
|
694
|
+
/** The time of the comment's update, needs admin or repository owner permission */
|
|
695
|
+
updated_at?: string;
|
|
696
|
+
}
|
|
697
|
+
export declare const IssueEditCommentRequest: S.Schema<IssueEditCommentRequest>;
|
|
698
|
+
export interface IssueEditLabelRequest {
|
|
699
|
+
/** owner of the repo */
|
|
700
|
+
owner: string;
|
|
701
|
+
/** name of the repo */
|
|
702
|
+
repo: string;
|
|
703
|
+
/** id of the label to edit */
|
|
704
|
+
id: number;
|
|
705
|
+
color?: string;
|
|
706
|
+
description?: string;
|
|
707
|
+
exclusive?: boolean;
|
|
708
|
+
is_archived?: boolean;
|
|
709
|
+
name?: string;
|
|
710
|
+
}
|
|
711
|
+
export declare const IssueEditLabelRequest: S.Schema<IssueEditLabelRequest>;
|
|
712
|
+
export interface IssueEditMilestoneRequest {
|
|
713
|
+
/** owner of the repo */
|
|
714
|
+
owner: string;
|
|
715
|
+
/** name of the repo */
|
|
716
|
+
repo: string;
|
|
717
|
+
/** the milestone to edit, identified by ID and if not available by name */
|
|
718
|
+
id: number;
|
|
719
|
+
description?: string;
|
|
720
|
+
due_on?: string;
|
|
721
|
+
state?: string;
|
|
722
|
+
title?: string;
|
|
723
|
+
}
|
|
724
|
+
export declare const IssueEditMilestoneRequest: S.Schema<IssueEditMilestoneRequest>;
|
|
725
|
+
export interface IssueGetCommentRequest {
|
|
726
|
+
/** owner of the repo */
|
|
727
|
+
owner: string;
|
|
728
|
+
/** name of the repo */
|
|
729
|
+
repo: string;
|
|
730
|
+
/** id of the comment */
|
|
731
|
+
id: number;
|
|
732
|
+
}
|
|
733
|
+
export declare const IssueGetCommentRequest: S.Schema<IssueGetCommentRequest>;
|
|
734
|
+
export interface IssueGetCommentReactionsRequest {
|
|
735
|
+
/** owner of the repo */
|
|
736
|
+
owner: string;
|
|
737
|
+
/** name of the repo */
|
|
738
|
+
repo: string;
|
|
739
|
+
/** id of the comment to edit */
|
|
740
|
+
id: number;
|
|
741
|
+
}
|
|
742
|
+
export declare const IssueGetCommentReactionsRequest: S.Schema<IssueGetCommentReactionsRequest>;
|
|
743
|
+
export type IssueGetCommentReactionsResponseBodyList = Array<Reaction>;
|
|
744
|
+
export declare const IssueGetCommentReactionsResponseBodyList: S.Schema<IssueGetCommentReactionsResponseBodyList>;
|
|
745
|
+
export type IssueGetCommentReactionsResponse = IssueGetCommentReactionsResponseBodyList;
|
|
746
|
+
export declare const IssueGetCommentReactionsResponse: S.Schema<IssueGetCommentReactionsResponse>;
|
|
747
|
+
export interface IssueGetCommentsRequest {
|
|
748
|
+
/** owner of the repo */
|
|
749
|
+
owner: string;
|
|
750
|
+
/** name of the repo */
|
|
751
|
+
repo: string;
|
|
752
|
+
/** index of the issue */
|
|
753
|
+
index: number;
|
|
754
|
+
/** if provided, only comments updated since the specified time are returned. */
|
|
755
|
+
since?: string;
|
|
756
|
+
/** if provided, only comments updated before the provided time are returned. */
|
|
757
|
+
before?: string;
|
|
758
|
+
}
|
|
759
|
+
export declare const IssueGetCommentsRequest: S.Schema<IssueGetCommentsRequest>;
|
|
760
|
+
export type IssueGetCommentsResponseBodyList = Array<Comment>;
|
|
761
|
+
export declare const IssueGetCommentsResponseBodyList: S.Schema<IssueGetCommentsResponseBodyList>;
|
|
762
|
+
export type IssueGetCommentsResponse = IssueGetCommentsResponseBodyList;
|
|
763
|
+
export declare const IssueGetCommentsResponse: S.Schema<IssueGetCommentsResponse>;
|
|
764
|
+
export interface IssueGetCommentsAndTimelineRequest {
|
|
765
|
+
/** owner of the repo */
|
|
766
|
+
owner: string;
|
|
767
|
+
/** name of the repo */
|
|
768
|
+
repo: string;
|
|
769
|
+
/** index of the issue */
|
|
770
|
+
index: number;
|
|
771
|
+
/** if provided, only comments updated since the specified time are returned. */
|
|
772
|
+
since?: string;
|
|
773
|
+
/** page number of results to return (1-based) */
|
|
774
|
+
page?: number;
|
|
775
|
+
/** page size of results */
|
|
776
|
+
limit?: number;
|
|
777
|
+
/** if provided, only comments updated before the provided time are returned. */
|
|
778
|
+
before?: string;
|
|
779
|
+
}
|
|
780
|
+
export declare const IssueGetCommentsAndTimelineRequest: S.Schema<IssueGetCommentsAndTimelineRequest>;
|
|
781
|
+
/** Organization represents an organization */
|
|
782
|
+
export interface Organization {
|
|
783
|
+
avatar_url?: string;
|
|
784
|
+
created?: string;
|
|
785
|
+
description?: string;
|
|
786
|
+
email?: string;
|
|
787
|
+
full_name?: string;
|
|
788
|
+
id: number;
|
|
789
|
+
location?: string;
|
|
790
|
+
name?: string;
|
|
791
|
+
repo_admin_change_team_access?: boolean;
|
|
792
|
+
/** deprecated */
|
|
793
|
+
username: string;
|
|
794
|
+
visibility?: string;
|
|
795
|
+
website?: string;
|
|
796
|
+
}
|
|
797
|
+
export declare const Organization: S.Schema<Organization>;
|
|
798
|
+
export type TeamPermission = "none" | "read" | "write" | "admin" | "owner";
|
|
799
|
+
export declare const TeamPermission: any;
|
|
800
|
+
export type TeamUnitsList = Array<string>;
|
|
801
|
+
export declare const TeamUnitsList: S.Schema<TeamUnitsList>;
|
|
802
|
+
export type TeamUnitsMapMap = {
|
|
803
|
+
[key: string]: string | undefined;
|
|
804
|
+
};
|
|
805
|
+
export declare const TeamUnitsMapMap: S.Schema<TeamUnitsMapMap>;
|
|
806
|
+
/** Team represents a team in an organization */
|
|
807
|
+
export interface Team {
|
|
808
|
+
can_create_org_repo?: boolean;
|
|
809
|
+
description?: string;
|
|
810
|
+
id: number;
|
|
811
|
+
includes_all_repositories?: boolean;
|
|
812
|
+
name: string;
|
|
813
|
+
organization?: Organization;
|
|
814
|
+
permission?: TeamPermission;
|
|
815
|
+
units?: TeamUnitsList;
|
|
816
|
+
units_map?: TeamUnitsMapMap;
|
|
817
|
+
}
|
|
818
|
+
export declare const Team: S.Schema<Team>;
|
|
819
|
+
/** TimelineComment represents a timeline comment (comment of any type) on a commit or issue */
|
|
820
|
+
export interface TimelineComment {
|
|
821
|
+
assignee?: User;
|
|
822
|
+
assignee_team?: Team;
|
|
823
|
+
body?: string;
|
|
824
|
+
created_at?: string;
|
|
825
|
+
dependent_issue?: Issue;
|
|
826
|
+
html_url?: string;
|
|
827
|
+
id?: number;
|
|
828
|
+
issue_url?: string;
|
|
829
|
+
label?: Label;
|
|
830
|
+
milestone?: Milestone;
|
|
831
|
+
new_ref?: string;
|
|
832
|
+
new_title?: string;
|
|
833
|
+
old_milestone?: Milestone;
|
|
834
|
+
old_project_id?: number;
|
|
835
|
+
old_ref?: string;
|
|
836
|
+
old_title?: string;
|
|
837
|
+
project_id?: number;
|
|
838
|
+
pull_request_url?: string;
|
|
839
|
+
ref_action?: string;
|
|
840
|
+
ref_comment?: Comment;
|
|
841
|
+
/** commit SHA where issue/PR was referenced */
|
|
842
|
+
ref_commit_sha?: string;
|
|
843
|
+
ref_issue?: Issue;
|
|
844
|
+
/** whether the assignees were removed or added */
|
|
845
|
+
removed_assignee?: boolean;
|
|
846
|
+
resolve_doer?: User;
|
|
847
|
+
review_id?: number;
|
|
848
|
+
tracked_time?: TrackedTime;
|
|
849
|
+
type?: string;
|
|
850
|
+
updated_at?: string;
|
|
851
|
+
user?: User;
|
|
852
|
+
}
|
|
853
|
+
export declare const TimelineComment: S.Schema<TimelineComment>;
|
|
854
|
+
export type IssueGetCommentsAndTimelineResponseBodyList = Array<TimelineComment>;
|
|
855
|
+
export declare const IssueGetCommentsAndTimelineResponseBodyList: S.Schema<IssueGetCommentsAndTimelineResponseBodyList>;
|
|
856
|
+
export type IssueGetCommentsAndTimelineResponse = IssueGetCommentsAndTimelineResponseBodyList;
|
|
857
|
+
export declare const IssueGetCommentsAndTimelineResponse: S.Schema<IssueGetCommentsAndTimelineResponse>;
|
|
858
|
+
export interface IssueGetLabelRequest {
|
|
859
|
+
/** owner of the repo */
|
|
860
|
+
owner: string;
|
|
861
|
+
/** name of the repo */
|
|
862
|
+
repo: string;
|
|
863
|
+
/** id of the label to get */
|
|
864
|
+
id: number;
|
|
865
|
+
}
|
|
866
|
+
export declare const IssueGetLabelRequest: S.Schema<IssueGetLabelRequest>;
|
|
867
|
+
export interface IssueGetLabelsRequest {
|
|
868
|
+
/** owner of the repo */
|
|
869
|
+
owner: string;
|
|
870
|
+
/** name of the repo */
|
|
871
|
+
repo: string;
|
|
872
|
+
/** index of the issue */
|
|
873
|
+
index: number;
|
|
874
|
+
}
|
|
875
|
+
export declare const IssueGetLabelsRequest: S.Schema<IssueGetLabelsRequest>;
|
|
876
|
+
export type IssueGetLabelsResponseBodyList = Array<Label>;
|
|
877
|
+
export declare const IssueGetLabelsResponseBodyList: S.Schema<IssueGetLabelsResponseBodyList>;
|
|
878
|
+
export type IssueGetLabelsResponse = IssueGetLabelsResponseBodyList;
|
|
879
|
+
export declare const IssueGetLabelsResponse: S.Schema<IssueGetLabelsResponse>;
|
|
880
|
+
export interface IssueGetMilestoneRequest {
|
|
881
|
+
/** owner of the repo */
|
|
882
|
+
owner: string;
|
|
883
|
+
/** name of the repo */
|
|
884
|
+
repo: string;
|
|
885
|
+
/** the milestone to get, identified by ID and if not available by name */
|
|
886
|
+
id: number;
|
|
887
|
+
}
|
|
888
|
+
export declare const IssueGetMilestoneRequest: S.Schema<IssueGetMilestoneRequest>;
|
|
889
|
+
export interface IssueGetMilestonesListRequest {
|
|
890
|
+
/** owner of the repo */
|
|
891
|
+
owner: string;
|
|
892
|
+
/** name of the repo */
|
|
893
|
+
repo: string;
|
|
894
|
+
/** Milestone state, Recognized values are open, closed and all. Defaults to "open" */
|
|
895
|
+
state?: string;
|
|
896
|
+
/** filter by milestone name */
|
|
897
|
+
name?: string;
|
|
898
|
+
/** page number of results to return (1-based) */
|
|
899
|
+
page?: number;
|
|
900
|
+
/** page size of results */
|
|
901
|
+
limit?: number;
|
|
902
|
+
}
|
|
903
|
+
export declare const IssueGetMilestonesListRequest: S.Schema<IssueGetMilestonesListRequest>;
|
|
904
|
+
export type IssueGetMilestonesListResponseBodyList = Array<Milestone>;
|
|
905
|
+
export declare const IssueGetMilestonesListResponseBodyList: S.Schema<IssueGetMilestonesListResponseBodyList>;
|
|
906
|
+
export type IssueGetMilestonesListResponse = IssueGetMilestonesListResponseBodyList;
|
|
907
|
+
export declare const IssueGetMilestonesListResponse: S.Schema<IssueGetMilestonesListResponse>;
|
|
908
|
+
export interface IssueGetRepoCommentsRequest {
|
|
909
|
+
/** owner of the repo */
|
|
910
|
+
owner: string;
|
|
911
|
+
/** name of the repo */
|
|
912
|
+
repo: string;
|
|
913
|
+
/** if provided, only comments updated since the provided time are returned. */
|
|
914
|
+
since?: string;
|
|
915
|
+
/** if provided, only comments updated before the provided time are returned. */
|
|
916
|
+
before?: string;
|
|
917
|
+
/** page number of results to return (1-based) */
|
|
918
|
+
page?: number;
|
|
919
|
+
/** page size of results */
|
|
920
|
+
limit?: number;
|
|
921
|
+
}
|
|
922
|
+
export declare const IssueGetRepoCommentsRequest: S.Schema<IssueGetRepoCommentsRequest>;
|
|
923
|
+
export type IssueGetRepoCommentsResponseBodyList = Array<Comment>;
|
|
924
|
+
export declare const IssueGetRepoCommentsResponseBodyList: S.Schema<IssueGetRepoCommentsResponseBodyList>;
|
|
925
|
+
export type IssueGetRepoCommentsResponse = IssueGetRepoCommentsResponseBodyList;
|
|
926
|
+
export declare const IssueGetRepoCommentsResponse: S.Schema<IssueGetRepoCommentsResponse>;
|
|
927
|
+
export interface IssueListBlocksRequest {
|
|
928
|
+
/** owner of the repo */
|
|
929
|
+
owner: string;
|
|
930
|
+
/** name of the repo */
|
|
931
|
+
repo: string;
|
|
932
|
+
/** index of the issue */
|
|
933
|
+
index: number;
|
|
934
|
+
/** page number of results to return (1-based) */
|
|
935
|
+
page?: number;
|
|
936
|
+
/** page size of results */
|
|
937
|
+
limit?: number;
|
|
938
|
+
}
|
|
939
|
+
export declare const IssueListBlocksRequest: S.Schema<IssueListBlocksRequest>;
|
|
940
|
+
export type IssueListBlocksResponseBodyList = Array<Issue>;
|
|
941
|
+
export declare const IssueListBlocksResponseBodyList: S.Schema<IssueListBlocksResponseBodyList>;
|
|
942
|
+
export type IssueListBlocksResponse = IssueListBlocksResponseBodyList;
|
|
943
|
+
export declare const IssueListBlocksResponse: S.Schema<IssueListBlocksResponse>;
|
|
944
|
+
export type IssueListLabelsRequestSort = "mostissues" | "leastissues" | "reversealphabetically";
|
|
945
|
+
export declare const IssueListLabelsRequestSort: any;
|
|
946
|
+
export interface IssueListLabelsRequest {
|
|
947
|
+
/** owner of the repo */
|
|
948
|
+
owner: string;
|
|
949
|
+
/** name of the repo */
|
|
950
|
+
repo: string;
|
|
951
|
+
/** Specifies the sorting method: mostissues, leastissues, or reversealphabetically. */
|
|
952
|
+
sort?: IssueListLabelsRequestSort | (string & {});
|
|
953
|
+
/** page number of results to return (1-based) */
|
|
954
|
+
page?: number;
|
|
955
|
+
/** page size of results */
|
|
956
|
+
limit?: number;
|
|
957
|
+
}
|
|
958
|
+
export declare const IssueListLabelsRequest: S.Schema<IssueListLabelsRequest>;
|
|
959
|
+
export type IssueListLabelsResponseBodyList = Array<Label>;
|
|
960
|
+
export declare const IssueListLabelsResponseBodyList: S.Schema<IssueListLabelsResponseBodyList>;
|
|
961
|
+
export type IssueListLabelsResponse = IssueListLabelsResponseBodyList;
|
|
962
|
+
export declare const IssueListLabelsResponse: S.Schema<IssueListLabelsResponse>;
|
|
963
|
+
export interface IssuePostCommentReactionRequest {
|
|
964
|
+
/** owner of the repo */
|
|
965
|
+
owner: string;
|
|
966
|
+
/** name of the repo */
|
|
967
|
+
repo: string;
|
|
968
|
+
/** id of the comment to edit */
|
|
969
|
+
id: number;
|
|
970
|
+
content?: string;
|
|
971
|
+
}
|
|
972
|
+
export declare const IssuePostCommentReactionRequest: S.Schema<IssuePostCommentReactionRequest>;
|
|
973
|
+
export interface IssueRemoveLabelRequest {
|
|
974
|
+
/** owner of the repo */
|
|
975
|
+
owner: string;
|
|
976
|
+
/** name of the repo */
|
|
977
|
+
repo: string;
|
|
978
|
+
/** index of the issue */
|
|
979
|
+
index: number;
|
|
980
|
+
/** name or id of the label to remove */
|
|
981
|
+
identifier: string;
|
|
982
|
+
updated_at?: string;
|
|
983
|
+
}
|
|
984
|
+
export declare const IssueRemoveLabelRequest: S.Schema<IssueRemoveLabelRequest>;
|
|
985
|
+
export interface IssueRemoveLabelResponse {
|
|
986
|
+
}
|
|
987
|
+
export declare const IssueRemoveLabelResponse: S.Schema<IssueRemoveLabelResponse>;
|
|
988
|
+
/** Labels can be a list of integers representing label IDs or a list of strings representing label names */
|
|
989
|
+
export type IssueReplaceLabelsRequestLabelsList = Array<unknown>;
|
|
990
|
+
export declare const IssueReplaceLabelsRequestLabelsList: S.Schema<IssueReplaceLabelsRequestLabelsList>;
|
|
991
|
+
export interface IssueReplaceLabelsRequest {
|
|
992
|
+
/** owner of the repo */
|
|
993
|
+
owner: string;
|
|
994
|
+
/** name of the repo */
|
|
995
|
+
repo: string;
|
|
996
|
+
/** index of the issue */
|
|
997
|
+
index: number;
|
|
998
|
+
/** Labels can be a list of integers representing label IDs or a list of strings representing label names */
|
|
999
|
+
labels?: IssueReplaceLabelsRequestLabelsList;
|
|
1000
|
+
updated_at?: string;
|
|
1001
|
+
}
|
|
1002
|
+
export declare const IssueReplaceLabelsRequest: S.Schema<IssueReplaceLabelsRequest>;
|
|
1003
|
+
export type IssueReplaceLabelsResponseBodyList = Array<Label>;
|
|
1004
|
+
export declare const IssueReplaceLabelsResponseBodyList: S.Schema<IssueReplaceLabelsResponseBodyList>;
|
|
1005
|
+
export type IssueReplaceLabelsResponse = IssueReplaceLabelsResponseBodyList;
|
|
1006
|
+
export declare const IssueReplaceLabelsResponse: S.Schema<IssueReplaceLabelsResponse>;
|
|
1007
|
+
export interface IssueResetTimeRequest {
|
|
1008
|
+
/** owner of the repo */
|
|
1009
|
+
owner: string;
|
|
1010
|
+
/** name of the repo */
|
|
1011
|
+
repo: string;
|
|
1012
|
+
/** index of the issue to add tracked time to */
|
|
1013
|
+
index: number;
|
|
1014
|
+
}
|
|
1015
|
+
export declare const IssueResetTimeRequest: S.Schema<IssueResetTimeRequest>;
|
|
1016
|
+
export interface IssueResetTimeResponse {
|
|
1017
|
+
}
|
|
1018
|
+
export declare const IssueResetTimeResponse: S.Schema<IssueResetTimeResponse>;
|
|
1019
|
+
export interface IssueStartStopWatchRequest {
|
|
1020
|
+
/** owner of the repo */
|
|
1021
|
+
owner: string;
|
|
1022
|
+
/** name of the repo */
|
|
1023
|
+
repo: string;
|
|
1024
|
+
/** index of the issue to create the stopwatch on */
|
|
1025
|
+
index: number;
|
|
1026
|
+
}
|
|
1027
|
+
export declare const IssueStartStopWatchRequest: S.Schema<IssueStartStopWatchRequest>;
|
|
1028
|
+
export interface IssueStartStopWatchResponse {
|
|
1029
|
+
}
|
|
1030
|
+
export declare const IssueStartStopWatchResponse: S.Schema<IssueStartStopWatchResponse>;
|
|
1031
|
+
export interface IssueStopStopWatchRequest {
|
|
1032
|
+
/** owner of the repo */
|
|
1033
|
+
owner: string;
|
|
1034
|
+
/** name of the repo */
|
|
1035
|
+
repo: string;
|
|
1036
|
+
/** index of the issue to stop the stopwatch on */
|
|
1037
|
+
index: number;
|
|
1038
|
+
}
|
|
1039
|
+
export declare const IssueStopStopWatchRequest: S.Schema<IssueStopStopWatchRequest>;
|
|
1040
|
+
export interface IssueStopStopWatchResponse {
|
|
1041
|
+
}
|
|
1042
|
+
export declare const IssueStopStopWatchResponse: S.Schema<IssueStopStopWatchResponse>;
|
|
1043
|
+
export interface IssueSubscriptionsRequest {
|
|
1044
|
+
/** owner of the repo */
|
|
1045
|
+
owner: string;
|
|
1046
|
+
/** name of the repo */
|
|
1047
|
+
repo: string;
|
|
1048
|
+
/** index of the issue */
|
|
1049
|
+
index: number;
|
|
1050
|
+
/** page number of results to return (1-based) */
|
|
1051
|
+
page?: number;
|
|
1052
|
+
/** page size of results */
|
|
1053
|
+
limit?: number;
|
|
1054
|
+
}
|
|
1055
|
+
export declare const IssueSubscriptionsRequest: S.Schema<IssueSubscriptionsRequest>;
|
|
1056
|
+
export type IssueSubscriptionsResponseBodyList = Array<User>;
|
|
1057
|
+
export declare const IssueSubscriptionsResponseBodyList: S.Schema<IssueSubscriptionsResponseBodyList>;
|
|
1058
|
+
export type IssueSubscriptionsResponse = IssueSubscriptionsResponseBodyList;
|
|
1059
|
+
export declare const IssueSubscriptionsResponse: S.Schema<IssueSubscriptionsResponse>;
|
|
1060
|
+
export interface IssueTrackedTimesRequest {
|
|
1061
|
+
/** owner of the repo */
|
|
1062
|
+
owner: string;
|
|
1063
|
+
/** name of the repo */
|
|
1064
|
+
repo: string;
|
|
1065
|
+
/** index of the issue */
|
|
1066
|
+
index: number;
|
|
1067
|
+
/** optional filter by user (available for issue managers) */
|
|
1068
|
+
user?: string;
|
|
1069
|
+
/** Only show times updated after the given time. This is a timestamp in RFC 3339 format */
|
|
1070
|
+
since?: string;
|
|
1071
|
+
/** Only show times updated before the given time. This is a timestamp in RFC 3339 format */
|
|
1072
|
+
before?: string;
|
|
1073
|
+
/** page number of results to return (1-based) */
|
|
1074
|
+
page?: number;
|
|
1075
|
+
/** page size of results */
|
|
1076
|
+
limit?: number;
|
|
1077
|
+
}
|
|
1078
|
+
export declare const IssueTrackedTimesRequest: S.Schema<IssueTrackedTimesRequest>;
|
|
1079
|
+
export type IssueTrackedTimesResponseBodyList = Array<TrackedTime>;
|
|
1080
|
+
export declare const IssueTrackedTimesResponseBodyList: S.Schema<IssueTrackedTimesResponseBodyList>;
|
|
1081
|
+
export type IssueTrackedTimesResponse = IssueTrackedTimesResponseBodyList;
|
|
1082
|
+
export declare const IssueTrackedTimesResponse: S.Schema<IssueTrackedTimesResponse>;
|
|
1083
|
+
export interface ListIssueAttachmentsRequest {
|
|
1084
|
+
/** owner of the repo */
|
|
1085
|
+
owner: string;
|
|
1086
|
+
/** name of the repo */
|
|
1087
|
+
repo: string;
|
|
1088
|
+
/** index of the issue */
|
|
1089
|
+
index: number;
|
|
1090
|
+
}
|
|
1091
|
+
export declare const ListIssueAttachmentsRequest: S.Schema<ListIssueAttachmentsRequest>;
|
|
1092
|
+
export type ListIssueAttachmentsResponseBodyList = Array<Attachment>;
|
|
1093
|
+
export declare const ListIssueAttachmentsResponseBodyList: S.Schema<ListIssueAttachmentsResponseBodyList>;
|
|
1094
|
+
export type ListIssueAttachmentsResponse = ListIssueAttachmentsResponseBodyList;
|
|
1095
|
+
export declare const ListIssueAttachmentsResponse: S.Schema<ListIssueAttachmentsResponse>;
|
|
1096
|
+
export interface ListIssueCommentAttachmentsRequest {
|
|
1097
|
+
/** owner of the repo */
|
|
1098
|
+
owner: string;
|
|
1099
|
+
/** name of the repo */
|
|
1100
|
+
repo: string;
|
|
1101
|
+
/** id of the comment */
|
|
1102
|
+
id: number;
|
|
1103
|
+
}
|
|
1104
|
+
export declare const ListIssueCommentAttachmentsRequest: S.Schema<ListIssueCommentAttachmentsRequest>;
|
|
1105
|
+
export type ListIssueCommentAttachmentsResponseBodyList = Array<Attachment>;
|
|
1106
|
+
export declare const ListIssueCommentAttachmentsResponseBodyList: S.Schema<ListIssueCommentAttachmentsResponseBodyList>;
|
|
1107
|
+
export type ListIssueCommentAttachmentsResponse = ListIssueCommentAttachmentsResponseBodyList;
|
|
1108
|
+
export declare const ListIssueCommentAttachmentsResponse: S.Schema<ListIssueCommentAttachmentsResponse>;
|
|
1109
|
+
export interface ListIssueDependenciesRequest {
|
|
1110
|
+
/** owner of the repo */
|
|
1111
|
+
owner: string;
|
|
1112
|
+
/** name of the repo */
|
|
1113
|
+
repo: string;
|
|
1114
|
+
/** index of the issue */
|
|
1115
|
+
index: number;
|
|
1116
|
+
/** page number of results to return (1-based) */
|
|
1117
|
+
page?: number;
|
|
1118
|
+
/** page size of results */
|
|
1119
|
+
limit?: number;
|
|
1120
|
+
}
|
|
1121
|
+
export declare const ListIssueDependenciesRequest: S.Schema<ListIssueDependenciesRequest>;
|
|
1122
|
+
export type ListIssueDependenciesResponseBodyList = Array<Issue>;
|
|
1123
|
+
export declare const ListIssueDependenciesResponseBodyList: S.Schema<ListIssueDependenciesResponseBodyList>;
|
|
1124
|
+
export type ListIssueDependenciesResponse = ListIssueDependenciesResponseBodyList;
|
|
1125
|
+
export declare const ListIssueDependenciesResponse: S.Schema<ListIssueDependenciesResponse>;
|
|
1126
|
+
export type ListIssuesRequestState = "closed" | "open" | "all";
|
|
1127
|
+
export declare const ListIssuesRequestState: any;
|
|
1128
|
+
export type ListIssuesRequestType = "issues" | "pulls";
|
|
1129
|
+
export declare const ListIssuesRequestType: any;
|
|
1130
|
+
export type ListIssuesRequestSort = "relevance" | "latest" | "oldest" | "recentupdate" | "leastupdate" | "mostcomment" | "leastcomment" | "nearduedate" | "farduedate";
|
|
1131
|
+
export declare const ListIssuesRequestSort: any;
|
|
1132
|
+
export interface ListIssuesRequest {
|
|
1133
|
+
/** owner of the repo */
|
|
1134
|
+
owner: string;
|
|
1135
|
+
/** name of the repo */
|
|
1136
|
+
repo: string;
|
|
1137
|
+
/** whether issue is open or closed */
|
|
1138
|
+
state?: ListIssuesRequestState | (string & {});
|
|
1139
|
+
/** comma separated list of labels. Fetch only issues that have any of this labels. Non existent labels are discarded */
|
|
1140
|
+
labels?: string;
|
|
1141
|
+
/** search string */
|
|
1142
|
+
q?: string;
|
|
1143
|
+
/** filter by type (issues / pulls) if set */
|
|
1144
|
+
type?: ListIssuesRequestType | (string & {});
|
|
1145
|
+
/** comma separated list of milestone names or ids. It uses names and fall back to ids. Fetch only issues that have any of this milestones. Non existent milestones are discarded */
|
|
1146
|
+
milestones?: string;
|
|
1147
|
+
/** Only show items updated after the given time. This is a timestamp in RFC 3339 format */
|
|
1148
|
+
since?: string;
|
|
1149
|
+
/** Only show items updated before the given time. This is a timestamp in RFC 3339 format */
|
|
1150
|
+
before?: string;
|
|
1151
|
+
/** Only show items which were created by the given user */
|
|
1152
|
+
created_by?: string;
|
|
1153
|
+
/** Only show items for which the given user is assigned */
|
|
1154
|
+
assigned_by?: string;
|
|
1155
|
+
/** Only show items in which the given user was mentioned */
|
|
1156
|
+
mentioned_by?: string;
|
|
1157
|
+
/** page number of results to return (1-based) */
|
|
1158
|
+
page?: number;
|
|
1159
|
+
/** page size of results */
|
|
1160
|
+
limit?: number;
|
|
1161
|
+
/** Type of sort */
|
|
1162
|
+
sort?: ListIssuesRequestSort | (string & {});
|
|
1163
|
+
}
|
|
1164
|
+
export declare const ListIssuesRequest: S.Schema<ListIssuesRequest>;
|
|
1165
|
+
export type ListIssuesResponseBodyList = Array<Issue>;
|
|
1166
|
+
export declare const ListIssuesResponseBodyList: S.Schema<ListIssuesResponseBodyList>;
|
|
1167
|
+
export type ListIssuesResponse = ListIssuesResponseBodyList;
|
|
1168
|
+
export declare const ListIssuesResponse: S.Schema<ListIssuesResponse>;
|
|
1169
|
+
export interface MoveIssuePinRequest {
|
|
1170
|
+
/** owner of the repo */
|
|
1171
|
+
owner: string;
|
|
1172
|
+
/** name of the repo */
|
|
1173
|
+
repo: string;
|
|
1174
|
+
/** index of issue */
|
|
1175
|
+
index: number;
|
|
1176
|
+
/** the new position */
|
|
1177
|
+
position: number;
|
|
1178
|
+
}
|
|
1179
|
+
export declare const MoveIssuePinRequest: S.Schema<MoveIssuePinRequest>;
|
|
1180
|
+
export interface MoveIssuePinResponse {
|
|
1181
|
+
}
|
|
1182
|
+
export declare const MoveIssuePinResponse: S.Schema<MoveIssuePinResponse>;
|
|
1183
|
+
export interface PinIssueRequest {
|
|
1184
|
+
/** owner of the repo */
|
|
1185
|
+
owner: string;
|
|
1186
|
+
/** name of the repo */
|
|
1187
|
+
repo: string;
|
|
1188
|
+
/** index of issue to pin */
|
|
1189
|
+
index: number;
|
|
1190
|
+
}
|
|
1191
|
+
export declare const PinIssueRequest: S.Schema<PinIssueRequest>;
|
|
1192
|
+
export interface PinIssueResponse {
|
|
1193
|
+
}
|
|
1194
|
+
export declare const PinIssueResponse: S.Schema<PinIssueResponse>;
|
|
1195
|
+
export interface PostIssueReactionRequest {
|
|
1196
|
+
/** owner of the repo */
|
|
1197
|
+
owner: string;
|
|
1198
|
+
/** name of the repo */
|
|
1199
|
+
repo: string;
|
|
1200
|
+
/** index of the issue */
|
|
1201
|
+
index: number;
|
|
1202
|
+
content?: string;
|
|
1203
|
+
}
|
|
1204
|
+
export declare const PostIssueReactionRequest: S.Schema<PostIssueReactionRequest>;
|
|
1205
|
+
export interface RemoveIssueBlockingRequest {
|
|
1206
|
+
/** owner of the repo */
|
|
1207
|
+
owner: string;
|
|
1208
|
+
/** name of the repo */
|
|
1209
|
+
repo: string;
|
|
1210
|
+
/** index of the issue */
|
|
1211
|
+
index: number;
|
|
1212
|
+
}
|
|
1213
|
+
export declare const RemoveIssueBlockingRequest: S.Schema<RemoveIssueBlockingRequest>;
|
|
1214
|
+
export interface RemoveIssueDependenciesRequest {
|
|
1215
|
+
/** owner of the repo */
|
|
1216
|
+
owner: string;
|
|
1217
|
+
/** name of the repo */
|
|
1218
|
+
repo: string;
|
|
1219
|
+
/** index of the issue */
|
|
1220
|
+
index: number;
|
|
1221
|
+
}
|
|
1222
|
+
export declare const RemoveIssueDependenciesRequest: S.Schema<RemoveIssueDependenciesRequest>;
|
|
1223
|
+
export type SearchIssuesRequestState = "open" | "closed" | "all";
|
|
1224
|
+
export declare const SearchIssuesRequestState: any;
|
|
1225
|
+
export type SearchIssuesRequestType = "issues" | "pulls";
|
|
1226
|
+
export declare const SearchIssuesRequestType: any;
|
|
1227
|
+
export type SearchIssuesRequestSort = "relevance" | "latest" | "oldest" | "recentupdate" | "leastupdate" | "mostcomment" | "leastcomment" | "nearduedate" | "farduedate";
|
|
1228
|
+
export declare const SearchIssuesRequestSort: any;
|
|
1229
|
+
export interface SearchIssuesRequest {
|
|
1230
|
+
/** State of the issue */
|
|
1231
|
+
state?: SearchIssuesRequestState | (string & {});
|
|
1232
|
+
/** Comma-separated list of label names. Fetch only issues that have any of these labels. Non existent labels are discarded. */
|
|
1233
|
+
labels?: string;
|
|
1234
|
+
/** Comma-separated list of milestone names. Fetch only issues that have any of these milestones. Non existent milestones are discarded. */
|
|
1235
|
+
milestones?: string;
|
|
1236
|
+
/** Search string */
|
|
1237
|
+
q?: string;
|
|
1238
|
+
/** Repository ID to prioritize in the results */
|
|
1239
|
+
priority_repo_id?: number;
|
|
1240
|
+
/** Filter by issue type */
|
|
1241
|
+
type?: SearchIssuesRequestType | (string & {});
|
|
1242
|
+
/** Only show issues updated after the given time (RFC 3339 format) */
|
|
1243
|
+
since?: string;
|
|
1244
|
+
/** Only show issues updated before the given time (RFC 3339 format) */
|
|
1245
|
+
before?: string;
|
|
1246
|
+
/** Filter issues or pulls assigned to the authenticated user */
|
|
1247
|
+
assigned?: boolean;
|
|
1248
|
+
/** Filter issues or pulls created by the authenticated user */
|
|
1249
|
+
created?: boolean;
|
|
1250
|
+
/** Filter issues or pulls mentioning the authenticated user */
|
|
1251
|
+
mentioned?: boolean;
|
|
1252
|
+
/** Filter pull requests where the authenticated user's review was requested */
|
|
1253
|
+
review_requested?: boolean;
|
|
1254
|
+
/** Filter pull requests reviewed by the authenticated user */
|
|
1255
|
+
reviewed?: boolean;
|
|
1256
|
+
/** Filter by repository owner */
|
|
1257
|
+
owner?: string;
|
|
1258
|
+
/** Filter by team (requires organization owner parameter) */
|
|
1259
|
+
team?: string;
|
|
1260
|
+
/** Page number of results to return (1-based) */
|
|
1261
|
+
page?: number;
|
|
1262
|
+
/** Number of items per page */
|
|
1263
|
+
limit?: number;
|
|
1264
|
+
/** Type of sort */
|
|
1265
|
+
sort?: SearchIssuesRequestSort | (string & {});
|
|
1266
|
+
}
|
|
1267
|
+
export declare const SearchIssuesRequest: S.Schema<SearchIssuesRequest>;
|
|
1268
|
+
export type SearchIssuesResponseBodyList = Array<Issue>;
|
|
1269
|
+
export declare const SearchIssuesResponseBodyList: S.Schema<SearchIssuesResponseBodyList>;
|
|
1270
|
+
export type SearchIssuesResponse = SearchIssuesResponseBodyList;
|
|
1271
|
+
export declare const SearchIssuesResponse: S.Schema<SearchIssuesResponse>;
|
|
1272
|
+
export interface UnpinIssueRequest {
|
|
1273
|
+
/** owner of the repo */
|
|
1274
|
+
owner: string;
|
|
1275
|
+
/** name of the repo */
|
|
1276
|
+
repo: string;
|
|
1277
|
+
/** index of issue to unpin */
|
|
1278
|
+
index: number;
|
|
1279
|
+
}
|
|
1280
|
+
export declare const UnpinIssueRequest: S.Schema<UnpinIssueRequest>;
|
|
1281
|
+
export interface UnpinIssueResponse {
|
|
1282
|
+
}
|
|
1283
|
+
export declare const UnpinIssueResponse: S.Schema<UnpinIssueResponse>;
|
|
1284
|
+
export type CreateIssueError = Forbidden | NotFound | UnprocessableEntity | Locked | ForgejoOpError;
|
|
1285
|
+
/** Create an issue. If using deadline only the date will be taken into account, and time of day ignored. */
|
|
1286
|
+
export declare const createIssue: API.OperationMethod<CreateIssueRequest, Issue, CreateIssueError, ForgejoOpContext>;
|
|
1287
|
+
export type CreateIssueAttachmentError = BadRequest | NotFound | UnprocessableEntity | Locked | ForgejoOpError;
|
|
1288
|
+
/** Create an issue attachment */
|
|
1289
|
+
export declare const createIssueAttachment: API.OperationMethod<CreateIssueAttachmentRequest, Attachment, CreateIssueAttachmentError, ForgejoOpContext>;
|
|
1290
|
+
export type CreateIssueBlockingError = NotFound | ForgejoOpError;
|
|
1291
|
+
/** Block the issue given in the body by the issue in path */
|
|
1292
|
+
export declare const createIssueBlocking: API.OperationMethod<CreateIssueBlockingRequest, Issue, CreateIssueBlockingError, ForgejoOpContext>;
|
|
1293
|
+
export type CreateIssueCommentAttachmentError = BadRequest | NotFound | UnprocessableEntity | Locked | ForgejoOpError;
|
|
1294
|
+
/** Create a comment attachment */
|
|
1295
|
+
export declare const createIssueCommentAttachment: API.OperationMethod<CreateIssueCommentAttachmentRequest, Attachment, CreateIssueCommentAttachmentError, ForgejoOpContext>;
|
|
1296
|
+
export type CreateIssueDependenciesError = NotFound | Locked | ForgejoOpError;
|
|
1297
|
+
/** Make the issue in the url depend on the issue in the form. */
|
|
1298
|
+
export declare const createIssueDependencies: API.OperationMethod<CreateIssueDependenciesRequest, Issue, CreateIssueDependenciesError, ForgejoOpContext>;
|
|
1299
|
+
export type DeleteIssueError = Forbidden | NotFound | ForgejoOpError;
|
|
1300
|
+
/** Delete an issue */
|
|
1301
|
+
export declare const deleteIssue: API.OperationMethod<DeleteIssueRequest, DeleteIssueResponse, DeleteIssueError, ForgejoOpContext>;
|
|
1302
|
+
export type DeleteIssueAttachmentError = NotFound | Locked | ForgejoOpError;
|
|
1303
|
+
/** Delete an issue attachment */
|
|
1304
|
+
export declare const deleteIssueAttachment: API.OperationMethod<DeleteIssueAttachmentRequest, DeleteIssueAttachmentResponse, DeleteIssueAttachmentError, ForgejoOpContext>;
|
|
1305
|
+
export type DeleteIssueCommentAttachmentError = NotFound | Locked | ForgejoOpError;
|
|
1306
|
+
/** Delete a comment attachment */
|
|
1307
|
+
export declare const deleteIssueCommentAttachment: API.OperationMethod<DeleteIssueCommentAttachmentRequest, DeleteIssueCommentAttachmentResponse, DeleteIssueCommentAttachmentError, ForgejoOpContext>;
|
|
1308
|
+
export type DeleteIssueReactionError = Forbidden | NotFound | ForgejoOpError;
|
|
1309
|
+
/** Remove a reaction from an issue */
|
|
1310
|
+
export declare const deleteIssueReaction: API.OperationMethod<DeleteIssueReactionRequest, DeleteIssueReactionResponse, DeleteIssueReactionError, ForgejoOpContext>;
|
|
1311
|
+
export type EditIssueError = Forbidden | NotFound | ForgejoOpError;
|
|
1312
|
+
/** Edit an issue. If using deadline only the date will be taken into account, and time of day ignored. */
|
|
1313
|
+
export declare const editIssue: API.OperationMethod<EditIssueRequest, Issue, EditIssueError, ForgejoOpContext>;
|
|
1314
|
+
export type EditIssueAttachmentError = NotFound | Locked | ForgejoOpError;
|
|
1315
|
+
/** Edit an issue attachment */
|
|
1316
|
+
export declare const editIssueAttachment: API.OperationMethod<EditIssueAttachmentRequest, Attachment, EditIssueAttachmentError, ForgejoOpContext>;
|
|
1317
|
+
export type EditIssueCommentAttachmentError = NotFound | Locked | ForgejoOpError;
|
|
1318
|
+
/** Edit a comment attachment */
|
|
1319
|
+
export declare const editIssueCommentAttachment: API.OperationMethod<EditIssueCommentAttachmentRequest, Attachment, EditIssueCommentAttachmentError, ForgejoOpContext>;
|
|
1320
|
+
export type EditIssueDeadlineError = Forbidden | NotFound | ForgejoOpError;
|
|
1321
|
+
/** Set an issue deadline. If set to null, the deadline is deleted. If using deadline only the date will be taken into account, and time of day ignored. */
|
|
1322
|
+
export declare const editIssueDeadline: API.OperationMethod<EditIssueDeadlineRequest, IssueDeadline, EditIssueDeadlineError, ForgejoOpContext>;
|
|
1323
|
+
export type GetIssueError = NotFound | ForgejoOpError;
|
|
1324
|
+
/** Get an issue */
|
|
1325
|
+
export declare const getIssue: API.OperationMethod<GetIssueRequest, Issue, GetIssueError, ForgejoOpContext>;
|
|
1326
|
+
export type GetIssueAttachmentError = NotFound | ForgejoOpError;
|
|
1327
|
+
/** Get an issue attachment */
|
|
1328
|
+
export declare const getIssueAttachment: API.OperationMethod<GetIssueAttachmentRequest, Attachment, GetIssueAttachmentError, ForgejoOpContext>;
|
|
1329
|
+
export type GetIssueCommentAttachmentError = NotFound | ForgejoOpError;
|
|
1330
|
+
/** Get a comment attachment */
|
|
1331
|
+
export declare const getIssueCommentAttachment: API.OperationMethod<GetIssueCommentAttachmentRequest, Attachment, GetIssueCommentAttachmentError, ForgejoOpContext>;
|
|
1332
|
+
export type GetIssueReactionsError = Forbidden | NotFound | ForgejoOpError;
|
|
1333
|
+
/** Get a list reactions of an issue */
|
|
1334
|
+
export declare const getIssueReactions: API.OperationMethod<GetIssueReactionsRequest, GetIssueReactionsResponse, GetIssueReactionsError, ForgejoOpContext>;
|
|
1335
|
+
export type IssueAddLabelError = Forbidden | NotFound | ForgejoOpError;
|
|
1336
|
+
/** Add a label to an issue */
|
|
1337
|
+
export declare const issueAddLabel: API.OperationMethod<IssueAddLabelRequest, IssueAddLabelResponse, IssueAddLabelError, ForgejoOpContext>;
|
|
1338
|
+
export type IssueAddSubscriptionError = NotFound | ForgejoOpError;
|
|
1339
|
+
/** Subscribe user to issue */
|
|
1340
|
+
export declare const issueAddSubscription: API.OperationMethod<IssueAddSubscriptionRequest, IssueAddSubscriptionResponse, IssueAddSubscriptionError, ForgejoOpContext>;
|
|
1341
|
+
export type IssueAddTimeError = BadRequest | Forbidden | NotFound | ForgejoOpError;
|
|
1342
|
+
/** Add tracked time to a issue */
|
|
1343
|
+
export declare const issueAddTime: API.OperationMethod<IssueAddTimeRequest, TrackedTime, IssueAddTimeError, ForgejoOpContext>;
|
|
1344
|
+
export type IssueCheckSubscriptionError = NotFound | ForgejoOpError;
|
|
1345
|
+
/** Check if user is subscribed to an issue */
|
|
1346
|
+
export declare const issueCheckSubscription: API.OperationMethod<IssueCheckSubscriptionRequest, WatchInfo, IssueCheckSubscriptionError, ForgejoOpContext>;
|
|
1347
|
+
export type IssueClearLabelsError = Forbidden | NotFound | ForgejoOpError;
|
|
1348
|
+
/** Remove all labels from an issue */
|
|
1349
|
+
export declare const issueClearLabels: API.OperationMethod<IssueClearLabelsRequest, IssueClearLabelsResponse, IssueClearLabelsError, ForgejoOpContext>;
|
|
1350
|
+
export type IssueCreateCommentError = Forbidden | NotFound | Locked | ForgejoOpError;
|
|
1351
|
+
/** Add a comment to an issue */
|
|
1352
|
+
export declare const issueCreateComment: API.OperationMethod<IssueCreateCommentRequest, Comment, IssueCreateCommentError, ForgejoOpContext>;
|
|
1353
|
+
export type IssueCreateLabelError = NotFound | UnprocessableEntity | ForgejoOpError;
|
|
1354
|
+
/** Create a label */
|
|
1355
|
+
export declare const issueCreateLabel: API.OperationMethod<IssueCreateLabelRequest, Label, IssueCreateLabelError, ForgejoOpContext>;
|
|
1356
|
+
export type IssueCreateMilestoneError = NotFound | ForgejoOpError;
|
|
1357
|
+
/** Create a milestone */
|
|
1358
|
+
export declare const issueCreateMilestone: API.OperationMethod<IssueCreateMilestoneRequest, Milestone, IssueCreateMilestoneError, ForgejoOpContext>;
|
|
1359
|
+
export type IssueDeleteCommentError = Forbidden | ForgejoOpError;
|
|
1360
|
+
/** Delete a comment */
|
|
1361
|
+
export declare const issueDeleteComment: API.OperationMethod<IssueDeleteCommentRequest, IssueDeleteCommentResponse, IssueDeleteCommentError, ForgejoOpContext>;
|
|
1362
|
+
export type IssueDeleteCommentReactionError = Forbidden | NotFound | ForgejoOpError;
|
|
1363
|
+
/** Remove a reaction from a comment of an issue */
|
|
1364
|
+
export declare const issueDeleteCommentReaction: API.OperationMethod<IssueDeleteCommentReactionRequest, IssueDeleteCommentReactionResponse, IssueDeleteCommentReactionError, ForgejoOpContext>;
|
|
1365
|
+
export type IssueDeleteLabelError = NotFound | ForgejoOpError;
|
|
1366
|
+
/** Delete a label */
|
|
1367
|
+
export declare const issueDeleteLabel: API.OperationMethod<IssueDeleteLabelRequest, IssueDeleteLabelResponse, IssueDeleteLabelError, ForgejoOpContext>;
|
|
1368
|
+
export type IssueDeleteMilestoneError = NotFound | ForgejoOpError;
|
|
1369
|
+
/** Delete a milestone */
|
|
1370
|
+
export declare const issueDeleteMilestone: API.OperationMethod<IssueDeleteMilestoneRequest, IssueDeleteMilestoneResponse, IssueDeleteMilestoneError, ForgejoOpContext>;
|
|
1371
|
+
export type IssueDeleteStopWatchError = Forbidden | NotFound | Conflict | ForgejoOpError;
|
|
1372
|
+
/** Delete an issue's existing stopwatch. */
|
|
1373
|
+
export declare const issueDeleteStopWatch: API.OperationMethod<IssueDeleteStopWatchRequest, IssueDeleteStopWatchResponse, IssueDeleteStopWatchError, ForgejoOpContext>;
|
|
1374
|
+
export type IssueDeleteSubscriptionError = NotFound | ForgejoOpError;
|
|
1375
|
+
/** Unsubscribe user from issue */
|
|
1376
|
+
export declare const issueDeleteSubscription: API.OperationMethod<IssueDeleteSubscriptionRequest, IssueDeleteSubscriptionResponse, IssueDeleteSubscriptionError, ForgejoOpContext>;
|
|
1377
|
+
export type IssueDeleteTimeError = BadRequest | Forbidden | NotFound | ForgejoOpError;
|
|
1378
|
+
/** Delete specific tracked time */
|
|
1379
|
+
export declare const issueDeleteTime: API.OperationMethod<IssueDeleteTimeRequest, IssueDeleteTimeResponse, IssueDeleteTimeError, ForgejoOpContext>;
|
|
1380
|
+
export type IssueEditCommentError = Forbidden | NotFound | Locked | ForgejoOpError;
|
|
1381
|
+
/** Edit a comment */
|
|
1382
|
+
export declare const issueEditComment: API.OperationMethod<IssueEditCommentRequest, Comment, IssueEditCommentError, ForgejoOpContext>;
|
|
1383
|
+
export type IssueEditLabelError = NotFound | UnprocessableEntity | ForgejoOpError;
|
|
1384
|
+
/** Update a label */
|
|
1385
|
+
export declare const issueEditLabel: API.OperationMethod<IssueEditLabelRequest, Label, IssueEditLabelError, ForgejoOpContext>;
|
|
1386
|
+
export type IssueEditMilestoneError = NotFound | ForgejoOpError;
|
|
1387
|
+
/** Update a milestone */
|
|
1388
|
+
export declare const issueEditMilestone: API.OperationMethod<IssueEditMilestoneRequest, Milestone, IssueEditMilestoneError, ForgejoOpContext>;
|
|
1389
|
+
export type IssueGetCommentError = Forbidden | NotFound | ForgejoOpError;
|
|
1390
|
+
/** Get a comment */
|
|
1391
|
+
export declare const issueGetComment: API.OperationMethod<IssueGetCommentRequest, Comment, IssueGetCommentError, ForgejoOpContext>;
|
|
1392
|
+
export type IssueGetCommentReactionsError = Forbidden | NotFound | ForgejoOpError;
|
|
1393
|
+
/** Get a list of reactions from a comment of an issue */
|
|
1394
|
+
export declare const issueGetCommentReactions: API.OperationMethod<IssueGetCommentReactionsRequest, IssueGetCommentReactionsResponse, IssueGetCommentReactionsError, ForgejoOpContext>;
|
|
1395
|
+
export type IssueGetCommentsError = NotFound | UnprocessableEntity | ForgejoOpError;
|
|
1396
|
+
/** List all comments on an issue */
|
|
1397
|
+
export declare const issueGetComments: API.OperationMethod<IssueGetCommentsRequest, IssueGetCommentsResponse, IssueGetCommentsError, ForgejoOpContext>;
|
|
1398
|
+
export type IssueGetCommentsAndTimelineError = NotFound | UnprocessableEntity | ForgejoOpError;
|
|
1399
|
+
/** List all comments and events on an issue */
|
|
1400
|
+
export declare const issueGetCommentsAndTimeline: API.OperationMethod<IssueGetCommentsAndTimelineRequest, IssueGetCommentsAndTimelineResponse, IssueGetCommentsAndTimelineError, ForgejoOpContext>;
|
|
1401
|
+
export type IssueGetLabelError = NotFound | ForgejoOpError;
|
|
1402
|
+
/** Get a single label */
|
|
1403
|
+
export declare const issueGetLabel: API.OperationMethod<IssueGetLabelRequest, Label, IssueGetLabelError, ForgejoOpContext>;
|
|
1404
|
+
export type IssueGetLabelsError = NotFound | ForgejoOpError;
|
|
1405
|
+
/** Get an issue's labels */
|
|
1406
|
+
export declare const issueGetLabels: API.OperationMethod<IssueGetLabelsRequest, IssueGetLabelsResponse, IssueGetLabelsError, ForgejoOpContext>;
|
|
1407
|
+
export type IssueGetMilestoneError = NotFound | ForgejoOpError;
|
|
1408
|
+
/** Get a milestone */
|
|
1409
|
+
export declare const issueGetMilestone: API.OperationMethod<IssueGetMilestoneRequest, Milestone, IssueGetMilestoneError, ForgejoOpContext>;
|
|
1410
|
+
export type IssueGetMilestonesListError = NotFound | ForgejoOpError;
|
|
1411
|
+
/** Get all of a repository's opened milestones */
|
|
1412
|
+
export declare const issueGetMilestonesList: API.OperationMethod<IssueGetMilestonesListRequest, IssueGetMilestonesListResponse, IssueGetMilestonesListError, ForgejoOpContext>;
|
|
1413
|
+
export type IssueGetRepoCommentsError = NotFound | UnprocessableEntity | ForgejoOpError;
|
|
1414
|
+
/** List all comments in a repository */
|
|
1415
|
+
export declare const issueGetRepoComments: API.OperationMethod<IssueGetRepoCommentsRequest, IssueGetRepoCommentsResponse, IssueGetRepoCommentsError, ForgejoOpContext>;
|
|
1416
|
+
export type IssueListBlocksError = NotFound | ForgejoOpError;
|
|
1417
|
+
/** List issues that are blocked by this issue */
|
|
1418
|
+
export declare const issueListBlocks: API.OperationMethod<IssueListBlocksRequest, IssueListBlocksResponse, IssueListBlocksError, ForgejoOpContext>;
|
|
1419
|
+
export type IssueListLabelsError = Forbidden | NotFound | ForgejoOpError;
|
|
1420
|
+
/** Get all of a repository's labels */
|
|
1421
|
+
export declare const issueListLabels: API.OperationMethod<IssueListLabelsRequest, IssueListLabelsResponse, IssueListLabelsError, ForgejoOpContext>;
|
|
1422
|
+
export type IssuePostCommentReactionError = Forbidden | NotFound | ForgejoOpError;
|
|
1423
|
+
/** Add a reaction to a comment of an issue */
|
|
1424
|
+
export declare const issuePostCommentReaction: API.OperationMethod<IssuePostCommentReactionRequest, Reaction, IssuePostCommentReactionError, ForgejoOpContext>;
|
|
1425
|
+
export type IssueRemoveLabelError = Forbidden | NotFound | UnprocessableEntity | ForgejoOpError;
|
|
1426
|
+
/** Remove a label from an issue */
|
|
1427
|
+
export declare const issueRemoveLabel: API.OperationMethod<IssueRemoveLabelRequest, IssueRemoveLabelResponse, IssueRemoveLabelError, ForgejoOpContext>;
|
|
1428
|
+
export type IssueReplaceLabelsError = Forbidden | NotFound | ForgejoOpError;
|
|
1429
|
+
/** Replace an issue's labels */
|
|
1430
|
+
export declare const issueReplaceLabels: API.OperationMethod<IssueReplaceLabelsRequest, IssueReplaceLabelsResponse, IssueReplaceLabelsError, ForgejoOpContext>;
|
|
1431
|
+
export type IssueResetTimeError = BadRequest | Forbidden | NotFound | ForgejoOpError;
|
|
1432
|
+
/** Reset a tracked time of an issue */
|
|
1433
|
+
export declare const issueResetTime: API.OperationMethod<IssueResetTimeRequest, IssueResetTimeResponse, IssueResetTimeError, ForgejoOpContext>;
|
|
1434
|
+
export type IssueStartStopWatchError = Forbidden | NotFound | Conflict | ForgejoOpError;
|
|
1435
|
+
/** Start stopwatch on an issue. */
|
|
1436
|
+
export declare const issueStartStopWatch: API.OperationMethod<IssueStartStopWatchRequest, IssueStartStopWatchResponse, IssueStartStopWatchError, ForgejoOpContext>;
|
|
1437
|
+
export type IssueStopStopWatchError = Forbidden | NotFound | Conflict | ForgejoOpError;
|
|
1438
|
+
/** Stop an issue's existing stopwatch. */
|
|
1439
|
+
export declare const issueStopStopWatch: API.OperationMethod<IssueStopStopWatchRequest, IssueStopStopWatchResponse, IssueStopStopWatchError, ForgejoOpContext>;
|
|
1440
|
+
export type IssueSubscriptionsError = NotFound | ForgejoOpError;
|
|
1441
|
+
/** Get users who subscribed on an issue. */
|
|
1442
|
+
export declare const issueSubscriptions: API.OperationMethod<IssueSubscriptionsRequest, IssueSubscriptionsResponse, IssueSubscriptionsError, ForgejoOpContext>;
|
|
1443
|
+
export type IssueTrackedTimesError = Forbidden | NotFound | UnprocessableEntity | ForgejoOpError;
|
|
1444
|
+
/** List an issue's tracked times */
|
|
1445
|
+
export declare const issueTrackedTimes: API.OperationMethod<IssueTrackedTimesRequest, IssueTrackedTimesResponse, IssueTrackedTimesError, ForgejoOpContext>;
|
|
1446
|
+
export type ListIssueAttachmentsError = NotFound | ForgejoOpError;
|
|
1447
|
+
/** List issue's attachments */
|
|
1448
|
+
export declare const listIssueAttachments: API.OperationMethod<ListIssueAttachmentsRequest, ListIssueAttachmentsResponse, ListIssueAttachmentsError, ForgejoOpContext>;
|
|
1449
|
+
export type ListIssueCommentAttachmentsError = NotFound | ForgejoOpError;
|
|
1450
|
+
/** List comment's attachments */
|
|
1451
|
+
export declare const listIssueCommentAttachments: API.OperationMethod<ListIssueCommentAttachmentsRequest, ListIssueCommentAttachmentsResponse, ListIssueCommentAttachmentsError, ForgejoOpContext>;
|
|
1452
|
+
export type ListIssueDependenciesError = NotFound | ForgejoOpError;
|
|
1453
|
+
/** List an issue's dependencies, i.e all issues that block this issue. */
|
|
1454
|
+
export declare const listIssueDependencies: API.OperationMethod<ListIssueDependenciesRequest, ListIssueDependenciesResponse, ListIssueDependenciesError, ForgejoOpContext>;
|
|
1455
|
+
export type ListIssuesError = NotFound | UnprocessableEntity | ForgejoOpError;
|
|
1456
|
+
/** List a repository's issues */
|
|
1457
|
+
export declare const listIssues: API.OperationMethod<ListIssuesRequest, ListIssuesResponse, ListIssuesError, ForgejoOpContext>;
|
|
1458
|
+
export type MoveIssuePinError = Forbidden | NotFound | ForgejoOpError;
|
|
1459
|
+
/** Moves the Pin to the given Position */
|
|
1460
|
+
export declare const moveIssuePin: API.OperationMethod<MoveIssuePinRequest, MoveIssuePinResponse, MoveIssuePinError, ForgejoOpContext>;
|
|
1461
|
+
export type PinIssueError = Forbidden | NotFound | ForgejoOpError;
|
|
1462
|
+
/** Pin an Issue */
|
|
1463
|
+
export declare const pinIssue: API.OperationMethod<PinIssueRequest, PinIssueResponse, PinIssueError, ForgejoOpContext>;
|
|
1464
|
+
export type PostIssueReactionError = Forbidden | NotFound | ForgejoOpError;
|
|
1465
|
+
/** Add a reaction to an issue */
|
|
1466
|
+
export declare const postIssueReaction: API.OperationMethod<PostIssueReactionRequest, Reaction, PostIssueReactionError, ForgejoOpContext>;
|
|
1467
|
+
export type RemoveIssueBlockingError = NotFound | ForgejoOpError;
|
|
1468
|
+
/** Unblock the issue given in the body by the issue in path */
|
|
1469
|
+
export declare const removeIssueBlocking: API.OperationMethod<RemoveIssueBlockingRequest, Issue, RemoveIssueBlockingError, ForgejoOpContext>;
|
|
1470
|
+
export type RemoveIssueDependenciesError = NotFound | Locked | ForgejoOpError;
|
|
1471
|
+
/** Remove an issue dependency */
|
|
1472
|
+
export declare const removeIssueDependencies: API.OperationMethod<RemoveIssueDependenciesRequest, Issue, RemoveIssueDependenciesError, ForgejoOpContext>;
|
|
1473
|
+
export type SearchIssuesError = BadRequest | UnprocessableEntity | ForgejoOpError;
|
|
1474
|
+
/** Search for issues across the repositories that the user has access to */
|
|
1475
|
+
export declare const searchIssues: API.OperationMethod<SearchIssuesRequest, SearchIssuesResponse, SearchIssuesError, ForgejoOpContext>;
|
|
1476
|
+
export type UnpinIssueError = Forbidden | NotFound | ForgejoOpError;
|
|
1477
|
+
/** Unpin an Issue */
|
|
1478
|
+
export declare const unpinIssue: API.OperationMethod<UnpinIssueRequest, UnpinIssueResponse, UnpinIssueError, ForgejoOpContext>;
|
|
1479
|
+
//# sourceMappingURL=issue.d.ts.map
|