@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,1732 @@
|
|
|
1
|
+
// AUTO-GENERATED by scripts/generate.ts from .generated-specs (specs/spec-mirror-forgejo). Do not edit.
|
|
2
|
+
import * as S from "@distilled.cloud/core/schema";
|
|
3
|
+
import * as API from "@distilled.cloud/core/api";
|
|
4
|
+
import * as C from "@distilled.cloud/core/category";
|
|
5
|
+
import * as T from "../traits.js";
|
|
6
|
+
import { ForgejoProtocol, } from "../protocol.js";
|
|
7
|
+
import * as Retry from "../retry.js";
|
|
8
|
+
export class BadRequest extends /*@__PURE__*/ /*@__PURE__*/ T.applyErrorMatchers(
|
|
9
|
+
/*@__PURE__*/ S.TaggedError()("BadRequest", {
|
|
10
|
+
code: S.Number,
|
|
11
|
+
message: S.String,
|
|
12
|
+
}).pipe(C.withBadRequestError), [{ status: 400 }]) {
|
|
13
|
+
}
|
|
14
|
+
export class Conflict extends /*@__PURE__*/ /*@__PURE__*/ T.applyErrorMatchers(
|
|
15
|
+
/*@__PURE__*/ S.TaggedError()("Conflict", {
|
|
16
|
+
code: S.Number,
|
|
17
|
+
message: S.String,
|
|
18
|
+
}).pipe(C.withConflictError), [{ status: 409 }]) {
|
|
19
|
+
}
|
|
20
|
+
export class Forbidden extends /*@__PURE__*/ /*@__PURE__*/ T.applyErrorMatchers(
|
|
21
|
+
/*@__PURE__*/ S.TaggedError()("Forbidden", {
|
|
22
|
+
code: S.Number,
|
|
23
|
+
message: S.String,
|
|
24
|
+
}).pipe(C.withAuthError), [{ status: 403 }]) {
|
|
25
|
+
}
|
|
26
|
+
export class Locked extends /*@__PURE__*/ /*@__PURE__*/ T.applyErrorMatchers(
|
|
27
|
+
/*@__PURE__*/ S.TaggedError()("Locked", {
|
|
28
|
+
code: S.Number,
|
|
29
|
+
message: S.String,
|
|
30
|
+
}), [{ status: 423 }]) {
|
|
31
|
+
}
|
|
32
|
+
export class NotFound extends /*@__PURE__*/ /*@__PURE__*/ T.applyErrorMatchers(
|
|
33
|
+
/*@__PURE__*/ S.TaggedError()("NotFound", {
|
|
34
|
+
code: S.Number,
|
|
35
|
+
message: S.String,
|
|
36
|
+
}).pipe(C.withBadRequestError), [{ status: 404 }]) {
|
|
37
|
+
}
|
|
38
|
+
export class UnprocessableEntity extends /*@__PURE__*/ /*@__PURE__*/ T.applyErrorMatchers(
|
|
39
|
+
/*@__PURE__*/ S.TaggedError()("UnprocessableEntity", {
|
|
40
|
+
code: S.Number,
|
|
41
|
+
message: S.String,
|
|
42
|
+
}).pipe(C.withBadRequestError), [{ status: 422 }]) {
|
|
43
|
+
}
|
|
44
|
+
export const CreateIssueRequestAssigneesList = /*@__PURE__*/ S.Array(S.String);
|
|
45
|
+
export const CreateIssueRequestLabelsList = /*@__PURE__*/ S.Array(S.Number);
|
|
46
|
+
export const CreateIssueRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
47
|
+
owner: S.String.pipe(T.Label()),
|
|
48
|
+
repo: S.String.pipe(T.Label()),
|
|
49
|
+
assignee: S.optional(S.String),
|
|
50
|
+
assignees: S.optional(CreateIssueRequestAssigneesList),
|
|
51
|
+
body: S.optional(S.String),
|
|
52
|
+
closed: S.optional(S.Boolean),
|
|
53
|
+
due_date: S.optional(S.String),
|
|
54
|
+
labels: S.optional(CreateIssueRequestLabelsList),
|
|
55
|
+
milestone: S.optional(S.Number),
|
|
56
|
+
ref: S.optional(S.String),
|
|
57
|
+
title: S.String,
|
|
58
|
+
}).pipe(T.Http({ method: "POST", uri: "/repos/{owner}/{repo}/issues", code: 200 }))).annotate({
|
|
59
|
+
identifier: "CreateIssueRequest",
|
|
60
|
+
});
|
|
61
|
+
export const AttachmentType = /*@__PURE__*/ S.String;
|
|
62
|
+
export const Attachment = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
63
|
+
browser_download_url: S.optional(S.String),
|
|
64
|
+
created_at: S.optional(S.String),
|
|
65
|
+
download_count: S.optional(S.Number),
|
|
66
|
+
id: S.optional(S.Number),
|
|
67
|
+
name: S.optional(S.String),
|
|
68
|
+
size: S.optional(S.Number),
|
|
69
|
+
type: S.optional(AttachmentType),
|
|
70
|
+
uuid: S.optional(S.String),
|
|
71
|
+
})).annotate({ identifier: "Attachment" });
|
|
72
|
+
export const IssueAssetsList = /*@__PURE__*/ S.Array(Attachment);
|
|
73
|
+
export const User = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
74
|
+
active: S.optional(S.Boolean),
|
|
75
|
+
avatar_url: S.optional(S.String),
|
|
76
|
+
created: S.optional(S.String),
|
|
77
|
+
description: S.optional(S.String),
|
|
78
|
+
email: S.optional(S.String),
|
|
79
|
+
followers_count: S.optional(S.Number),
|
|
80
|
+
following_count: S.optional(S.Number),
|
|
81
|
+
full_name: S.optional(S.String),
|
|
82
|
+
html_url: S.optional(S.String),
|
|
83
|
+
id: S.Number,
|
|
84
|
+
is_admin: S.optional(S.Boolean),
|
|
85
|
+
language: S.optional(S.String),
|
|
86
|
+
last_login: S.optional(S.String),
|
|
87
|
+
location: S.optional(S.String),
|
|
88
|
+
login: S.String,
|
|
89
|
+
login_name: S.optional(S.String),
|
|
90
|
+
prohibit_login: S.optional(S.Boolean),
|
|
91
|
+
pronouns: S.optional(S.String),
|
|
92
|
+
restricted: S.optional(S.Boolean),
|
|
93
|
+
source_id: S.optional(S.Number),
|
|
94
|
+
starred_repos_count: S.optional(S.Number),
|
|
95
|
+
visibility: S.optional(S.String),
|
|
96
|
+
website: S.optional(S.String),
|
|
97
|
+
})).annotate({ identifier: "User" });
|
|
98
|
+
export const IssueAssigneesList = /*@__PURE__*/ S.Array(User);
|
|
99
|
+
export const Label = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
100
|
+
color: S.String,
|
|
101
|
+
description: S.optional(S.String),
|
|
102
|
+
exclusive: S.optional(S.Boolean),
|
|
103
|
+
id: S.Number,
|
|
104
|
+
is_archived: S.optional(S.Boolean),
|
|
105
|
+
name: S.String,
|
|
106
|
+
url: S.optional(S.String),
|
|
107
|
+
})).annotate({ identifier: "Label" });
|
|
108
|
+
export const IssueLabelsList = /*@__PURE__*/ S.Array(Label);
|
|
109
|
+
export const Milestone = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
110
|
+
closed_at: S.optional(S.String),
|
|
111
|
+
closed_issues: S.optional(S.Number),
|
|
112
|
+
created_at: S.optional(S.String),
|
|
113
|
+
description: S.optional(S.String),
|
|
114
|
+
due_on: S.optional(S.String),
|
|
115
|
+
id: S.optional(S.Number),
|
|
116
|
+
open_issues: S.optional(S.Number),
|
|
117
|
+
state: S.optional(S.String),
|
|
118
|
+
title: S.optional(S.String),
|
|
119
|
+
updated_at: S.optional(S.String),
|
|
120
|
+
})).annotate({ identifier: "Milestone" });
|
|
121
|
+
export const PullRequestMeta = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
122
|
+
draft: S.optional(S.Boolean),
|
|
123
|
+
html_url: S.optional(S.String),
|
|
124
|
+
merged: S.optional(S.Boolean),
|
|
125
|
+
merged_at: S.optional(S.String),
|
|
126
|
+
})).annotate({
|
|
127
|
+
identifier: "PullRequestMeta",
|
|
128
|
+
});
|
|
129
|
+
export const RepositoryMeta = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
130
|
+
full_name: S.optional(S.String),
|
|
131
|
+
id: S.optional(S.Number),
|
|
132
|
+
name: S.optional(S.String),
|
|
133
|
+
owner: S.optional(S.String),
|
|
134
|
+
})).annotate({ identifier: "RepositoryMeta" });
|
|
135
|
+
export const Issue = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
136
|
+
assets: S.optional(IssueAssetsList),
|
|
137
|
+
assignee: S.optional(User),
|
|
138
|
+
assignees: S.optional(IssueAssigneesList),
|
|
139
|
+
body: S.optional(S.String),
|
|
140
|
+
closed_at: S.optional(S.String),
|
|
141
|
+
comments: S.optional(S.Number),
|
|
142
|
+
created_at: S.optional(S.String),
|
|
143
|
+
due_date: S.optional(S.String),
|
|
144
|
+
html_url: S.optional(S.String),
|
|
145
|
+
id: S.optional(S.Number),
|
|
146
|
+
is_locked: S.optional(S.Boolean),
|
|
147
|
+
labels: S.optional(IssueLabelsList),
|
|
148
|
+
milestone: S.optional(Milestone),
|
|
149
|
+
number: S.optional(S.Number),
|
|
150
|
+
original_author: S.optional(S.String),
|
|
151
|
+
original_author_id: S.optional(S.Number),
|
|
152
|
+
pin_order: S.optional(S.Number),
|
|
153
|
+
pull_request: S.optional(PullRequestMeta),
|
|
154
|
+
ref: S.optional(S.String),
|
|
155
|
+
repository: S.optional(RepositoryMeta),
|
|
156
|
+
state: S.optional(S.String),
|
|
157
|
+
title: S.optional(S.String),
|
|
158
|
+
updated_at: S.optional(S.String),
|
|
159
|
+
url: S.optional(S.String),
|
|
160
|
+
user: S.optional(User),
|
|
161
|
+
})).annotate({ identifier: "Issue" });
|
|
162
|
+
export const CreateIssueAttachmentRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
163
|
+
owner: S.String.pipe(T.Label()),
|
|
164
|
+
repo: S.String.pipe(T.Label()),
|
|
165
|
+
index: S.Number.pipe(T.Label()),
|
|
166
|
+
name: S.optional(S.String.pipe(T.Query())),
|
|
167
|
+
updated_at: S.optional(S.String.pipe(T.Query())),
|
|
168
|
+
}).pipe(T.Http({
|
|
169
|
+
method: "POST",
|
|
170
|
+
uri: "/repos/{owner}/{repo}/issues/{index}/assets",
|
|
171
|
+
code: 200,
|
|
172
|
+
}))).annotate({
|
|
173
|
+
identifier: "CreateIssueAttachmentRequest",
|
|
174
|
+
});
|
|
175
|
+
export const CreateIssueBlockingRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
176
|
+
owner: S.String.pipe(T.Label()),
|
|
177
|
+
repo: S.String.pipe(T.Label()),
|
|
178
|
+
index: S.Number.pipe(T.Label()),
|
|
179
|
+
}).pipe(T.Http({
|
|
180
|
+
method: "POST",
|
|
181
|
+
uri: "/repos/{owner}/{repo}/issues/{index}/blocks",
|
|
182
|
+
code: 200,
|
|
183
|
+
}))).annotate({
|
|
184
|
+
identifier: "CreateIssueBlockingRequest",
|
|
185
|
+
});
|
|
186
|
+
export const CreateIssueCommentAttachmentRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
187
|
+
owner: S.String.pipe(T.Label()),
|
|
188
|
+
repo: S.String.pipe(T.Label()),
|
|
189
|
+
id: S.Number.pipe(T.Label()),
|
|
190
|
+
name: S.optional(S.String.pipe(T.Query())),
|
|
191
|
+
updated_at: S.optional(S.String.pipe(T.Query())),
|
|
192
|
+
}).pipe(T.Http({
|
|
193
|
+
method: "POST",
|
|
194
|
+
uri: "/repos/{owner}/{repo}/issues/comments/{id}/assets",
|
|
195
|
+
code: 200,
|
|
196
|
+
}))).annotate({
|
|
197
|
+
identifier: "CreateIssueCommentAttachmentRequest",
|
|
198
|
+
});
|
|
199
|
+
export const CreateIssueDependenciesRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
200
|
+
owner: S.String.pipe(T.Label()),
|
|
201
|
+
repo: S.String.pipe(T.Label()),
|
|
202
|
+
index: S.Number.pipe(T.Label()),
|
|
203
|
+
}).pipe(T.Http({
|
|
204
|
+
method: "POST",
|
|
205
|
+
uri: "/repos/{owner}/{repo}/issues/{index}/dependencies",
|
|
206
|
+
code: 200,
|
|
207
|
+
}))).annotate({
|
|
208
|
+
identifier: "CreateIssueDependenciesRequest",
|
|
209
|
+
});
|
|
210
|
+
export const DeleteIssueRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
211
|
+
owner: S.String.pipe(T.Label()),
|
|
212
|
+
repo: S.String.pipe(T.Label()),
|
|
213
|
+
index: S.Number.pipe(T.Label()),
|
|
214
|
+
}).pipe(T.Http({
|
|
215
|
+
method: "DELETE",
|
|
216
|
+
uri: "/repos/{owner}/{repo}/issues/{index}",
|
|
217
|
+
code: 200,
|
|
218
|
+
}))).annotate({
|
|
219
|
+
identifier: "DeleteIssueRequest",
|
|
220
|
+
});
|
|
221
|
+
export const DeleteIssueResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
222
|
+
identifier: "DeleteIssueResponse",
|
|
223
|
+
});
|
|
224
|
+
export const DeleteIssueAttachmentRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
225
|
+
owner: S.String.pipe(T.Label()),
|
|
226
|
+
repo: S.String.pipe(T.Label()),
|
|
227
|
+
index: S.Number.pipe(T.Label()),
|
|
228
|
+
attachment_id: S.Number.pipe(T.Label()),
|
|
229
|
+
}).pipe(T.Http({
|
|
230
|
+
method: "DELETE",
|
|
231
|
+
uri: "/repos/{owner}/{repo}/issues/{index}/assets/{attachment_id}",
|
|
232
|
+
code: 200,
|
|
233
|
+
}))).annotate({
|
|
234
|
+
identifier: "DeleteIssueAttachmentRequest",
|
|
235
|
+
});
|
|
236
|
+
export const DeleteIssueAttachmentResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
237
|
+
identifier: "DeleteIssueAttachmentResponse",
|
|
238
|
+
});
|
|
239
|
+
export const DeleteIssueCommentAttachmentRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
240
|
+
owner: S.String.pipe(T.Label()),
|
|
241
|
+
repo: S.String.pipe(T.Label()),
|
|
242
|
+
id: S.Number.pipe(T.Label()),
|
|
243
|
+
attachment_id: S.Number.pipe(T.Label()),
|
|
244
|
+
}).pipe(T.Http({
|
|
245
|
+
method: "DELETE",
|
|
246
|
+
uri: "/repos/{owner}/{repo}/issues/comments/{id}/assets/{attachment_id}",
|
|
247
|
+
code: 200,
|
|
248
|
+
}))).annotate({
|
|
249
|
+
identifier: "DeleteIssueCommentAttachmentRequest",
|
|
250
|
+
});
|
|
251
|
+
export const DeleteIssueCommentAttachmentResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
252
|
+
identifier: "DeleteIssueCommentAttachmentResponse",
|
|
253
|
+
});
|
|
254
|
+
export const DeleteIssueReactionRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
255
|
+
owner: S.String.pipe(T.Label()),
|
|
256
|
+
repo: S.String.pipe(T.Label()),
|
|
257
|
+
index: S.Number.pipe(T.Label()),
|
|
258
|
+
content: S.optional(S.String),
|
|
259
|
+
}).pipe(T.Http({
|
|
260
|
+
method: "DELETE",
|
|
261
|
+
uri: "/repos/{owner}/{repo}/issues/{index}/reactions",
|
|
262
|
+
code: 200,
|
|
263
|
+
}))).annotate({
|
|
264
|
+
identifier: "DeleteIssueReactionRequest",
|
|
265
|
+
});
|
|
266
|
+
export const DeleteIssueReactionResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
267
|
+
identifier: "DeleteIssueReactionResponse",
|
|
268
|
+
});
|
|
269
|
+
export const EditIssueRequestAssigneesList = /*@__PURE__*/ S.Array(S.String);
|
|
270
|
+
export const EditIssueRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
271
|
+
owner: S.String.pipe(T.Label()),
|
|
272
|
+
repo: S.String.pipe(T.Label()),
|
|
273
|
+
index: S.Number.pipe(T.Label()),
|
|
274
|
+
assignee: S.optional(S.String),
|
|
275
|
+
assignees: S.optional(EditIssueRequestAssigneesList),
|
|
276
|
+
body: S.optional(S.String),
|
|
277
|
+
due_date: S.optional(S.String),
|
|
278
|
+
milestone: S.optional(S.Number),
|
|
279
|
+
ref: S.optional(S.String),
|
|
280
|
+
state: S.optional(S.String),
|
|
281
|
+
title: S.optional(S.String),
|
|
282
|
+
unset_due_date: S.optional(S.Boolean),
|
|
283
|
+
updated_at: S.optional(S.String),
|
|
284
|
+
}).pipe(T.Http({
|
|
285
|
+
method: "PATCH",
|
|
286
|
+
uri: "/repos/{owner}/{repo}/issues/{index}",
|
|
287
|
+
code: 200,
|
|
288
|
+
}))).annotate({
|
|
289
|
+
identifier: "EditIssueRequest",
|
|
290
|
+
});
|
|
291
|
+
export const EditIssueAttachmentRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
292
|
+
owner: S.String.pipe(T.Label()),
|
|
293
|
+
repo: S.String.pipe(T.Label()),
|
|
294
|
+
index: S.Number.pipe(T.Label()),
|
|
295
|
+
attachment_id: S.Number.pipe(T.Label()),
|
|
296
|
+
browser_download_url: S.optional(S.String),
|
|
297
|
+
name: S.optional(S.String),
|
|
298
|
+
}).pipe(T.Http({
|
|
299
|
+
method: "PATCH",
|
|
300
|
+
uri: "/repos/{owner}/{repo}/issues/{index}/assets/{attachment_id}",
|
|
301
|
+
code: 200,
|
|
302
|
+
}))).annotate({
|
|
303
|
+
identifier: "EditIssueAttachmentRequest",
|
|
304
|
+
});
|
|
305
|
+
export const EditIssueCommentAttachmentRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
306
|
+
owner: S.String.pipe(T.Label()),
|
|
307
|
+
repo: S.String.pipe(T.Label()),
|
|
308
|
+
id: S.Number.pipe(T.Label()),
|
|
309
|
+
attachment_id: S.Number.pipe(T.Label()),
|
|
310
|
+
browser_download_url: S.optional(S.String),
|
|
311
|
+
name: S.optional(S.String),
|
|
312
|
+
}).pipe(T.Http({
|
|
313
|
+
method: "PATCH",
|
|
314
|
+
uri: "/repos/{owner}/{repo}/issues/comments/{id}/assets/{attachment_id}",
|
|
315
|
+
code: 200,
|
|
316
|
+
}))).annotate({
|
|
317
|
+
identifier: "EditIssueCommentAttachmentRequest",
|
|
318
|
+
});
|
|
319
|
+
export const EditIssueDeadlineRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
320
|
+
owner: S.String.pipe(T.Label()),
|
|
321
|
+
repo: S.String.pipe(T.Label()),
|
|
322
|
+
index: S.Number.pipe(T.Label()),
|
|
323
|
+
due_date: S.String,
|
|
324
|
+
}).pipe(T.Http({
|
|
325
|
+
method: "POST",
|
|
326
|
+
uri: "/repos/{owner}/{repo}/issues/{index}/deadline",
|
|
327
|
+
code: 200,
|
|
328
|
+
}))).annotate({
|
|
329
|
+
identifier: "EditIssueDeadlineRequest",
|
|
330
|
+
});
|
|
331
|
+
export const IssueDeadline = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
332
|
+
due_date: S.optional(S.String),
|
|
333
|
+
})).annotate({ identifier: "IssueDeadline" });
|
|
334
|
+
export const GetIssueRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
335
|
+
owner: S.String.pipe(T.Label()),
|
|
336
|
+
repo: S.String.pipe(T.Label()),
|
|
337
|
+
index: S.Number.pipe(T.Label()),
|
|
338
|
+
}).pipe(T.Http({
|
|
339
|
+
method: "GET",
|
|
340
|
+
uri: "/repos/{owner}/{repo}/issues/{index}",
|
|
341
|
+
code: 200,
|
|
342
|
+
}))).annotate({
|
|
343
|
+
identifier: "GetIssueRequest",
|
|
344
|
+
});
|
|
345
|
+
export const GetIssueAttachmentRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
346
|
+
owner: S.String.pipe(T.Label()),
|
|
347
|
+
repo: S.String.pipe(T.Label()),
|
|
348
|
+
index: S.Number.pipe(T.Label()),
|
|
349
|
+
attachment_id: S.Number.pipe(T.Label()),
|
|
350
|
+
}).pipe(T.Http({
|
|
351
|
+
method: "GET",
|
|
352
|
+
uri: "/repos/{owner}/{repo}/issues/{index}/assets/{attachment_id}",
|
|
353
|
+
code: 200,
|
|
354
|
+
}))).annotate({
|
|
355
|
+
identifier: "GetIssueAttachmentRequest",
|
|
356
|
+
});
|
|
357
|
+
export const GetIssueCommentAttachmentRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
358
|
+
owner: S.String.pipe(T.Label()),
|
|
359
|
+
repo: S.String.pipe(T.Label()),
|
|
360
|
+
id: S.Number.pipe(T.Label()),
|
|
361
|
+
attachment_id: S.Number.pipe(T.Label()),
|
|
362
|
+
}).pipe(T.Http({
|
|
363
|
+
method: "GET",
|
|
364
|
+
uri: "/repos/{owner}/{repo}/issues/comments/{id}/assets/{attachment_id}",
|
|
365
|
+
code: 200,
|
|
366
|
+
}))).annotate({
|
|
367
|
+
identifier: "GetIssueCommentAttachmentRequest",
|
|
368
|
+
});
|
|
369
|
+
export const GetIssueReactionsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
370
|
+
owner: S.String.pipe(T.Label()),
|
|
371
|
+
repo: S.String.pipe(T.Label()),
|
|
372
|
+
index: S.Number.pipe(T.Label()),
|
|
373
|
+
page: S.optional(S.Number.pipe(T.Query())),
|
|
374
|
+
limit: S.optional(S.Number.pipe(T.Query())),
|
|
375
|
+
}).pipe(T.Http({
|
|
376
|
+
method: "GET",
|
|
377
|
+
uri: "/repos/{owner}/{repo}/issues/{index}/reactions",
|
|
378
|
+
code: 200,
|
|
379
|
+
}))).annotate({
|
|
380
|
+
identifier: "GetIssueReactionsRequest",
|
|
381
|
+
});
|
|
382
|
+
export const Reaction = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
383
|
+
content: S.optional(S.String),
|
|
384
|
+
created_at: S.optional(S.String),
|
|
385
|
+
user: S.optional(User),
|
|
386
|
+
})).annotate({ identifier: "Reaction" });
|
|
387
|
+
export const GetIssueReactionsResponseBodyList = /*@__PURE__*/ S.Array(Reaction);
|
|
388
|
+
export const GetIssueReactionsResponse = /*@__PURE__*/ S.suspend(() => GetIssueReactionsResponseBodyList.pipe(T.RawResponseRoot())).annotate({
|
|
389
|
+
identifier: "GetIssueReactionsResponse",
|
|
390
|
+
});
|
|
391
|
+
export const IssueAddLabelRequestLabelsList = /*@__PURE__*/ S.Array(S.Unknown);
|
|
392
|
+
export const IssueAddLabelRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
393
|
+
owner: S.String.pipe(T.Label()),
|
|
394
|
+
repo: S.String.pipe(T.Label()),
|
|
395
|
+
index: S.Number.pipe(T.Label()),
|
|
396
|
+
labels: S.optional(IssueAddLabelRequestLabelsList),
|
|
397
|
+
updated_at: S.optional(S.String),
|
|
398
|
+
}).pipe(T.Http({
|
|
399
|
+
method: "POST",
|
|
400
|
+
uri: "/repos/{owner}/{repo}/issues/{index}/labels",
|
|
401
|
+
code: 200,
|
|
402
|
+
}))).annotate({
|
|
403
|
+
identifier: "IssueAddLabelRequest",
|
|
404
|
+
});
|
|
405
|
+
export const IssueAddLabelResponseBodyList = /*@__PURE__*/ S.Array(Label);
|
|
406
|
+
export const IssueAddLabelResponse = /*@__PURE__*/ S.suspend(() => IssueAddLabelResponseBodyList.pipe(T.RawResponseRoot())).annotate({
|
|
407
|
+
identifier: "IssueAddLabelResponse",
|
|
408
|
+
});
|
|
409
|
+
export const IssueAddSubscriptionRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
410
|
+
owner: S.String.pipe(T.Label()),
|
|
411
|
+
repo: S.String.pipe(T.Label()),
|
|
412
|
+
index: S.Number.pipe(T.Label()),
|
|
413
|
+
user: S.String.pipe(T.Label()),
|
|
414
|
+
}).pipe(T.Http({
|
|
415
|
+
method: "PUT",
|
|
416
|
+
uri: "/repos/{owner}/{repo}/issues/{index}/subscriptions/{user}",
|
|
417
|
+
code: 200,
|
|
418
|
+
}))).annotate({
|
|
419
|
+
identifier: "IssueAddSubscriptionRequest",
|
|
420
|
+
});
|
|
421
|
+
export const IssueAddSubscriptionResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
422
|
+
identifier: "IssueAddSubscriptionResponse",
|
|
423
|
+
});
|
|
424
|
+
export const IssueAddTimeRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
425
|
+
owner: S.String.pipe(T.Label()),
|
|
426
|
+
repo: S.String.pipe(T.Label()),
|
|
427
|
+
index: S.Number.pipe(T.Label()),
|
|
428
|
+
created: S.optional(S.String),
|
|
429
|
+
time: S.Number,
|
|
430
|
+
user_name: S.optional(S.String),
|
|
431
|
+
}).pipe(T.Http({
|
|
432
|
+
method: "POST",
|
|
433
|
+
uri: "/repos/{owner}/{repo}/issues/{index}/times",
|
|
434
|
+
code: 200,
|
|
435
|
+
}))).annotate({
|
|
436
|
+
identifier: "IssueAddTimeRequest",
|
|
437
|
+
});
|
|
438
|
+
export const TrackedTime = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
439
|
+
created: S.optional(S.String),
|
|
440
|
+
id: S.optional(S.Number),
|
|
441
|
+
issue: S.optional(Issue),
|
|
442
|
+
issue_id: S.optional(S.Number),
|
|
443
|
+
time: S.optional(S.Number),
|
|
444
|
+
user_id: S.optional(S.Number),
|
|
445
|
+
user_name: S.optional(S.String),
|
|
446
|
+
})).annotate({ identifier: "TrackedTime" });
|
|
447
|
+
export const IssueCheckSubscriptionRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
448
|
+
owner: S.String.pipe(T.Label()),
|
|
449
|
+
repo: S.String.pipe(T.Label()),
|
|
450
|
+
index: S.Number.pipe(T.Label()),
|
|
451
|
+
}).pipe(T.Http({
|
|
452
|
+
method: "GET",
|
|
453
|
+
uri: "/repos/{owner}/{repo}/issues/{index}/subscriptions/check",
|
|
454
|
+
code: 200,
|
|
455
|
+
}))).annotate({
|
|
456
|
+
identifier: "IssueCheckSubscriptionRequest",
|
|
457
|
+
});
|
|
458
|
+
export const WatchInfo = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
459
|
+
created_at: S.optional(S.String),
|
|
460
|
+
ignored: S.optional(S.Boolean),
|
|
461
|
+
reason: S.optional(S.Unknown),
|
|
462
|
+
repository_url: S.optional(S.String),
|
|
463
|
+
subscribed: S.optional(S.Boolean),
|
|
464
|
+
url: S.optional(S.String),
|
|
465
|
+
})).annotate({ identifier: "WatchInfo" });
|
|
466
|
+
export const IssueClearLabelsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
467
|
+
owner: S.String.pipe(T.Label()),
|
|
468
|
+
repo: S.String.pipe(T.Label()),
|
|
469
|
+
index: S.Number.pipe(T.Label()),
|
|
470
|
+
updated_at: S.optional(S.String),
|
|
471
|
+
}).pipe(T.Http({
|
|
472
|
+
method: "DELETE",
|
|
473
|
+
uri: "/repos/{owner}/{repo}/issues/{index}/labels",
|
|
474
|
+
code: 200,
|
|
475
|
+
}))).annotate({
|
|
476
|
+
identifier: "IssueClearLabelsRequest",
|
|
477
|
+
});
|
|
478
|
+
export const IssueClearLabelsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
479
|
+
identifier: "IssueClearLabelsResponse",
|
|
480
|
+
});
|
|
481
|
+
export const IssueCreateCommentRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
482
|
+
owner: S.String.pipe(T.Label()),
|
|
483
|
+
repo: S.String.pipe(T.Label()),
|
|
484
|
+
index: S.Number.pipe(T.Label()),
|
|
485
|
+
body: S.String,
|
|
486
|
+
updated_at: S.optional(S.String),
|
|
487
|
+
}).pipe(T.Http({
|
|
488
|
+
method: "POST",
|
|
489
|
+
uri: "/repos/{owner}/{repo}/issues/{index}/comments",
|
|
490
|
+
code: 200,
|
|
491
|
+
}))).annotate({
|
|
492
|
+
identifier: "IssueCreateCommentRequest",
|
|
493
|
+
});
|
|
494
|
+
export const CommentAssetsList = /*@__PURE__*/ S.Array(Attachment);
|
|
495
|
+
export const Comment = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
496
|
+
assets: S.optional(CommentAssetsList),
|
|
497
|
+
body: S.optional(S.String),
|
|
498
|
+
created_at: S.optional(S.String),
|
|
499
|
+
html_url: S.optional(S.String),
|
|
500
|
+
id: S.optional(S.Number),
|
|
501
|
+
issue_url: S.optional(S.String),
|
|
502
|
+
original_author: S.optional(S.String),
|
|
503
|
+
original_author_id: S.optional(S.Number),
|
|
504
|
+
pull_request_url: S.optional(S.String),
|
|
505
|
+
updated_at: S.optional(S.String),
|
|
506
|
+
user: S.optional(User),
|
|
507
|
+
})).annotate({ identifier: "Comment" });
|
|
508
|
+
export const IssueCreateLabelRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
509
|
+
owner: S.String.pipe(T.Label()),
|
|
510
|
+
repo: S.String.pipe(T.Label()),
|
|
511
|
+
color: S.String,
|
|
512
|
+
description: S.optional(S.String),
|
|
513
|
+
exclusive: S.optional(S.Boolean),
|
|
514
|
+
is_archived: S.optional(S.Boolean),
|
|
515
|
+
name: S.String,
|
|
516
|
+
}).pipe(T.Http({ method: "POST", uri: "/repos/{owner}/{repo}/labels", code: 200 }))).annotate({
|
|
517
|
+
identifier: "IssueCreateLabelRequest",
|
|
518
|
+
});
|
|
519
|
+
export const IssueCreateMilestoneRequestState = /*@__PURE__*/ S.String;
|
|
520
|
+
export const IssueCreateMilestoneRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
521
|
+
owner: S.String.pipe(T.Label()),
|
|
522
|
+
repo: S.String.pipe(T.Label()),
|
|
523
|
+
description: S.optional(S.String),
|
|
524
|
+
due_on: S.optional(S.String),
|
|
525
|
+
state: S.optional(IssueCreateMilestoneRequestState),
|
|
526
|
+
title: S.optional(S.String),
|
|
527
|
+
}).pipe(T.Http({
|
|
528
|
+
method: "POST",
|
|
529
|
+
uri: "/repos/{owner}/{repo}/milestones",
|
|
530
|
+
code: 200,
|
|
531
|
+
}))).annotate({
|
|
532
|
+
identifier: "IssueCreateMilestoneRequest",
|
|
533
|
+
});
|
|
534
|
+
export const IssueDeleteCommentRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
535
|
+
owner: S.String.pipe(T.Label()),
|
|
536
|
+
repo: S.String.pipe(T.Label()),
|
|
537
|
+
id: S.Number.pipe(T.Label()),
|
|
538
|
+
}).pipe(T.Http({
|
|
539
|
+
method: "DELETE",
|
|
540
|
+
uri: "/repos/{owner}/{repo}/issues/comments/{id}",
|
|
541
|
+
code: 200,
|
|
542
|
+
}))).annotate({
|
|
543
|
+
identifier: "IssueDeleteCommentRequest",
|
|
544
|
+
});
|
|
545
|
+
export const IssueDeleteCommentResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
546
|
+
identifier: "IssueDeleteCommentResponse",
|
|
547
|
+
});
|
|
548
|
+
export const IssueDeleteCommentReactionRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
549
|
+
owner: S.String.pipe(T.Label()),
|
|
550
|
+
repo: S.String.pipe(T.Label()),
|
|
551
|
+
id: S.Number.pipe(T.Label()),
|
|
552
|
+
content: S.optional(S.String),
|
|
553
|
+
}).pipe(T.Http({
|
|
554
|
+
method: "DELETE",
|
|
555
|
+
uri: "/repos/{owner}/{repo}/issues/comments/{id}/reactions",
|
|
556
|
+
code: 200,
|
|
557
|
+
}))).annotate({
|
|
558
|
+
identifier: "IssueDeleteCommentReactionRequest",
|
|
559
|
+
});
|
|
560
|
+
export const IssueDeleteCommentReactionResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
561
|
+
identifier: "IssueDeleteCommentReactionResponse",
|
|
562
|
+
});
|
|
563
|
+
export const IssueDeleteLabelRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
564
|
+
owner: S.String.pipe(T.Label()),
|
|
565
|
+
repo: S.String.pipe(T.Label()),
|
|
566
|
+
id: S.Number.pipe(T.Label()),
|
|
567
|
+
}).pipe(T.Http({
|
|
568
|
+
method: "DELETE",
|
|
569
|
+
uri: "/repos/{owner}/{repo}/labels/{id}",
|
|
570
|
+
code: 200,
|
|
571
|
+
}))).annotate({
|
|
572
|
+
identifier: "IssueDeleteLabelRequest",
|
|
573
|
+
});
|
|
574
|
+
export const IssueDeleteLabelResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
575
|
+
identifier: "IssueDeleteLabelResponse",
|
|
576
|
+
});
|
|
577
|
+
export const IssueDeleteMilestoneRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
578
|
+
owner: S.String.pipe(T.Label()),
|
|
579
|
+
repo: S.String.pipe(T.Label()),
|
|
580
|
+
id: S.Number.pipe(T.Label()),
|
|
581
|
+
}).pipe(T.Http({
|
|
582
|
+
method: "DELETE",
|
|
583
|
+
uri: "/repos/{owner}/{repo}/milestones/{id}",
|
|
584
|
+
code: 200,
|
|
585
|
+
}))).annotate({
|
|
586
|
+
identifier: "IssueDeleteMilestoneRequest",
|
|
587
|
+
});
|
|
588
|
+
export const IssueDeleteMilestoneResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
589
|
+
identifier: "IssueDeleteMilestoneResponse",
|
|
590
|
+
});
|
|
591
|
+
export const IssueDeleteStopWatchRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
592
|
+
owner: S.String.pipe(T.Label()),
|
|
593
|
+
repo: S.String.pipe(T.Label()),
|
|
594
|
+
index: S.Number.pipe(T.Label()),
|
|
595
|
+
}).pipe(T.Http({
|
|
596
|
+
method: "DELETE",
|
|
597
|
+
uri: "/repos/{owner}/{repo}/issues/{index}/stopwatch/delete",
|
|
598
|
+
code: 200,
|
|
599
|
+
}))).annotate({
|
|
600
|
+
identifier: "IssueDeleteStopWatchRequest",
|
|
601
|
+
});
|
|
602
|
+
export const IssueDeleteStopWatchResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
603
|
+
identifier: "IssueDeleteStopWatchResponse",
|
|
604
|
+
});
|
|
605
|
+
export const IssueDeleteSubscriptionRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
606
|
+
owner: S.String.pipe(T.Label()),
|
|
607
|
+
repo: S.String.pipe(T.Label()),
|
|
608
|
+
index: S.Number.pipe(T.Label()),
|
|
609
|
+
user: S.String.pipe(T.Label()),
|
|
610
|
+
}).pipe(T.Http({
|
|
611
|
+
method: "DELETE",
|
|
612
|
+
uri: "/repos/{owner}/{repo}/issues/{index}/subscriptions/{user}",
|
|
613
|
+
code: 200,
|
|
614
|
+
}))).annotate({
|
|
615
|
+
identifier: "IssueDeleteSubscriptionRequest",
|
|
616
|
+
});
|
|
617
|
+
export const IssueDeleteSubscriptionResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
618
|
+
identifier: "IssueDeleteSubscriptionResponse",
|
|
619
|
+
});
|
|
620
|
+
export const IssueDeleteTimeRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
621
|
+
owner: S.String.pipe(T.Label()),
|
|
622
|
+
repo: S.String.pipe(T.Label()),
|
|
623
|
+
index: S.Number.pipe(T.Label()),
|
|
624
|
+
id: S.Number.pipe(T.Label()),
|
|
625
|
+
}).pipe(T.Http({
|
|
626
|
+
method: "DELETE",
|
|
627
|
+
uri: "/repos/{owner}/{repo}/issues/{index}/times/{id}",
|
|
628
|
+
code: 200,
|
|
629
|
+
}))).annotate({
|
|
630
|
+
identifier: "IssueDeleteTimeRequest",
|
|
631
|
+
});
|
|
632
|
+
export const IssueDeleteTimeResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
633
|
+
identifier: "IssueDeleteTimeResponse",
|
|
634
|
+
});
|
|
635
|
+
export const IssueEditCommentRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
636
|
+
owner: S.String.pipe(T.Label()),
|
|
637
|
+
repo: S.String.pipe(T.Label()),
|
|
638
|
+
id: S.Number.pipe(T.Label()),
|
|
639
|
+
body: S.String,
|
|
640
|
+
updated_at: S.optional(S.String),
|
|
641
|
+
}).pipe(T.Http({
|
|
642
|
+
method: "PATCH",
|
|
643
|
+
uri: "/repos/{owner}/{repo}/issues/comments/{id}",
|
|
644
|
+
code: 200,
|
|
645
|
+
}))).annotate({
|
|
646
|
+
identifier: "IssueEditCommentRequest",
|
|
647
|
+
});
|
|
648
|
+
export const IssueEditLabelRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
649
|
+
owner: S.String.pipe(T.Label()),
|
|
650
|
+
repo: S.String.pipe(T.Label()),
|
|
651
|
+
id: S.Number.pipe(T.Label()),
|
|
652
|
+
color: S.optional(S.String),
|
|
653
|
+
description: S.optional(S.String),
|
|
654
|
+
exclusive: S.optional(S.Boolean),
|
|
655
|
+
is_archived: S.optional(S.Boolean),
|
|
656
|
+
name: S.optional(S.String),
|
|
657
|
+
}).pipe(T.Http({
|
|
658
|
+
method: "PATCH",
|
|
659
|
+
uri: "/repos/{owner}/{repo}/labels/{id}",
|
|
660
|
+
code: 200,
|
|
661
|
+
}))).annotate({
|
|
662
|
+
identifier: "IssueEditLabelRequest",
|
|
663
|
+
});
|
|
664
|
+
export const IssueEditMilestoneRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
665
|
+
owner: S.String.pipe(T.Label()),
|
|
666
|
+
repo: S.String.pipe(T.Label()),
|
|
667
|
+
id: S.Number.pipe(T.Label()),
|
|
668
|
+
description: S.optional(S.String),
|
|
669
|
+
due_on: S.optional(S.String),
|
|
670
|
+
state: S.optional(S.String),
|
|
671
|
+
title: S.optional(S.String),
|
|
672
|
+
}).pipe(T.Http({
|
|
673
|
+
method: "PATCH",
|
|
674
|
+
uri: "/repos/{owner}/{repo}/milestones/{id}",
|
|
675
|
+
code: 200,
|
|
676
|
+
}))).annotate({
|
|
677
|
+
identifier: "IssueEditMilestoneRequest",
|
|
678
|
+
});
|
|
679
|
+
export const IssueGetCommentRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
680
|
+
owner: S.String.pipe(T.Label()),
|
|
681
|
+
repo: S.String.pipe(T.Label()),
|
|
682
|
+
id: S.Number.pipe(T.Label()),
|
|
683
|
+
}).pipe(T.Http({
|
|
684
|
+
method: "GET",
|
|
685
|
+
uri: "/repos/{owner}/{repo}/issues/comments/{id}",
|
|
686
|
+
code: 200,
|
|
687
|
+
}))).annotate({
|
|
688
|
+
identifier: "IssueGetCommentRequest",
|
|
689
|
+
});
|
|
690
|
+
export const IssueGetCommentReactionsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
691
|
+
owner: S.String.pipe(T.Label()),
|
|
692
|
+
repo: S.String.pipe(T.Label()),
|
|
693
|
+
id: S.Number.pipe(T.Label()),
|
|
694
|
+
}).pipe(T.Http({
|
|
695
|
+
method: "GET",
|
|
696
|
+
uri: "/repos/{owner}/{repo}/issues/comments/{id}/reactions",
|
|
697
|
+
code: 200,
|
|
698
|
+
}))).annotate({
|
|
699
|
+
identifier: "IssueGetCommentReactionsRequest",
|
|
700
|
+
});
|
|
701
|
+
export const IssueGetCommentReactionsResponseBodyList = /*@__PURE__*/ S.Array(Reaction);
|
|
702
|
+
export const IssueGetCommentReactionsResponse = /*@__PURE__*/ S.suspend(() => IssueGetCommentReactionsResponseBodyList.pipe(T.RawResponseRoot())).annotate({
|
|
703
|
+
identifier: "IssueGetCommentReactionsResponse",
|
|
704
|
+
});
|
|
705
|
+
export const IssueGetCommentsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
706
|
+
owner: S.String.pipe(T.Label()),
|
|
707
|
+
repo: S.String.pipe(T.Label()),
|
|
708
|
+
index: S.Number.pipe(T.Label()),
|
|
709
|
+
since: S.optional(S.String.pipe(T.Query())),
|
|
710
|
+
before: S.optional(S.String.pipe(T.Query())),
|
|
711
|
+
}).pipe(T.Http({
|
|
712
|
+
method: "GET",
|
|
713
|
+
uri: "/repos/{owner}/{repo}/issues/{index}/comments",
|
|
714
|
+
code: 200,
|
|
715
|
+
}))).annotate({
|
|
716
|
+
identifier: "IssueGetCommentsRequest",
|
|
717
|
+
});
|
|
718
|
+
export const IssueGetCommentsResponseBodyList = /*@__PURE__*/ S.Array(Comment);
|
|
719
|
+
export const IssueGetCommentsResponse = /*@__PURE__*/ S.suspend(() => IssueGetCommentsResponseBodyList.pipe(T.RawResponseRoot())).annotate({
|
|
720
|
+
identifier: "IssueGetCommentsResponse",
|
|
721
|
+
});
|
|
722
|
+
export const IssueGetCommentsAndTimelineRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
723
|
+
owner: S.String.pipe(T.Label()),
|
|
724
|
+
repo: S.String.pipe(T.Label()),
|
|
725
|
+
index: S.Number.pipe(T.Label()),
|
|
726
|
+
since: S.optional(S.String.pipe(T.Query())),
|
|
727
|
+
page: S.optional(S.Number.pipe(T.Query())),
|
|
728
|
+
limit: S.optional(S.Number.pipe(T.Query())),
|
|
729
|
+
before: S.optional(S.String.pipe(T.Query())),
|
|
730
|
+
}).pipe(T.Http({
|
|
731
|
+
method: "GET",
|
|
732
|
+
uri: "/repos/{owner}/{repo}/issues/{index}/timeline",
|
|
733
|
+
code: 200,
|
|
734
|
+
}))).annotate({
|
|
735
|
+
identifier: "IssueGetCommentsAndTimelineRequest",
|
|
736
|
+
});
|
|
737
|
+
export const Organization = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
738
|
+
avatar_url: S.optional(S.String),
|
|
739
|
+
created: S.optional(S.String),
|
|
740
|
+
description: S.optional(S.String),
|
|
741
|
+
email: S.optional(S.String),
|
|
742
|
+
full_name: S.optional(S.String),
|
|
743
|
+
id: S.Number,
|
|
744
|
+
location: S.optional(S.String),
|
|
745
|
+
name: S.optional(S.String),
|
|
746
|
+
repo_admin_change_team_access: S.optional(S.Boolean),
|
|
747
|
+
username: S.String,
|
|
748
|
+
visibility: S.optional(S.String),
|
|
749
|
+
website: S.optional(S.String),
|
|
750
|
+
})).annotate({ identifier: "Organization" });
|
|
751
|
+
export const TeamPermission = /*@__PURE__*/ S.String;
|
|
752
|
+
export const TeamUnitsList = /*@__PURE__*/ S.Array(S.String);
|
|
753
|
+
export const TeamUnitsMapMap = /*@__PURE__*/ S.Record(S.String, S.String);
|
|
754
|
+
export const Team = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
755
|
+
can_create_org_repo: S.optional(S.Boolean),
|
|
756
|
+
description: S.optional(S.String),
|
|
757
|
+
id: S.Number,
|
|
758
|
+
includes_all_repositories: S.optional(S.Boolean),
|
|
759
|
+
name: S.String,
|
|
760
|
+
organization: S.optional(Organization),
|
|
761
|
+
permission: S.optional(TeamPermission),
|
|
762
|
+
units: S.optional(TeamUnitsList),
|
|
763
|
+
units_map: S.optional(TeamUnitsMapMap),
|
|
764
|
+
})).annotate({ identifier: "Team" });
|
|
765
|
+
export const TimelineComment = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
766
|
+
assignee: S.optional(User),
|
|
767
|
+
assignee_team: S.optional(Team),
|
|
768
|
+
body: S.optional(S.String),
|
|
769
|
+
created_at: S.optional(S.String),
|
|
770
|
+
dependent_issue: S.optional(Issue),
|
|
771
|
+
html_url: S.optional(S.String),
|
|
772
|
+
id: S.optional(S.Number),
|
|
773
|
+
issue_url: S.optional(S.String),
|
|
774
|
+
label: S.optional(Label),
|
|
775
|
+
milestone: S.optional(Milestone),
|
|
776
|
+
new_ref: S.optional(S.String),
|
|
777
|
+
new_title: S.optional(S.String),
|
|
778
|
+
old_milestone: S.optional(Milestone),
|
|
779
|
+
old_project_id: S.optional(S.Number),
|
|
780
|
+
old_ref: S.optional(S.String),
|
|
781
|
+
old_title: S.optional(S.String),
|
|
782
|
+
project_id: S.optional(S.Number),
|
|
783
|
+
pull_request_url: S.optional(S.String),
|
|
784
|
+
ref_action: S.optional(S.String),
|
|
785
|
+
ref_comment: S.optional(Comment),
|
|
786
|
+
ref_commit_sha: S.optional(S.String),
|
|
787
|
+
ref_issue: S.optional(Issue),
|
|
788
|
+
removed_assignee: S.optional(S.Boolean),
|
|
789
|
+
resolve_doer: S.optional(User),
|
|
790
|
+
review_id: S.optional(S.Number),
|
|
791
|
+
tracked_time: S.optional(TrackedTime),
|
|
792
|
+
type: S.optional(S.String),
|
|
793
|
+
updated_at: S.optional(S.String),
|
|
794
|
+
user: S.optional(User),
|
|
795
|
+
})).annotate({
|
|
796
|
+
identifier: "TimelineComment",
|
|
797
|
+
});
|
|
798
|
+
export const IssueGetCommentsAndTimelineResponseBodyList =
|
|
799
|
+
/*@__PURE__*/ S.Array(TimelineComment);
|
|
800
|
+
export const IssueGetCommentsAndTimelineResponse = /*@__PURE__*/ S.suspend(() => IssueGetCommentsAndTimelineResponseBodyList.pipe(T.RawResponseRoot())).annotate({
|
|
801
|
+
identifier: "IssueGetCommentsAndTimelineResponse",
|
|
802
|
+
});
|
|
803
|
+
export const IssueGetLabelRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
804
|
+
owner: S.String.pipe(T.Label()),
|
|
805
|
+
repo: S.String.pipe(T.Label()),
|
|
806
|
+
id: S.Number.pipe(T.Label()),
|
|
807
|
+
}).pipe(T.Http({
|
|
808
|
+
method: "GET",
|
|
809
|
+
uri: "/repos/{owner}/{repo}/labels/{id}",
|
|
810
|
+
code: 200,
|
|
811
|
+
}))).annotate({
|
|
812
|
+
identifier: "IssueGetLabelRequest",
|
|
813
|
+
});
|
|
814
|
+
export const IssueGetLabelsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
815
|
+
owner: S.String.pipe(T.Label()),
|
|
816
|
+
repo: S.String.pipe(T.Label()),
|
|
817
|
+
index: S.Number.pipe(T.Label()),
|
|
818
|
+
}).pipe(T.Http({
|
|
819
|
+
method: "GET",
|
|
820
|
+
uri: "/repos/{owner}/{repo}/issues/{index}/labels",
|
|
821
|
+
code: 200,
|
|
822
|
+
}))).annotate({
|
|
823
|
+
identifier: "IssueGetLabelsRequest",
|
|
824
|
+
});
|
|
825
|
+
export const IssueGetLabelsResponseBodyList = /*@__PURE__*/ S.Array(Label);
|
|
826
|
+
export const IssueGetLabelsResponse = /*@__PURE__*/ S.suspend(() => IssueGetLabelsResponseBodyList.pipe(T.RawResponseRoot())).annotate({
|
|
827
|
+
identifier: "IssueGetLabelsResponse",
|
|
828
|
+
});
|
|
829
|
+
export const IssueGetMilestoneRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
830
|
+
owner: S.String.pipe(T.Label()),
|
|
831
|
+
repo: S.String.pipe(T.Label()),
|
|
832
|
+
id: S.Number.pipe(T.Label()),
|
|
833
|
+
}).pipe(T.Http({
|
|
834
|
+
method: "GET",
|
|
835
|
+
uri: "/repos/{owner}/{repo}/milestones/{id}",
|
|
836
|
+
code: 200,
|
|
837
|
+
}))).annotate({
|
|
838
|
+
identifier: "IssueGetMilestoneRequest",
|
|
839
|
+
});
|
|
840
|
+
export const IssueGetMilestonesListRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
841
|
+
owner: S.String.pipe(T.Label()),
|
|
842
|
+
repo: S.String.pipe(T.Label()),
|
|
843
|
+
state: S.optional(S.String.pipe(T.Query())),
|
|
844
|
+
name: S.optional(S.String.pipe(T.Query())),
|
|
845
|
+
page: S.optional(S.Number.pipe(T.Query())),
|
|
846
|
+
limit: S.optional(S.Number.pipe(T.Query())),
|
|
847
|
+
}).pipe(T.Http({
|
|
848
|
+
method: "GET",
|
|
849
|
+
uri: "/repos/{owner}/{repo}/milestones",
|
|
850
|
+
code: 200,
|
|
851
|
+
}))).annotate({
|
|
852
|
+
identifier: "IssueGetMilestonesListRequest",
|
|
853
|
+
});
|
|
854
|
+
export const IssueGetMilestonesListResponseBodyList = /*@__PURE__*/ S.Array(Milestone);
|
|
855
|
+
export const IssueGetMilestonesListResponse = /*@__PURE__*/ S.suspend(() => IssueGetMilestonesListResponseBodyList.pipe(T.RawResponseRoot())).annotate({
|
|
856
|
+
identifier: "IssueGetMilestonesListResponse",
|
|
857
|
+
});
|
|
858
|
+
export const IssueGetRepoCommentsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
859
|
+
owner: S.String.pipe(T.Label()),
|
|
860
|
+
repo: S.String.pipe(T.Label()),
|
|
861
|
+
since: S.optional(S.String.pipe(T.Query())),
|
|
862
|
+
before: S.optional(S.String.pipe(T.Query())),
|
|
863
|
+
page: S.optional(S.Number.pipe(T.Query())),
|
|
864
|
+
limit: S.optional(S.Number.pipe(T.Query())),
|
|
865
|
+
}).pipe(T.Http({
|
|
866
|
+
method: "GET",
|
|
867
|
+
uri: "/repos/{owner}/{repo}/issues/comments",
|
|
868
|
+
code: 200,
|
|
869
|
+
}))).annotate({
|
|
870
|
+
identifier: "IssueGetRepoCommentsRequest",
|
|
871
|
+
});
|
|
872
|
+
export const IssueGetRepoCommentsResponseBodyList = /*@__PURE__*/ S.Array(Comment);
|
|
873
|
+
export const IssueGetRepoCommentsResponse = /*@__PURE__*/ S.suspend(() => IssueGetRepoCommentsResponseBodyList.pipe(T.RawResponseRoot())).annotate({
|
|
874
|
+
identifier: "IssueGetRepoCommentsResponse",
|
|
875
|
+
});
|
|
876
|
+
export const IssueListBlocksRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
877
|
+
owner: S.String.pipe(T.Label()),
|
|
878
|
+
repo: S.String.pipe(T.Label()),
|
|
879
|
+
index: S.Number.pipe(T.Label()),
|
|
880
|
+
page: S.optional(S.Number.pipe(T.Query())),
|
|
881
|
+
limit: S.optional(S.Number.pipe(T.Query())),
|
|
882
|
+
}).pipe(T.Http({
|
|
883
|
+
method: "GET",
|
|
884
|
+
uri: "/repos/{owner}/{repo}/issues/{index}/blocks",
|
|
885
|
+
code: 200,
|
|
886
|
+
}))).annotate({
|
|
887
|
+
identifier: "IssueListBlocksRequest",
|
|
888
|
+
});
|
|
889
|
+
export const IssueListBlocksResponseBodyList = /*@__PURE__*/ S.Array(Issue);
|
|
890
|
+
export const IssueListBlocksResponse = /*@__PURE__*/ S.suspend(() => IssueListBlocksResponseBodyList.pipe(T.RawResponseRoot())).annotate({
|
|
891
|
+
identifier: "IssueListBlocksResponse",
|
|
892
|
+
});
|
|
893
|
+
export const IssueListLabelsRequestSort = /*@__PURE__*/ S.String;
|
|
894
|
+
export const IssueListLabelsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
895
|
+
owner: S.String.pipe(T.Label()),
|
|
896
|
+
repo: S.String.pipe(T.Label()),
|
|
897
|
+
sort: S.optional(IssueListLabelsRequestSort.pipe(T.Query())),
|
|
898
|
+
page: S.optional(S.Number.pipe(T.Query())),
|
|
899
|
+
limit: S.optional(S.Number.pipe(T.Query())),
|
|
900
|
+
}).pipe(T.Http({ method: "GET", uri: "/repos/{owner}/{repo}/labels", code: 200 }))).annotate({
|
|
901
|
+
identifier: "IssueListLabelsRequest",
|
|
902
|
+
});
|
|
903
|
+
export const IssueListLabelsResponseBodyList = /*@__PURE__*/ S.Array(Label);
|
|
904
|
+
export const IssueListLabelsResponse = /*@__PURE__*/ S.suspend(() => IssueListLabelsResponseBodyList.pipe(T.RawResponseRoot())).annotate({
|
|
905
|
+
identifier: "IssueListLabelsResponse",
|
|
906
|
+
});
|
|
907
|
+
export const IssuePostCommentReactionRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
908
|
+
owner: S.String.pipe(T.Label()),
|
|
909
|
+
repo: S.String.pipe(T.Label()),
|
|
910
|
+
id: S.Number.pipe(T.Label()),
|
|
911
|
+
content: S.optional(S.String),
|
|
912
|
+
}).pipe(T.Http({
|
|
913
|
+
method: "POST",
|
|
914
|
+
uri: "/repos/{owner}/{repo}/issues/comments/{id}/reactions",
|
|
915
|
+
code: 200,
|
|
916
|
+
}))).annotate({
|
|
917
|
+
identifier: "IssuePostCommentReactionRequest",
|
|
918
|
+
});
|
|
919
|
+
export const IssueRemoveLabelRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
920
|
+
owner: S.String.pipe(T.Label()),
|
|
921
|
+
repo: S.String.pipe(T.Label()),
|
|
922
|
+
index: S.Number.pipe(T.Label()),
|
|
923
|
+
identifier: S.String.pipe(T.Label()),
|
|
924
|
+
updated_at: S.optional(S.String),
|
|
925
|
+
}).pipe(T.Http({
|
|
926
|
+
method: "DELETE",
|
|
927
|
+
uri: "/repos/{owner}/{repo}/issues/{index}/labels/{identifier}",
|
|
928
|
+
code: 200,
|
|
929
|
+
}))).annotate({
|
|
930
|
+
identifier: "IssueRemoveLabelRequest",
|
|
931
|
+
});
|
|
932
|
+
export const IssueRemoveLabelResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
933
|
+
identifier: "IssueRemoveLabelResponse",
|
|
934
|
+
});
|
|
935
|
+
export const IssueReplaceLabelsRequestLabelsList = /*@__PURE__*/ S.Array(S.Unknown);
|
|
936
|
+
export const IssueReplaceLabelsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
937
|
+
owner: S.String.pipe(T.Label()),
|
|
938
|
+
repo: S.String.pipe(T.Label()),
|
|
939
|
+
index: S.Number.pipe(T.Label()),
|
|
940
|
+
labels: S.optional(IssueReplaceLabelsRequestLabelsList),
|
|
941
|
+
updated_at: S.optional(S.String),
|
|
942
|
+
}).pipe(T.Http({
|
|
943
|
+
method: "PUT",
|
|
944
|
+
uri: "/repos/{owner}/{repo}/issues/{index}/labels",
|
|
945
|
+
code: 200,
|
|
946
|
+
}))).annotate({
|
|
947
|
+
identifier: "IssueReplaceLabelsRequest",
|
|
948
|
+
});
|
|
949
|
+
export const IssueReplaceLabelsResponseBodyList = /*@__PURE__*/ S.Array(Label);
|
|
950
|
+
export const IssueReplaceLabelsResponse = /*@__PURE__*/ S.suspend(() => IssueReplaceLabelsResponseBodyList.pipe(T.RawResponseRoot())).annotate({
|
|
951
|
+
identifier: "IssueReplaceLabelsResponse",
|
|
952
|
+
});
|
|
953
|
+
export const IssueResetTimeRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
954
|
+
owner: S.String.pipe(T.Label()),
|
|
955
|
+
repo: S.String.pipe(T.Label()),
|
|
956
|
+
index: S.Number.pipe(T.Label()),
|
|
957
|
+
}).pipe(T.Http({
|
|
958
|
+
method: "DELETE",
|
|
959
|
+
uri: "/repos/{owner}/{repo}/issues/{index}/times",
|
|
960
|
+
code: 200,
|
|
961
|
+
}))).annotate({
|
|
962
|
+
identifier: "IssueResetTimeRequest",
|
|
963
|
+
});
|
|
964
|
+
export const IssueResetTimeResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
965
|
+
identifier: "IssueResetTimeResponse",
|
|
966
|
+
});
|
|
967
|
+
export const IssueStartStopWatchRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
968
|
+
owner: S.String.pipe(T.Label()),
|
|
969
|
+
repo: S.String.pipe(T.Label()),
|
|
970
|
+
index: S.Number.pipe(T.Label()),
|
|
971
|
+
}).pipe(T.Http({
|
|
972
|
+
method: "POST",
|
|
973
|
+
uri: "/repos/{owner}/{repo}/issues/{index}/stopwatch/start",
|
|
974
|
+
code: 200,
|
|
975
|
+
}))).annotate({
|
|
976
|
+
identifier: "IssueStartStopWatchRequest",
|
|
977
|
+
});
|
|
978
|
+
export const IssueStartStopWatchResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
979
|
+
identifier: "IssueStartStopWatchResponse",
|
|
980
|
+
});
|
|
981
|
+
export const IssueStopStopWatchRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
982
|
+
owner: S.String.pipe(T.Label()),
|
|
983
|
+
repo: S.String.pipe(T.Label()),
|
|
984
|
+
index: S.Number.pipe(T.Label()),
|
|
985
|
+
}).pipe(T.Http({
|
|
986
|
+
method: "POST",
|
|
987
|
+
uri: "/repos/{owner}/{repo}/issues/{index}/stopwatch/stop",
|
|
988
|
+
code: 200,
|
|
989
|
+
}))).annotate({
|
|
990
|
+
identifier: "IssueStopStopWatchRequest",
|
|
991
|
+
});
|
|
992
|
+
export const IssueStopStopWatchResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
993
|
+
identifier: "IssueStopStopWatchResponse",
|
|
994
|
+
});
|
|
995
|
+
export const IssueSubscriptionsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
996
|
+
owner: S.String.pipe(T.Label()),
|
|
997
|
+
repo: S.String.pipe(T.Label()),
|
|
998
|
+
index: S.Number.pipe(T.Label()),
|
|
999
|
+
page: S.optional(S.Number.pipe(T.Query())),
|
|
1000
|
+
limit: S.optional(S.Number.pipe(T.Query())),
|
|
1001
|
+
}).pipe(T.Http({
|
|
1002
|
+
method: "GET",
|
|
1003
|
+
uri: "/repos/{owner}/{repo}/issues/{index}/subscriptions",
|
|
1004
|
+
code: 200,
|
|
1005
|
+
}))).annotate({
|
|
1006
|
+
identifier: "IssueSubscriptionsRequest",
|
|
1007
|
+
});
|
|
1008
|
+
export const IssueSubscriptionsResponseBodyList = /*@__PURE__*/ S.Array(User);
|
|
1009
|
+
export const IssueSubscriptionsResponse = /*@__PURE__*/ S.suspend(() => IssueSubscriptionsResponseBodyList.pipe(T.RawResponseRoot())).annotate({
|
|
1010
|
+
identifier: "IssueSubscriptionsResponse",
|
|
1011
|
+
});
|
|
1012
|
+
export const IssueTrackedTimesRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1013
|
+
owner: S.String.pipe(T.Label()),
|
|
1014
|
+
repo: S.String.pipe(T.Label()),
|
|
1015
|
+
index: S.Number.pipe(T.Label()),
|
|
1016
|
+
user: S.optional(S.String.pipe(T.Query())),
|
|
1017
|
+
since: S.optional(S.String.pipe(T.Query())),
|
|
1018
|
+
before: S.optional(S.String.pipe(T.Query())),
|
|
1019
|
+
page: S.optional(S.Number.pipe(T.Query())),
|
|
1020
|
+
limit: S.optional(S.Number.pipe(T.Query())),
|
|
1021
|
+
}).pipe(T.Http({
|
|
1022
|
+
method: "GET",
|
|
1023
|
+
uri: "/repos/{owner}/{repo}/issues/{index}/times",
|
|
1024
|
+
code: 200,
|
|
1025
|
+
}))).annotate({
|
|
1026
|
+
identifier: "IssueTrackedTimesRequest",
|
|
1027
|
+
});
|
|
1028
|
+
export const IssueTrackedTimesResponseBodyList = /*@__PURE__*/ S.Array(TrackedTime);
|
|
1029
|
+
export const IssueTrackedTimesResponse = /*@__PURE__*/ S.suspend(() => IssueTrackedTimesResponseBodyList.pipe(T.RawResponseRoot())).annotate({
|
|
1030
|
+
identifier: "IssueTrackedTimesResponse",
|
|
1031
|
+
});
|
|
1032
|
+
export const ListIssueAttachmentsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1033
|
+
owner: S.String.pipe(T.Label()),
|
|
1034
|
+
repo: S.String.pipe(T.Label()),
|
|
1035
|
+
index: S.Number.pipe(T.Label()),
|
|
1036
|
+
}).pipe(T.Http({
|
|
1037
|
+
method: "GET",
|
|
1038
|
+
uri: "/repos/{owner}/{repo}/issues/{index}/assets",
|
|
1039
|
+
code: 200,
|
|
1040
|
+
}))).annotate({
|
|
1041
|
+
identifier: "ListIssueAttachmentsRequest",
|
|
1042
|
+
});
|
|
1043
|
+
export const ListIssueAttachmentsResponseBodyList = /*@__PURE__*/ S.Array(Attachment);
|
|
1044
|
+
export const ListIssueAttachmentsResponse = /*@__PURE__*/ S.suspend(() => ListIssueAttachmentsResponseBodyList.pipe(T.RawResponseRoot())).annotate({
|
|
1045
|
+
identifier: "ListIssueAttachmentsResponse",
|
|
1046
|
+
});
|
|
1047
|
+
export const ListIssueCommentAttachmentsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1048
|
+
owner: S.String.pipe(T.Label()),
|
|
1049
|
+
repo: S.String.pipe(T.Label()),
|
|
1050
|
+
id: S.Number.pipe(T.Label()),
|
|
1051
|
+
}).pipe(T.Http({
|
|
1052
|
+
method: "GET",
|
|
1053
|
+
uri: "/repos/{owner}/{repo}/issues/comments/{id}/assets",
|
|
1054
|
+
code: 200,
|
|
1055
|
+
}))).annotate({
|
|
1056
|
+
identifier: "ListIssueCommentAttachmentsRequest",
|
|
1057
|
+
});
|
|
1058
|
+
export const ListIssueCommentAttachmentsResponseBodyList =
|
|
1059
|
+
/*@__PURE__*/ S.Array(Attachment);
|
|
1060
|
+
export const ListIssueCommentAttachmentsResponse = /*@__PURE__*/ S.suspend(() => ListIssueCommentAttachmentsResponseBodyList.pipe(T.RawResponseRoot())).annotate({
|
|
1061
|
+
identifier: "ListIssueCommentAttachmentsResponse",
|
|
1062
|
+
});
|
|
1063
|
+
export const ListIssueDependenciesRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1064
|
+
owner: S.String.pipe(T.Label()),
|
|
1065
|
+
repo: S.String.pipe(T.Label()),
|
|
1066
|
+
index: S.Number.pipe(T.Label()),
|
|
1067
|
+
page: S.optional(S.Number.pipe(T.Query())),
|
|
1068
|
+
limit: S.optional(S.Number.pipe(T.Query())),
|
|
1069
|
+
}).pipe(T.Http({
|
|
1070
|
+
method: "GET",
|
|
1071
|
+
uri: "/repos/{owner}/{repo}/issues/{index}/dependencies",
|
|
1072
|
+
code: 200,
|
|
1073
|
+
}))).annotate({
|
|
1074
|
+
identifier: "ListIssueDependenciesRequest",
|
|
1075
|
+
});
|
|
1076
|
+
export const ListIssueDependenciesResponseBodyList = /*@__PURE__*/ S.Array(Issue);
|
|
1077
|
+
export const ListIssueDependenciesResponse = /*@__PURE__*/ S.suspend(() => ListIssueDependenciesResponseBodyList.pipe(T.RawResponseRoot())).annotate({
|
|
1078
|
+
identifier: "ListIssueDependenciesResponse",
|
|
1079
|
+
});
|
|
1080
|
+
export const ListIssuesRequestState = /*@__PURE__*/ S.String;
|
|
1081
|
+
export const ListIssuesRequestType = /*@__PURE__*/ S.String;
|
|
1082
|
+
export const ListIssuesRequestSort = /*@__PURE__*/ S.String;
|
|
1083
|
+
export const ListIssuesRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1084
|
+
owner: S.String.pipe(T.Label()),
|
|
1085
|
+
repo: S.String.pipe(T.Label()),
|
|
1086
|
+
state: S.optional(ListIssuesRequestState.pipe(T.Query())),
|
|
1087
|
+
labels: S.optional(S.String.pipe(T.Query())),
|
|
1088
|
+
q: S.optional(S.String.pipe(T.Query())),
|
|
1089
|
+
type: S.optional(ListIssuesRequestType.pipe(T.Query())),
|
|
1090
|
+
milestones: S.optional(S.String.pipe(T.Query())),
|
|
1091
|
+
since: S.optional(S.String.pipe(T.Query())),
|
|
1092
|
+
before: S.optional(S.String.pipe(T.Query())),
|
|
1093
|
+
created_by: S.optional(S.String.pipe(T.Query())),
|
|
1094
|
+
assigned_by: S.optional(S.String.pipe(T.Query())),
|
|
1095
|
+
mentioned_by: S.optional(S.String.pipe(T.Query())),
|
|
1096
|
+
page: S.optional(S.Number.pipe(T.Query())),
|
|
1097
|
+
limit: S.optional(S.Number.pipe(T.Query())),
|
|
1098
|
+
sort: S.optional(ListIssuesRequestSort.pipe(T.Query())),
|
|
1099
|
+
}).pipe(T.Http({ method: "GET", uri: "/repos/{owner}/{repo}/issues", code: 200 }))).annotate({
|
|
1100
|
+
identifier: "ListIssuesRequest",
|
|
1101
|
+
});
|
|
1102
|
+
export const ListIssuesResponseBodyList = /*@__PURE__*/ S.Array(Issue);
|
|
1103
|
+
export const ListIssuesResponse = /*@__PURE__*/ S.suspend(() => ListIssuesResponseBodyList.pipe(T.RawResponseRoot())).annotate({
|
|
1104
|
+
identifier: "ListIssuesResponse",
|
|
1105
|
+
});
|
|
1106
|
+
export const MoveIssuePinRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1107
|
+
owner: S.String.pipe(T.Label()),
|
|
1108
|
+
repo: S.String.pipe(T.Label()),
|
|
1109
|
+
index: S.Number.pipe(T.Label()),
|
|
1110
|
+
position: S.Number.pipe(T.Label()),
|
|
1111
|
+
}).pipe(T.Http({
|
|
1112
|
+
method: "PATCH",
|
|
1113
|
+
uri: "/repos/{owner}/{repo}/issues/{index}/pin/{position}",
|
|
1114
|
+
code: 200,
|
|
1115
|
+
}))).annotate({
|
|
1116
|
+
identifier: "MoveIssuePinRequest",
|
|
1117
|
+
});
|
|
1118
|
+
export const MoveIssuePinResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
1119
|
+
identifier: "MoveIssuePinResponse",
|
|
1120
|
+
});
|
|
1121
|
+
export const PinIssueRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1122
|
+
owner: S.String.pipe(T.Label()),
|
|
1123
|
+
repo: S.String.pipe(T.Label()),
|
|
1124
|
+
index: S.Number.pipe(T.Label()),
|
|
1125
|
+
}).pipe(T.Http({
|
|
1126
|
+
method: "POST",
|
|
1127
|
+
uri: "/repos/{owner}/{repo}/issues/{index}/pin",
|
|
1128
|
+
code: 200,
|
|
1129
|
+
}))).annotate({
|
|
1130
|
+
identifier: "PinIssueRequest",
|
|
1131
|
+
});
|
|
1132
|
+
export const PinIssueResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
1133
|
+
identifier: "PinIssueResponse",
|
|
1134
|
+
});
|
|
1135
|
+
export const PostIssueReactionRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1136
|
+
owner: S.String.pipe(T.Label()),
|
|
1137
|
+
repo: S.String.pipe(T.Label()),
|
|
1138
|
+
index: S.Number.pipe(T.Label()),
|
|
1139
|
+
content: S.optional(S.String),
|
|
1140
|
+
}).pipe(T.Http({
|
|
1141
|
+
method: "POST",
|
|
1142
|
+
uri: "/repos/{owner}/{repo}/issues/{index}/reactions",
|
|
1143
|
+
code: 200,
|
|
1144
|
+
}))).annotate({
|
|
1145
|
+
identifier: "PostIssueReactionRequest",
|
|
1146
|
+
});
|
|
1147
|
+
export const RemoveIssueBlockingRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1148
|
+
owner: S.String.pipe(T.Label()),
|
|
1149
|
+
repo: S.String.pipe(T.Label()),
|
|
1150
|
+
index: S.Number.pipe(T.Label()),
|
|
1151
|
+
}).pipe(T.Http({
|
|
1152
|
+
method: "DELETE",
|
|
1153
|
+
uri: "/repos/{owner}/{repo}/issues/{index}/blocks",
|
|
1154
|
+
code: 200,
|
|
1155
|
+
}))).annotate({
|
|
1156
|
+
identifier: "RemoveIssueBlockingRequest",
|
|
1157
|
+
});
|
|
1158
|
+
export const RemoveIssueDependenciesRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1159
|
+
owner: S.String.pipe(T.Label()),
|
|
1160
|
+
repo: S.String.pipe(T.Label()),
|
|
1161
|
+
index: S.Number.pipe(T.Label()),
|
|
1162
|
+
}).pipe(T.Http({
|
|
1163
|
+
method: "DELETE",
|
|
1164
|
+
uri: "/repos/{owner}/{repo}/issues/{index}/dependencies",
|
|
1165
|
+
code: 200,
|
|
1166
|
+
}))).annotate({
|
|
1167
|
+
identifier: "RemoveIssueDependenciesRequest",
|
|
1168
|
+
});
|
|
1169
|
+
export const SearchIssuesRequestState = /*@__PURE__*/ S.String;
|
|
1170
|
+
export const SearchIssuesRequestType = /*@__PURE__*/ S.String;
|
|
1171
|
+
export const SearchIssuesRequestSort = /*@__PURE__*/ S.String;
|
|
1172
|
+
export const SearchIssuesRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1173
|
+
state: S.optional(SearchIssuesRequestState.pipe(T.Query())),
|
|
1174
|
+
labels: S.optional(S.String.pipe(T.Query())),
|
|
1175
|
+
milestones: S.optional(S.String.pipe(T.Query())),
|
|
1176
|
+
q: S.optional(S.String.pipe(T.Query())),
|
|
1177
|
+
priority_repo_id: S.optional(S.Number.pipe(T.Query())),
|
|
1178
|
+
type: S.optional(SearchIssuesRequestType.pipe(T.Query())),
|
|
1179
|
+
since: S.optional(S.String.pipe(T.Query())),
|
|
1180
|
+
before: S.optional(S.String.pipe(T.Query())),
|
|
1181
|
+
assigned: S.optional(S.Boolean.pipe(T.Query())),
|
|
1182
|
+
created: S.optional(S.Boolean.pipe(T.Query())),
|
|
1183
|
+
mentioned: S.optional(S.Boolean.pipe(T.Query())),
|
|
1184
|
+
review_requested: S.optional(S.Boolean.pipe(T.Query())),
|
|
1185
|
+
reviewed: S.optional(S.Boolean.pipe(T.Query())),
|
|
1186
|
+
owner: S.optional(S.String.pipe(T.Query())),
|
|
1187
|
+
team: S.optional(S.String.pipe(T.Query())),
|
|
1188
|
+
page: S.optional(S.Number.pipe(T.Query())),
|
|
1189
|
+
limit: S.optional(S.Number.pipe(T.Query())),
|
|
1190
|
+
sort: S.optional(SearchIssuesRequestSort.pipe(T.Query())),
|
|
1191
|
+
}).pipe(T.Http({ method: "GET", uri: "/repos/issues/search", code: 200 }))).annotate({
|
|
1192
|
+
identifier: "SearchIssuesRequest",
|
|
1193
|
+
});
|
|
1194
|
+
export const SearchIssuesResponseBodyList = /*@__PURE__*/ S.Array(Issue);
|
|
1195
|
+
export const SearchIssuesResponse = /*@__PURE__*/ S.suspend(() => SearchIssuesResponseBodyList.pipe(T.RawResponseRoot())).annotate({
|
|
1196
|
+
identifier: "SearchIssuesResponse",
|
|
1197
|
+
});
|
|
1198
|
+
export const UnpinIssueRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1199
|
+
owner: S.String.pipe(T.Label()),
|
|
1200
|
+
repo: S.String.pipe(T.Label()),
|
|
1201
|
+
index: S.Number.pipe(T.Label()),
|
|
1202
|
+
}).pipe(T.Http({
|
|
1203
|
+
method: "DELETE",
|
|
1204
|
+
uri: "/repos/{owner}/{repo}/issues/{index}/pin",
|
|
1205
|
+
code: 200,
|
|
1206
|
+
}))).annotate({
|
|
1207
|
+
identifier: "UnpinIssueRequest",
|
|
1208
|
+
});
|
|
1209
|
+
export const UnpinIssueResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
1210
|
+
identifier: "UnpinIssueResponse",
|
|
1211
|
+
});
|
|
1212
|
+
/** Create an issue. If using deadline only the date will be taken into account, and time of day ignored. */
|
|
1213
|
+
export const createIssue = /*@__PURE__*/ API.make(() => ({
|
|
1214
|
+
input: CreateIssueRequest,
|
|
1215
|
+
output: Issue,
|
|
1216
|
+
errors: [Forbidden, NotFound, UnprocessableEntity, Locked],
|
|
1217
|
+
protocol: ForgejoProtocol,
|
|
1218
|
+
retry: Retry.Retry,
|
|
1219
|
+
}));
|
|
1220
|
+
/** Create an issue attachment */
|
|
1221
|
+
export const createIssueAttachment = /*@__PURE__*/ API.make(() => ({
|
|
1222
|
+
input: CreateIssueAttachmentRequest,
|
|
1223
|
+
output: Attachment,
|
|
1224
|
+
errors: [BadRequest, NotFound, UnprocessableEntity, Locked],
|
|
1225
|
+
protocol: ForgejoProtocol,
|
|
1226
|
+
retry: Retry.Retry,
|
|
1227
|
+
}));
|
|
1228
|
+
/** Block the issue given in the body by the issue in path */
|
|
1229
|
+
export const createIssueBlocking = /*@__PURE__*/ API.make(() => ({
|
|
1230
|
+
input: CreateIssueBlockingRequest,
|
|
1231
|
+
output: Issue,
|
|
1232
|
+
errors: [NotFound],
|
|
1233
|
+
protocol: ForgejoProtocol,
|
|
1234
|
+
retry: Retry.Retry,
|
|
1235
|
+
}));
|
|
1236
|
+
/** Create a comment attachment */
|
|
1237
|
+
export const createIssueCommentAttachment = /*@__PURE__*/ API.make(() => ({
|
|
1238
|
+
input: CreateIssueCommentAttachmentRequest,
|
|
1239
|
+
output: Attachment,
|
|
1240
|
+
errors: [BadRequest, NotFound, UnprocessableEntity, Locked],
|
|
1241
|
+
protocol: ForgejoProtocol,
|
|
1242
|
+
retry: Retry.Retry,
|
|
1243
|
+
}));
|
|
1244
|
+
/** Make the issue in the url depend on the issue in the form. */
|
|
1245
|
+
export const createIssueDependencies = /*@__PURE__*/ API.make(() => ({
|
|
1246
|
+
input: CreateIssueDependenciesRequest,
|
|
1247
|
+
output: Issue,
|
|
1248
|
+
errors: [NotFound, Locked],
|
|
1249
|
+
protocol: ForgejoProtocol,
|
|
1250
|
+
retry: Retry.Retry,
|
|
1251
|
+
}));
|
|
1252
|
+
/** Delete an issue */
|
|
1253
|
+
export const deleteIssue = /*@__PURE__*/ API.make(() => ({
|
|
1254
|
+
input: DeleteIssueRequest,
|
|
1255
|
+
output: DeleteIssueResponse,
|
|
1256
|
+
errors: [Forbidden, NotFound],
|
|
1257
|
+
protocol: ForgejoProtocol,
|
|
1258
|
+
retry: Retry.Retry,
|
|
1259
|
+
}));
|
|
1260
|
+
/** Delete an issue attachment */
|
|
1261
|
+
export const deleteIssueAttachment = /*@__PURE__*/ API.make(() => ({
|
|
1262
|
+
input: DeleteIssueAttachmentRequest,
|
|
1263
|
+
output: DeleteIssueAttachmentResponse,
|
|
1264
|
+
errors: [NotFound, Locked],
|
|
1265
|
+
protocol: ForgejoProtocol,
|
|
1266
|
+
retry: Retry.Retry,
|
|
1267
|
+
}));
|
|
1268
|
+
/** Delete a comment attachment */
|
|
1269
|
+
export const deleteIssueCommentAttachment = /*@__PURE__*/ API.make(() => ({
|
|
1270
|
+
input: DeleteIssueCommentAttachmentRequest,
|
|
1271
|
+
output: DeleteIssueCommentAttachmentResponse,
|
|
1272
|
+
errors: [NotFound, Locked],
|
|
1273
|
+
protocol: ForgejoProtocol,
|
|
1274
|
+
retry: Retry.Retry,
|
|
1275
|
+
}));
|
|
1276
|
+
/** Remove a reaction from an issue */
|
|
1277
|
+
export const deleteIssueReaction = /*@__PURE__*/ API.make(() => ({
|
|
1278
|
+
input: DeleteIssueReactionRequest,
|
|
1279
|
+
output: DeleteIssueReactionResponse,
|
|
1280
|
+
errors: [Forbidden, NotFound],
|
|
1281
|
+
protocol: ForgejoProtocol,
|
|
1282
|
+
retry: Retry.Retry,
|
|
1283
|
+
}));
|
|
1284
|
+
/** Edit an issue. If using deadline only the date will be taken into account, and time of day ignored. */
|
|
1285
|
+
export const editIssue = /*@__PURE__*/ API.make(() => ({
|
|
1286
|
+
input: EditIssueRequest,
|
|
1287
|
+
output: Issue,
|
|
1288
|
+
errors: [Forbidden, NotFound],
|
|
1289
|
+
protocol: ForgejoProtocol,
|
|
1290
|
+
retry: Retry.Retry,
|
|
1291
|
+
}));
|
|
1292
|
+
/** Edit an issue attachment */
|
|
1293
|
+
export const editIssueAttachment = /*@__PURE__*/ API.make(() => ({
|
|
1294
|
+
input: EditIssueAttachmentRequest,
|
|
1295
|
+
output: Attachment,
|
|
1296
|
+
errors: [NotFound, Locked],
|
|
1297
|
+
protocol: ForgejoProtocol,
|
|
1298
|
+
retry: Retry.Retry,
|
|
1299
|
+
}));
|
|
1300
|
+
/** Edit a comment attachment */
|
|
1301
|
+
export const editIssueCommentAttachment = /*@__PURE__*/ API.make(() => ({
|
|
1302
|
+
input: EditIssueCommentAttachmentRequest,
|
|
1303
|
+
output: Attachment,
|
|
1304
|
+
errors: [NotFound, Locked],
|
|
1305
|
+
protocol: ForgejoProtocol,
|
|
1306
|
+
retry: Retry.Retry,
|
|
1307
|
+
}));
|
|
1308
|
+
/** 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. */
|
|
1309
|
+
export const editIssueDeadline = /*@__PURE__*/ API.make(() => ({
|
|
1310
|
+
input: EditIssueDeadlineRequest,
|
|
1311
|
+
output: IssueDeadline,
|
|
1312
|
+
errors: [Forbidden, NotFound],
|
|
1313
|
+
protocol: ForgejoProtocol,
|
|
1314
|
+
retry: Retry.Retry,
|
|
1315
|
+
}));
|
|
1316
|
+
/** Get an issue */
|
|
1317
|
+
export const getIssue = /*@__PURE__*/ API.make(() => ({
|
|
1318
|
+
input: GetIssueRequest,
|
|
1319
|
+
output: Issue,
|
|
1320
|
+
errors: [NotFound],
|
|
1321
|
+
protocol: ForgejoProtocol,
|
|
1322
|
+
retry: Retry.Retry,
|
|
1323
|
+
}));
|
|
1324
|
+
/** Get an issue attachment */
|
|
1325
|
+
export const getIssueAttachment = /*@__PURE__*/ API.make(() => ({
|
|
1326
|
+
input: GetIssueAttachmentRequest,
|
|
1327
|
+
output: Attachment,
|
|
1328
|
+
errors: [NotFound],
|
|
1329
|
+
protocol: ForgejoProtocol,
|
|
1330
|
+
retry: Retry.Retry,
|
|
1331
|
+
}));
|
|
1332
|
+
/** Get a comment attachment */
|
|
1333
|
+
export const getIssueCommentAttachment = /*@__PURE__*/ API.make(() => ({
|
|
1334
|
+
input: GetIssueCommentAttachmentRequest,
|
|
1335
|
+
output: Attachment,
|
|
1336
|
+
errors: [NotFound],
|
|
1337
|
+
protocol: ForgejoProtocol,
|
|
1338
|
+
retry: Retry.Retry,
|
|
1339
|
+
}));
|
|
1340
|
+
/** Get a list reactions of an issue */
|
|
1341
|
+
export const getIssueReactions = /*@__PURE__*/ API.make(() => ({
|
|
1342
|
+
input: GetIssueReactionsRequest,
|
|
1343
|
+
output: GetIssueReactionsResponse,
|
|
1344
|
+
errors: [Forbidden, NotFound],
|
|
1345
|
+
protocol: ForgejoProtocol,
|
|
1346
|
+
retry: Retry.Retry,
|
|
1347
|
+
}));
|
|
1348
|
+
/** Add a label to an issue */
|
|
1349
|
+
export const issueAddLabel = /*@__PURE__*/ API.make(() => ({
|
|
1350
|
+
input: IssueAddLabelRequest,
|
|
1351
|
+
output: IssueAddLabelResponse,
|
|
1352
|
+
errors: [Forbidden, NotFound],
|
|
1353
|
+
protocol: ForgejoProtocol,
|
|
1354
|
+
retry: Retry.Retry,
|
|
1355
|
+
}));
|
|
1356
|
+
/** Subscribe user to issue */
|
|
1357
|
+
export const issueAddSubscription = /*@__PURE__*/ API.make(() => ({
|
|
1358
|
+
input: IssueAddSubscriptionRequest,
|
|
1359
|
+
output: IssueAddSubscriptionResponse,
|
|
1360
|
+
errors: [NotFound],
|
|
1361
|
+
protocol: ForgejoProtocol,
|
|
1362
|
+
retry: Retry.Retry,
|
|
1363
|
+
}));
|
|
1364
|
+
/** Add tracked time to a issue */
|
|
1365
|
+
export const issueAddTime = /*@__PURE__*/ API.make(() => ({
|
|
1366
|
+
input: IssueAddTimeRequest,
|
|
1367
|
+
output: TrackedTime,
|
|
1368
|
+
errors: [BadRequest, Forbidden, NotFound],
|
|
1369
|
+
protocol: ForgejoProtocol,
|
|
1370
|
+
retry: Retry.Retry,
|
|
1371
|
+
}));
|
|
1372
|
+
/** Check if user is subscribed to an issue */
|
|
1373
|
+
export const issueCheckSubscription = /*@__PURE__*/ API.make(() => ({
|
|
1374
|
+
input: IssueCheckSubscriptionRequest,
|
|
1375
|
+
output: WatchInfo,
|
|
1376
|
+
errors: [NotFound],
|
|
1377
|
+
protocol: ForgejoProtocol,
|
|
1378
|
+
retry: Retry.Retry,
|
|
1379
|
+
}));
|
|
1380
|
+
/** Remove all labels from an issue */
|
|
1381
|
+
export const issueClearLabels = /*@__PURE__*/ API.make(() => ({
|
|
1382
|
+
input: IssueClearLabelsRequest,
|
|
1383
|
+
output: IssueClearLabelsResponse,
|
|
1384
|
+
errors: [Forbidden, NotFound],
|
|
1385
|
+
protocol: ForgejoProtocol,
|
|
1386
|
+
retry: Retry.Retry,
|
|
1387
|
+
}));
|
|
1388
|
+
/** Add a comment to an issue */
|
|
1389
|
+
export const issueCreateComment = /*@__PURE__*/ API.make(() => ({
|
|
1390
|
+
input: IssueCreateCommentRequest,
|
|
1391
|
+
output: Comment,
|
|
1392
|
+
errors: [Forbidden, NotFound, Locked],
|
|
1393
|
+
protocol: ForgejoProtocol,
|
|
1394
|
+
retry: Retry.Retry,
|
|
1395
|
+
}));
|
|
1396
|
+
/** Create a label */
|
|
1397
|
+
export const issueCreateLabel = /*@__PURE__*/ API.make(() => ({
|
|
1398
|
+
input: IssueCreateLabelRequest,
|
|
1399
|
+
output: Label,
|
|
1400
|
+
errors: [NotFound, UnprocessableEntity],
|
|
1401
|
+
protocol: ForgejoProtocol,
|
|
1402
|
+
retry: Retry.Retry,
|
|
1403
|
+
}));
|
|
1404
|
+
/** Create a milestone */
|
|
1405
|
+
export const issueCreateMilestone = /*@__PURE__*/ API.make(() => ({
|
|
1406
|
+
input: IssueCreateMilestoneRequest,
|
|
1407
|
+
output: Milestone,
|
|
1408
|
+
errors: [NotFound],
|
|
1409
|
+
protocol: ForgejoProtocol,
|
|
1410
|
+
retry: Retry.Retry,
|
|
1411
|
+
}));
|
|
1412
|
+
/** Delete a comment */
|
|
1413
|
+
export const issueDeleteComment = /*@__PURE__*/ API.make(() => ({
|
|
1414
|
+
input: IssueDeleteCommentRequest,
|
|
1415
|
+
output: IssueDeleteCommentResponse,
|
|
1416
|
+
errors: [Forbidden],
|
|
1417
|
+
protocol: ForgejoProtocol,
|
|
1418
|
+
retry: Retry.Retry,
|
|
1419
|
+
}));
|
|
1420
|
+
/** Remove a reaction from a comment of an issue */
|
|
1421
|
+
export const issueDeleteCommentReaction = /*@__PURE__*/ API.make(() => ({
|
|
1422
|
+
input: IssueDeleteCommentReactionRequest,
|
|
1423
|
+
output: IssueDeleteCommentReactionResponse,
|
|
1424
|
+
errors: [Forbidden, NotFound],
|
|
1425
|
+
protocol: ForgejoProtocol,
|
|
1426
|
+
retry: Retry.Retry,
|
|
1427
|
+
}));
|
|
1428
|
+
/** Delete a label */
|
|
1429
|
+
export const issueDeleteLabel = /*@__PURE__*/ API.make(() => ({
|
|
1430
|
+
input: IssueDeleteLabelRequest,
|
|
1431
|
+
output: IssueDeleteLabelResponse,
|
|
1432
|
+
errors: [NotFound],
|
|
1433
|
+
protocol: ForgejoProtocol,
|
|
1434
|
+
retry: Retry.Retry,
|
|
1435
|
+
}));
|
|
1436
|
+
/** Delete a milestone */
|
|
1437
|
+
export const issueDeleteMilestone = /*@__PURE__*/ API.make(() => ({
|
|
1438
|
+
input: IssueDeleteMilestoneRequest,
|
|
1439
|
+
output: IssueDeleteMilestoneResponse,
|
|
1440
|
+
errors: [NotFound],
|
|
1441
|
+
protocol: ForgejoProtocol,
|
|
1442
|
+
retry: Retry.Retry,
|
|
1443
|
+
}));
|
|
1444
|
+
/** Delete an issue's existing stopwatch. */
|
|
1445
|
+
export const issueDeleteStopWatch = /*@__PURE__*/ API.make(() => ({
|
|
1446
|
+
input: IssueDeleteStopWatchRequest,
|
|
1447
|
+
output: IssueDeleteStopWatchResponse,
|
|
1448
|
+
errors: [Forbidden, NotFound, Conflict],
|
|
1449
|
+
protocol: ForgejoProtocol,
|
|
1450
|
+
retry: Retry.Retry,
|
|
1451
|
+
}));
|
|
1452
|
+
/** Unsubscribe user from issue */
|
|
1453
|
+
export const issueDeleteSubscription = /*@__PURE__*/ API.make(() => ({
|
|
1454
|
+
input: IssueDeleteSubscriptionRequest,
|
|
1455
|
+
output: IssueDeleteSubscriptionResponse,
|
|
1456
|
+
errors: [NotFound],
|
|
1457
|
+
protocol: ForgejoProtocol,
|
|
1458
|
+
retry: Retry.Retry,
|
|
1459
|
+
}));
|
|
1460
|
+
/** Delete specific tracked time */
|
|
1461
|
+
export const issueDeleteTime = /*@__PURE__*/ API.make(() => ({
|
|
1462
|
+
input: IssueDeleteTimeRequest,
|
|
1463
|
+
output: IssueDeleteTimeResponse,
|
|
1464
|
+
errors: [BadRequest, Forbidden, NotFound],
|
|
1465
|
+
protocol: ForgejoProtocol,
|
|
1466
|
+
retry: Retry.Retry,
|
|
1467
|
+
}));
|
|
1468
|
+
/** Edit a comment */
|
|
1469
|
+
export const issueEditComment = /*@__PURE__*/ API.make(() => ({
|
|
1470
|
+
input: IssueEditCommentRequest,
|
|
1471
|
+
output: Comment,
|
|
1472
|
+
errors: [Forbidden, NotFound, Locked],
|
|
1473
|
+
protocol: ForgejoProtocol,
|
|
1474
|
+
retry: Retry.Retry,
|
|
1475
|
+
}));
|
|
1476
|
+
/** Update a label */
|
|
1477
|
+
export const issueEditLabel = /*@__PURE__*/ API.make(() => ({
|
|
1478
|
+
input: IssueEditLabelRequest,
|
|
1479
|
+
output: Label,
|
|
1480
|
+
errors: [NotFound, UnprocessableEntity],
|
|
1481
|
+
protocol: ForgejoProtocol,
|
|
1482
|
+
retry: Retry.Retry,
|
|
1483
|
+
}));
|
|
1484
|
+
/** Update a milestone */
|
|
1485
|
+
export const issueEditMilestone = /*@__PURE__*/ API.make(() => ({
|
|
1486
|
+
input: IssueEditMilestoneRequest,
|
|
1487
|
+
output: Milestone,
|
|
1488
|
+
errors: [NotFound],
|
|
1489
|
+
protocol: ForgejoProtocol,
|
|
1490
|
+
retry: Retry.Retry,
|
|
1491
|
+
}));
|
|
1492
|
+
/** Get a comment */
|
|
1493
|
+
export const issueGetComment = /*@__PURE__*/ API.make(() => ({
|
|
1494
|
+
input: IssueGetCommentRequest,
|
|
1495
|
+
output: Comment,
|
|
1496
|
+
errors: [Forbidden, NotFound],
|
|
1497
|
+
protocol: ForgejoProtocol,
|
|
1498
|
+
retry: Retry.Retry,
|
|
1499
|
+
}));
|
|
1500
|
+
/** Get a list of reactions from a comment of an issue */
|
|
1501
|
+
export const issueGetCommentReactions = /*@__PURE__*/ API.make(() => ({
|
|
1502
|
+
input: IssueGetCommentReactionsRequest,
|
|
1503
|
+
output: IssueGetCommentReactionsResponse,
|
|
1504
|
+
errors: [Forbidden, NotFound],
|
|
1505
|
+
protocol: ForgejoProtocol,
|
|
1506
|
+
retry: Retry.Retry,
|
|
1507
|
+
}));
|
|
1508
|
+
/** List all comments on an issue */
|
|
1509
|
+
export const issueGetComments = /*@__PURE__*/ API.make(() => ({
|
|
1510
|
+
input: IssueGetCommentsRequest,
|
|
1511
|
+
output: IssueGetCommentsResponse,
|
|
1512
|
+
errors: [NotFound, UnprocessableEntity],
|
|
1513
|
+
protocol: ForgejoProtocol,
|
|
1514
|
+
retry: Retry.Retry,
|
|
1515
|
+
}));
|
|
1516
|
+
/** List all comments and events on an issue */
|
|
1517
|
+
export const issueGetCommentsAndTimeline = /*@__PURE__*/ API.make(() => ({
|
|
1518
|
+
input: IssueGetCommentsAndTimelineRequest,
|
|
1519
|
+
output: IssueGetCommentsAndTimelineResponse,
|
|
1520
|
+
errors: [NotFound, UnprocessableEntity],
|
|
1521
|
+
protocol: ForgejoProtocol,
|
|
1522
|
+
retry: Retry.Retry,
|
|
1523
|
+
}));
|
|
1524
|
+
/** Get a single label */
|
|
1525
|
+
export const issueGetLabel = /*@__PURE__*/ API.make(() => ({
|
|
1526
|
+
input: IssueGetLabelRequest,
|
|
1527
|
+
output: Label,
|
|
1528
|
+
errors: [NotFound],
|
|
1529
|
+
protocol: ForgejoProtocol,
|
|
1530
|
+
retry: Retry.Retry,
|
|
1531
|
+
}));
|
|
1532
|
+
/** Get an issue's labels */
|
|
1533
|
+
export const issueGetLabels = /*@__PURE__*/ API.make(() => ({
|
|
1534
|
+
input: IssueGetLabelsRequest,
|
|
1535
|
+
output: IssueGetLabelsResponse,
|
|
1536
|
+
errors: [NotFound],
|
|
1537
|
+
protocol: ForgejoProtocol,
|
|
1538
|
+
retry: Retry.Retry,
|
|
1539
|
+
}));
|
|
1540
|
+
/** Get a milestone */
|
|
1541
|
+
export const issueGetMilestone = /*@__PURE__*/ API.make(() => ({
|
|
1542
|
+
input: IssueGetMilestoneRequest,
|
|
1543
|
+
output: Milestone,
|
|
1544
|
+
errors: [NotFound],
|
|
1545
|
+
protocol: ForgejoProtocol,
|
|
1546
|
+
retry: Retry.Retry,
|
|
1547
|
+
}));
|
|
1548
|
+
/** Get all of a repository's opened milestones */
|
|
1549
|
+
export const issueGetMilestonesList = /*@__PURE__*/ API.make(() => ({
|
|
1550
|
+
input: IssueGetMilestonesListRequest,
|
|
1551
|
+
output: IssueGetMilestonesListResponse,
|
|
1552
|
+
errors: [NotFound],
|
|
1553
|
+
protocol: ForgejoProtocol,
|
|
1554
|
+
retry: Retry.Retry,
|
|
1555
|
+
}));
|
|
1556
|
+
/** List all comments in a repository */
|
|
1557
|
+
export const issueGetRepoComments = /*@__PURE__*/ API.make(() => ({
|
|
1558
|
+
input: IssueGetRepoCommentsRequest,
|
|
1559
|
+
output: IssueGetRepoCommentsResponse,
|
|
1560
|
+
errors: [NotFound, UnprocessableEntity],
|
|
1561
|
+
protocol: ForgejoProtocol,
|
|
1562
|
+
retry: Retry.Retry,
|
|
1563
|
+
}));
|
|
1564
|
+
/** List issues that are blocked by this issue */
|
|
1565
|
+
export const issueListBlocks = /*@__PURE__*/ API.make(() => ({
|
|
1566
|
+
input: IssueListBlocksRequest,
|
|
1567
|
+
output: IssueListBlocksResponse,
|
|
1568
|
+
errors: [NotFound],
|
|
1569
|
+
protocol: ForgejoProtocol,
|
|
1570
|
+
retry: Retry.Retry,
|
|
1571
|
+
}));
|
|
1572
|
+
/** Get all of a repository's labels */
|
|
1573
|
+
export const issueListLabels = /*@__PURE__*/ API.make(() => ({
|
|
1574
|
+
input: IssueListLabelsRequest,
|
|
1575
|
+
output: IssueListLabelsResponse,
|
|
1576
|
+
errors: [Forbidden, NotFound],
|
|
1577
|
+
protocol: ForgejoProtocol,
|
|
1578
|
+
retry: Retry.Retry,
|
|
1579
|
+
}));
|
|
1580
|
+
/** Add a reaction to a comment of an issue */
|
|
1581
|
+
export const issuePostCommentReaction = /*@__PURE__*/ API.make(() => ({
|
|
1582
|
+
input: IssuePostCommentReactionRequest,
|
|
1583
|
+
output: Reaction,
|
|
1584
|
+
errors: [Forbidden, NotFound],
|
|
1585
|
+
protocol: ForgejoProtocol,
|
|
1586
|
+
retry: Retry.Retry,
|
|
1587
|
+
}));
|
|
1588
|
+
/** Remove a label from an issue */
|
|
1589
|
+
export const issueRemoveLabel = /*@__PURE__*/ API.make(() => ({
|
|
1590
|
+
input: IssueRemoveLabelRequest,
|
|
1591
|
+
output: IssueRemoveLabelResponse,
|
|
1592
|
+
errors: [Forbidden, NotFound, UnprocessableEntity],
|
|
1593
|
+
protocol: ForgejoProtocol,
|
|
1594
|
+
retry: Retry.Retry,
|
|
1595
|
+
}));
|
|
1596
|
+
/** Replace an issue's labels */
|
|
1597
|
+
export const issueReplaceLabels = /*@__PURE__*/ API.make(() => ({
|
|
1598
|
+
input: IssueReplaceLabelsRequest,
|
|
1599
|
+
output: IssueReplaceLabelsResponse,
|
|
1600
|
+
errors: [Forbidden, NotFound],
|
|
1601
|
+
protocol: ForgejoProtocol,
|
|
1602
|
+
retry: Retry.Retry,
|
|
1603
|
+
}));
|
|
1604
|
+
/** Reset a tracked time of an issue */
|
|
1605
|
+
export const issueResetTime = /*@__PURE__*/ API.make(() => ({
|
|
1606
|
+
input: IssueResetTimeRequest,
|
|
1607
|
+
output: IssueResetTimeResponse,
|
|
1608
|
+
errors: [BadRequest, Forbidden, NotFound],
|
|
1609
|
+
protocol: ForgejoProtocol,
|
|
1610
|
+
retry: Retry.Retry,
|
|
1611
|
+
}));
|
|
1612
|
+
/** Start stopwatch on an issue. */
|
|
1613
|
+
export const issueStartStopWatch = /*@__PURE__*/ API.make(() => ({
|
|
1614
|
+
input: IssueStartStopWatchRequest,
|
|
1615
|
+
output: IssueStartStopWatchResponse,
|
|
1616
|
+
errors: [Forbidden, NotFound, Conflict],
|
|
1617
|
+
protocol: ForgejoProtocol,
|
|
1618
|
+
retry: Retry.Retry,
|
|
1619
|
+
}));
|
|
1620
|
+
/** Stop an issue's existing stopwatch. */
|
|
1621
|
+
export const issueStopStopWatch = /*@__PURE__*/ API.make(() => ({
|
|
1622
|
+
input: IssueStopStopWatchRequest,
|
|
1623
|
+
output: IssueStopStopWatchResponse,
|
|
1624
|
+
errors: [Forbidden, NotFound, Conflict],
|
|
1625
|
+
protocol: ForgejoProtocol,
|
|
1626
|
+
retry: Retry.Retry,
|
|
1627
|
+
}));
|
|
1628
|
+
/** Get users who subscribed on an issue. */
|
|
1629
|
+
export const issueSubscriptions = /*@__PURE__*/ API.make(() => ({
|
|
1630
|
+
input: IssueSubscriptionsRequest,
|
|
1631
|
+
output: IssueSubscriptionsResponse,
|
|
1632
|
+
errors: [NotFound],
|
|
1633
|
+
protocol: ForgejoProtocol,
|
|
1634
|
+
retry: Retry.Retry,
|
|
1635
|
+
}));
|
|
1636
|
+
/** List an issue's tracked times */
|
|
1637
|
+
export const issueTrackedTimes = /*@__PURE__*/ API.make(() => ({
|
|
1638
|
+
input: IssueTrackedTimesRequest,
|
|
1639
|
+
output: IssueTrackedTimesResponse,
|
|
1640
|
+
errors: [Forbidden, NotFound, UnprocessableEntity],
|
|
1641
|
+
protocol: ForgejoProtocol,
|
|
1642
|
+
retry: Retry.Retry,
|
|
1643
|
+
}));
|
|
1644
|
+
/** List issue's attachments */
|
|
1645
|
+
export const listIssueAttachments = /*@__PURE__*/ API.make(() => ({
|
|
1646
|
+
input: ListIssueAttachmentsRequest,
|
|
1647
|
+
output: ListIssueAttachmentsResponse,
|
|
1648
|
+
errors: [NotFound],
|
|
1649
|
+
protocol: ForgejoProtocol,
|
|
1650
|
+
retry: Retry.Retry,
|
|
1651
|
+
}));
|
|
1652
|
+
/** List comment's attachments */
|
|
1653
|
+
export const listIssueCommentAttachments = /*@__PURE__*/ API.make(() => ({
|
|
1654
|
+
input: ListIssueCommentAttachmentsRequest,
|
|
1655
|
+
output: ListIssueCommentAttachmentsResponse,
|
|
1656
|
+
errors: [NotFound],
|
|
1657
|
+
protocol: ForgejoProtocol,
|
|
1658
|
+
retry: Retry.Retry,
|
|
1659
|
+
}));
|
|
1660
|
+
/** List an issue's dependencies, i.e all issues that block this issue. */
|
|
1661
|
+
export const listIssueDependencies = /*@__PURE__*/ API.make(() => ({
|
|
1662
|
+
input: ListIssueDependenciesRequest,
|
|
1663
|
+
output: ListIssueDependenciesResponse,
|
|
1664
|
+
errors: [NotFound],
|
|
1665
|
+
protocol: ForgejoProtocol,
|
|
1666
|
+
retry: Retry.Retry,
|
|
1667
|
+
}));
|
|
1668
|
+
/** List a repository's issues */
|
|
1669
|
+
export const listIssues = /*@__PURE__*/ API.make(() => ({
|
|
1670
|
+
input: ListIssuesRequest,
|
|
1671
|
+
output: ListIssuesResponse,
|
|
1672
|
+
errors: [NotFound, UnprocessableEntity],
|
|
1673
|
+
protocol: ForgejoProtocol,
|
|
1674
|
+
retry: Retry.Retry,
|
|
1675
|
+
}));
|
|
1676
|
+
/** Moves the Pin to the given Position */
|
|
1677
|
+
export const moveIssuePin = /*@__PURE__*/ API.make(() => ({
|
|
1678
|
+
input: MoveIssuePinRequest,
|
|
1679
|
+
output: MoveIssuePinResponse,
|
|
1680
|
+
errors: [Forbidden, NotFound],
|
|
1681
|
+
protocol: ForgejoProtocol,
|
|
1682
|
+
retry: Retry.Retry,
|
|
1683
|
+
}));
|
|
1684
|
+
/** Pin an Issue */
|
|
1685
|
+
export const pinIssue = /*@__PURE__*/ API.make(() => ({
|
|
1686
|
+
input: PinIssueRequest,
|
|
1687
|
+
output: PinIssueResponse,
|
|
1688
|
+
errors: [Forbidden, NotFound],
|
|
1689
|
+
protocol: ForgejoProtocol,
|
|
1690
|
+
retry: Retry.Retry,
|
|
1691
|
+
}));
|
|
1692
|
+
/** Add a reaction to an issue */
|
|
1693
|
+
export const postIssueReaction = /*@__PURE__*/ API.make(() => ({
|
|
1694
|
+
input: PostIssueReactionRequest,
|
|
1695
|
+
output: Reaction,
|
|
1696
|
+
errors: [Forbidden, NotFound],
|
|
1697
|
+
protocol: ForgejoProtocol,
|
|
1698
|
+
retry: Retry.Retry,
|
|
1699
|
+
}));
|
|
1700
|
+
/** Unblock the issue given in the body by the issue in path */
|
|
1701
|
+
export const removeIssueBlocking = /*@__PURE__*/ API.make(() => ({
|
|
1702
|
+
input: RemoveIssueBlockingRequest,
|
|
1703
|
+
output: Issue,
|
|
1704
|
+
errors: [NotFound],
|
|
1705
|
+
protocol: ForgejoProtocol,
|
|
1706
|
+
retry: Retry.Retry,
|
|
1707
|
+
}));
|
|
1708
|
+
/** Remove an issue dependency */
|
|
1709
|
+
export const removeIssueDependencies = /*@__PURE__*/ API.make(() => ({
|
|
1710
|
+
input: RemoveIssueDependenciesRequest,
|
|
1711
|
+
output: Issue,
|
|
1712
|
+
errors: [NotFound, Locked],
|
|
1713
|
+
protocol: ForgejoProtocol,
|
|
1714
|
+
retry: Retry.Retry,
|
|
1715
|
+
}));
|
|
1716
|
+
/** Search for issues across the repositories that the user has access to */
|
|
1717
|
+
export const searchIssues = /*@__PURE__*/ API.make(() => ({
|
|
1718
|
+
input: SearchIssuesRequest,
|
|
1719
|
+
output: SearchIssuesResponse,
|
|
1720
|
+
errors: [BadRequest, UnprocessableEntity],
|
|
1721
|
+
protocol: ForgejoProtocol,
|
|
1722
|
+
retry: Retry.Retry,
|
|
1723
|
+
}));
|
|
1724
|
+
/** Unpin an Issue */
|
|
1725
|
+
export const unpinIssue = /*@__PURE__*/ API.make(() => ({
|
|
1726
|
+
input: UnpinIssueRequest,
|
|
1727
|
+
output: UnpinIssueResponse,
|
|
1728
|
+
errors: [Forbidden, NotFound],
|
|
1729
|
+
protocol: ForgejoProtocol,
|
|
1730
|
+
retry: Retry.Retry,
|
|
1731
|
+
}));
|
|
1732
|
+
//# sourceMappingURL=issue.js.map
|