@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,4669 @@
|
|
|
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 Redacted from "effect/Redacted";
|
|
4
|
+
import * as API from "@distilled.cloud/core/api";
|
|
5
|
+
import * as C from "@distilled.cloud/core/category";
|
|
6
|
+
import * as T from "../traits.ts";
|
|
7
|
+
import {
|
|
8
|
+
ForgejoProtocol,
|
|
9
|
+
type ForgejoOpError,
|
|
10
|
+
type ForgejoOpContext,
|
|
11
|
+
} from "../protocol.ts";
|
|
12
|
+
import * as Retry from "../retry.ts";
|
|
13
|
+
|
|
14
|
+
export type { ForgejoOpError, ForgejoOpContext };
|
|
15
|
+
|
|
16
|
+
export class BadRequest
|
|
17
|
+
extends /*@__PURE__*/ T.applyErrorMatchers(
|
|
18
|
+
/*@__PURE__*/ S.TaggedError<BadRequest>()("BadRequest", {
|
|
19
|
+
code: S.Number,
|
|
20
|
+
message: S.String,
|
|
21
|
+
}).pipe(C.withBadRequestError),
|
|
22
|
+
[{ status: 400 }],
|
|
23
|
+
) {}
|
|
24
|
+
|
|
25
|
+
export class Forbidden
|
|
26
|
+
extends /*@__PURE__*/ T.applyErrorMatchers(
|
|
27
|
+
/*@__PURE__*/ S.TaggedError<Forbidden>()("Forbidden", {
|
|
28
|
+
code: S.Number,
|
|
29
|
+
message: S.String,
|
|
30
|
+
}).pipe(C.withAuthError),
|
|
31
|
+
[{ status: 403 }],
|
|
32
|
+
) {}
|
|
33
|
+
|
|
34
|
+
export class NotFound
|
|
35
|
+
extends /*@__PURE__*/ T.applyErrorMatchers(
|
|
36
|
+
/*@__PURE__*/ S.TaggedError<NotFound>()("NotFound", {
|
|
37
|
+
code: S.Number,
|
|
38
|
+
message: S.String,
|
|
39
|
+
}).pipe(C.withBadRequestError),
|
|
40
|
+
[{ status: 404 }],
|
|
41
|
+
) {}
|
|
42
|
+
|
|
43
|
+
export class UnprocessableEntity
|
|
44
|
+
extends /*@__PURE__*/ T.applyErrorMatchers(
|
|
45
|
+
/*@__PURE__*/ S.TaggedError<UnprocessableEntity>()("UnprocessableEntity", {
|
|
46
|
+
code: S.Number,
|
|
47
|
+
message: S.String,
|
|
48
|
+
}).pipe(C.withBadRequestError),
|
|
49
|
+
[{ status: 422 }],
|
|
50
|
+
) {}
|
|
51
|
+
|
|
52
|
+
export interface CreateUserVariableRequest {
|
|
53
|
+
/** name of the variable */
|
|
54
|
+
variablename: string;
|
|
55
|
+
/** Value of the variable to create. Special characters will be retained. Line endings will be normalized to LF to match the behaviour of browsers. Encode the data with Base64 if line endings should be retained. */
|
|
56
|
+
value: string;
|
|
57
|
+
}
|
|
58
|
+
export const CreateUserVariableRequest = /*@__PURE__*/ S.suspend(() =>
|
|
59
|
+
S.Struct({
|
|
60
|
+
variablename: S.String.pipe(T.Label()),
|
|
61
|
+
value: S.String,
|
|
62
|
+
}).pipe(
|
|
63
|
+
T.Http({
|
|
64
|
+
method: "POST",
|
|
65
|
+
uri: "/user/actions/variables/{variablename}",
|
|
66
|
+
code: 200,
|
|
67
|
+
}),
|
|
68
|
+
),
|
|
69
|
+
).annotate({
|
|
70
|
+
identifier: "CreateUserVariableRequest",
|
|
71
|
+
}) as any as S.Schema<CreateUserVariableRequest>;
|
|
72
|
+
|
|
73
|
+
export interface CreateUserVariableResponse {}
|
|
74
|
+
export const CreateUserVariableResponse = /*@__PURE__*/ S.suspend(() =>
|
|
75
|
+
S.Struct({}),
|
|
76
|
+
).annotate({
|
|
77
|
+
identifier: "CreateUserVariableResponse",
|
|
78
|
+
}) as any as S.Schema<CreateUserVariableResponse>;
|
|
79
|
+
|
|
80
|
+
export interface DeleteUserRunnerRequest {
|
|
81
|
+
/** ID of the runner */
|
|
82
|
+
runner_id: string;
|
|
83
|
+
}
|
|
84
|
+
export const DeleteUserRunnerRequest = /*@__PURE__*/ S.suspend(() =>
|
|
85
|
+
S.Struct({
|
|
86
|
+
runner_id: S.String.pipe(T.Label()),
|
|
87
|
+
}).pipe(
|
|
88
|
+
T.Http({
|
|
89
|
+
method: "DELETE",
|
|
90
|
+
uri: "/user/actions/runners/{runner_id}",
|
|
91
|
+
code: 200,
|
|
92
|
+
}),
|
|
93
|
+
),
|
|
94
|
+
).annotate({
|
|
95
|
+
identifier: "DeleteUserRunnerRequest",
|
|
96
|
+
}) as any as S.Schema<DeleteUserRunnerRequest>;
|
|
97
|
+
|
|
98
|
+
export interface DeleteUserRunnerResponse {}
|
|
99
|
+
export const DeleteUserRunnerResponse = /*@__PURE__*/ S.suspend(() =>
|
|
100
|
+
S.Struct({}),
|
|
101
|
+
).annotate({
|
|
102
|
+
identifier: "DeleteUserRunnerResponse",
|
|
103
|
+
}) as any as S.Schema<DeleteUserRunnerResponse>;
|
|
104
|
+
|
|
105
|
+
export interface DeleteUserSecretRequest {
|
|
106
|
+
/** name of the secret */
|
|
107
|
+
secretname: string;
|
|
108
|
+
}
|
|
109
|
+
export const DeleteUserSecretRequest = /*@__PURE__*/ S.suspend(() =>
|
|
110
|
+
S.Struct({
|
|
111
|
+
secretname: S.String.pipe(T.Label()),
|
|
112
|
+
}).pipe(
|
|
113
|
+
T.Http({
|
|
114
|
+
method: "DELETE",
|
|
115
|
+
uri: "/user/actions/secrets/{secretname}",
|
|
116
|
+
code: 200,
|
|
117
|
+
}),
|
|
118
|
+
),
|
|
119
|
+
).annotate({
|
|
120
|
+
identifier: "DeleteUserSecretRequest",
|
|
121
|
+
}) as any as S.Schema<DeleteUserSecretRequest>;
|
|
122
|
+
|
|
123
|
+
export interface DeleteUserSecretResponse {}
|
|
124
|
+
export const DeleteUserSecretResponse = /*@__PURE__*/ S.suspend(() =>
|
|
125
|
+
S.Struct({}),
|
|
126
|
+
).annotate({
|
|
127
|
+
identifier: "DeleteUserSecretResponse",
|
|
128
|
+
}) as any as S.Schema<DeleteUserSecretResponse>;
|
|
129
|
+
|
|
130
|
+
export interface DeleteUserVariableRequest {
|
|
131
|
+
/** name of the variable */
|
|
132
|
+
variablename: string;
|
|
133
|
+
}
|
|
134
|
+
export const DeleteUserVariableRequest = /*@__PURE__*/ S.suspend(() =>
|
|
135
|
+
S.Struct({
|
|
136
|
+
variablename: S.String.pipe(T.Label()),
|
|
137
|
+
}).pipe(
|
|
138
|
+
T.Http({
|
|
139
|
+
method: "DELETE",
|
|
140
|
+
uri: "/user/actions/variables/{variablename}",
|
|
141
|
+
code: 200,
|
|
142
|
+
}),
|
|
143
|
+
),
|
|
144
|
+
).annotate({
|
|
145
|
+
identifier: "DeleteUserVariableRequest",
|
|
146
|
+
}) as any as S.Schema<DeleteUserVariableRequest>;
|
|
147
|
+
|
|
148
|
+
export interface DeleteUserVariableResponse {}
|
|
149
|
+
export const DeleteUserVariableResponse = /*@__PURE__*/ S.suspend(() =>
|
|
150
|
+
S.Struct({}),
|
|
151
|
+
).annotate({
|
|
152
|
+
identifier: "DeleteUserVariableResponse",
|
|
153
|
+
}) as any as S.Schema<DeleteUserVariableResponse>;
|
|
154
|
+
|
|
155
|
+
export interface FollowUserCurrentActivityPubRequest {
|
|
156
|
+
target?: string;
|
|
157
|
+
}
|
|
158
|
+
export const FollowUserCurrentActivityPubRequest = /*@__PURE__*/ S.suspend(() =>
|
|
159
|
+
S.Struct({
|
|
160
|
+
target: S.optional(S.String),
|
|
161
|
+
}).pipe(
|
|
162
|
+
T.Http({ method: "POST", uri: "/user/activitypub/follow", code: 200 }),
|
|
163
|
+
),
|
|
164
|
+
).annotate({
|
|
165
|
+
identifier: "FollowUserCurrentActivityPubRequest",
|
|
166
|
+
}) as any as S.Schema<FollowUserCurrentActivityPubRequest>;
|
|
167
|
+
|
|
168
|
+
export interface FollowUserCurrentActivityPubResponse {}
|
|
169
|
+
export const FollowUserCurrentActivityPubResponse = /*@__PURE__*/ S.suspend(
|
|
170
|
+
() => S.Struct({}),
|
|
171
|
+
).annotate({
|
|
172
|
+
identifier: "FollowUserCurrentActivityPubResponse",
|
|
173
|
+
}) as any as S.Schema<FollowUserCurrentActivityPubResponse>;
|
|
174
|
+
|
|
175
|
+
export interface GetUserRequest {
|
|
176
|
+
/** username of user to get */
|
|
177
|
+
username: string;
|
|
178
|
+
}
|
|
179
|
+
export const GetUserRequest = /*@__PURE__*/ S.suspend(() =>
|
|
180
|
+
S.Struct({
|
|
181
|
+
username: S.String.pipe(T.Label()),
|
|
182
|
+
}).pipe(T.Http({ method: "GET", uri: "/users/{username}", code: 200 })),
|
|
183
|
+
).annotate({ identifier: "GetUserRequest" }) as any as S.Schema<GetUserRequest>;
|
|
184
|
+
|
|
185
|
+
/** User represents a user */
|
|
186
|
+
export interface User {
|
|
187
|
+
/** Is user active */
|
|
188
|
+
active?: boolean;
|
|
189
|
+
/** URL to the user's avatar */
|
|
190
|
+
avatar_url?: string;
|
|
191
|
+
created?: string;
|
|
192
|
+
/** the user's description */
|
|
193
|
+
description?: string;
|
|
194
|
+
email?: string;
|
|
195
|
+
/** user counts */
|
|
196
|
+
followers_count?: number;
|
|
197
|
+
following_count?: number;
|
|
198
|
+
/** the user's full name */
|
|
199
|
+
full_name?: string;
|
|
200
|
+
/** URL to the user's profile page */
|
|
201
|
+
html_url?: string;
|
|
202
|
+
/** the user's id */
|
|
203
|
+
id: number;
|
|
204
|
+
/** Is the user an administrator */
|
|
205
|
+
is_admin?: boolean;
|
|
206
|
+
/** User locale */
|
|
207
|
+
language?: string;
|
|
208
|
+
last_login?: string;
|
|
209
|
+
/** the user's location */
|
|
210
|
+
location?: string;
|
|
211
|
+
/** the user's username */
|
|
212
|
+
login: string;
|
|
213
|
+
/** the user's authentication sign-in name. */
|
|
214
|
+
login_name?: string;
|
|
215
|
+
/** Is user login prohibited */
|
|
216
|
+
prohibit_login?: boolean;
|
|
217
|
+
/** the user's pronouns */
|
|
218
|
+
pronouns?: string;
|
|
219
|
+
/** Is user restricted */
|
|
220
|
+
restricted?: boolean;
|
|
221
|
+
/** The ID of the user's Authentication Source */
|
|
222
|
+
source_id?: number;
|
|
223
|
+
starred_repos_count?: number;
|
|
224
|
+
/** User visibility level option: public, limited, private */
|
|
225
|
+
visibility?: string;
|
|
226
|
+
/** the user's website */
|
|
227
|
+
website?: string;
|
|
228
|
+
}
|
|
229
|
+
export const User = /*@__PURE__*/ S.suspend(() =>
|
|
230
|
+
S.Struct({
|
|
231
|
+
active: S.optional(S.Boolean),
|
|
232
|
+
avatar_url: S.optional(S.String),
|
|
233
|
+
created: S.optional(S.String),
|
|
234
|
+
description: S.optional(S.String),
|
|
235
|
+
email: S.optional(S.String),
|
|
236
|
+
followers_count: S.optional(S.Number),
|
|
237
|
+
following_count: S.optional(S.Number),
|
|
238
|
+
full_name: S.optional(S.String),
|
|
239
|
+
html_url: S.optional(S.String),
|
|
240
|
+
id: S.Number,
|
|
241
|
+
is_admin: S.optional(S.Boolean),
|
|
242
|
+
language: S.optional(S.String),
|
|
243
|
+
last_login: S.optional(S.String),
|
|
244
|
+
location: S.optional(S.String),
|
|
245
|
+
login: S.String,
|
|
246
|
+
login_name: S.optional(S.String),
|
|
247
|
+
prohibit_login: S.optional(S.Boolean),
|
|
248
|
+
pronouns: S.optional(S.String),
|
|
249
|
+
restricted: S.optional(S.Boolean),
|
|
250
|
+
source_id: S.optional(S.Number),
|
|
251
|
+
starred_repos_count: S.optional(S.Number),
|
|
252
|
+
visibility: S.optional(S.String),
|
|
253
|
+
website: S.optional(S.String),
|
|
254
|
+
}),
|
|
255
|
+
).annotate({ identifier: "User" }) as any as S.Schema<User>;
|
|
256
|
+
|
|
257
|
+
export interface GetUserRunnerRequest {
|
|
258
|
+
/** ID of the runner */
|
|
259
|
+
runner_id: string;
|
|
260
|
+
}
|
|
261
|
+
export const GetUserRunnerRequest = /*@__PURE__*/ S.suspend(() =>
|
|
262
|
+
S.Struct({
|
|
263
|
+
runner_id: S.String.pipe(T.Label()),
|
|
264
|
+
}).pipe(
|
|
265
|
+
T.Http({
|
|
266
|
+
method: "GET",
|
|
267
|
+
uri: "/user/actions/runners/{runner_id}",
|
|
268
|
+
code: 200,
|
|
269
|
+
}),
|
|
270
|
+
),
|
|
271
|
+
).annotate({
|
|
272
|
+
identifier: "GetUserRunnerRequest",
|
|
273
|
+
}) as any as S.Schema<GetUserRunnerRequest>;
|
|
274
|
+
|
|
275
|
+
/** Labels is a list of labels attached to this runner. */
|
|
276
|
+
export type ActionRunnerLabelsList = Array<string>;
|
|
277
|
+
export const ActionRunnerLabelsList = /*@__PURE__*/ S.Array(
|
|
278
|
+
S.String,
|
|
279
|
+
) as any as S.Schema<ActionRunnerLabelsList>;
|
|
280
|
+
|
|
281
|
+
/** Status indicates whether this runner is offline, or active, for example. */
|
|
282
|
+
export type ActionRunnerStatus = "offline" | "idle" | "active";
|
|
283
|
+
export const ActionRunnerStatus = /*@__PURE__*/ S.String;
|
|
284
|
+
|
|
285
|
+
/** ActionRunner represents a runner */
|
|
286
|
+
export interface ActionRunner {
|
|
287
|
+
/** Description provides optional details about this runner. */
|
|
288
|
+
description?: string;
|
|
289
|
+
/** Indicates if runner is ephemeral runner */
|
|
290
|
+
ephemeral?: boolean;
|
|
291
|
+
/** ID uniquely identifies this runner. */
|
|
292
|
+
id?: number;
|
|
293
|
+
/** Labels is a list of labels attached to this runner. */
|
|
294
|
+
labels?: ActionRunnerLabelsList;
|
|
295
|
+
/** Name of the runner; not unique. */
|
|
296
|
+
name?: string;
|
|
297
|
+
/** OwnerID is the identifier of the user or organization this runner belongs to. O if the runner is owned by a repository. */
|
|
298
|
+
owner_id?: number;
|
|
299
|
+
/** RepoID is the identifier of the repository this runner belongs to. 0 if the runner belongs to a user or organization. */
|
|
300
|
+
repo_id?: number;
|
|
301
|
+
/** Status indicates whether this runner is offline, or active, for example. */
|
|
302
|
+
status?: ActionRunnerStatus;
|
|
303
|
+
/** UUID uniquely identifies this runner. */
|
|
304
|
+
uuid?: string;
|
|
305
|
+
/** Version is the self-reported version string of Forgejo Runner. */
|
|
306
|
+
version?: string;
|
|
307
|
+
}
|
|
308
|
+
export const ActionRunner = /*@__PURE__*/ S.suspend(() =>
|
|
309
|
+
S.Struct({
|
|
310
|
+
description: S.optional(S.String),
|
|
311
|
+
ephemeral: S.optional(S.Boolean),
|
|
312
|
+
id: S.optional(S.Number),
|
|
313
|
+
labels: S.optional(ActionRunnerLabelsList),
|
|
314
|
+
name: S.optional(S.String),
|
|
315
|
+
owner_id: S.optional(S.Number),
|
|
316
|
+
repo_id: S.optional(S.Number),
|
|
317
|
+
status: S.optional(ActionRunnerStatus),
|
|
318
|
+
uuid: S.optional(S.String),
|
|
319
|
+
version: S.optional(S.String),
|
|
320
|
+
}),
|
|
321
|
+
).annotate({ identifier: "ActionRunner" }) as any as S.Schema<ActionRunner>;
|
|
322
|
+
|
|
323
|
+
export interface GetUserRunnersRequest {
|
|
324
|
+
/** whether to include all visible runners (true) or only those that are directly owned by the user (false) */
|
|
325
|
+
visible?: boolean;
|
|
326
|
+
/** page number of results to return (1-based) */
|
|
327
|
+
page?: number;
|
|
328
|
+
/** page size of results */
|
|
329
|
+
limit?: number;
|
|
330
|
+
}
|
|
331
|
+
export const GetUserRunnersRequest = /*@__PURE__*/ S.suspend(() =>
|
|
332
|
+
S.Struct({
|
|
333
|
+
visible: S.optional(S.Boolean.pipe(T.Query())),
|
|
334
|
+
page: S.optional(S.Number.pipe(T.Query())),
|
|
335
|
+
limit: S.optional(S.Number.pipe(T.Query())),
|
|
336
|
+
}).pipe(T.Http({ method: "GET", uri: "/user/actions/runners", code: 200 })),
|
|
337
|
+
).annotate({
|
|
338
|
+
identifier: "GetUserRunnersRequest",
|
|
339
|
+
}) as any as S.Schema<GetUserRunnersRequest>;
|
|
340
|
+
|
|
341
|
+
export type GetUserRunnersResponseBodyList = Array<ActionRunner>;
|
|
342
|
+
export const GetUserRunnersResponseBodyList = /*@__PURE__*/ S.Array(
|
|
343
|
+
ActionRunner,
|
|
344
|
+
) as any as S.Schema<GetUserRunnersResponseBodyList>;
|
|
345
|
+
|
|
346
|
+
export type GetUserRunnersResponse = GetUserRunnersResponseBodyList;
|
|
347
|
+
export const GetUserRunnersResponse = /*@__PURE__*/ S.suspend(() =>
|
|
348
|
+
GetUserRunnersResponseBodyList.pipe(T.RawResponseRoot()),
|
|
349
|
+
).annotate({
|
|
350
|
+
identifier: "GetUserRunnersResponse",
|
|
351
|
+
}) as any as S.Schema<GetUserRunnersResponse>;
|
|
352
|
+
|
|
353
|
+
export interface GetUserSettingsRequest {}
|
|
354
|
+
export const GetUserSettingsRequest = /*@__PURE__*/ S.suspend(() =>
|
|
355
|
+
S.Struct({}).pipe(
|
|
356
|
+
T.Http({ method: "GET", uri: "/user/settings", code: 200 }),
|
|
357
|
+
),
|
|
358
|
+
).annotate({
|
|
359
|
+
identifier: "GetUserSettingsRequest",
|
|
360
|
+
}) as any as S.Schema<GetUserSettingsRequest>;
|
|
361
|
+
|
|
362
|
+
/** UserSettings represents user settings */
|
|
363
|
+
export interface UserSettings {
|
|
364
|
+
description?: string;
|
|
365
|
+
diff_view_style?: string;
|
|
366
|
+
enable_repo_unit_hints?: boolean;
|
|
367
|
+
full_name?: string;
|
|
368
|
+
hide_activity?: boolean;
|
|
369
|
+
/** Privacy */
|
|
370
|
+
hide_email?: boolean;
|
|
371
|
+
hide_pronouns?: boolean;
|
|
372
|
+
language?: string;
|
|
373
|
+
location?: string;
|
|
374
|
+
pronouns?: string;
|
|
375
|
+
theme?: string;
|
|
376
|
+
website?: string;
|
|
377
|
+
}
|
|
378
|
+
export const UserSettings = /*@__PURE__*/ S.suspend(() =>
|
|
379
|
+
S.Struct({
|
|
380
|
+
description: S.optional(S.String),
|
|
381
|
+
diff_view_style: S.optional(S.String),
|
|
382
|
+
enable_repo_unit_hints: S.optional(S.Boolean),
|
|
383
|
+
full_name: S.optional(S.String),
|
|
384
|
+
hide_activity: S.optional(S.Boolean),
|
|
385
|
+
hide_email: S.optional(S.Boolean),
|
|
386
|
+
hide_pronouns: S.optional(S.Boolean),
|
|
387
|
+
language: S.optional(S.String),
|
|
388
|
+
location: S.optional(S.String),
|
|
389
|
+
pronouns: S.optional(S.String),
|
|
390
|
+
theme: S.optional(S.String),
|
|
391
|
+
website: S.optional(S.String),
|
|
392
|
+
}),
|
|
393
|
+
).annotate({ identifier: "UserSettings" }) as any as S.Schema<UserSettings>;
|
|
394
|
+
|
|
395
|
+
export interface GetUserVariableRequest {
|
|
396
|
+
/** name of the variable */
|
|
397
|
+
variablename: string;
|
|
398
|
+
}
|
|
399
|
+
export const GetUserVariableRequest = /*@__PURE__*/ S.suspend(() =>
|
|
400
|
+
S.Struct({
|
|
401
|
+
variablename: S.String.pipe(T.Label()),
|
|
402
|
+
}).pipe(
|
|
403
|
+
T.Http({
|
|
404
|
+
method: "GET",
|
|
405
|
+
uri: "/user/actions/variables/{variablename}",
|
|
406
|
+
code: 200,
|
|
407
|
+
}),
|
|
408
|
+
),
|
|
409
|
+
).annotate({
|
|
410
|
+
identifier: "GetUserVariableRequest",
|
|
411
|
+
}) as any as S.Schema<GetUserVariableRequest>;
|
|
412
|
+
|
|
413
|
+
/** ActionVariable return value of the query API */
|
|
414
|
+
export interface ActionVariable {
|
|
415
|
+
/** the value of the variable */
|
|
416
|
+
data: string;
|
|
417
|
+
/** the name of the variable */
|
|
418
|
+
name: string;
|
|
419
|
+
/** the owner to which the variable belongs */
|
|
420
|
+
owner_id?: number;
|
|
421
|
+
/** the repository to which the variable belongs */
|
|
422
|
+
repo_id?: number;
|
|
423
|
+
}
|
|
424
|
+
export const ActionVariable = /*@__PURE__*/ S.suspend(() =>
|
|
425
|
+
S.Struct({
|
|
426
|
+
data: S.String,
|
|
427
|
+
name: S.String,
|
|
428
|
+
owner_id: S.optional(S.Number),
|
|
429
|
+
repo_id: S.optional(S.Number),
|
|
430
|
+
}),
|
|
431
|
+
).annotate({ identifier: "ActionVariable" }) as any as S.Schema<ActionVariable>;
|
|
432
|
+
|
|
433
|
+
export interface GetUserVariablesListRequest {
|
|
434
|
+
/** page number of results to return (1-based) */
|
|
435
|
+
page?: number;
|
|
436
|
+
/** page size of results */
|
|
437
|
+
limit?: number;
|
|
438
|
+
}
|
|
439
|
+
export const GetUserVariablesListRequest = /*@__PURE__*/ S.suspend(() =>
|
|
440
|
+
S.Struct({
|
|
441
|
+
page: S.optional(S.Number.pipe(T.Query())),
|
|
442
|
+
limit: S.optional(S.Number.pipe(T.Query())),
|
|
443
|
+
}).pipe(T.Http({ method: "GET", uri: "/user/actions/variables", code: 200 })),
|
|
444
|
+
).annotate({
|
|
445
|
+
identifier: "GetUserVariablesListRequest",
|
|
446
|
+
}) as any as S.Schema<GetUserVariablesListRequest>;
|
|
447
|
+
|
|
448
|
+
export type GetUserVariablesListResponseBodyList = Array<ActionVariable>;
|
|
449
|
+
export const GetUserVariablesListResponseBodyList = /*@__PURE__*/ S.Array(
|
|
450
|
+
ActionVariable,
|
|
451
|
+
) as any as S.Schema<GetUserVariablesListResponseBodyList>;
|
|
452
|
+
|
|
453
|
+
export type GetUserVariablesListResponse = GetUserVariablesListResponseBodyList;
|
|
454
|
+
export const GetUserVariablesListResponse = /*@__PURE__*/ S.suspend(() =>
|
|
455
|
+
GetUserVariablesListResponseBodyList.pipe(T.RawResponseRoot()),
|
|
456
|
+
).annotate({
|
|
457
|
+
identifier: "GetUserVariablesListResponse",
|
|
458
|
+
}) as any as S.Schema<GetUserVariablesListResponse>;
|
|
459
|
+
|
|
460
|
+
export interface GetVerificationTokenRequest {}
|
|
461
|
+
export const GetVerificationTokenRequest = /*@__PURE__*/ S.suspend(() =>
|
|
462
|
+
S.Struct({}).pipe(
|
|
463
|
+
T.Http({ method: "GET", uri: "/user/gpg_key_token", code: 200 }),
|
|
464
|
+
),
|
|
465
|
+
).annotate({
|
|
466
|
+
identifier: "GetVerificationTokenRequest",
|
|
467
|
+
}) as any as S.Schema<GetVerificationTokenRequest>;
|
|
468
|
+
|
|
469
|
+
export type GetVerificationTokenResponse = string;
|
|
470
|
+
export const GetVerificationTokenResponse = /*@__PURE__*/ S.suspend(() =>
|
|
471
|
+
S.String.pipe(T.RawResponseRoot()),
|
|
472
|
+
).annotate({
|
|
473
|
+
identifier: "GetVerificationTokenResponse",
|
|
474
|
+
}) as any as S.Schema<GetVerificationTokenResponse>;
|
|
475
|
+
|
|
476
|
+
export interface RegisterUserRunnerRequest {
|
|
477
|
+
/** Description of the runner to register. */
|
|
478
|
+
description?: string;
|
|
479
|
+
/** Register as ephemeral runner https://forgejo.org/docs/latest/admin/actions/security/#ephemeral-runner */
|
|
480
|
+
ephemeral?: boolean;
|
|
481
|
+
/** Name of the runner to register. The name of the runner does not have to be unique. */
|
|
482
|
+
name: string;
|
|
483
|
+
}
|
|
484
|
+
export const RegisterUserRunnerRequest = /*@__PURE__*/ S.suspend(() =>
|
|
485
|
+
S.Struct({
|
|
486
|
+
description: S.optional(S.String),
|
|
487
|
+
ephemeral: S.optional(S.Boolean),
|
|
488
|
+
name: S.String,
|
|
489
|
+
}).pipe(T.Http({ method: "POST", uri: "/user/actions/runners", code: 200 })),
|
|
490
|
+
).annotate({
|
|
491
|
+
identifier: "RegisterUserRunnerRequest",
|
|
492
|
+
}) as any as S.Schema<RegisterUserRunnerRequest>;
|
|
493
|
+
|
|
494
|
+
export interface RegisterRunnerResponse {
|
|
495
|
+
id?: number;
|
|
496
|
+
token?: string;
|
|
497
|
+
uuid?: string;
|
|
498
|
+
}
|
|
499
|
+
export const RegisterRunnerResponse = /*@__PURE__*/ S.suspend(() =>
|
|
500
|
+
S.Struct({
|
|
501
|
+
id: S.optional(S.Number),
|
|
502
|
+
token: S.optional(S.String),
|
|
503
|
+
uuid: S.optional(S.String),
|
|
504
|
+
}),
|
|
505
|
+
).annotate({
|
|
506
|
+
identifier: "RegisterRunnerResponse",
|
|
507
|
+
}) as any as S.Schema<RegisterRunnerResponse>;
|
|
508
|
+
|
|
509
|
+
export type SearchUserRequestSort =
|
|
510
|
+
| "oldest"
|
|
511
|
+
| "newest"
|
|
512
|
+
| "alphabetically"
|
|
513
|
+
| "reversealphabetically"
|
|
514
|
+
| "recentupdate"
|
|
515
|
+
| "leastupdate";
|
|
516
|
+
export const SearchUserRequestSort = /*@__PURE__*/ S.String;
|
|
517
|
+
|
|
518
|
+
export interface SearchUserRequest {
|
|
519
|
+
/** keyword */
|
|
520
|
+
q?: string;
|
|
521
|
+
/** ID of the user to search for */
|
|
522
|
+
uid?: number;
|
|
523
|
+
/** sort order of results */
|
|
524
|
+
sort?: SearchUserRequestSort | (string & {});
|
|
525
|
+
/** page number of results to return (1-based) */
|
|
526
|
+
page?: number;
|
|
527
|
+
/** page size of results */
|
|
528
|
+
limit?: number;
|
|
529
|
+
}
|
|
530
|
+
export const SearchUserRequest = /*@__PURE__*/ S.suspend(() =>
|
|
531
|
+
S.Struct({
|
|
532
|
+
q: S.optional(S.String.pipe(T.Query())),
|
|
533
|
+
uid: S.optional(S.Number.pipe(T.Query())),
|
|
534
|
+
sort: S.optional(SearchUserRequestSort.pipe(T.Query())),
|
|
535
|
+
page: S.optional(S.Number.pipe(T.Query())),
|
|
536
|
+
limit: S.optional(S.Number.pipe(T.Query())),
|
|
537
|
+
}).pipe(T.Http({ method: "GET", uri: "/users/search", code: 200 })),
|
|
538
|
+
).annotate({
|
|
539
|
+
identifier: "SearchUserRequest",
|
|
540
|
+
}) as any as S.Schema<SearchUserRequest>;
|
|
541
|
+
|
|
542
|
+
export type SearchUserResponseDataList = Array<User>;
|
|
543
|
+
export const SearchUserResponseDataList = /*@__PURE__*/ S.Array(
|
|
544
|
+
User,
|
|
545
|
+
) as any as S.Schema<SearchUserResponseDataList>;
|
|
546
|
+
|
|
547
|
+
export interface SearchUserResponse {
|
|
548
|
+
data?: SearchUserResponseDataList;
|
|
549
|
+
ok?: boolean;
|
|
550
|
+
}
|
|
551
|
+
export const SearchUserResponse = /*@__PURE__*/ S.suspend(() =>
|
|
552
|
+
S.Struct({
|
|
553
|
+
data: S.optional(SearchUserResponseDataList),
|
|
554
|
+
ok: S.optional(S.Boolean),
|
|
555
|
+
}),
|
|
556
|
+
).annotate({
|
|
557
|
+
identifier: "SearchUserResponse",
|
|
558
|
+
}) as any as S.Schema<SearchUserResponse>;
|
|
559
|
+
|
|
560
|
+
export interface UnblockUserRequest {
|
|
561
|
+
/** username of the user */
|
|
562
|
+
username: string;
|
|
563
|
+
}
|
|
564
|
+
export const UnblockUserRequest = /*@__PURE__*/ S.suspend(() =>
|
|
565
|
+
S.Struct({
|
|
566
|
+
username: S.String.pipe(T.Label()),
|
|
567
|
+
}).pipe(
|
|
568
|
+
T.Http({ method: "PUT", uri: "/user/unblock/{username}", code: 200 }),
|
|
569
|
+
),
|
|
570
|
+
).annotate({
|
|
571
|
+
identifier: "UnblockUserRequest",
|
|
572
|
+
}) as any as S.Schema<UnblockUserRequest>;
|
|
573
|
+
|
|
574
|
+
export interface UnblockUserResponse {}
|
|
575
|
+
export const UnblockUserResponse = /*@__PURE__*/ S.suspend(() =>
|
|
576
|
+
S.Struct({}),
|
|
577
|
+
).annotate({
|
|
578
|
+
identifier: "UnblockUserResponse",
|
|
579
|
+
}) as any as S.Schema<UnblockUserResponse>;
|
|
580
|
+
|
|
581
|
+
export interface UpdateUserSecretRequest {
|
|
582
|
+
/** name of the secret */
|
|
583
|
+
secretname: string;
|
|
584
|
+
/** Data of the secret. Special characters will be retained. Line endings will be normalized to LF to match the behaviour of browsers. Encode the data with Base64 if line endings should be retained. */
|
|
585
|
+
data: string;
|
|
586
|
+
}
|
|
587
|
+
export const UpdateUserSecretRequest = /*@__PURE__*/ S.suspend(() =>
|
|
588
|
+
S.Struct({
|
|
589
|
+
secretname: S.String.pipe(T.Label()),
|
|
590
|
+
data: S.String,
|
|
591
|
+
}).pipe(
|
|
592
|
+
T.Http({
|
|
593
|
+
method: "PUT",
|
|
594
|
+
uri: "/user/actions/secrets/{secretname}",
|
|
595
|
+
code: 200,
|
|
596
|
+
}),
|
|
597
|
+
),
|
|
598
|
+
).annotate({
|
|
599
|
+
identifier: "UpdateUserSecretRequest",
|
|
600
|
+
}) as any as S.Schema<UpdateUserSecretRequest>;
|
|
601
|
+
|
|
602
|
+
export interface UpdateUserSecretResponse {}
|
|
603
|
+
export const UpdateUserSecretResponse = /*@__PURE__*/ S.suspend(() =>
|
|
604
|
+
S.Struct({}),
|
|
605
|
+
).annotate({
|
|
606
|
+
identifier: "UpdateUserSecretResponse",
|
|
607
|
+
}) as any as S.Schema<UpdateUserSecretResponse>;
|
|
608
|
+
|
|
609
|
+
export interface UpdateUserSettingsRequest {
|
|
610
|
+
description?: string;
|
|
611
|
+
diff_view_style?: string;
|
|
612
|
+
enable_repo_unit_hints?: boolean;
|
|
613
|
+
full_name?: string;
|
|
614
|
+
hide_activity?: boolean;
|
|
615
|
+
/** Privacy */
|
|
616
|
+
hide_email?: boolean;
|
|
617
|
+
hide_pronouns?: boolean;
|
|
618
|
+
language?: string;
|
|
619
|
+
location?: string;
|
|
620
|
+
pronouns?: string;
|
|
621
|
+
theme?: string;
|
|
622
|
+
website?: string;
|
|
623
|
+
}
|
|
624
|
+
export const UpdateUserSettingsRequest = /*@__PURE__*/ S.suspend(() =>
|
|
625
|
+
S.Struct({
|
|
626
|
+
description: S.optional(S.String),
|
|
627
|
+
diff_view_style: S.optional(S.String),
|
|
628
|
+
enable_repo_unit_hints: S.optional(S.Boolean),
|
|
629
|
+
full_name: S.optional(S.String),
|
|
630
|
+
hide_activity: S.optional(S.Boolean),
|
|
631
|
+
hide_email: S.optional(S.Boolean),
|
|
632
|
+
hide_pronouns: S.optional(S.Boolean),
|
|
633
|
+
language: S.optional(S.String),
|
|
634
|
+
location: S.optional(S.String),
|
|
635
|
+
pronouns: S.optional(S.String),
|
|
636
|
+
theme: S.optional(S.String),
|
|
637
|
+
website: S.optional(S.String),
|
|
638
|
+
}).pipe(T.Http({ method: "PATCH", uri: "/user/settings", code: 200 })),
|
|
639
|
+
).annotate({
|
|
640
|
+
identifier: "UpdateUserSettingsRequest",
|
|
641
|
+
}) as any as S.Schema<UpdateUserSettingsRequest>;
|
|
642
|
+
|
|
643
|
+
export interface UpdateUserVariableRequest {
|
|
644
|
+
/** name of the variable */
|
|
645
|
+
variablename: string;
|
|
646
|
+
/** New name for the variable. If the field is empty, the variable name won't be updated. Forgejo will convert it to uppercase. */
|
|
647
|
+
name?: string;
|
|
648
|
+
/** Value of the variable to update. Special characters will be retained. Line endings will be normalized to LF to match the behaviour of browsers. Encode the data with Base64 if line endings should be retained. */
|
|
649
|
+
value: string;
|
|
650
|
+
}
|
|
651
|
+
export const UpdateUserVariableRequest = /*@__PURE__*/ S.suspend(() =>
|
|
652
|
+
S.Struct({
|
|
653
|
+
variablename: S.String.pipe(T.Label()),
|
|
654
|
+
name: S.optional(S.String),
|
|
655
|
+
value: S.String,
|
|
656
|
+
}).pipe(
|
|
657
|
+
T.Http({
|
|
658
|
+
method: "PUT",
|
|
659
|
+
uri: "/user/actions/variables/{variablename}",
|
|
660
|
+
code: 200,
|
|
661
|
+
}),
|
|
662
|
+
),
|
|
663
|
+
).annotate({
|
|
664
|
+
identifier: "UpdateUserVariableRequest",
|
|
665
|
+
}) as any as S.Schema<UpdateUserVariableRequest>;
|
|
666
|
+
|
|
667
|
+
export interface UpdateUserVariableResponse {}
|
|
668
|
+
export const UpdateUserVariableResponse = /*@__PURE__*/ S.suspend(() =>
|
|
669
|
+
S.Struct({}),
|
|
670
|
+
).annotate({
|
|
671
|
+
identifier: "UpdateUserVariableResponse",
|
|
672
|
+
}) as any as S.Schema<UpdateUserVariableResponse>;
|
|
673
|
+
|
|
674
|
+
/** email addresses to add */
|
|
675
|
+
export type UserAddEmailRequestEmailsList = Array<string>;
|
|
676
|
+
export const UserAddEmailRequestEmailsList = /*@__PURE__*/ S.Array(
|
|
677
|
+
S.String,
|
|
678
|
+
) as any as S.Schema<UserAddEmailRequestEmailsList>;
|
|
679
|
+
|
|
680
|
+
export interface UserAddEmailRequest {
|
|
681
|
+
/** email addresses to add */
|
|
682
|
+
emails?: UserAddEmailRequestEmailsList;
|
|
683
|
+
}
|
|
684
|
+
export const UserAddEmailRequest = /*@__PURE__*/ S.suspend(() =>
|
|
685
|
+
S.Struct({
|
|
686
|
+
emails: S.optional(UserAddEmailRequestEmailsList),
|
|
687
|
+
}).pipe(T.Http({ method: "POST", uri: "/user/emails", code: 200 })),
|
|
688
|
+
).annotate({
|
|
689
|
+
identifier: "UserAddEmailRequest",
|
|
690
|
+
}) as any as S.Schema<UserAddEmailRequest>;
|
|
691
|
+
|
|
692
|
+
/** Email an email address belonging to a user */
|
|
693
|
+
export interface Email {
|
|
694
|
+
email?: string;
|
|
695
|
+
primary?: boolean;
|
|
696
|
+
user_id?: number;
|
|
697
|
+
username?: string;
|
|
698
|
+
verified?: boolean;
|
|
699
|
+
}
|
|
700
|
+
export const Email = /*@__PURE__*/ S.suspend(() =>
|
|
701
|
+
S.Struct({
|
|
702
|
+
email: S.optional(S.String),
|
|
703
|
+
primary: S.optional(S.Boolean),
|
|
704
|
+
user_id: S.optional(S.Number),
|
|
705
|
+
username: S.optional(S.String),
|
|
706
|
+
verified: S.optional(S.Boolean),
|
|
707
|
+
}),
|
|
708
|
+
).annotate({ identifier: "Email" }) as any as S.Schema<Email>;
|
|
709
|
+
|
|
710
|
+
export type UserAddEmailResponseBodyList = Array<Email>;
|
|
711
|
+
export const UserAddEmailResponseBodyList = /*@__PURE__*/ S.Array(
|
|
712
|
+
Email,
|
|
713
|
+
) as any as S.Schema<UserAddEmailResponseBodyList>;
|
|
714
|
+
|
|
715
|
+
export type UserAddEmailResponse = UserAddEmailResponseBodyList;
|
|
716
|
+
export const UserAddEmailResponse = /*@__PURE__*/ S.suspend(() =>
|
|
717
|
+
UserAddEmailResponseBodyList.pipe(T.RawResponseRoot()),
|
|
718
|
+
).annotate({
|
|
719
|
+
identifier: "UserAddEmailResponse",
|
|
720
|
+
}) as any as S.Schema<UserAddEmailResponse>;
|
|
721
|
+
|
|
722
|
+
export interface UserBlockUserRequest {
|
|
723
|
+
/** username of the user */
|
|
724
|
+
username: string;
|
|
725
|
+
}
|
|
726
|
+
export const UserBlockUserRequest = /*@__PURE__*/ S.suspend(() =>
|
|
727
|
+
S.Struct({
|
|
728
|
+
username: S.String.pipe(T.Label()),
|
|
729
|
+
}).pipe(T.Http({ method: "PUT", uri: "/user/block/{username}", code: 200 })),
|
|
730
|
+
).annotate({
|
|
731
|
+
identifier: "UserBlockUserRequest",
|
|
732
|
+
}) as any as S.Schema<UserBlockUserRequest>;
|
|
733
|
+
|
|
734
|
+
export interface UserBlockUserResponse {}
|
|
735
|
+
export const UserBlockUserResponse = /*@__PURE__*/ S.suspend(() =>
|
|
736
|
+
S.Struct({}),
|
|
737
|
+
).annotate({
|
|
738
|
+
identifier: "UserBlockUserResponse",
|
|
739
|
+
}) as any as S.Schema<UserBlockUserResponse>;
|
|
740
|
+
|
|
741
|
+
export interface UserCheckFollowingRequest {
|
|
742
|
+
/** username of following user */
|
|
743
|
+
username: string;
|
|
744
|
+
/** username of followed user */
|
|
745
|
+
target: string;
|
|
746
|
+
}
|
|
747
|
+
export const UserCheckFollowingRequest = /*@__PURE__*/ S.suspend(() =>
|
|
748
|
+
S.Struct({
|
|
749
|
+
username: S.String.pipe(T.Label()),
|
|
750
|
+
target: S.String.pipe(T.Label()),
|
|
751
|
+
}).pipe(
|
|
752
|
+
T.Http({
|
|
753
|
+
method: "GET",
|
|
754
|
+
uri: "/users/{username}/following/{target}",
|
|
755
|
+
code: 200,
|
|
756
|
+
}),
|
|
757
|
+
),
|
|
758
|
+
).annotate({
|
|
759
|
+
identifier: "UserCheckFollowingRequest",
|
|
760
|
+
}) as any as S.Schema<UserCheckFollowingRequest>;
|
|
761
|
+
|
|
762
|
+
export interface UserCheckFollowingResponse {}
|
|
763
|
+
export const UserCheckFollowingResponse = /*@__PURE__*/ S.suspend(() =>
|
|
764
|
+
S.Struct({}),
|
|
765
|
+
).annotate({
|
|
766
|
+
identifier: "UserCheckFollowingResponse",
|
|
767
|
+
}) as any as S.Schema<UserCheckFollowingResponse>;
|
|
768
|
+
|
|
769
|
+
export interface UserCheckQuotaRequest {
|
|
770
|
+
/** subject of the quota */
|
|
771
|
+
subject: string;
|
|
772
|
+
}
|
|
773
|
+
export const UserCheckQuotaRequest = /*@__PURE__*/ S.suspend(() =>
|
|
774
|
+
S.Struct({
|
|
775
|
+
subject: S.String.pipe(T.Query()),
|
|
776
|
+
}).pipe(T.Http({ method: "GET", uri: "/user/quota/check", code: 200 })),
|
|
777
|
+
).annotate({
|
|
778
|
+
identifier: "UserCheckQuotaRequest",
|
|
779
|
+
}) as any as S.Schema<UserCheckQuotaRequest>;
|
|
780
|
+
|
|
781
|
+
export type UserCheckQuotaResponse = boolean;
|
|
782
|
+
export const UserCheckQuotaResponse = /*@__PURE__*/ S.suspend(() =>
|
|
783
|
+
S.Boolean.pipe(T.RawResponseRoot()),
|
|
784
|
+
).annotate({
|
|
785
|
+
identifier: "UserCheckQuotaResponse",
|
|
786
|
+
}) as any as S.Schema<UserCheckQuotaResponse>;
|
|
787
|
+
|
|
788
|
+
/** CreateHookOptionConfig has all config options in it required are "content_type" and "url" Required */
|
|
789
|
+
export type CreateHookOptionConfig = { [key: string]: string | undefined };
|
|
790
|
+
export const CreateHookOptionConfig = /*@__PURE__*/ S.Record(
|
|
791
|
+
S.String,
|
|
792
|
+
S.String,
|
|
793
|
+
) as any as S.Schema<CreateHookOptionConfig>;
|
|
794
|
+
|
|
795
|
+
export type UserCreateHookRequestEventsList = Array<string>;
|
|
796
|
+
export const UserCreateHookRequestEventsList = /*@__PURE__*/ S.Array(
|
|
797
|
+
S.String,
|
|
798
|
+
) as any as S.Schema<UserCreateHookRequestEventsList>;
|
|
799
|
+
|
|
800
|
+
export type UserCreateHookRequestType =
|
|
801
|
+
| "forgejo"
|
|
802
|
+
| "dingtalk"
|
|
803
|
+
| "discord"
|
|
804
|
+
| "gitea"
|
|
805
|
+
| "gogs"
|
|
806
|
+
| "msteams"
|
|
807
|
+
| "slack"
|
|
808
|
+
| "telegram"
|
|
809
|
+
| "feishu"
|
|
810
|
+
| "wechatwork"
|
|
811
|
+
| "packagist";
|
|
812
|
+
export const UserCreateHookRequestType = /*@__PURE__*/ S.String;
|
|
813
|
+
|
|
814
|
+
export interface UserCreateHookRequest {
|
|
815
|
+
active?: boolean;
|
|
816
|
+
authorization_header?: string;
|
|
817
|
+
branch_filter?: string;
|
|
818
|
+
config: CreateHookOptionConfig;
|
|
819
|
+
events?: UserCreateHookRequestEventsList;
|
|
820
|
+
type: UserCreateHookRequestType | (string & {});
|
|
821
|
+
}
|
|
822
|
+
export const UserCreateHookRequest = /*@__PURE__*/ S.suspend(() =>
|
|
823
|
+
S.Struct({
|
|
824
|
+
active: S.optional(S.Boolean),
|
|
825
|
+
authorization_header: S.optional(S.String),
|
|
826
|
+
branch_filter: S.optional(S.String),
|
|
827
|
+
config: CreateHookOptionConfig,
|
|
828
|
+
events: S.optional(UserCreateHookRequestEventsList),
|
|
829
|
+
type: UserCreateHookRequestType,
|
|
830
|
+
}).pipe(T.Http({ method: "POST", uri: "/user/hooks", code: 200 })),
|
|
831
|
+
).annotate({
|
|
832
|
+
identifier: "UserCreateHookRequest",
|
|
833
|
+
}) as any as S.Schema<UserCreateHookRequest>;
|
|
834
|
+
|
|
835
|
+
/** Deprecated: use Metadata instead */
|
|
836
|
+
export type HookConfigMap = { [key: string]: string | undefined };
|
|
837
|
+
export const HookConfigMap = /*@__PURE__*/ S.Record(
|
|
838
|
+
S.String,
|
|
839
|
+
S.String,
|
|
840
|
+
) as any as S.Schema<HookConfigMap>;
|
|
841
|
+
|
|
842
|
+
export type HookEventsList = Array<string>;
|
|
843
|
+
export const HookEventsList = /*@__PURE__*/ S.Array(
|
|
844
|
+
S.String,
|
|
845
|
+
) as any as S.Schema<HookEventsList>;
|
|
846
|
+
|
|
847
|
+
/** Hook a hook is a web hook when one repository changed */
|
|
848
|
+
export interface Hook {
|
|
849
|
+
active: boolean;
|
|
850
|
+
authorization_header?: string;
|
|
851
|
+
branch_filter?: string;
|
|
852
|
+
/** Deprecated: use Metadata instead */
|
|
853
|
+
config?: HookConfigMap;
|
|
854
|
+
content_type?: string;
|
|
855
|
+
created_at: string;
|
|
856
|
+
events?: HookEventsList;
|
|
857
|
+
id: number;
|
|
858
|
+
metadata?: unknown;
|
|
859
|
+
type: string;
|
|
860
|
+
updated_at: string;
|
|
861
|
+
url: string;
|
|
862
|
+
}
|
|
863
|
+
export const Hook = /*@__PURE__*/ S.suspend(() =>
|
|
864
|
+
S.Struct({
|
|
865
|
+
active: S.Boolean,
|
|
866
|
+
authorization_header: S.optional(S.String),
|
|
867
|
+
branch_filter: S.optional(S.String),
|
|
868
|
+
config: S.optional(HookConfigMap),
|
|
869
|
+
content_type: S.optional(S.String),
|
|
870
|
+
created_at: S.String,
|
|
871
|
+
events: S.optional(HookEventsList),
|
|
872
|
+
id: S.Number,
|
|
873
|
+
metadata: S.optional(S.Unknown),
|
|
874
|
+
type: S.String,
|
|
875
|
+
updated_at: S.String,
|
|
876
|
+
url: S.String,
|
|
877
|
+
}),
|
|
878
|
+
).annotate({ identifier: "Hook" }) as any as S.Schema<Hook>;
|
|
879
|
+
|
|
880
|
+
export type UserCreateOAuth2ApplicationRequestRedirectUrisList = Array<string>;
|
|
881
|
+
export const UserCreateOAuth2ApplicationRequestRedirectUrisList =
|
|
882
|
+
/*@__PURE__*/ S.Array(
|
|
883
|
+
S.String,
|
|
884
|
+
) as any as S.Schema<UserCreateOAuth2ApplicationRequestRedirectUrisList>;
|
|
885
|
+
|
|
886
|
+
export interface UserCreateOAuth2ApplicationRequest {
|
|
887
|
+
confidential_client?: boolean;
|
|
888
|
+
name?: string;
|
|
889
|
+
redirect_uris?: UserCreateOAuth2ApplicationRequestRedirectUrisList;
|
|
890
|
+
}
|
|
891
|
+
export const UserCreateOAuth2ApplicationRequest = /*@__PURE__*/ S.suspend(() =>
|
|
892
|
+
S.Struct({
|
|
893
|
+
confidential_client: S.optional(S.Boolean),
|
|
894
|
+
name: S.optional(S.String),
|
|
895
|
+
redirect_uris: S.optional(
|
|
896
|
+
UserCreateOAuth2ApplicationRequestRedirectUrisList,
|
|
897
|
+
),
|
|
898
|
+
}).pipe(
|
|
899
|
+
T.Http({ method: "POST", uri: "/user/applications/oauth2", code: 200 }),
|
|
900
|
+
),
|
|
901
|
+
).annotate({
|
|
902
|
+
identifier: "UserCreateOAuth2ApplicationRequest",
|
|
903
|
+
}) as any as S.Schema<UserCreateOAuth2ApplicationRequest>;
|
|
904
|
+
|
|
905
|
+
export type OAuth2ApplicationRedirectUrisList = Array<string>;
|
|
906
|
+
export const OAuth2ApplicationRedirectUrisList = /*@__PURE__*/ S.Array(
|
|
907
|
+
S.String,
|
|
908
|
+
) as any as S.Schema<OAuth2ApplicationRedirectUrisList>;
|
|
909
|
+
|
|
910
|
+
export interface OAuth2Application {
|
|
911
|
+
client_id?: string;
|
|
912
|
+
client_secret?: string | Redacted.Redacted<string>;
|
|
913
|
+
confidential_client?: boolean;
|
|
914
|
+
created?: string;
|
|
915
|
+
id?: number;
|
|
916
|
+
name?: string;
|
|
917
|
+
redirect_uris?: OAuth2ApplicationRedirectUrisList;
|
|
918
|
+
}
|
|
919
|
+
export const OAuth2Application = /*@__PURE__*/ S.suspend(() =>
|
|
920
|
+
S.Struct({
|
|
921
|
+
client_id: S.optional(S.String),
|
|
922
|
+
client_secret: S.optional(S.String.pipe(T.SensitiveValue({}))),
|
|
923
|
+
confidential_client: S.optional(S.Boolean),
|
|
924
|
+
created: S.optional(S.String),
|
|
925
|
+
id: S.optional(S.Number),
|
|
926
|
+
name: S.optional(S.String),
|
|
927
|
+
redirect_uris: S.optional(OAuth2ApplicationRedirectUrisList),
|
|
928
|
+
}),
|
|
929
|
+
).annotate({
|
|
930
|
+
identifier: "OAuth2Application",
|
|
931
|
+
}) as any as S.Schema<OAuth2Application>;
|
|
932
|
+
|
|
933
|
+
export interface RepoTargetOption {
|
|
934
|
+
/** Name of repository */
|
|
935
|
+
name: string;
|
|
936
|
+
/** Name of user or organisation that owns the repository */
|
|
937
|
+
owner: string;
|
|
938
|
+
}
|
|
939
|
+
export const RepoTargetOption = /*@__PURE__*/ S.suspend(() =>
|
|
940
|
+
S.Struct({
|
|
941
|
+
name: S.String,
|
|
942
|
+
owner: S.String,
|
|
943
|
+
}),
|
|
944
|
+
).annotate({
|
|
945
|
+
identifier: "RepoTargetOption",
|
|
946
|
+
}) as any as S.Schema<RepoTargetOption>;
|
|
947
|
+
|
|
948
|
+
/** If provided and not-empty, creates an access token with access only to specified repositories. */
|
|
949
|
+
export type UserCreateTokenRequestRepositoriesList = Array<RepoTargetOption>;
|
|
950
|
+
export const UserCreateTokenRequestRepositoriesList = /*@__PURE__*/ S.Array(
|
|
951
|
+
RepoTargetOption,
|
|
952
|
+
) as any as S.Schema<UserCreateTokenRequestRepositoriesList>;
|
|
953
|
+
|
|
954
|
+
export type UserCreateTokenRequestScopesList = Array<string>;
|
|
955
|
+
export const UserCreateTokenRequestScopesList = /*@__PURE__*/ S.Array(
|
|
956
|
+
S.String,
|
|
957
|
+
) as any as S.Schema<UserCreateTokenRequestScopesList>;
|
|
958
|
+
|
|
959
|
+
export interface UserCreateTokenRequest {
|
|
960
|
+
/** username of user */
|
|
961
|
+
username: string;
|
|
962
|
+
name: string;
|
|
963
|
+
/** If provided and not-empty, creates an access token with access only to specified repositories. */
|
|
964
|
+
repositories?: UserCreateTokenRequestRepositoriesList;
|
|
965
|
+
scopes?: UserCreateTokenRequestScopesList;
|
|
966
|
+
}
|
|
967
|
+
export const UserCreateTokenRequest = /*@__PURE__*/ S.suspend(() =>
|
|
968
|
+
S.Struct({
|
|
969
|
+
username: S.String.pipe(T.Label()),
|
|
970
|
+
name: S.String,
|
|
971
|
+
repositories: S.optional(UserCreateTokenRequestRepositoriesList),
|
|
972
|
+
scopes: S.optional(UserCreateTokenRequestScopesList),
|
|
973
|
+
}).pipe(
|
|
974
|
+
T.Http({ method: "POST", uri: "/users/{username}/tokens", code: 200 }),
|
|
975
|
+
),
|
|
976
|
+
).annotate({
|
|
977
|
+
identifier: "UserCreateTokenRequest",
|
|
978
|
+
}) as any as S.Schema<UserCreateTokenRequest>;
|
|
979
|
+
|
|
980
|
+
/** RepositoryMeta basic repository information */
|
|
981
|
+
export interface RepositoryMeta {
|
|
982
|
+
full_name?: string;
|
|
983
|
+
id?: number;
|
|
984
|
+
name?: string;
|
|
985
|
+
owner?: string;
|
|
986
|
+
}
|
|
987
|
+
export const RepositoryMeta = /*@__PURE__*/ S.suspend(() =>
|
|
988
|
+
S.Struct({
|
|
989
|
+
full_name: S.optional(S.String),
|
|
990
|
+
id: S.optional(S.Number),
|
|
991
|
+
name: S.optional(S.String),
|
|
992
|
+
owner: S.optional(S.String),
|
|
993
|
+
}),
|
|
994
|
+
).annotate({ identifier: "RepositoryMeta" }) as any as S.Schema<RepositoryMeta>;
|
|
995
|
+
|
|
996
|
+
/** Indicates that an access token only has access to the specified repositories. Will be null if the access token is not limited to a set of specified repositories. */
|
|
997
|
+
export type AccessTokenRepositoriesList = Array<RepositoryMeta>;
|
|
998
|
+
export const AccessTokenRepositoriesList = /*@__PURE__*/ S.Array(
|
|
999
|
+
RepositoryMeta,
|
|
1000
|
+
) as any as S.Schema<AccessTokenRepositoriesList>;
|
|
1001
|
+
|
|
1002
|
+
export type AccessTokenScopesList = Array<string>;
|
|
1003
|
+
export const AccessTokenScopesList = /*@__PURE__*/ S.Array(
|
|
1004
|
+
S.String,
|
|
1005
|
+
) as any as S.Schema<AccessTokenScopesList>;
|
|
1006
|
+
|
|
1007
|
+
export interface AccessToken {
|
|
1008
|
+
created_at: string;
|
|
1009
|
+
id: number;
|
|
1010
|
+
name: string;
|
|
1011
|
+
/** Indicates that an access token only has access to the specified repositories. Will be null if the access token is not limited to a set of specified repositories. */
|
|
1012
|
+
repositories?: AccessTokenRepositoriesList;
|
|
1013
|
+
scopes?: AccessTokenScopesList;
|
|
1014
|
+
sha1?: string | Redacted.Redacted<string>;
|
|
1015
|
+
token_last_eight: string;
|
|
1016
|
+
}
|
|
1017
|
+
export const AccessToken = /*@__PURE__*/ S.suspend(() =>
|
|
1018
|
+
S.Struct({
|
|
1019
|
+
created_at: S.String,
|
|
1020
|
+
id: S.Number,
|
|
1021
|
+
name: S.String,
|
|
1022
|
+
repositories: S.optional(AccessTokenRepositoriesList),
|
|
1023
|
+
scopes: S.optional(AccessTokenScopesList),
|
|
1024
|
+
sha1: S.optional(S.String.pipe(T.SensitiveValue({}))),
|
|
1025
|
+
token_last_eight: S.String,
|
|
1026
|
+
}),
|
|
1027
|
+
).annotate({ identifier: "AccessToken" }) as any as S.Schema<AccessToken>;
|
|
1028
|
+
|
|
1029
|
+
export interface UserCurrentCheckFollowingRequest {
|
|
1030
|
+
/** username of followed user */
|
|
1031
|
+
username: string;
|
|
1032
|
+
}
|
|
1033
|
+
export const UserCurrentCheckFollowingRequest = /*@__PURE__*/ S.suspend(() =>
|
|
1034
|
+
S.Struct({
|
|
1035
|
+
username: S.String.pipe(T.Label()),
|
|
1036
|
+
}).pipe(
|
|
1037
|
+
T.Http({ method: "GET", uri: "/user/following/{username}", code: 200 }),
|
|
1038
|
+
),
|
|
1039
|
+
).annotate({
|
|
1040
|
+
identifier: "UserCurrentCheckFollowingRequest",
|
|
1041
|
+
}) as any as S.Schema<UserCurrentCheckFollowingRequest>;
|
|
1042
|
+
|
|
1043
|
+
export interface UserCurrentCheckFollowingResponse {}
|
|
1044
|
+
export const UserCurrentCheckFollowingResponse = /*@__PURE__*/ S.suspend(() =>
|
|
1045
|
+
S.Struct({}),
|
|
1046
|
+
).annotate({
|
|
1047
|
+
identifier: "UserCurrentCheckFollowingResponse",
|
|
1048
|
+
}) as any as S.Schema<UserCurrentCheckFollowingResponse>;
|
|
1049
|
+
|
|
1050
|
+
export interface UserCurrentCheckStarringRequest {
|
|
1051
|
+
/** owner of the repo */
|
|
1052
|
+
owner: string;
|
|
1053
|
+
/** name of the repo */
|
|
1054
|
+
repo: string;
|
|
1055
|
+
}
|
|
1056
|
+
export const UserCurrentCheckStarringRequest = /*@__PURE__*/ S.suspend(() =>
|
|
1057
|
+
S.Struct({
|
|
1058
|
+
owner: S.String.pipe(T.Label()),
|
|
1059
|
+
repo: S.String.pipe(T.Label()),
|
|
1060
|
+
}).pipe(
|
|
1061
|
+
T.Http({ method: "GET", uri: "/user/starred/{owner}/{repo}", code: 200 }),
|
|
1062
|
+
),
|
|
1063
|
+
).annotate({
|
|
1064
|
+
identifier: "UserCurrentCheckStarringRequest",
|
|
1065
|
+
}) as any as S.Schema<UserCurrentCheckStarringRequest>;
|
|
1066
|
+
|
|
1067
|
+
export interface UserCurrentCheckStarringResponse {}
|
|
1068
|
+
export const UserCurrentCheckStarringResponse = /*@__PURE__*/ S.suspend(() =>
|
|
1069
|
+
S.Struct({}),
|
|
1070
|
+
).annotate({
|
|
1071
|
+
identifier: "UserCurrentCheckStarringResponse",
|
|
1072
|
+
}) as any as S.Schema<UserCurrentCheckStarringResponse>;
|
|
1073
|
+
|
|
1074
|
+
export interface UserCurrentDeleteFollowRequest {
|
|
1075
|
+
/** username of user to unfollow */
|
|
1076
|
+
username: string;
|
|
1077
|
+
}
|
|
1078
|
+
export const UserCurrentDeleteFollowRequest = /*@__PURE__*/ S.suspend(() =>
|
|
1079
|
+
S.Struct({
|
|
1080
|
+
username: S.String.pipe(T.Label()),
|
|
1081
|
+
}).pipe(
|
|
1082
|
+
T.Http({ method: "DELETE", uri: "/user/following/{username}", code: 200 }),
|
|
1083
|
+
),
|
|
1084
|
+
).annotate({
|
|
1085
|
+
identifier: "UserCurrentDeleteFollowRequest",
|
|
1086
|
+
}) as any as S.Schema<UserCurrentDeleteFollowRequest>;
|
|
1087
|
+
|
|
1088
|
+
export interface UserCurrentDeleteFollowResponse {}
|
|
1089
|
+
export const UserCurrentDeleteFollowResponse = /*@__PURE__*/ S.suspend(() =>
|
|
1090
|
+
S.Struct({}),
|
|
1091
|
+
).annotate({
|
|
1092
|
+
identifier: "UserCurrentDeleteFollowResponse",
|
|
1093
|
+
}) as any as S.Schema<UserCurrentDeleteFollowResponse>;
|
|
1094
|
+
|
|
1095
|
+
export interface UserCurrentDeleteGPGKeyRequest {
|
|
1096
|
+
/** id of key to delete */
|
|
1097
|
+
id: number;
|
|
1098
|
+
}
|
|
1099
|
+
export const UserCurrentDeleteGPGKeyRequest = /*@__PURE__*/ S.suspend(() =>
|
|
1100
|
+
S.Struct({
|
|
1101
|
+
id: S.Number.pipe(T.Label()),
|
|
1102
|
+
}).pipe(T.Http({ method: "DELETE", uri: "/user/gpg_keys/{id}", code: 200 })),
|
|
1103
|
+
).annotate({
|
|
1104
|
+
identifier: "UserCurrentDeleteGPGKeyRequest",
|
|
1105
|
+
}) as any as S.Schema<UserCurrentDeleteGPGKeyRequest>;
|
|
1106
|
+
|
|
1107
|
+
export interface UserCurrentDeleteGPGKeyResponse {}
|
|
1108
|
+
export const UserCurrentDeleteGPGKeyResponse = /*@__PURE__*/ S.suspend(() =>
|
|
1109
|
+
S.Struct({}),
|
|
1110
|
+
).annotate({
|
|
1111
|
+
identifier: "UserCurrentDeleteGPGKeyResponse",
|
|
1112
|
+
}) as any as S.Schema<UserCurrentDeleteGPGKeyResponse>;
|
|
1113
|
+
|
|
1114
|
+
export interface UserCurrentDeleteKeyRequest {
|
|
1115
|
+
/** id of key to delete */
|
|
1116
|
+
id: number;
|
|
1117
|
+
}
|
|
1118
|
+
export const UserCurrentDeleteKeyRequest = /*@__PURE__*/ S.suspend(() =>
|
|
1119
|
+
S.Struct({
|
|
1120
|
+
id: S.Number.pipe(T.Label()),
|
|
1121
|
+
}).pipe(T.Http({ method: "DELETE", uri: "/user/keys/{id}", code: 200 })),
|
|
1122
|
+
).annotate({
|
|
1123
|
+
identifier: "UserCurrentDeleteKeyRequest",
|
|
1124
|
+
}) as any as S.Schema<UserCurrentDeleteKeyRequest>;
|
|
1125
|
+
|
|
1126
|
+
export interface UserCurrentDeleteKeyResponse {}
|
|
1127
|
+
export const UserCurrentDeleteKeyResponse = /*@__PURE__*/ S.suspend(() =>
|
|
1128
|
+
S.Struct({}),
|
|
1129
|
+
).annotate({
|
|
1130
|
+
identifier: "UserCurrentDeleteKeyResponse",
|
|
1131
|
+
}) as any as S.Schema<UserCurrentDeleteKeyResponse>;
|
|
1132
|
+
|
|
1133
|
+
export interface UserCurrentDeleteStarRequest {
|
|
1134
|
+
/** owner of the repo to unstar */
|
|
1135
|
+
owner: string;
|
|
1136
|
+
/** name of the repo to unstar */
|
|
1137
|
+
repo: string;
|
|
1138
|
+
}
|
|
1139
|
+
export const UserCurrentDeleteStarRequest = /*@__PURE__*/ S.suspend(() =>
|
|
1140
|
+
S.Struct({
|
|
1141
|
+
owner: S.String.pipe(T.Label()),
|
|
1142
|
+
repo: S.String.pipe(T.Label()),
|
|
1143
|
+
}).pipe(
|
|
1144
|
+
T.Http({
|
|
1145
|
+
method: "DELETE",
|
|
1146
|
+
uri: "/user/starred/{owner}/{repo}",
|
|
1147
|
+
code: 200,
|
|
1148
|
+
}),
|
|
1149
|
+
),
|
|
1150
|
+
).annotate({
|
|
1151
|
+
identifier: "UserCurrentDeleteStarRequest",
|
|
1152
|
+
}) as any as S.Schema<UserCurrentDeleteStarRequest>;
|
|
1153
|
+
|
|
1154
|
+
export interface UserCurrentDeleteStarResponse {}
|
|
1155
|
+
export const UserCurrentDeleteStarResponse = /*@__PURE__*/ S.suspend(() =>
|
|
1156
|
+
S.Struct({}),
|
|
1157
|
+
).annotate({
|
|
1158
|
+
identifier: "UserCurrentDeleteStarResponse",
|
|
1159
|
+
}) as any as S.Schema<UserCurrentDeleteStarResponse>;
|
|
1160
|
+
|
|
1161
|
+
export interface UserCurrentGetGPGKeyRequest {
|
|
1162
|
+
/** id of key to get */
|
|
1163
|
+
id: number;
|
|
1164
|
+
}
|
|
1165
|
+
export const UserCurrentGetGPGKeyRequest = /*@__PURE__*/ S.suspend(() =>
|
|
1166
|
+
S.Struct({
|
|
1167
|
+
id: S.Number.pipe(T.Label()),
|
|
1168
|
+
}).pipe(T.Http({ method: "GET", uri: "/user/gpg_keys/{id}", code: 200 })),
|
|
1169
|
+
).annotate({
|
|
1170
|
+
identifier: "UserCurrentGetGPGKeyRequest",
|
|
1171
|
+
}) as any as S.Schema<UserCurrentGetGPGKeyRequest>;
|
|
1172
|
+
|
|
1173
|
+
/** GPGKeyEmail an email attached to a GPGKey */
|
|
1174
|
+
export interface GPGKeyEmail {
|
|
1175
|
+
email?: string;
|
|
1176
|
+
verified?: boolean;
|
|
1177
|
+
}
|
|
1178
|
+
export const GPGKeyEmail = /*@__PURE__*/ S.suspend(() =>
|
|
1179
|
+
S.Struct({
|
|
1180
|
+
email: S.optional(S.String),
|
|
1181
|
+
verified: S.optional(S.Boolean),
|
|
1182
|
+
}),
|
|
1183
|
+
).annotate({ identifier: "GPGKeyEmail" }) as any as S.Schema<GPGKeyEmail>;
|
|
1184
|
+
|
|
1185
|
+
export type GPGKeyEmailsList = Array<GPGKeyEmail>;
|
|
1186
|
+
export const GPGKeyEmailsList = /*@__PURE__*/ S.Array(
|
|
1187
|
+
GPGKeyEmail,
|
|
1188
|
+
) as any as S.Schema<GPGKeyEmailsList>;
|
|
1189
|
+
|
|
1190
|
+
export type GPGKeySubkeysList = Array<GPGKey>;
|
|
1191
|
+
export const GPGKeySubkeysList = /*@__PURE__*/ S.Array(
|
|
1192
|
+
S.suspend(() => GPGKey),
|
|
1193
|
+
) as any as S.Schema<GPGKeySubkeysList>;
|
|
1194
|
+
|
|
1195
|
+
/** GPGKey a user GPG key to sign commit and tag in repository */
|
|
1196
|
+
export interface GPGKey {
|
|
1197
|
+
can_certify?: boolean;
|
|
1198
|
+
can_encrypt_comms?: boolean;
|
|
1199
|
+
can_encrypt_storage?: boolean;
|
|
1200
|
+
can_sign?: boolean;
|
|
1201
|
+
created_at?: string;
|
|
1202
|
+
emails?: GPGKeyEmailsList;
|
|
1203
|
+
expires_at?: string;
|
|
1204
|
+
id?: number;
|
|
1205
|
+
key_id?: string;
|
|
1206
|
+
primary_key_id?: string;
|
|
1207
|
+
public_key?: string;
|
|
1208
|
+
subkeys?: GPGKeySubkeysList;
|
|
1209
|
+
verified?: boolean;
|
|
1210
|
+
}
|
|
1211
|
+
export const GPGKey = /*@__PURE__*/ S.suspend(() =>
|
|
1212
|
+
S.Struct({
|
|
1213
|
+
can_certify: S.optional(S.Boolean),
|
|
1214
|
+
can_encrypt_comms: S.optional(S.Boolean),
|
|
1215
|
+
can_encrypt_storage: S.optional(S.Boolean),
|
|
1216
|
+
can_sign: S.optional(S.Boolean),
|
|
1217
|
+
created_at: S.optional(S.String),
|
|
1218
|
+
emails: S.optional(GPGKeyEmailsList),
|
|
1219
|
+
expires_at: S.optional(S.String),
|
|
1220
|
+
id: S.optional(S.Number),
|
|
1221
|
+
key_id: S.optional(S.String),
|
|
1222
|
+
primary_key_id: S.optional(S.String),
|
|
1223
|
+
public_key: S.optional(S.String),
|
|
1224
|
+
subkeys: S.optional(GPGKeySubkeysList),
|
|
1225
|
+
verified: S.optional(S.Boolean),
|
|
1226
|
+
}),
|
|
1227
|
+
).annotate({ identifier: "GPGKey" }) as any as S.Schema<GPGKey>;
|
|
1228
|
+
|
|
1229
|
+
export interface UserCurrentGetKeyRequest {
|
|
1230
|
+
/** id of key to get */
|
|
1231
|
+
id: number;
|
|
1232
|
+
}
|
|
1233
|
+
export const UserCurrentGetKeyRequest = /*@__PURE__*/ S.suspend(() =>
|
|
1234
|
+
S.Struct({
|
|
1235
|
+
id: S.Number.pipe(T.Label()),
|
|
1236
|
+
}).pipe(T.Http({ method: "GET", uri: "/user/keys/{id}", code: 200 })),
|
|
1237
|
+
).annotate({
|
|
1238
|
+
identifier: "UserCurrentGetKeyRequest",
|
|
1239
|
+
}) as any as S.Schema<UserCurrentGetKeyRequest>;
|
|
1240
|
+
|
|
1241
|
+
/** PublicKey publickey is a user key to push code to repository */
|
|
1242
|
+
export interface PublicKey {
|
|
1243
|
+
created_at?: string;
|
|
1244
|
+
fingerprint?: string;
|
|
1245
|
+
id?: number;
|
|
1246
|
+
key?: string;
|
|
1247
|
+
key_type?: string;
|
|
1248
|
+
read_only?: boolean;
|
|
1249
|
+
title?: string;
|
|
1250
|
+
updated_at?: string;
|
|
1251
|
+
url?: string;
|
|
1252
|
+
user?: User;
|
|
1253
|
+
verified?: boolean;
|
|
1254
|
+
}
|
|
1255
|
+
export const PublicKey = /*@__PURE__*/ S.suspend(() =>
|
|
1256
|
+
S.Struct({
|
|
1257
|
+
created_at: S.optional(S.String),
|
|
1258
|
+
fingerprint: S.optional(S.String),
|
|
1259
|
+
id: S.optional(S.Number),
|
|
1260
|
+
key: S.optional(S.String),
|
|
1261
|
+
key_type: S.optional(S.String),
|
|
1262
|
+
read_only: S.optional(S.Boolean),
|
|
1263
|
+
title: S.optional(S.String),
|
|
1264
|
+
updated_at: S.optional(S.String),
|
|
1265
|
+
url: S.optional(S.String),
|
|
1266
|
+
user: S.optional(User),
|
|
1267
|
+
verified: S.optional(S.Boolean),
|
|
1268
|
+
}),
|
|
1269
|
+
).annotate({ identifier: "PublicKey" }) as any as S.Schema<PublicKey>;
|
|
1270
|
+
|
|
1271
|
+
export interface UserCurrentListFollowersRequest {
|
|
1272
|
+
/** page number of results to return (1-based) */
|
|
1273
|
+
page?: number;
|
|
1274
|
+
/** page size of results */
|
|
1275
|
+
limit?: number;
|
|
1276
|
+
}
|
|
1277
|
+
export const UserCurrentListFollowersRequest = /*@__PURE__*/ S.suspend(() =>
|
|
1278
|
+
S.Struct({
|
|
1279
|
+
page: S.optional(S.Number.pipe(T.Query())),
|
|
1280
|
+
limit: S.optional(S.Number.pipe(T.Query())),
|
|
1281
|
+
}).pipe(T.Http({ method: "GET", uri: "/user/followers", code: 200 })),
|
|
1282
|
+
).annotate({
|
|
1283
|
+
identifier: "UserCurrentListFollowersRequest",
|
|
1284
|
+
}) as any as S.Schema<UserCurrentListFollowersRequest>;
|
|
1285
|
+
|
|
1286
|
+
export type UserCurrentListFollowersResponseBodyList = Array<User>;
|
|
1287
|
+
export const UserCurrentListFollowersResponseBodyList = /*@__PURE__*/ S.Array(
|
|
1288
|
+
User,
|
|
1289
|
+
) as any as S.Schema<UserCurrentListFollowersResponseBodyList>;
|
|
1290
|
+
|
|
1291
|
+
export type UserCurrentListFollowersResponse =
|
|
1292
|
+
UserCurrentListFollowersResponseBodyList;
|
|
1293
|
+
export const UserCurrentListFollowersResponse = /*@__PURE__*/ S.suspend(() =>
|
|
1294
|
+
UserCurrentListFollowersResponseBodyList.pipe(T.RawResponseRoot()),
|
|
1295
|
+
).annotate({
|
|
1296
|
+
identifier: "UserCurrentListFollowersResponse",
|
|
1297
|
+
}) as any as S.Schema<UserCurrentListFollowersResponse>;
|
|
1298
|
+
|
|
1299
|
+
export interface UserCurrentListFollowingRequest {
|
|
1300
|
+
/** page number of results to return (1-based) */
|
|
1301
|
+
page?: number;
|
|
1302
|
+
/** page size of results */
|
|
1303
|
+
limit?: number;
|
|
1304
|
+
}
|
|
1305
|
+
export const UserCurrentListFollowingRequest = /*@__PURE__*/ S.suspend(() =>
|
|
1306
|
+
S.Struct({
|
|
1307
|
+
page: S.optional(S.Number.pipe(T.Query())),
|
|
1308
|
+
limit: S.optional(S.Number.pipe(T.Query())),
|
|
1309
|
+
}).pipe(T.Http({ method: "GET", uri: "/user/following", code: 200 })),
|
|
1310
|
+
).annotate({
|
|
1311
|
+
identifier: "UserCurrentListFollowingRequest",
|
|
1312
|
+
}) as any as S.Schema<UserCurrentListFollowingRequest>;
|
|
1313
|
+
|
|
1314
|
+
export type UserCurrentListFollowingResponseBodyList = Array<User>;
|
|
1315
|
+
export const UserCurrentListFollowingResponseBodyList = /*@__PURE__*/ S.Array(
|
|
1316
|
+
User,
|
|
1317
|
+
) as any as S.Schema<UserCurrentListFollowingResponseBodyList>;
|
|
1318
|
+
|
|
1319
|
+
export type UserCurrentListFollowingResponse =
|
|
1320
|
+
UserCurrentListFollowingResponseBodyList;
|
|
1321
|
+
export const UserCurrentListFollowingResponse = /*@__PURE__*/ S.suspend(() =>
|
|
1322
|
+
UserCurrentListFollowingResponseBodyList.pipe(T.RawResponseRoot()),
|
|
1323
|
+
).annotate({
|
|
1324
|
+
identifier: "UserCurrentListFollowingResponse",
|
|
1325
|
+
}) as any as S.Schema<UserCurrentListFollowingResponse>;
|
|
1326
|
+
|
|
1327
|
+
export interface UserCurrentListGPGKeysRequest {
|
|
1328
|
+
/** page number of results to return (1-based) */
|
|
1329
|
+
page?: number;
|
|
1330
|
+
/** page size of results */
|
|
1331
|
+
limit?: number;
|
|
1332
|
+
}
|
|
1333
|
+
export const UserCurrentListGPGKeysRequest = /*@__PURE__*/ S.suspend(() =>
|
|
1334
|
+
S.Struct({
|
|
1335
|
+
page: S.optional(S.Number.pipe(T.Query())),
|
|
1336
|
+
limit: S.optional(S.Number.pipe(T.Query())),
|
|
1337
|
+
}).pipe(T.Http({ method: "GET", uri: "/user/gpg_keys", code: 200 })),
|
|
1338
|
+
).annotate({
|
|
1339
|
+
identifier: "UserCurrentListGPGKeysRequest",
|
|
1340
|
+
}) as any as S.Schema<UserCurrentListGPGKeysRequest>;
|
|
1341
|
+
|
|
1342
|
+
export type UserCurrentListGPGKeysResponseBodyList = Array<GPGKey>;
|
|
1343
|
+
export const UserCurrentListGPGKeysResponseBodyList = /*@__PURE__*/ S.Array(
|
|
1344
|
+
GPGKey,
|
|
1345
|
+
) as any as S.Schema<UserCurrentListGPGKeysResponseBodyList>;
|
|
1346
|
+
|
|
1347
|
+
export type UserCurrentListGPGKeysResponse =
|
|
1348
|
+
UserCurrentListGPGKeysResponseBodyList;
|
|
1349
|
+
export const UserCurrentListGPGKeysResponse = /*@__PURE__*/ S.suspend(() =>
|
|
1350
|
+
UserCurrentListGPGKeysResponseBodyList.pipe(T.RawResponseRoot()),
|
|
1351
|
+
).annotate({
|
|
1352
|
+
identifier: "UserCurrentListGPGKeysResponse",
|
|
1353
|
+
}) as any as S.Schema<UserCurrentListGPGKeysResponse>;
|
|
1354
|
+
|
|
1355
|
+
export interface UserCurrentListKeysRequest {
|
|
1356
|
+
/** fingerprint of the key */
|
|
1357
|
+
fingerprint?: string;
|
|
1358
|
+
/** page number of results to return (1-based) */
|
|
1359
|
+
page?: number;
|
|
1360
|
+
/** page size of results */
|
|
1361
|
+
limit?: number;
|
|
1362
|
+
}
|
|
1363
|
+
export const UserCurrentListKeysRequest = /*@__PURE__*/ S.suspend(() =>
|
|
1364
|
+
S.Struct({
|
|
1365
|
+
fingerprint: S.optional(S.String.pipe(T.Query())),
|
|
1366
|
+
page: S.optional(S.Number.pipe(T.Query())),
|
|
1367
|
+
limit: S.optional(S.Number.pipe(T.Query())),
|
|
1368
|
+
}).pipe(T.Http({ method: "GET", uri: "/user/keys", code: 200 })),
|
|
1369
|
+
).annotate({
|
|
1370
|
+
identifier: "UserCurrentListKeysRequest",
|
|
1371
|
+
}) as any as S.Schema<UserCurrentListKeysRequest>;
|
|
1372
|
+
|
|
1373
|
+
export type UserCurrentListKeysResponseBodyList = Array<PublicKey>;
|
|
1374
|
+
export const UserCurrentListKeysResponseBodyList = /*@__PURE__*/ S.Array(
|
|
1375
|
+
PublicKey,
|
|
1376
|
+
) as any as S.Schema<UserCurrentListKeysResponseBodyList>;
|
|
1377
|
+
|
|
1378
|
+
export type UserCurrentListKeysResponse = UserCurrentListKeysResponseBodyList;
|
|
1379
|
+
export const UserCurrentListKeysResponse = /*@__PURE__*/ S.suspend(() =>
|
|
1380
|
+
UserCurrentListKeysResponseBodyList.pipe(T.RawResponseRoot()),
|
|
1381
|
+
).annotate({
|
|
1382
|
+
identifier: "UserCurrentListKeysResponse",
|
|
1383
|
+
}) as any as S.Schema<UserCurrentListKeysResponse>;
|
|
1384
|
+
|
|
1385
|
+
export type UserCurrentListReposRequestOrderBy =
|
|
1386
|
+
| "name"
|
|
1387
|
+
| "id"
|
|
1388
|
+
| "newest"
|
|
1389
|
+
| "oldest"
|
|
1390
|
+
| "recentupdate"
|
|
1391
|
+
| "leastupdate"
|
|
1392
|
+
| "reversealphabetically"
|
|
1393
|
+
| "alphabetically"
|
|
1394
|
+
| "reversesize"
|
|
1395
|
+
| "size"
|
|
1396
|
+
| "reversegitsize"
|
|
1397
|
+
| "gitsize"
|
|
1398
|
+
| "reverselfssize"
|
|
1399
|
+
| "lfssize"
|
|
1400
|
+
| "moststars"
|
|
1401
|
+
| "feweststars"
|
|
1402
|
+
| "mostforks"
|
|
1403
|
+
| "fewestforks";
|
|
1404
|
+
export const UserCurrentListReposRequestOrderBy = /*@__PURE__*/ S.String;
|
|
1405
|
+
|
|
1406
|
+
export interface UserCurrentListReposRequest {
|
|
1407
|
+
/** page number of results to return (1-based) */
|
|
1408
|
+
page?: number;
|
|
1409
|
+
/** page size of results */
|
|
1410
|
+
limit?: number;
|
|
1411
|
+
/** order the repositories */
|
|
1412
|
+
order_by?: UserCurrentListReposRequestOrderBy | (string & {});
|
|
1413
|
+
}
|
|
1414
|
+
export const UserCurrentListReposRequest = /*@__PURE__*/ S.suspend(() =>
|
|
1415
|
+
S.Struct({
|
|
1416
|
+
page: S.optional(S.Number.pipe(T.Query())),
|
|
1417
|
+
limit: S.optional(S.Number.pipe(T.Query())),
|
|
1418
|
+
order_by: S.optional(UserCurrentListReposRequestOrderBy.pipe(T.Query())),
|
|
1419
|
+
}).pipe(T.Http({ method: "GET", uri: "/user/repos", code: 200 })),
|
|
1420
|
+
).annotate({
|
|
1421
|
+
identifier: "UserCurrentListReposRequest",
|
|
1422
|
+
}) as any as S.Schema<UserCurrentListReposRequest>;
|
|
1423
|
+
|
|
1424
|
+
/** ExternalTracker represents settings for external tracker */
|
|
1425
|
+
export interface ExternalTracker {
|
|
1426
|
+
/** External Issue Tracker URL Format. Use the placeholders {user}, {repo} and {index} for the username, repository name and issue index. */
|
|
1427
|
+
external_tracker_format?: string;
|
|
1428
|
+
/** External Issue Tracker issue regular expression */
|
|
1429
|
+
external_tracker_regexp_pattern?: string;
|
|
1430
|
+
/** External Issue Tracker Number Format, either `numeric`, `alphanumeric`, or `regexp` */
|
|
1431
|
+
external_tracker_style?: string;
|
|
1432
|
+
/** URL of external issue tracker. */
|
|
1433
|
+
external_tracker_url?: string;
|
|
1434
|
+
}
|
|
1435
|
+
export const ExternalTracker = /*@__PURE__*/ S.suspend(() =>
|
|
1436
|
+
S.Struct({
|
|
1437
|
+
external_tracker_format: S.optional(S.String),
|
|
1438
|
+
external_tracker_regexp_pattern: S.optional(S.String),
|
|
1439
|
+
external_tracker_style: S.optional(S.String),
|
|
1440
|
+
external_tracker_url: S.optional(S.String),
|
|
1441
|
+
}),
|
|
1442
|
+
).annotate({
|
|
1443
|
+
identifier: "ExternalTracker",
|
|
1444
|
+
}) as any as S.Schema<ExternalTracker>;
|
|
1445
|
+
|
|
1446
|
+
/** ExternalWiki represents setting for external wiki */
|
|
1447
|
+
export interface ExternalWiki {
|
|
1448
|
+
/** URL of external wiki. */
|
|
1449
|
+
external_wiki_url?: string;
|
|
1450
|
+
}
|
|
1451
|
+
export const ExternalWiki = /*@__PURE__*/ S.suspend(() =>
|
|
1452
|
+
S.Struct({
|
|
1453
|
+
external_wiki_url: S.optional(S.String),
|
|
1454
|
+
}),
|
|
1455
|
+
).annotate({ identifier: "ExternalWiki" }) as any as S.Schema<ExternalWiki>;
|
|
1456
|
+
|
|
1457
|
+
/** InternalTracker represents settings for internal tracker */
|
|
1458
|
+
export interface InternalTracker {
|
|
1459
|
+
/** Let only contributors track time (Built-in issue tracker) */
|
|
1460
|
+
allow_only_contributors_to_track_time?: boolean;
|
|
1461
|
+
/** Enable dependencies for issues and pull requests (Built-in issue tracker) */
|
|
1462
|
+
enable_issue_dependencies?: boolean;
|
|
1463
|
+
/** Enable time tracking (Built-in issue tracker) */
|
|
1464
|
+
enable_time_tracker?: boolean;
|
|
1465
|
+
}
|
|
1466
|
+
export const InternalTracker = /*@__PURE__*/ S.suspend(() =>
|
|
1467
|
+
S.Struct({
|
|
1468
|
+
allow_only_contributors_to_track_time: S.optional(S.Boolean),
|
|
1469
|
+
enable_issue_dependencies: S.optional(S.Boolean),
|
|
1470
|
+
enable_time_tracker: S.optional(S.Boolean),
|
|
1471
|
+
}),
|
|
1472
|
+
).annotate({
|
|
1473
|
+
identifier: "InternalTracker",
|
|
1474
|
+
}) as any as S.Schema<InternalTracker>;
|
|
1475
|
+
|
|
1476
|
+
/** ObjectFormatName of the underlying git repository */
|
|
1477
|
+
export type RepositoryObjectFormatName = "sha1" | "sha256";
|
|
1478
|
+
export const RepositoryObjectFormatName = /*@__PURE__*/ S.String;
|
|
1479
|
+
|
|
1480
|
+
/** Permission represents a set of permissions */
|
|
1481
|
+
export interface Permission {
|
|
1482
|
+
admin?: boolean;
|
|
1483
|
+
pull?: boolean;
|
|
1484
|
+
push?: boolean;
|
|
1485
|
+
}
|
|
1486
|
+
export const Permission = /*@__PURE__*/ S.suspend(() =>
|
|
1487
|
+
S.Struct({
|
|
1488
|
+
admin: S.optional(S.Boolean),
|
|
1489
|
+
pull: S.optional(S.Boolean),
|
|
1490
|
+
push: S.optional(S.Boolean),
|
|
1491
|
+
}),
|
|
1492
|
+
).annotate({ identifier: "Permission" }) as any as S.Schema<Permission>;
|
|
1493
|
+
|
|
1494
|
+
/** Organization represents an organization */
|
|
1495
|
+
export interface Organization {
|
|
1496
|
+
avatar_url?: string;
|
|
1497
|
+
created?: string;
|
|
1498
|
+
description?: string;
|
|
1499
|
+
email?: string;
|
|
1500
|
+
full_name?: string;
|
|
1501
|
+
id: number;
|
|
1502
|
+
location?: string;
|
|
1503
|
+
name?: string;
|
|
1504
|
+
repo_admin_change_team_access?: boolean;
|
|
1505
|
+
/** deprecated */
|
|
1506
|
+
username: string;
|
|
1507
|
+
visibility?: string;
|
|
1508
|
+
website?: string;
|
|
1509
|
+
}
|
|
1510
|
+
export const Organization = /*@__PURE__*/ S.suspend(() =>
|
|
1511
|
+
S.Struct({
|
|
1512
|
+
avatar_url: S.optional(S.String),
|
|
1513
|
+
created: S.optional(S.String),
|
|
1514
|
+
description: S.optional(S.String),
|
|
1515
|
+
email: S.optional(S.String),
|
|
1516
|
+
full_name: S.optional(S.String),
|
|
1517
|
+
id: S.Number,
|
|
1518
|
+
location: S.optional(S.String),
|
|
1519
|
+
name: S.optional(S.String),
|
|
1520
|
+
repo_admin_change_team_access: S.optional(S.Boolean),
|
|
1521
|
+
username: S.String,
|
|
1522
|
+
visibility: S.optional(S.String),
|
|
1523
|
+
website: S.optional(S.String),
|
|
1524
|
+
}),
|
|
1525
|
+
).annotate({ identifier: "Organization" }) as any as S.Schema<Organization>;
|
|
1526
|
+
|
|
1527
|
+
export type TeamPermission = "none" | "read" | "write" | "admin" | "owner";
|
|
1528
|
+
export const TeamPermission = /*@__PURE__*/ S.String;
|
|
1529
|
+
|
|
1530
|
+
export type TeamUnitsList = Array<string>;
|
|
1531
|
+
export const TeamUnitsList = /*@__PURE__*/ S.Array(
|
|
1532
|
+
S.String,
|
|
1533
|
+
) as any as S.Schema<TeamUnitsList>;
|
|
1534
|
+
|
|
1535
|
+
export type TeamUnitsMapMap = { [key: string]: string | undefined };
|
|
1536
|
+
export const TeamUnitsMapMap = /*@__PURE__*/ S.Record(
|
|
1537
|
+
S.String,
|
|
1538
|
+
S.String,
|
|
1539
|
+
) as any as S.Schema<TeamUnitsMapMap>;
|
|
1540
|
+
|
|
1541
|
+
/** Team represents a team in an organization */
|
|
1542
|
+
export interface Team {
|
|
1543
|
+
can_create_org_repo?: boolean;
|
|
1544
|
+
description?: string;
|
|
1545
|
+
id: number;
|
|
1546
|
+
includes_all_repositories?: boolean;
|
|
1547
|
+
name: string;
|
|
1548
|
+
organization?: Organization;
|
|
1549
|
+
permission?: TeamPermission;
|
|
1550
|
+
units?: TeamUnitsList;
|
|
1551
|
+
units_map?: TeamUnitsMapMap;
|
|
1552
|
+
}
|
|
1553
|
+
export const Team = /*@__PURE__*/ S.suspend(() =>
|
|
1554
|
+
S.Struct({
|
|
1555
|
+
can_create_org_repo: S.optional(S.Boolean),
|
|
1556
|
+
description: S.optional(S.String),
|
|
1557
|
+
id: S.Number,
|
|
1558
|
+
includes_all_repositories: S.optional(S.Boolean),
|
|
1559
|
+
name: S.String,
|
|
1560
|
+
organization: S.optional(Organization),
|
|
1561
|
+
permission: S.optional(TeamPermission),
|
|
1562
|
+
units: S.optional(TeamUnitsList),
|
|
1563
|
+
units_map: S.optional(TeamUnitsMapMap),
|
|
1564
|
+
}),
|
|
1565
|
+
).annotate({ identifier: "Team" }) as any as S.Schema<Team>;
|
|
1566
|
+
|
|
1567
|
+
export type RepoTransferTeamsList = Array<Team>;
|
|
1568
|
+
export const RepoTransferTeamsList = /*@__PURE__*/ S.Array(
|
|
1569
|
+
Team,
|
|
1570
|
+
) as any as S.Schema<RepoTransferTeamsList>;
|
|
1571
|
+
|
|
1572
|
+
/** RepoTransfer represents a pending repo transfer */
|
|
1573
|
+
export interface RepoTransfer {
|
|
1574
|
+
doer?: User;
|
|
1575
|
+
recipient?: User;
|
|
1576
|
+
teams?: RepoTransferTeamsList;
|
|
1577
|
+
}
|
|
1578
|
+
export const RepoTransfer = /*@__PURE__*/ S.suspend(() =>
|
|
1579
|
+
S.Struct({
|
|
1580
|
+
doer: S.optional(User),
|
|
1581
|
+
recipient: S.optional(User),
|
|
1582
|
+
teams: S.optional(RepoTransferTeamsList),
|
|
1583
|
+
}),
|
|
1584
|
+
).annotate({ identifier: "RepoTransfer" }) as any as S.Schema<RepoTransfer>;
|
|
1585
|
+
|
|
1586
|
+
export type RepositoryTopicsList = Array<string>;
|
|
1587
|
+
export const RepositoryTopicsList = /*@__PURE__*/ S.Array(
|
|
1588
|
+
S.String,
|
|
1589
|
+
) as any as S.Schema<RepositoryTopicsList>;
|
|
1590
|
+
|
|
1591
|
+
/** Repository represents a repository */
|
|
1592
|
+
export interface Repository {
|
|
1593
|
+
allow_fast_forward_only_merge?: boolean;
|
|
1594
|
+
allow_merge_commits?: boolean;
|
|
1595
|
+
allow_rebase?: boolean;
|
|
1596
|
+
allow_rebase_explicit?: boolean;
|
|
1597
|
+
allow_rebase_update?: boolean;
|
|
1598
|
+
allow_squash_merge?: boolean;
|
|
1599
|
+
archived?: boolean;
|
|
1600
|
+
archived_at?: string;
|
|
1601
|
+
avatar_url?: string;
|
|
1602
|
+
clone_url: string;
|
|
1603
|
+
created_at: string;
|
|
1604
|
+
default_allow_maintainer_edit?: boolean;
|
|
1605
|
+
default_branch: string;
|
|
1606
|
+
default_delete_branch_after_merge?: boolean;
|
|
1607
|
+
default_merge_style?: string;
|
|
1608
|
+
default_update_style?: string;
|
|
1609
|
+
description?: string;
|
|
1610
|
+
empty?: boolean;
|
|
1611
|
+
external_tracker?: ExternalTracker;
|
|
1612
|
+
external_wiki?: ExternalWiki;
|
|
1613
|
+
fork?: boolean;
|
|
1614
|
+
forks_count?: number;
|
|
1615
|
+
full_name: string;
|
|
1616
|
+
globally_editable_wiki?: boolean;
|
|
1617
|
+
has_actions?: boolean;
|
|
1618
|
+
has_issues?: boolean;
|
|
1619
|
+
has_packages?: boolean;
|
|
1620
|
+
has_projects?: boolean;
|
|
1621
|
+
has_pull_requests?: boolean;
|
|
1622
|
+
has_releases?: boolean;
|
|
1623
|
+
/** is the wiki enabled */
|
|
1624
|
+
has_wiki?: boolean;
|
|
1625
|
+
/** have wiki pages ever been created */
|
|
1626
|
+
has_wiki_contents?: boolean;
|
|
1627
|
+
html_url: string;
|
|
1628
|
+
id: number;
|
|
1629
|
+
ignore_whitespace_conflicts?: boolean;
|
|
1630
|
+
internal?: boolean;
|
|
1631
|
+
internal_tracker?: InternalTracker;
|
|
1632
|
+
language?: string;
|
|
1633
|
+
languages_url?: string;
|
|
1634
|
+
link?: string;
|
|
1635
|
+
mirror?: boolean;
|
|
1636
|
+
mirror_interval?: string;
|
|
1637
|
+
mirror_updated?: string;
|
|
1638
|
+
name: string;
|
|
1639
|
+
/** ObjectFormatName of the underlying git repository */
|
|
1640
|
+
object_format_name?: RepositoryObjectFormatName;
|
|
1641
|
+
open_issues_count?: number;
|
|
1642
|
+
open_pr_counter?: number;
|
|
1643
|
+
original_url?: string;
|
|
1644
|
+
owner: User;
|
|
1645
|
+
parent?: Repository;
|
|
1646
|
+
permissions?: Permission;
|
|
1647
|
+
private?: boolean;
|
|
1648
|
+
release_counter?: number;
|
|
1649
|
+
repo_transfer?: RepoTransfer;
|
|
1650
|
+
size?: number;
|
|
1651
|
+
ssh_url: string;
|
|
1652
|
+
stars_count?: number;
|
|
1653
|
+
template?: boolean;
|
|
1654
|
+
topics?: RepositoryTopicsList;
|
|
1655
|
+
updated_at: string;
|
|
1656
|
+
url?: string;
|
|
1657
|
+
watchers_count?: number;
|
|
1658
|
+
website?: string;
|
|
1659
|
+
wiki_branch?: string;
|
|
1660
|
+
wiki_clone_url?: string;
|
|
1661
|
+
wiki_ssh_url?: string;
|
|
1662
|
+
}
|
|
1663
|
+
export const Repository = /*@__PURE__*/ S.suspend(() =>
|
|
1664
|
+
S.Struct({
|
|
1665
|
+
allow_fast_forward_only_merge: S.optional(S.Boolean),
|
|
1666
|
+
allow_merge_commits: S.optional(S.Boolean),
|
|
1667
|
+
allow_rebase: S.optional(S.Boolean),
|
|
1668
|
+
allow_rebase_explicit: S.optional(S.Boolean),
|
|
1669
|
+
allow_rebase_update: S.optional(S.Boolean),
|
|
1670
|
+
allow_squash_merge: S.optional(S.Boolean),
|
|
1671
|
+
archived: S.optional(S.Boolean),
|
|
1672
|
+
archived_at: S.optional(S.String),
|
|
1673
|
+
avatar_url: S.optional(S.String),
|
|
1674
|
+
clone_url: S.String,
|
|
1675
|
+
created_at: S.String,
|
|
1676
|
+
default_allow_maintainer_edit: S.optional(S.Boolean),
|
|
1677
|
+
default_branch: S.String,
|
|
1678
|
+
default_delete_branch_after_merge: S.optional(S.Boolean),
|
|
1679
|
+
default_merge_style: S.optional(S.String),
|
|
1680
|
+
default_update_style: S.optional(S.String),
|
|
1681
|
+
description: S.optional(S.String),
|
|
1682
|
+
empty: S.optional(S.Boolean),
|
|
1683
|
+
external_tracker: S.optional(ExternalTracker),
|
|
1684
|
+
external_wiki: S.optional(ExternalWiki),
|
|
1685
|
+
fork: S.optional(S.Boolean),
|
|
1686
|
+
forks_count: S.optional(S.Number),
|
|
1687
|
+
full_name: S.String,
|
|
1688
|
+
globally_editable_wiki: S.optional(S.Boolean),
|
|
1689
|
+
has_actions: S.optional(S.Boolean),
|
|
1690
|
+
has_issues: S.optional(S.Boolean),
|
|
1691
|
+
has_packages: S.optional(S.Boolean),
|
|
1692
|
+
has_projects: S.optional(S.Boolean),
|
|
1693
|
+
has_pull_requests: S.optional(S.Boolean),
|
|
1694
|
+
has_releases: S.optional(S.Boolean),
|
|
1695
|
+
has_wiki: S.optional(S.Boolean),
|
|
1696
|
+
has_wiki_contents: S.optional(S.Boolean),
|
|
1697
|
+
html_url: S.String,
|
|
1698
|
+
id: S.Number,
|
|
1699
|
+
ignore_whitespace_conflicts: S.optional(S.Boolean),
|
|
1700
|
+
internal: S.optional(S.Boolean),
|
|
1701
|
+
internal_tracker: S.optional(InternalTracker),
|
|
1702
|
+
language: S.optional(S.String),
|
|
1703
|
+
languages_url: S.optional(S.String),
|
|
1704
|
+
link: S.optional(S.String),
|
|
1705
|
+
mirror: S.optional(S.Boolean),
|
|
1706
|
+
mirror_interval: S.optional(S.String),
|
|
1707
|
+
mirror_updated: S.optional(S.String),
|
|
1708
|
+
name: S.String,
|
|
1709
|
+
object_format_name: S.optional(RepositoryObjectFormatName),
|
|
1710
|
+
open_issues_count: S.optional(S.Number),
|
|
1711
|
+
open_pr_counter: S.optional(S.Number),
|
|
1712
|
+
original_url: S.optional(S.String),
|
|
1713
|
+
owner: User,
|
|
1714
|
+
parent: S.optional(Repository),
|
|
1715
|
+
permissions: S.optional(Permission),
|
|
1716
|
+
private: S.optional(S.Boolean),
|
|
1717
|
+
release_counter: S.optional(S.Number),
|
|
1718
|
+
repo_transfer: S.optional(RepoTransfer),
|
|
1719
|
+
size: S.optional(S.Number),
|
|
1720
|
+
ssh_url: S.String,
|
|
1721
|
+
stars_count: S.optional(S.Number),
|
|
1722
|
+
template: S.optional(S.Boolean),
|
|
1723
|
+
topics: S.optional(RepositoryTopicsList),
|
|
1724
|
+
updated_at: S.String,
|
|
1725
|
+
url: S.optional(S.String),
|
|
1726
|
+
watchers_count: S.optional(S.Number),
|
|
1727
|
+
website: S.optional(S.String),
|
|
1728
|
+
wiki_branch: S.optional(S.String),
|
|
1729
|
+
wiki_clone_url: S.optional(S.String),
|
|
1730
|
+
wiki_ssh_url: S.optional(S.String),
|
|
1731
|
+
}),
|
|
1732
|
+
).annotate({ identifier: "Repository" }) as any as S.Schema<Repository>;
|
|
1733
|
+
|
|
1734
|
+
export type UserCurrentListReposResponseBodyList = Array<Repository>;
|
|
1735
|
+
export const UserCurrentListReposResponseBodyList = /*@__PURE__*/ S.Array(
|
|
1736
|
+
Repository,
|
|
1737
|
+
) as any as S.Schema<UserCurrentListReposResponseBodyList>;
|
|
1738
|
+
|
|
1739
|
+
export type UserCurrentListReposResponse = UserCurrentListReposResponseBodyList;
|
|
1740
|
+
export const UserCurrentListReposResponse = /*@__PURE__*/ S.suspend(() =>
|
|
1741
|
+
UserCurrentListReposResponseBodyList.pipe(T.RawResponseRoot()),
|
|
1742
|
+
).annotate({
|
|
1743
|
+
identifier: "UserCurrentListReposResponse",
|
|
1744
|
+
}) as any as S.Schema<UserCurrentListReposResponse>;
|
|
1745
|
+
|
|
1746
|
+
export interface UserCurrentListStarredRequest {
|
|
1747
|
+
/** page number of results to return (1-based) */
|
|
1748
|
+
page?: number;
|
|
1749
|
+
/** page size of results */
|
|
1750
|
+
limit?: number;
|
|
1751
|
+
}
|
|
1752
|
+
export const UserCurrentListStarredRequest = /*@__PURE__*/ S.suspend(() =>
|
|
1753
|
+
S.Struct({
|
|
1754
|
+
page: S.optional(S.Number.pipe(T.Query())),
|
|
1755
|
+
limit: S.optional(S.Number.pipe(T.Query())),
|
|
1756
|
+
}).pipe(T.Http({ method: "GET", uri: "/user/starred", code: 200 })),
|
|
1757
|
+
).annotate({
|
|
1758
|
+
identifier: "UserCurrentListStarredRequest",
|
|
1759
|
+
}) as any as S.Schema<UserCurrentListStarredRequest>;
|
|
1760
|
+
|
|
1761
|
+
export type UserCurrentListStarredResponseBodyList = Array<Repository>;
|
|
1762
|
+
export const UserCurrentListStarredResponseBodyList = /*@__PURE__*/ S.Array(
|
|
1763
|
+
Repository,
|
|
1764
|
+
) as any as S.Schema<UserCurrentListStarredResponseBodyList>;
|
|
1765
|
+
|
|
1766
|
+
export type UserCurrentListStarredResponse =
|
|
1767
|
+
UserCurrentListStarredResponseBodyList;
|
|
1768
|
+
export const UserCurrentListStarredResponse = /*@__PURE__*/ S.suspend(() =>
|
|
1769
|
+
UserCurrentListStarredResponseBodyList.pipe(T.RawResponseRoot()),
|
|
1770
|
+
).annotate({
|
|
1771
|
+
identifier: "UserCurrentListStarredResponse",
|
|
1772
|
+
}) as any as S.Schema<UserCurrentListStarredResponse>;
|
|
1773
|
+
|
|
1774
|
+
export interface UserCurrentListSubscriptionsRequest {
|
|
1775
|
+
/** page number of results to return (1-based) */
|
|
1776
|
+
page?: number;
|
|
1777
|
+
/** page size of results */
|
|
1778
|
+
limit?: number;
|
|
1779
|
+
}
|
|
1780
|
+
export const UserCurrentListSubscriptionsRequest = /*@__PURE__*/ S.suspend(() =>
|
|
1781
|
+
S.Struct({
|
|
1782
|
+
page: S.optional(S.Number.pipe(T.Query())),
|
|
1783
|
+
limit: S.optional(S.Number.pipe(T.Query())),
|
|
1784
|
+
}).pipe(T.Http({ method: "GET", uri: "/user/subscriptions", code: 200 })),
|
|
1785
|
+
).annotate({
|
|
1786
|
+
identifier: "UserCurrentListSubscriptionsRequest",
|
|
1787
|
+
}) as any as S.Schema<UserCurrentListSubscriptionsRequest>;
|
|
1788
|
+
|
|
1789
|
+
export type UserCurrentListSubscriptionsResponseBodyList = Array<Repository>;
|
|
1790
|
+
export const UserCurrentListSubscriptionsResponseBodyList =
|
|
1791
|
+
/*@__PURE__*/ S.Array(
|
|
1792
|
+
Repository,
|
|
1793
|
+
) as any as S.Schema<UserCurrentListSubscriptionsResponseBodyList>;
|
|
1794
|
+
|
|
1795
|
+
export type UserCurrentListSubscriptionsResponse =
|
|
1796
|
+
UserCurrentListSubscriptionsResponseBodyList;
|
|
1797
|
+
export const UserCurrentListSubscriptionsResponse = /*@__PURE__*/ S.suspend(
|
|
1798
|
+
() => UserCurrentListSubscriptionsResponseBodyList.pipe(T.RawResponseRoot()),
|
|
1799
|
+
).annotate({
|
|
1800
|
+
identifier: "UserCurrentListSubscriptionsResponse",
|
|
1801
|
+
}) as any as S.Schema<UserCurrentListSubscriptionsResponse>;
|
|
1802
|
+
|
|
1803
|
+
export interface UserCurrentPostGPGKeyRequest {
|
|
1804
|
+
/** An armored GPG key to add */
|
|
1805
|
+
armored_public_key: string;
|
|
1806
|
+
armored_signature?: string;
|
|
1807
|
+
}
|
|
1808
|
+
export const UserCurrentPostGPGKeyRequest = /*@__PURE__*/ S.suspend(() =>
|
|
1809
|
+
S.Struct({
|
|
1810
|
+
armored_public_key: S.String,
|
|
1811
|
+
armored_signature: S.optional(S.String),
|
|
1812
|
+
}).pipe(T.Http({ method: "POST", uri: "/user/gpg_keys", code: 200 })),
|
|
1813
|
+
).annotate({
|
|
1814
|
+
identifier: "UserCurrentPostGPGKeyRequest",
|
|
1815
|
+
}) as any as S.Schema<UserCurrentPostGPGKeyRequest>;
|
|
1816
|
+
|
|
1817
|
+
export interface UserCurrentPostKeyRequest {
|
|
1818
|
+
/** An armored SSH key to add */
|
|
1819
|
+
key: string;
|
|
1820
|
+
/** Describe if the key has only read access or read/write */
|
|
1821
|
+
read_only?: boolean;
|
|
1822
|
+
/** Title of the key to add */
|
|
1823
|
+
title: string;
|
|
1824
|
+
}
|
|
1825
|
+
export const UserCurrentPostKeyRequest = /*@__PURE__*/ S.suspend(() =>
|
|
1826
|
+
S.Struct({
|
|
1827
|
+
key: S.String,
|
|
1828
|
+
read_only: S.optional(S.Boolean),
|
|
1829
|
+
title: S.String,
|
|
1830
|
+
}).pipe(T.Http({ method: "POST", uri: "/user/keys", code: 200 })),
|
|
1831
|
+
).annotate({
|
|
1832
|
+
identifier: "UserCurrentPostKeyRequest",
|
|
1833
|
+
}) as any as S.Schema<UserCurrentPostKeyRequest>;
|
|
1834
|
+
|
|
1835
|
+
export interface UserCurrentPutFollowRequest {
|
|
1836
|
+
/** username of user to follow */
|
|
1837
|
+
username: string;
|
|
1838
|
+
}
|
|
1839
|
+
export const UserCurrentPutFollowRequest = /*@__PURE__*/ S.suspend(() =>
|
|
1840
|
+
S.Struct({
|
|
1841
|
+
username: S.String.pipe(T.Label()),
|
|
1842
|
+
}).pipe(
|
|
1843
|
+
T.Http({ method: "PUT", uri: "/user/following/{username}", code: 200 }),
|
|
1844
|
+
),
|
|
1845
|
+
).annotate({
|
|
1846
|
+
identifier: "UserCurrentPutFollowRequest",
|
|
1847
|
+
}) as any as S.Schema<UserCurrentPutFollowRequest>;
|
|
1848
|
+
|
|
1849
|
+
export interface UserCurrentPutFollowResponse {}
|
|
1850
|
+
export const UserCurrentPutFollowResponse = /*@__PURE__*/ S.suspend(() =>
|
|
1851
|
+
S.Struct({}),
|
|
1852
|
+
).annotate({
|
|
1853
|
+
identifier: "UserCurrentPutFollowResponse",
|
|
1854
|
+
}) as any as S.Schema<UserCurrentPutFollowResponse>;
|
|
1855
|
+
|
|
1856
|
+
export interface UserCurrentPutStarRequest {
|
|
1857
|
+
/** owner of the repo to star */
|
|
1858
|
+
owner: string;
|
|
1859
|
+
/** name of the repo to star */
|
|
1860
|
+
repo: string;
|
|
1861
|
+
}
|
|
1862
|
+
export const UserCurrentPutStarRequest = /*@__PURE__*/ S.suspend(() =>
|
|
1863
|
+
S.Struct({
|
|
1864
|
+
owner: S.String.pipe(T.Label()),
|
|
1865
|
+
repo: S.String.pipe(T.Label()),
|
|
1866
|
+
}).pipe(
|
|
1867
|
+
T.Http({ method: "PUT", uri: "/user/starred/{owner}/{repo}", code: 200 }),
|
|
1868
|
+
),
|
|
1869
|
+
).annotate({
|
|
1870
|
+
identifier: "UserCurrentPutStarRequest",
|
|
1871
|
+
}) as any as S.Schema<UserCurrentPutStarRequest>;
|
|
1872
|
+
|
|
1873
|
+
export interface UserCurrentPutStarResponse {}
|
|
1874
|
+
export const UserCurrentPutStarResponse = /*@__PURE__*/ S.suspend(() =>
|
|
1875
|
+
S.Struct({}),
|
|
1876
|
+
).annotate({
|
|
1877
|
+
identifier: "UserCurrentPutStarResponse",
|
|
1878
|
+
}) as any as S.Schema<UserCurrentPutStarResponse>;
|
|
1879
|
+
|
|
1880
|
+
export interface UserCurrentTrackedTimesRequest {
|
|
1881
|
+
/** page number of results to return (1-based) */
|
|
1882
|
+
page?: number;
|
|
1883
|
+
/** page size of results */
|
|
1884
|
+
limit?: number;
|
|
1885
|
+
/** Only show times updated after the given time. This is a timestamp in RFC 3339 format */
|
|
1886
|
+
since?: string;
|
|
1887
|
+
/** Only show times updated before the given time. This is a timestamp in RFC 3339 format */
|
|
1888
|
+
before?: string;
|
|
1889
|
+
}
|
|
1890
|
+
export const UserCurrentTrackedTimesRequest = /*@__PURE__*/ S.suspend(() =>
|
|
1891
|
+
S.Struct({
|
|
1892
|
+
page: S.optional(S.Number.pipe(T.Query())),
|
|
1893
|
+
limit: S.optional(S.Number.pipe(T.Query())),
|
|
1894
|
+
since: S.optional(S.String.pipe(T.Query())),
|
|
1895
|
+
before: S.optional(S.String.pipe(T.Query())),
|
|
1896
|
+
}).pipe(T.Http({ method: "GET", uri: "/user/times", code: 200 })),
|
|
1897
|
+
).annotate({
|
|
1898
|
+
identifier: "UserCurrentTrackedTimesRequest",
|
|
1899
|
+
}) as any as S.Schema<UserCurrentTrackedTimesRequest>;
|
|
1900
|
+
|
|
1901
|
+
export type AttachmentType = "attachment" | "external";
|
|
1902
|
+
export const AttachmentType = /*@__PURE__*/ S.String;
|
|
1903
|
+
|
|
1904
|
+
/** Attachment a generic attachment */
|
|
1905
|
+
export interface Attachment {
|
|
1906
|
+
browser_download_url?: string;
|
|
1907
|
+
created_at?: string;
|
|
1908
|
+
download_count?: number;
|
|
1909
|
+
id?: number;
|
|
1910
|
+
name?: string;
|
|
1911
|
+
size?: number;
|
|
1912
|
+
type?: AttachmentType;
|
|
1913
|
+
uuid?: string;
|
|
1914
|
+
}
|
|
1915
|
+
export const Attachment = /*@__PURE__*/ S.suspend(() =>
|
|
1916
|
+
S.Struct({
|
|
1917
|
+
browser_download_url: S.optional(S.String),
|
|
1918
|
+
created_at: S.optional(S.String),
|
|
1919
|
+
download_count: S.optional(S.Number),
|
|
1920
|
+
id: S.optional(S.Number),
|
|
1921
|
+
name: S.optional(S.String),
|
|
1922
|
+
size: S.optional(S.Number),
|
|
1923
|
+
type: S.optional(AttachmentType),
|
|
1924
|
+
uuid: S.optional(S.String),
|
|
1925
|
+
}),
|
|
1926
|
+
).annotate({ identifier: "Attachment" }) as any as S.Schema<Attachment>;
|
|
1927
|
+
|
|
1928
|
+
export type IssueAssetsList = Array<Attachment>;
|
|
1929
|
+
export const IssueAssetsList = /*@__PURE__*/ S.Array(
|
|
1930
|
+
Attachment,
|
|
1931
|
+
) as any as S.Schema<IssueAssetsList>;
|
|
1932
|
+
|
|
1933
|
+
export type IssueAssigneesList = Array<User>;
|
|
1934
|
+
export const IssueAssigneesList = /*@__PURE__*/ S.Array(
|
|
1935
|
+
User,
|
|
1936
|
+
) as any as S.Schema<IssueAssigneesList>;
|
|
1937
|
+
|
|
1938
|
+
/** Label a label to an issue or a pr */
|
|
1939
|
+
export interface Label {
|
|
1940
|
+
color: string;
|
|
1941
|
+
description?: string;
|
|
1942
|
+
exclusive?: boolean;
|
|
1943
|
+
id: number;
|
|
1944
|
+
is_archived?: boolean;
|
|
1945
|
+
name: string;
|
|
1946
|
+
url?: string;
|
|
1947
|
+
}
|
|
1948
|
+
export const Label = /*@__PURE__*/ S.suspend(() =>
|
|
1949
|
+
S.Struct({
|
|
1950
|
+
color: S.String,
|
|
1951
|
+
description: S.optional(S.String),
|
|
1952
|
+
exclusive: S.optional(S.Boolean),
|
|
1953
|
+
id: S.Number,
|
|
1954
|
+
is_archived: S.optional(S.Boolean),
|
|
1955
|
+
name: S.String,
|
|
1956
|
+
url: S.optional(S.String),
|
|
1957
|
+
}),
|
|
1958
|
+
).annotate({ identifier: "Label" }) as any as S.Schema<Label>;
|
|
1959
|
+
|
|
1960
|
+
export type IssueLabelsList = Array<Label>;
|
|
1961
|
+
export const IssueLabelsList = /*@__PURE__*/ S.Array(
|
|
1962
|
+
Label,
|
|
1963
|
+
) as any as S.Schema<IssueLabelsList>;
|
|
1964
|
+
|
|
1965
|
+
/** Milestone milestone is a collection of issues on one repository */
|
|
1966
|
+
export interface Milestone {
|
|
1967
|
+
closed_at?: string;
|
|
1968
|
+
closed_issues?: number;
|
|
1969
|
+
created_at?: string;
|
|
1970
|
+
description?: string;
|
|
1971
|
+
due_on?: string;
|
|
1972
|
+
id?: number;
|
|
1973
|
+
open_issues?: number;
|
|
1974
|
+
state?: string;
|
|
1975
|
+
title?: string;
|
|
1976
|
+
updated_at?: string;
|
|
1977
|
+
}
|
|
1978
|
+
export const Milestone = /*@__PURE__*/ S.suspend(() =>
|
|
1979
|
+
S.Struct({
|
|
1980
|
+
closed_at: S.optional(S.String),
|
|
1981
|
+
closed_issues: S.optional(S.Number),
|
|
1982
|
+
created_at: S.optional(S.String),
|
|
1983
|
+
description: S.optional(S.String),
|
|
1984
|
+
due_on: S.optional(S.String),
|
|
1985
|
+
id: S.optional(S.Number),
|
|
1986
|
+
open_issues: S.optional(S.Number),
|
|
1987
|
+
state: S.optional(S.String),
|
|
1988
|
+
title: S.optional(S.String),
|
|
1989
|
+
updated_at: S.optional(S.String),
|
|
1990
|
+
}),
|
|
1991
|
+
).annotate({ identifier: "Milestone" }) as any as S.Schema<Milestone>;
|
|
1992
|
+
|
|
1993
|
+
/** PullRequestMeta PR info if an issue is a PR */
|
|
1994
|
+
export interface PullRequestMeta {
|
|
1995
|
+
draft?: boolean;
|
|
1996
|
+
html_url?: string;
|
|
1997
|
+
merged?: boolean;
|
|
1998
|
+
merged_at?: string;
|
|
1999
|
+
}
|
|
2000
|
+
export const PullRequestMeta = /*@__PURE__*/ S.suspend(() =>
|
|
2001
|
+
S.Struct({
|
|
2002
|
+
draft: S.optional(S.Boolean),
|
|
2003
|
+
html_url: S.optional(S.String),
|
|
2004
|
+
merged: S.optional(S.Boolean),
|
|
2005
|
+
merged_at: S.optional(S.String),
|
|
2006
|
+
}),
|
|
2007
|
+
).annotate({
|
|
2008
|
+
identifier: "PullRequestMeta",
|
|
2009
|
+
}) as any as S.Schema<PullRequestMeta>;
|
|
2010
|
+
|
|
2011
|
+
/** Issue represents an issue in a repository */
|
|
2012
|
+
export interface Issue {
|
|
2013
|
+
assets?: IssueAssetsList;
|
|
2014
|
+
assignee?: User;
|
|
2015
|
+
assignees?: IssueAssigneesList;
|
|
2016
|
+
body?: string;
|
|
2017
|
+
closed_at?: string;
|
|
2018
|
+
comments?: number;
|
|
2019
|
+
created_at?: string;
|
|
2020
|
+
due_date?: string;
|
|
2021
|
+
html_url?: string;
|
|
2022
|
+
id?: number;
|
|
2023
|
+
is_locked?: boolean;
|
|
2024
|
+
labels?: IssueLabelsList;
|
|
2025
|
+
milestone?: Milestone;
|
|
2026
|
+
number?: number;
|
|
2027
|
+
original_author?: string;
|
|
2028
|
+
original_author_id?: number;
|
|
2029
|
+
pin_order?: number;
|
|
2030
|
+
pull_request?: PullRequestMeta;
|
|
2031
|
+
ref?: string;
|
|
2032
|
+
repository?: RepositoryMeta;
|
|
2033
|
+
state?: string;
|
|
2034
|
+
title?: string;
|
|
2035
|
+
updated_at?: string;
|
|
2036
|
+
url?: string;
|
|
2037
|
+
user?: User;
|
|
2038
|
+
}
|
|
2039
|
+
export const Issue = /*@__PURE__*/ S.suspend(() =>
|
|
2040
|
+
S.Struct({
|
|
2041
|
+
assets: S.optional(IssueAssetsList),
|
|
2042
|
+
assignee: S.optional(User),
|
|
2043
|
+
assignees: S.optional(IssueAssigneesList),
|
|
2044
|
+
body: S.optional(S.String),
|
|
2045
|
+
closed_at: S.optional(S.String),
|
|
2046
|
+
comments: S.optional(S.Number),
|
|
2047
|
+
created_at: S.optional(S.String),
|
|
2048
|
+
due_date: S.optional(S.String),
|
|
2049
|
+
html_url: S.optional(S.String),
|
|
2050
|
+
id: S.optional(S.Number),
|
|
2051
|
+
is_locked: S.optional(S.Boolean),
|
|
2052
|
+
labels: S.optional(IssueLabelsList),
|
|
2053
|
+
milestone: S.optional(Milestone),
|
|
2054
|
+
number: S.optional(S.Number),
|
|
2055
|
+
original_author: S.optional(S.String),
|
|
2056
|
+
original_author_id: S.optional(S.Number),
|
|
2057
|
+
pin_order: S.optional(S.Number),
|
|
2058
|
+
pull_request: S.optional(PullRequestMeta),
|
|
2059
|
+
ref: S.optional(S.String),
|
|
2060
|
+
repository: S.optional(RepositoryMeta),
|
|
2061
|
+
state: S.optional(S.String),
|
|
2062
|
+
title: S.optional(S.String),
|
|
2063
|
+
updated_at: S.optional(S.String),
|
|
2064
|
+
url: S.optional(S.String),
|
|
2065
|
+
user: S.optional(User),
|
|
2066
|
+
}),
|
|
2067
|
+
).annotate({ identifier: "Issue" }) as any as S.Schema<Issue>;
|
|
2068
|
+
|
|
2069
|
+
/** TrackedTime worked time for an issue / pr */
|
|
2070
|
+
export interface TrackedTime {
|
|
2071
|
+
created?: string;
|
|
2072
|
+
id?: number;
|
|
2073
|
+
issue?: Issue;
|
|
2074
|
+
/** deprecated (only for backwards compatibility) */
|
|
2075
|
+
issue_id?: number;
|
|
2076
|
+
/** Time in seconds */
|
|
2077
|
+
time?: number;
|
|
2078
|
+
/** deprecated (only for backwards compatibility) */
|
|
2079
|
+
user_id?: number;
|
|
2080
|
+
user_name?: string;
|
|
2081
|
+
}
|
|
2082
|
+
export const TrackedTime = /*@__PURE__*/ S.suspend(() =>
|
|
2083
|
+
S.Struct({
|
|
2084
|
+
created: S.optional(S.String),
|
|
2085
|
+
id: S.optional(S.Number),
|
|
2086
|
+
issue: S.optional(Issue),
|
|
2087
|
+
issue_id: S.optional(S.Number),
|
|
2088
|
+
time: S.optional(S.Number),
|
|
2089
|
+
user_id: S.optional(S.Number),
|
|
2090
|
+
user_name: S.optional(S.String),
|
|
2091
|
+
}),
|
|
2092
|
+
).annotate({ identifier: "TrackedTime" }) as any as S.Schema<TrackedTime>;
|
|
2093
|
+
|
|
2094
|
+
export type UserCurrentTrackedTimesResponseBodyList = Array<TrackedTime>;
|
|
2095
|
+
export const UserCurrentTrackedTimesResponseBodyList = /*@__PURE__*/ S.Array(
|
|
2096
|
+
TrackedTime,
|
|
2097
|
+
) as any as S.Schema<UserCurrentTrackedTimesResponseBodyList>;
|
|
2098
|
+
|
|
2099
|
+
export type UserCurrentTrackedTimesResponse =
|
|
2100
|
+
UserCurrentTrackedTimesResponseBodyList;
|
|
2101
|
+
export const UserCurrentTrackedTimesResponse = /*@__PURE__*/ S.suspend(() =>
|
|
2102
|
+
UserCurrentTrackedTimesResponseBodyList.pipe(T.RawResponseRoot()),
|
|
2103
|
+
).annotate({
|
|
2104
|
+
identifier: "UserCurrentTrackedTimesResponse",
|
|
2105
|
+
}) as any as S.Schema<UserCurrentTrackedTimesResponse>;
|
|
2106
|
+
|
|
2107
|
+
export interface UserDeleteAccessTokenRequest {
|
|
2108
|
+
/** username of user */
|
|
2109
|
+
username: string;
|
|
2110
|
+
/** token to be deleted, identified by ID and if not available by name */
|
|
2111
|
+
token: string;
|
|
2112
|
+
}
|
|
2113
|
+
export const UserDeleteAccessTokenRequest = /*@__PURE__*/ S.suspend(() =>
|
|
2114
|
+
S.Struct({
|
|
2115
|
+
username: S.String.pipe(T.Label()),
|
|
2116
|
+
token: S.String.pipe(T.Label()),
|
|
2117
|
+
}).pipe(
|
|
2118
|
+
T.Http({
|
|
2119
|
+
method: "DELETE",
|
|
2120
|
+
uri: "/users/{username}/tokens/{token}",
|
|
2121
|
+
code: 200,
|
|
2122
|
+
}),
|
|
2123
|
+
),
|
|
2124
|
+
).annotate({
|
|
2125
|
+
identifier: "UserDeleteAccessTokenRequest",
|
|
2126
|
+
}) as any as S.Schema<UserDeleteAccessTokenRequest>;
|
|
2127
|
+
|
|
2128
|
+
export interface UserDeleteAccessTokenResponse {}
|
|
2129
|
+
export const UserDeleteAccessTokenResponse = /*@__PURE__*/ S.suspend(() =>
|
|
2130
|
+
S.Struct({}),
|
|
2131
|
+
).annotate({
|
|
2132
|
+
identifier: "UserDeleteAccessTokenResponse",
|
|
2133
|
+
}) as any as S.Schema<UserDeleteAccessTokenResponse>;
|
|
2134
|
+
|
|
2135
|
+
export interface UserDeleteAvatarRequest {}
|
|
2136
|
+
export const UserDeleteAvatarRequest = /*@__PURE__*/ S.suspend(() =>
|
|
2137
|
+
S.Struct({}).pipe(
|
|
2138
|
+
T.Http({ method: "DELETE", uri: "/user/avatar", code: 200 }),
|
|
2139
|
+
),
|
|
2140
|
+
).annotate({
|
|
2141
|
+
identifier: "UserDeleteAvatarRequest",
|
|
2142
|
+
}) as any as S.Schema<UserDeleteAvatarRequest>;
|
|
2143
|
+
|
|
2144
|
+
export interface UserDeleteAvatarResponse {}
|
|
2145
|
+
export const UserDeleteAvatarResponse = /*@__PURE__*/ S.suspend(() =>
|
|
2146
|
+
S.Struct({}),
|
|
2147
|
+
).annotate({
|
|
2148
|
+
identifier: "UserDeleteAvatarResponse",
|
|
2149
|
+
}) as any as S.Schema<UserDeleteAvatarResponse>;
|
|
2150
|
+
|
|
2151
|
+
/** email addresses to delete */
|
|
2152
|
+
export type UserDeleteEmailRequestEmailsList = Array<string>;
|
|
2153
|
+
export const UserDeleteEmailRequestEmailsList = /*@__PURE__*/ S.Array(
|
|
2154
|
+
S.String,
|
|
2155
|
+
) as any as S.Schema<UserDeleteEmailRequestEmailsList>;
|
|
2156
|
+
|
|
2157
|
+
export interface UserDeleteEmailRequest {
|
|
2158
|
+
/** email addresses to delete */
|
|
2159
|
+
emails?: UserDeleteEmailRequestEmailsList;
|
|
2160
|
+
}
|
|
2161
|
+
export const UserDeleteEmailRequest = /*@__PURE__*/ S.suspend(() =>
|
|
2162
|
+
S.Struct({
|
|
2163
|
+
emails: S.optional(UserDeleteEmailRequestEmailsList),
|
|
2164
|
+
}).pipe(T.Http({ method: "DELETE", uri: "/user/emails", code: 200 })),
|
|
2165
|
+
).annotate({
|
|
2166
|
+
identifier: "UserDeleteEmailRequest",
|
|
2167
|
+
}) as any as S.Schema<UserDeleteEmailRequest>;
|
|
2168
|
+
|
|
2169
|
+
export interface UserDeleteEmailResponse {}
|
|
2170
|
+
export const UserDeleteEmailResponse = /*@__PURE__*/ S.suspend(() =>
|
|
2171
|
+
S.Struct({}),
|
|
2172
|
+
).annotate({
|
|
2173
|
+
identifier: "UserDeleteEmailResponse",
|
|
2174
|
+
}) as any as S.Schema<UserDeleteEmailResponse>;
|
|
2175
|
+
|
|
2176
|
+
export interface UserDeleteHookRequest {
|
|
2177
|
+
/** id of the hook to delete */
|
|
2178
|
+
id: number;
|
|
2179
|
+
}
|
|
2180
|
+
export const UserDeleteHookRequest = /*@__PURE__*/ S.suspend(() =>
|
|
2181
|
+
S.Struct({
|
|
2182
|
+
id: S.Number.pipe(T.Label()),
|
|
2183
|
+
}).pipe(T.Http({ method: "DELETE", uri: "/user/hooks/{id}", code: 200 })),
|
|
2184
|
+
).annotate({
|
|
2185
|
+
identifier: "UserDeleteHookRequest",
|
|
2186
|
+
}) as any as S.Schema<UserDeleteHookRequest>;
|
|
2187
|
+
|
|
2188
|
+
export interface UserDeleteHookResponse {}
|
|
2189
|
+
export const UserDeleteHookResponse = /*@__PURE__*/ S.suspend(() =>
|
|
2190
|
+
S.Struct({}),
|
|
2191
|
+
).annotate({
|
|
2192
|
+
identifier: "UserDeleteHookResponse",
|
|
2193
|
+
}) as any as S.Schema<UserDeleteHookResponse>;
|
|
2194
|
+
|
|
2195
|
+
export interface UserDeleteOAuth2ApplicationRequest {
|
|
2196
|
+
/** token to be deleted */
|
|
2197
|
+
id: number;
|
|
2198
|
+
}
|
|
2199
|
+
export const UserDeleteOAuth2ApplicationRequest = /*@__PURE__*/ S.suspend(() =>
|
|
2200
|
+
S.Struct({
|
|
2201
|
+
id: S.Number.pipe(T.Label()),
|
|
2202
|
+
}).pipe(
|
|
2203
|
+
T.Http({
|
|
2204
|
+
method: "DELETE",
|
|
2205
|
+
uri: "/user/applications/oauth2/{id}",
|
|
2206
|
+
code: 200,
|
|
2207
|
+
}),
|
|
2208
|
+
),
|
|
2209
|
+
).annotate({
|
|
2210
|
+
identifier: "UserDeleteOAuth2ApplicationRequest",
|
|
2211
|
+
}) as any as S.Schema<UserDeleteOAuth2ApplicationRequest>;
|
|
2212
|
+
|
|
2213
|
+
export interface UserDeleteOAuth2ApplicationResponse {}
|
|
2214
|
+
export const UserDeleteOAuth2ApplicationResponse = /*@__PURE__*/ S.suspend(() =>
|
|
2215
|
+
S.Struct({}),
|
|
2216
|
+
).annotate({
|
|
2217
|
+
identifier: "UserDeleteOAuth2ApplicationResponse",
|
|
2218
|
+
}) as any as S.Schema<UserDeleteOAuth2ApplicationResponse>;
|
|
2219
|
+
|
|
2220
|
+
export type UserEditHookRequestConfigMap = {
|
|
2221
|
+
[key: string]: string | undefined;
|
|
2222
|
+
};
|
|
2223
|
+
export const UserEditHookRequestConfigMap = /*@__PURE__*/ S.Record(
|
|
2224
|
+
S.String,
|
|
2225
|
+
S.String,
|
|
2226
|
+
) as any as S.Schema<UserEditHookRequestConfigMap>;
|
|
2227
|
+
|
|
2228
|
+
export type UserEditHookRequestEventsList = Array<string>;
|
|
2229
|
+
export const UserEditHookRequestEventsList = /*@__PURE__*/ S.Array(
|
|
2230
|
+
S.String,
|
|
2231
|
+
) as any as S.Schema<UserEditHookRequestEventsList>;
|
|
2232
|
+
|
|
2233
|
+
export interface UserEditHookRequest {
|
|
2234
|
+
/** id of the hook to update */
|
|
2235
|
+
id: number;
|
|
2236
|
+
active?: boolean;
|
|
2237
|
+
authorization_header?: string;
|
|
2238
|
+
branch_filter?: string;
|
|
2239
|
+
config?: UserEditHookRequestConfigMap;
|
|
2240
|
+
events?: UserEditHookRequestEventsList;
|
|
2241
|
+
}
|
|
2242
|
+
export const UserEditHookRequest = /*@__PURE__*/ S.suspend(() =>
|
|
2243
|
+
S.Struct({
|
|
2244
|
+
id: S.Number.pipe(T.Label()),
|
|
2245
|
+
active: S.optional(S.Boolean),
|
|
2246
|
+
authorization_header: S.optional(S.String),
|
|
2247
|
+
branch_filter: S.optional(S.String),
|
|
2248
|
+
config: S.optional(UserEditHookRequestConfigMap),
|
|
2249
|
+
events: S.optional(UserEditHookRequestEventsList),
|
|
2250
|
+
}).pipe(T.Http({ method: "PATCH", uri: "/user/hooks/{id}", code: 200 })),
|
|
2251
|
+
).annotate({
|
|
2252
|
+
identifier: "UserEditHookRequest",
|
|
2253
|
+
}) as any as S.Schema<UserEditHookRequest>;
|
|
2254
|
+
|
|
2255
|
+
export interface UserGetCurrentRequest {}
|
|
2256
|
+
export const UserGetCurrentRequest = /*@__PURE__*/ S.suspend(() =>
|
|
2257
|
+
S.Struct({}).pipe(T.Http({ method: "GET", uri: "/user", code: 200 })),
|
|
2258
|
+
).annotate({
|
|
2259
|
+
identifier: "UserGetCurrentRequest",
|
|
2260
|
+
}) as any as S.Schema<UserGetCurrentRequest>;
|
|
2261
|
+
|
|
2262
|
+
export interface UserGetHeatmapDataRequest {
|
|
2263
|
+
/** username of user to get */
|
|
2264
|
+
username: string;
|
|
2265
|
+
}
|
|
2266
|
+
export const UserGetHeatmapDataRequest = /*@__PURE__*/ S.suspend(() =>
|
|
2267
|
+
S.Struct({
|
|
2268
|
+
username: S.String.pipe(T.Label()),
|
|
2269
|
+
}).pipe(
|
|
2270
|
+
T.Http({ method: "GET", uri: "/users/{username}/heatmap", code: 200 }),
|
|
2271
|
+
),
|
|
2272
|
+
).annotate({
|
|
2273
|
+
identifier: "UserGetHeatmapDataRequest",
|
|
2274
|
+
}) as any as S.Schema<UserGetHeatmapDataRequest>;
|
|
2275
|
+
|
|
2276
|
+
/** UserHeatmapData represents the data needed to create a heatmap */
|
|
2277
|
+
export interface UserHeatmapData {
|
|
2278
|
+
contributions?: number;
|
|
2279
|
+
timestamp?: number;
|
|
2280
|
+
}
|
|
2281
|
+
export const UserHeatmapData = /*@__PURE__*/ S.suspend(() =>
|
|
2282
|
+
S.Struct({
|
|
2283
|
+
contributions: S.optional(S.Number),
|
|
2284
|
+
timestamp: S.optional(S.Number),
|
|
2285
|
+
}),
|
|
2286
|
+
).annotate({
|
|
2287
|
+
identifier: "UserHeatmapData",
|
|
2288
|
+
}) as any as S.Schema<UserHeatmapData>;
|
|
2289
|
+
|
|
2290
|
+
export type UserGetHeatmapDataResponseBodyList = Array<UserHeatmapData>;
|
|
2291
|
+
export const UserGetHeatmapDataResponseBodyList = /*@__PURE__*/ S.Array(
|
|
2292
|
+
UserHeatmapData,
|
|
2293
|
+
) as any as S.Schema<UserGetHeatmapDataResponseBodyList>;
|
|
2294
|
+
|
|
2295
|
+
export type UserGetHeatmapDataResponse = UserGetHeatmapDataResponseBodyList;
|
|
2296
|
+
export const UserGetHeatmapDataResponse = /*@__PURE__*/ S.suspend(() =>
|
|
2297
|
+
UserGetHeatmapDataResponseBodyList.pipe(T.RawResponseRoot()),
|
|
2298
|
+
).annotate({
|
|
2299
|
+
identifier: "UserGetHeatmapDataResponse",
|
|
2300
|
+
}) as any as S.Schema<UserGetHeatmapDataResponse>;
|
|
2301
|
+
|
|
2302
|
+
export interface UserGetHookRequest {
|
|
2303
|
+
/** id of the hook to get */
|
|
2304
|
+
id: number;
|
|
2305
|
+
}
|
|
2306
|
+
export const UserGetHookRequest = /*@__PURE__*/ S.suspend(() =>
|
|
2307
|
+
S.Struct({
|
|
2308
|
+
id: S.Number.pipe(T.Label()),
|
|
2309
|
+
}).pipe(T.Http({ method: "GET", uri: "/user/hooks/{id}", code: 200 })),
|
|
2310
|
+
).annotate({
|
|
2311
|
+
identifier: "UserGetHookRequest",
|
|
2312
|
+
}) as any as S.Schema<UserGetHookRequest>;
|
|
2313
|
+
|
|
2314
|
+
export interface UserGetOAuth2ApplicationRequest {
|
|
2315
|
+
/** Application ID to be found */
|
|
2316
|
+
id: number;
|
|
2317
|
+
}
|
|
2318
|
+
export const UserGetOAuth2ApplicationRequest = /*@__PURE__*/ S.suspend(() =>
|
|
2319
|
+
S.Struct({
|
|
2320
|
+
id: S.Number.pipe(T.Label()),
|
|
2321
|
+
}).pipe(
|
|
2322
|
+
T.Http({ method: "GET", uri: "/user/applications/oauth2/{id}", code: 200 }),
|
|
2323
|
+
),
|
|
2324
|
+
).annotate({
|
|
2325
|
+
identifier: "UserGetOAuth2ApplicationRequest",
|
|
2326
|
+
}) as any as S.Schema<UserGetOAuth2ApplicationRequest>;
|
|
2327
|
+
|
|
2328
|
+
export interface UserGetOAuth2ApplicationsRequest {
|
|
2329
|
+
/** page number of results to return (1-based) */
|
|
2330
|
+
page?: number;
|
|
2331
|
+
/** page size of results */
|
|
2332
|
+
limit?: number;
|
|
2333
|
+
}
|
|
2334
|
+
export const UserGetOAuth2ApplicationsRequest = /*@__PURE__*/ S.suspend(() =>
|
|
2335
|
+
S.Struct({
|
|
2336
|
+
page: S.optional(S.Number.pipe(T.Query())),
|
|
2337
|
+
limit: S.optional(S.Number.pipe(T.Query())),
|
|
2338
|
+
}).pipe(
|
|
2339
|
+
T.Http({ method: "GET", uri: "/user/applications/oauth2", code: 200 }),
|
|
2340
|
+
),
|
|
2341
|
+
).annotate({
|
|
2342
|
+
identifier: "UserGetOAuth2ApplicationsRequest",
|
|
2343
|
+
}) as any as S.Schema<UserGetOAuth2ApplicationsRequest>;
|
|
2344
|
+
|
|
2345
|
+
export type UserGetOAuth2ApplicationsResponseBodyList =
|
|
2346
|
+
Array<OAuth2Application>;
|
|
2347
|
+
export const UserGetOAuth2ApplicationsResponseBodyList = /*@__PURE__*/ S.Array(
|
|
2348
|
+
OAuth2Application,
|
|
2349
|
+
) as any as S.Schema<UserGetOAuth2ApplicationsResponseBodyList>;
|
|
2350
|
+
|
|
2351
|
+
export type UserGetOAuth2ApplicationsResponse =
|
|
2352
|
+
UserGetOAuth2ApplicationsResponseBodyList;
|
|
2353
|
+
export const UserGetOAuth2ApplicationsResponse = /*@__PURE__*/ S.suspend(() =>
|
|
2354
|
+
UserGetOAuth2ApplicationsResponseBodyList.pipe(T.RawResponseRoot()),
|
|
2355
|
+
).annotate({
|
|
2356
|
+
identifier: "UserGetOAuth2ApplicationsResponse",
|
|
2357
|
+
}) as any as S.Schema<UserGetOAuth2ApplicationsResponse>;
|
|
2358
|
+
|
|
2359
|
+
export interface UserGetQuotaRequest {}
|
|
2360
|
+
export const UserGetQuotaRequest = /*@__PURE__*/ S.suspend(() =>
|
|
2361
|
+
S.Struct({}).pipe(T.Http({ method: "GET", uri: "/user/quota", code: 200 })),
|
|
2362
|
+
).annotate({
|
|
2363
|
+
identifier: "UserGetQuotaRequest",
|
|
2364
|
+
}) as any as S.Schema<UserGetQuotaRequest>;
|
|
2365
|
+
|
|
2366
|
+
/** Subjects the rule affects */
|
|
2367
|
+
export type QuotaRuleInfoSubjectsList = Array<string>;
|
|
2368
|
+
export const QuotaRuleInfoSubjectsList = /*@__PURE__*/ S.Array(
|
|
2369
|
+
S.String,
|
|
2370
|
+
) as any as S.Schema<QuotaRuleInfoSubjectsList>;
|
|
2371
|
+
|
|
2372
|
+
/** QuotaRuleInfo contains information about a quota rule */
|
|
2373
|
+
export interface QuotaRuleInfo {
|
|
2374
|
+
/** The limit set by the rule */
|
|
2375
|
+
limit?: number;
|
|
2376
|
+
/** Name of the rule (only shown to admins) */
|
|
2377
|
+
name?: string;
|
|
2378
|
+
/** Subjects the rule affects */
|
|
2379
|
+
subjects?: QuotaRuleInfoSubjectsList;
|
|
2380
|
+
}
|
|
2381
|
+
export const QuotaRuleInfo = /*@__PURE__*/ S.suspend(() =>
|
|
2382
|
+
S.Struct({
|
|
2383
|
+
limit: S.optional(S.Number),
|
|
2384
|
+
name: S.optional(S.String),
|
|
2385
|
+
subjects: S.optional(QuotaRuleInfoSubjectsList),
|
|
2386
|
+
}),
|
|
2387
|
+
).annotate({ identifier: "QuotaRuleInfo" }) as any as S.Schema<QuotaRuleInfo>;
|
|
2388
|
+
|
|
2389
|
+
/** Rules associated with the group */
|
|
2390
|
+
export type QuotaGroupRulesList = Array<QuotaRuleInfo>;
|
|
2391
|
+
export const QuotaGroupRulesList = /*@__PURE__*/ S.Array(
|
|
2392
|
+
QuotaRuleInfo,
|
|
2393
|
+
) as any as S.Schema<QuotaGroupRulesList>;
|
|
2394
|
+
|
|
2395
|
+
/** QuotaGroup represents a quota group */
|
|
2396
|
+
export interface QuotaGroup {
|
|
2397
|
+
/** Name of the group */
|
|
2398
|
+
name?: string;
|
|
2399
|
+
/** Rules associated with the group */
|
|
2400
|
+
rules?: QuotaGroupRulesList;
|
|
2401
|
+
}
|
|
2402
|
+
export const QuotaGroup = /*@__PURE__*/ S.suspend(() =>
|
|
2403
|
+
S.Struct({
|
|
2404
|
+
name: S.optional(S.String),
|
|
2405
|
+
rules: S.optional(QuotaGroupRulesList),
|
|
2406
|
+
}),
|
|
2407
|
+
).annotate({ identifier: "QuotaGroup" }) as any as S.Schema<QuotaGroup>;
|
|
2408
|
+
|
|
2409
|
+
/** QuotaGroupList represents a list of quota groups */
|
|
2410
|
+
export type QuotaGroupList = Array<QuotaGroup>;
|
|
2411
|
+
export const QuotaGroupList = /*@__PURE__*/ S.Array(
|
|
2412
|
+
QuotaGroup,
|
|
2413
|
+
) as any as S.Schema<QuotaGroupList>;
|
|
2414
|
+
|
|
2415
|
+
/** QuotaUsedSizeAssetsAttachments represents the size-based attachment quota usage of a user */
|
|
2416
|
+
export interface QuotaUsedSizeAssetsAttachments {
|
|
2417
|
+
/** Storage size used for the user's issue & comment attachments */
|
|
2418
|
+
issues?: number;
|
|
2419
|
+
/** Storage size used for the user's release attachments */
|
|
2420
|
+
releases?: number;
|
|
2421
|
+
}
|
|
2422
|
+
export const QuotaUsedSizeAssetsAttachments = /*@__PURE__*/ S.suspend(() =>
|
|
2423
|
+
S.Struct({
|
|
2424
|
+
issues: S.optional(S.Number),
|
|
2425
|
+
releases: S.optional(S.Number),
|
|
2426
|
+
}),
|
|
2427
|
+
).annotate({
|
|
2428
|
+
identifier: "QuotaUsedSizeAssetsAttachments",
|
|
2429
|
+
}) as any as S.Schema<QuotaUsedSizeAssetsAttachments>;
|
|
2430
|
+
|
|
2431
|
+
/** QuotaUsedSizeAssetsPackages represents the size-based package quota usage of a user */
|
|
2432
|
+
export interface QuotaUsedSizeAssetsPackages {
|
|
2433
|
+
/** Storage suze used for the user's packages */
|
|
2434
|
+
all?: number;
|
|
2435
|
+
}
|
|
2436
|
+
export const QuotaUsedSizeAssetsPackages = /*@__PURE__*/ S.suspend(() =>
|
|
2437
|
+
S.Struct({
|
|
2438
|
+
all: S.optional(S.Number),
|
|
2439
|
+
}),
|
|
2440
|
+
).annotate({
|
|
2441
|
+
identifier: "QuotaUsedSizeAssetsPackages",
|
|
2442
|
+
}) as any as S.Schema<QuotaUsedSizeAssetsPackages>;
|
|
2443
|
+
|
|
2444
|
+
/** QuotaUsedSizeAssets represents the size-based asset usage of a user */
|
|
2445
|
+
export interface QuotaUsedSizeAssets {
|
|
2446
|
+
/** Storage size used for the user's artifacts */
|
|
2447
|
+
artifacts?: number;
|
|
2448
|
+
attachments?: QuotaUsedSizeAssetsAttachments;
|
|
2449
|
+
packages?: QuotaUsedSizeAssetsPackages;
|
|
2450
|
+
}
|
|
2451
|
+
export const QuotaUsedSizeAssets = /*@__PURE__*/ S.suspend(() =>
|
|
2452
|
+
S.Struct({
|
|
2453
|
+
artifacts: S.optional(S.Number),
|
|
2454
|
+
attachments: S.optional(QuotaUsedSizeAssetsAttachments),
|
|
2455
|
+
packages: S.optional(QuotaUsedSizeAssetsPackages),
|
|
2456
|
+
}),
|
|
2457
|
+
).annotate({
|
|
2458
|
+
identifier: "QuotaUsedSizeAssets",
|
|
2459
|
+
}) as any as S.Schema<QuotaUsedSizeAssets>;
|
|
2460
|
+
|
|
2461
|
+
/** QuotaUsedSizeGit represents the size-based git (lfs) quota usage of a user */
|
|
2462
|
+
export interface QuotaUsedSizeGit {
|
|
2463
|
+
/** Storage size of the user's Git LFS objects */
|
|
2464
|
+
LFS?: number;
|
|
2465
|
+
}
|
|
2466
|
+
export const QuotaUsedSizeGit = /*@__PURE__*/ S.suspend(() =>
|
|
2467
|
+
S.Struct({
|
|
2468
|
+
LFS: S.optional(S.Number),
|
|
2469
|
+
}),
|
|
2470
|
+
).annotate({
|
|
2471
|
+
identifier: "QuotaUsedSizeGit",
|
|
2472
|
+
}) as any as S.Schema<QuotaUsedSizeGit>;
|
|
2473
|
+
|
|
2474
|
+
/** QuotaUsedSizeRepos represents the size-based repository quota usage of a user */
|
|
2475
|
+
export interface QuotaUsedSizeRepos {
|
|
2476
|
+
/** Storage size of the user's private repositories */
|
|
2477
|
+
private?: number;
|
|
2478
|
+
/** Storage size of the user's public repositories */
|
|
2479
|
+
public?: number;
|
|
2480
|
+
}
|
|
2481
|
+
export const QuotaUsedSizeRepos = /*@__PURE__*/ S.suspend(() =>
|
|
2482
|
+
S.Struct({
|
|
2483
|
+
private: S.optional(S.Number),
|
|
2484
|
+
public: S.optional(S.Number),
|
|
2485
|
+
}),
|
|
2486
|
+
).annotate({
|
|
2487
|
+
identifier: "QuotaUsedSizeRepos",
|
|
2488
|
+
}) as any as S.Schema<QuotaUsedSizeRepos>;
|
|
2489
|
+
|
|
2490
|
+
/** QuotaUsedSize represents the size-based quota usage of a user */
|
|
2491
|
+
export interface QuotaUsedSize {
|
|
2492
|
+
assets?: QuotaUsedSizeAssets;
|
|
2493
|
+
git?: QuotaUsedSizeGit;
|
|
2494
|
+
repos?: QuotaUsedSizeRepos;
|
|
2495
|
+
}
|
|
2496
|
+
export const QuotaUsedSize = /*@__PURE__*/ S.suspend(() =>
|
|
2497
|
+
S.Struct({
|
|
2498
|
+
assets: S.optional(QuotaUsedSizeAssets),
|
|
2499
|
+
git: S.optional(QuotaUsedSizeGit),
|
|
2500
|
+
repos: S.optional(QuotaUsedSizeRepos),
|
|
2501
|
+
}),
|
|
2502
|
+
).annotate({ identifier: "QuotaUsedSize" }) as any as S.Schema<QuotaUsedSize>;
|
|
2503
|
+
|
|
2504
|
+
/** QuotaUsed represents the quota usage of a user */
|
|
2505
|
+
export interface QuotaUsed {
|
|
2506
|
+
size?: QuotaUsedSize;
|
|
2507
|
+
}
|
|
2508
|
+
export const QuotaUsed = /*@__PURE__*/ S.suspend(() =>
|
|
2509
|
+
S.Struct({
|
|
2510
|
+
size: S.optional(QuotaUsedSize),
|
|
2511
|
+
}),
|
|
2512
|
+
).annotate({ identifier: "QuotaUsed" }) as any as S.Schema<QuotaUsed>;
|
|
2513
|
+
|
|
2514
|
+
/** QuotaInfo represents information about a user's quota */
|
|
2515
|
+
export interface QuotaInfo {
|
|
2516
|
+
groups?: QuotaGroupList;
|
|
2517
|
+
used?: QuotaUsed;
|
|
2518
|
+
}
|
|
2519
|
+
export const QuotaInfo = /*@__PURE__*/ S.suspend(() =>
|
|
2520
|
+
S.Struct({
|
|
2521
|
+
groups: S.optional(QuotaGroupList),
|
|
2522
|
+
used: S.optional(QuotaUsed),
|
|
2523
|
+
}),
|
|
2524
|
+
).annotate({ identifier: "QuotaInfo" }) as any as S.Schema<QuotaInfo>;
|
|
2525
|
+
|
|
2526
|
+
export interface UserGetStopWatchesRequest {
|
|
2527
|
+
/** page number of results to return (1-based) */
|
|
2528
|
+
page?: number;
|
|
2529
|
+
/** page size of results */
|
|
2530
|
+
limit?: number;
|
|
2531
|
+
}
|
|
2532
|
+
export const UserGetStopWatchesRequest = /*@__PURE__*/ S.suspend(() =>
|
|
2533
|
+
S.Struct({
|
|
2534
|
+
page: S.optional(S.Number.pipe(T.Query())),
|
|
2535
|
+
limit: S.optional(S.Number.pipe(T.Query())),
|
|
2536
|
+
}).pipe(T.Http({ method: "GET", uri: "/user/stopwatches", code: 200 })),
|
|
2537
|
+
).annotate({
|
|
2538
|
+
identifier: "UserGetStopWatchesRequest",
|
|
2539
|
+
}) as any as S.Schema<UserGetStopWatchesRequest>;
|
|
2540
|
+
|
|
2541
|
+
/** StopWatch represent a running stopwatch */
|
|
2542
|
+
export interface StopWatch {
|
|
2543
|
+
created?: string;
|
|
2544
|
+
duration?: string;
|
|
2545
|
+
issue_index?: number;
|
|
2546
|
+
issue_title?: string;
|
|
2547
|
+
repo_name?: string;
|
|
2548
|
+
repo_owner_name?: string;
|
|
2549
|
+
seconds?: number;
|
|
2550
|
+
}
|
|
2551
|
+
export const StopWatch = /*@__PURE__*/ S.suspend(() =>
|
|
2552
|
+
S.Struct({
|
|
2553
|
+
created: S.optional(S.String),
|
|
2554
|
+
duration: S.optional(S.String),
|
|
2555
|
+
issue_index: S.optional(S.Number),
|
|
2556
|
+
issue_title: S.optional(S.String),
|
|
2557
|
+
repo_name: S.optional(S.String),
|
|
2558
|
+
repo_owner_name: S.optional(S.String),
|
|
2559
|
+
seconds: S.optional(S.Number),
|
|
2560
|
+
}),
|
|
2561
|
+
).annotate({ identifier: "StopWatch" }) as any as S.Schema<StopWatch>;
|
|
2562
|
+
|
|
2563
|
+
export type UserGetStopWatchesResponseBodyList = Array<StopWatch>;
|
|
2564
|
+
export const UserGetStopWatchesResponseBodyList = /*@__PURE__*/ S.Array(
|
|
2565
|
+
StopWatch,
|
|
2566
|
+
) as any as S.Schema<UserGetStopWatchesResponseBodyList>;
|
|
2567
|
+
|
|
2568
|
+
export type UserGetStopWatchesResponse = UserGetStopWatchesResponseBodyList;
|
|
2569
|
+
export const UserGetStopWatchesResponse = /*@__PURE__*/ S.suspend(() =>
|
|
2570
|
+
UserGetStopWatchesResponseBodyList.pipe(T.RawResponseRoot()),
|
|
2571
|
+
).annotate({
|
|
2572
|
+
identifier: "UserGetStopWatchesResponse",
|
|
2573
|
+
}) as any as S.Schema<UserGetStopWatchesResponse>;
|
|
2574
|
+
|
|
2575
|
+
export interface UserGetTokensRequest {
|
|
2576
|
+
/** username of user */
|
|
2577
|
+
username: string;
|
|
2578
|
+
/** page number of results to return (1-based) */
|
|
2579
|
+
page?: number;
|
|
2580
|
+
/** page size of results */
|
|
2581
|
+
limit?: number;
|
|
2582
|
+
}
|
|
2583
|
+
export const UserGetTokensRequest = /*@__PURE__*/ S.suspend(() =>
|
|
2584
|
+
S.Struct({
|
|
2585
|
+
username: S.String.pipe(T.Label()),
|
|
2586
|
+
page: S.optional(S.Number.pipe(T.Query())),
|
|
2587
|
+
limit: S.optional(S.Number.pipe(T.Query())),
|
|
2588
|
+
}).pipe(
|
|
2589
|
+
T.Http({ method: "GET", uri: "/users/{username}/tokens", code: 200 }),
|
|
2590
|
+
),
|
|
2591
|
+
).annotate({
|
|
2592
|
+
identifier: "UserGetTokensRequest",
|
|
2593
|
+
}) as any as S.Schema<UserGetTokensRequest>;
|
|
2594
|
+
|
|
2595
|
+
export type UserGetTokensResponseBodyList = Array<AccessToken>;
|
|
2596
|
+
export const UserGetTokensResponseBodyList = /*@__PURE__*/ S.Array(
|
|
2597
|
+
AccessToken,
|
|
2598
|
+
) as any as S.Schema<UserGetTokensResponseBodyList>;
|
|
2599
|
+
|
|
2600
|
+
export type UserGetTokensResponse = UserGetTokensResponseBodyList;
|
|
2601
|
+
export const UserGetTokensResponse = /*@__PURE__*/ S.suspend(() =>
|
|
2602
|
+
UserGetTokensResponseBodyList.pipe(T.RawResponseRoot()),
|
|
2603
|
+
).annotate({
|
|
2604
|
+
identifier: "UserGetTokensResponse",
|
|
2605
|
+
}) as any as S.Schema<UserGetTokensResponse>;
|
|
2606
|
+
|
|
2607
|
+
export interface UserListActivityFeedsRequest {
|
|
2608
|
+
/** username of user */
|
|
2609
|
+
username: string;
|
|
2610
|
+
/** if true, only show actions performed by the requested user */
|
|
2611
|
+
only_performed_by?: boolean;
|
|
2612
|
+
/** the date of the activities to be found */
|
|
2613
|
+
date?: string;
|
|
2614
|
+
/** page number of results to return (1-based) */
|
|
2615
|
+
page?: number;
|
|
2616
|
+
/** page size of results */
|
|
2617
|
+
limit?: number;
|
|
2618
|
+
}
|
|
2619
|
+
export const UserListActivityFeedsRequest = /*@__PURE__*/ S.suspend(() =>
|
|
2620
|
+
S.Struct({
|
|
2621
|
+
username: S.String.pipe(T.Label()),
|
|
2622
|
+
only_performed_by: S.optional(S.Boolean.pipe(T.Query("only-performed-by"))),
|
|
2623
|
+
date: S.optional(S.String.pipe(T.Query())),
|
|
2624
|
+
page: S.optional(S.Number.pipe(T.Query())),
|
|
2625
|
+
limit: S.optional(S.Number.pipe(T.Query())),
|
|
2626
|
+
}).pipe(
|
|
2627
|
+
T.Http({
|
|
2628
|
+
method: "GET",
|
|
2629
|
+
uri: "/users/{username}/activities/feeds",
|
|
2630
|
+
code: 200,
|
|
2631
|
+
}),
|
|
2632
|
+
),
|
|
2633
|
+
).annotate({
|
|
2634
|
+
identifier: "UserListActivityFeedsRequest",
|
|
2635
|
+
}) as any as S.Schema<UserListActivityFeedsRequest>;
|
|
2636
|
+
|
|
2637
|
+
/** The attachments to the comment */
|
|
2638
|
+
export type CommentAssetsList = Array<Attachment>;
|
|
2639
|
+
export const CommentAssetsList = /*@__PURE__*/ S.Array(
|
|
2640
|
+
Attachment,
|
|
2641
|
+
) as any as S.Schema<CommentAssetsList>;
|
|
2642
|
+
|
|
2643
|
+
/** Comment represents a comment on a commit or issue */
|
|
2644
|
+
export interface Comment {
|
|
2645
|
+
/** The attachments to the comment */
|
|
2646
|
+
assets?: CommentAssetsList;
|
|
2647
|
+
/** The body of the comment */
|
|
2648
|
+
body?: string;
|
|
2649
|
+
/** The time of the comment's creation */
|
|
2650
|
+
created_at?: string;
|
|
2651
|
+
/** The HTML URL of the comment */
|
|
2652
|
+
html_url?: string;
|
|
2653
|
+
/** The identifier of the comment */
|
|
2654
|
+
id?: number;
|
|
2655
|
+
/** The HTML URL of the issue if the comment is posted on an issue, else empty string */
|
|
2656
|
+
issue_url?: string;
|
|
2657
|
+
/** The original author that posted the comment if it was not posted locally, else empty string */
|
|
2658
|
+
original_author?: string;
|
|
2659
|
+
/** The ID of the original author that posted the comment if it was not posted locally, else 0 */
|
|
2660
|
+
original_author_id?: number;
|
|
2661
|
+
/** The HTML URL of the pull request if the comment is posted on a pull request, else empty string */
|
|
2662
|
+
pull_request_url?: string;
|
|
2663
|
+
/** The time of the comment's update */
|
|
2664
|
+
updated_at?: string;
|
|
2665
|
+
user?: User;
|
|
2666
|
+
}
|
|
2667
|
+
export const Comment = /*@__PURE__*/ S.suspend(() =>
|
|
2668
|
+
S.Struct({
|
|
2669
|
+
assets: S.optional(CommentAssetsList),
|
|
2670
|
+
body: S.optional(S.String),
|
|
2671
|
+
created_at: S.optional(S.String),
|
|
2672
|
+
html_url: S.optional(S.String),
|
|
2673
|
+
id: S.optional(S.Number),
|
|
2674
|
+
issue_url: S.optional(S.String),
|
|
2675
|
+
original_author: S.optional(S.String),
|
|
2676
|
+
original_author_id: S.optional(S.Number),
|
|
2677
|
+
pull_request_url: S.optional(S.String),
|
|
2678
|
+
updated_at: S.optional(S.String),
|
|
2679
|
+
user: S.optional(User),
|
|
2680
|
+
}),
|
|
2681
|
+
).annotate({ identifier: "Comment" }) as any as S.Schema<Comment>;
|
|
2682
|
+
|
|
2683
|
+
/** the type of action */
|
|
2684
|
+
export type ActivityOpType =
|
|
2685
|
+
| "create_repo"
|
|
2686
|
+
| "rename_repo"
|
|
2687
|
+
| "star_repo"
|
|
2688
|
+
| "watch_repo"
|
|
2689
|
+
| "commit_repo"
|
|
2690
|
+
| "create_issue"
|
|
2691
|
+
| "create_pull_request"
|
|
2692
|
+
| "transfer_repo"
|
|
2693
|
+
| "push_tag"
|
|
2694
|
+
| "comment_issue"
|
|
2695
|
+
| "merge_pull_request"
|
|
2696
|
+
| "close_issue"
|
|
2697
|
+
| "reopen_issue"
|
|
2698
|
+
| "close_pull_request"
|
|
2699
|
+
| "reopen_pull_request"
|
|
2700
|
+
| "delete_tag"
|
|
2701
|
+
| "delete_branch"
|
|
2702
|
+
| "mirror_sync_push"
|
|
2703
|
+
| "mirror_sync_create"
|
|
2704
|
+
| "mirror_sync_delete"
|
|
2705
|
+
| "approve_pull_request"
|
|
2706
|
+
| "reject_pull_request"
|
|
2707
|
+
| "comment_pull"
|
|
2708
|
+
| "publish_release"
|
|
2709
|
+
| "pull_review_dismissed"
|
|
2710
|
+
| "pull_request_ready_for_review"
|
|
2711
|
+
| "auto_merge_pull_request";
|
|
2712
|
+
export const ActivityOpType = /*@__PURE__*/ S.String;
|
|
2713
|
+
|
|
2714
|
+
export interface Activity {
|
|
2715
|
+
act_user?: User;
|
|
2716
|
+
act_user_id?: number;
|
|
2717
|
+
comment?: Comment;
|
|
2718
|
+
comment_id?: number;
|
|
2719
|
+
content?: string;
|
|
2720
|
+
created?: string;
|
|
2721
|
+
id?: number;
|
|
2722
|
+
is_private?: boolean;
|
|
2723
|
+
/** the type of action */
|
|
2724
|
+
op_type?: ActivityOpType;
|
|
2725
|
+
ref_name?: string;
|
|
2726
|
+
repo?: Repository;
|
|
2727
|
+
repo_id?: number;
|
|
2728
|
+
user_id?: number;
|
|
2729
|
+
}
|
|
2730
|
+
export const Activity = /*@__PURE__*/ S.suspend(() =>
|
|
2731
|
+
S.Struct({
|
|
2732
|
+
act_user: S.optional(User),
|
|
2733
|
+
act_user_id: S.optional(S.Number),
|
|
2734
|
+
comment: S.optional(Comment),
|
|
2735
|
+
comment_id: S.optional(S.Number),
|
|
2736
|
+
content: S.optional(S.String),
|
|
2737
|
+
created: S.optional(S.String),
|
|
2738
|
+
id: S.optional(S.Number),
|
|
2739
|
+
is_private: S.optional(S.Boolean),
|
|
2740
|
+
op_type: S.optional(ActivityOpType),
|
|
2741
|
+
ref_name: S.optional(S.String),
|
|
2742
|
+
repo: S.optional(Repository),
|
|
2743
|
+
repo_id: S.optional(S.Number),
|
|
2744
|
+
user_id: S.optional(S.Number),
|
|
2745
|
+
}),
|
|
2746
|
+
).annotate({ identifier: "Activity" }) as any as S.Schema<Activity>;
|
|
2747
|
+
|
|
2748
|
+
export type UserListActivityFeedsResponseBodyList = Array<Activity>;
|
|
2749
|
+
export const UserListActivityFeedsResponseBodyList = /*@__PURE__*/ S.Array(
|
|
2750
|
+
Activity,
|
|
2751
|
+
) as any as S.Schema<UserListActivityFeedsResponseBodyList>;
|
|
2752
|
+
|
|
2753
|
+
export type UserListActivityFeedsResponse =
|
|
2754
|
+
UserListActivityFeedsResponseBodyList;
|
|
2755
|
+
export const UserListActivityFeedsResponse = /*@__PURE__*/ S.suspend(() =>
|
|
2756
|
+
UserListActivityFeedsResponseBodyList.pipe(T.RawResponseRoot()),
|
|
2757
|
+
).annotate({
|
|
2758
|
+
identifier: "UserListActivityFeedsResponse",
|
|
2759
|
+
}) as any as S.Schema<UserListActivityFeedsResponse>;
|
|
2760
|
+
|
|
2761
|
+
export interface UserListBlockedUsersRequest {
|
|
2762
|
+
/** page number of results to return (1-based) */
|
|
2763
|
+
page?: number;
|
|
2764
|
+
/** page size of results */
|
|
2765
|
+
limit?: number;
|
|
2766
|
+
}
|
|
2767
|
+
export const UserListBlockedUsersRequest = /*@__PURE__*/ S.suspend(() =>
|
|
2768
|
+
S.Struct({
|
|
2769
|
+
page: S.optional(S.Number.pipe(T.Query())),
|
|
2770
|
+
limit: S.optional(S.Number.pipe(T.Query())),
|
|
2771
|
+
}).pipe(T.Http({ method: "GET", uri: "/user/list_blocked", code: 200 })),
|
|
2772
|
+
).annotate({
|
|
2773
|
+
identifier: "UserListBlockedUsersRequest",
|
|
2774
|
+
}) as any as S.Schema<UserListBlockedUsersRequest>;
|
|
2775
|
+
|
|
2776
|
+
export interface BlockedUser {
|
|
2777
|
+
block_id?: number;
|
|
2778
|
+
created_at?: string;
|
|
2779
|
+
}
|
|
2780
|
+
export const BlockedUser = /*@__PURE__*/ S.suspend(() =>
|
|
2781
|
+
S.Struct({
|
|
2782
|
+
block_id: S.optional(S.Number),
|
|
2783
|
+
created_at: S.optional(S.String),
|
|
2784
|
+
}),
|
|
2785
|
+
).annotate({ identifier: "BlockedUser" }) as any as S.Schema<BlockedUser>;
|
|
2786
|
+
|
|
2787
|
+
export type UserListBlockedUsersResponseBodyList = Array<BlockedUser>;
|
|
2788
|
+
export const UserListBlockedUsersResponseBodyList = /*@__PURE__*/ S.Array(
|
|
2789
|
+
BlockedUser,
|
|
2790
|
+
) as any as S.Schema<UserListBlockedUsersResponseBodyList>;
|
|
2791
|
+
|
|
2792
|
+
export type UserListBlockedUsersResponse = UserListBlockedUsersResponseBodyList;
|
|
2793
|
+
export const UserListBlockedUsersResponse = /*@__PURE__*/ S.suspend(() =>
|
|
2794
|
+
UserListBlockedUsersResponseBodyList.pipe(T.RawResponseRoot()),
|
|
2795
|
+
).annotate({
|
|
2796
|
+
identifier: "UserListBlockedUsersResponse",
|
|
2797
|
+
}) as any as S.Schema<UserListBlockedUsersResponse>;
|
|
2798
|
+
|
|
2799
|
+
export interface UserListEmailsRequest {}
|
|
2800
|
+
export const UserListEmailsRequest = /*@__PURE__*/ S.suspend(() =>
|
|
2801
|
+
S.Struct({}).pipe(T.Http({ method: "GET", uri: "/user/emails", code: 200 })),
|
|
2802
|
+
).annotate({
|
|
2803
|
+
identifier: "UserListEmailsRequest",
|
|
2804
|
+
}) as any as S.Schema<UserListEmailsRequest>;
|
|
2805
|
+
|
|
2806
|
+
export type UserListEmailsResponseBodyList = Array<Email>;
|
|
2807
|
+
export const UserListEmailsResponseBodyList = /*@__PURE__*/ S.Array(
|
|
2808
|
+
Email,
|
|
2809
|
+
) as any as S.Schema<UserListEmailsResponseBodyList>;
|
|
2810
|
+
|
|
2811
|
+
export type UserListEmailsResponse = UserListEmailsResponseBodyList;
|
|
2812
|
+
export const UserListEmailsResponse = /*@__PURE__*/ S.suspend(() =>
|
|
2813
|
+
UserListEmailsResponseBodyList.pipe(T.RawResponseRoot()),
|
|
2814
|
+
).annotate({
|
|
2815
|
+
identifier: "UserListEmailsResponse",
|
|
2816
|
+
}) as any as S.Schema<UserListEmailsResponse>;
|
|
2817
|
+
|
|
2818
|
+
export interface UserListFollowersRequest {
|
|
2819
|
+
/** username of user */
|
|
2820
|
+
username: string;
|
|
2821
|
+
/** page number of results to return (1-based) */
|
|
2822
|
+
page?: number;
|
|
2823
|
+
/** page size of results */
|
|
2824
|
+
limit?: number;
|
|
2825
|
+
}
|
|
2826
|
+
export const UserListFollowersRequest = /*@__PURE__*/ S.suspend(() =>
|
|
2827
|
+
S.Struct({
|
|
2828
|
+
username: S.String.pipe(T.Label()),
|
|
2829
|
+
page: S.optional(S.Number.pipe(T.Query())),
|
|
2830
|
+
limit: S.optional(S.Number.pipe(T.Query())),
|
|
2831
|
+
}).pipe(
|
|
2832
|
+
T.Http({ method: "GET", uri: "/users/{username}/followers", code: 200 }),
|
|
2833
|
+
),
|
|
2834
|
+
).annotate({
|
|
2835
|
+
identifier: "UserListFollowersRequest",
|
|
2836
|
+
}) as any as S.Schema<UserListFollowersRequest>;
|
|
2837
|
+
|
|
2838
|
+
export type UserListFollowersResponseBodyList = Array<User>;
|
|
2839
|
+
export const UserListFollowersResponseBodyList = /*@__PURE__*/ S.Array(
|
|
2840
|
+
User,
|
|
2841
|
+
) as any as S.Schema<UserListFollowersResponseBodyList>;
|
|
2842
|
+
|
|
2843
|
+
export type UserListFollowersResponse = UserListFollowersResponseBodyList;
|
|
2844
|
+
export const UserListFollowersResponse = /*@__PURE__*/ S.suspend(() =>
|
|
2845
|
+
UserListFollowersResponseBodyList.pipe(T.RawResponseRoot()),
|
|
2846
|
+
).annotate({
|
|
2847
|
+
identifier: "UserListFollowersResponse",
|
|
2848
|
+
}) as any as S.Schema<UserListFollowersResponse>;
|
|
2849
|
+
|
|
2850
|
+
export interface UserListFollowingRequest {
|
|
2851
|
+
/** username of user */
|
|
2852
|
+
username: string;
|
|
2853
|
+
/** page number of results to return (1-based) */
|
|
2854
|
+
page?: number;
|
|
2855
|
+
/** page size of results */
|
|
2856
|
+
limit?: number;
|
|
2857
|
+
}
|
|
2858
|
+
export const UserListFollowingRequest = /*@__PURE__*/ S.suspend(() =>
|
|
2859
|
+
S.Struct({
|
|
2860
|
+
username: S.String.pipe(T.Label()),
|
|
2861
|
+
page: S.optional(S.Number.pipe(T.Query())),
|
|
2862
|
+
limit: S.optional(S.Number.pipe(T.Query())),
|
|
2863
|
+
}).pipe(
|
|
2864
|
+
T.Http({ method: "GET", uri: "/users/{username}/following", code: 200 }),
|
|
2865
|
+
),
|
|
2866
|
+
).annotate({
|
|
2867
|
+
identifier: "UserListFollowingRequest",
|
|
2868
|
+
}) as any as S.Schema<UserListFollowingRequest>;
|
|
2869
|
+
|
|
2870
|
+
export type UserListFollowingResponseBodyList = Array<User>;
|
|
2871
|
+
export const UserListFollowingResponseBodyList = /*@__PURE__*/ S.Array(
|
|
2872
|
+
User,
|
|
2873
|
+
) as any as S.Schema<UserListFollowingResponseBodyList>;
|
|
2874
|
+
|
|
2875
|
+
export type UserListFollowingResponse = UserListFollowingResponseBodyList;
|
|
2876
|
+
export const UserListFollowingResponse = /*@__PURE__*/ S.suspend(() =>
|
|
2877
|
+
UserListFollowingResponseBodyList.pipe(T.RawResponseRoot()),
|
|
2878
|
+
).annotate({
|
|
2879
|
+
identifier: "UserListFollowingResponse",
|
|
2880
|
+
}) as any as S.Schema<UserListFollowingResponse>;
|
|
2881
|
+
|
|
2882
|
+
export interface UserListGPGKeysRequest {
|
|
2883
|
+
/** username of user */
|
|
2884
|
+
username: string;
|
|
2885
|
+
/** page number of results to return (1-based) */
|
|
2886
|
+
page?: number;
|
|
2887
|
+
/** page size of results */
|
|
2888
|
+
limit?: number;
|
|
2889
|
+
}
|
|
2890
|
+
export const UserListGPGKeysRequest = /*@__PURE__*/ S.suspend(() =>
|
|
2891
|
+
S.Struct({
|
|
2892
|
+
username: S.String.pipe(T.Label()),
|
|
2893
|
+
page: S.optional(S.Number.pipe(T.Query())),
|
|
2894
|
+
limit: S.optional(S.Number.pipe(T.Query())),
|
|
2895
|
+
}).pipe(
|
|
2896
|
+
T.Http({ method: "GET", uri: "/users/{username}/gpg_keys", code: 200 }),
|
|
2897
|
+
),
|
|
2898
|
+
).annotate({
|
|
2899
|
+
identifier: "UserListGPGKeysRequest",
|
|
2900
|
+
}) as any as S.Schema<UserListGPGKeysRequest>;
|
|
2901
|
+
|
|
2902
|
+
export type UserListGPGKeysResponseBodyList = Array<GPGKey>;
|
|
2903
|
+
export const UserListGPGKeysResponseBodyList = /*@__PURE__*/ S.Array(
|
|
2904
|
+
GPGKey,
|
|
2905
|
+
) as any as S.Schema<UserListGPGKeysResponseBodyList>;
|
|
2906
|
+
|
|
2907
|
+
export type UserListGPGKeysResponse = UserListGPGKeysResponseBodyList;
|
|
2908
|
+
export const UserListGPGKeysResponse = /*@__PURE__*/ S.suspend(() =>
|
|
2909
|
+
UserListGPGKeysResponseBodyList.pipe(T.RawResponseRoot()),
|
|
2910
|
+
).annotate({
|
|
2911
|
+
identifier: "UserListGPGKeysResponse",
|
|
2912
|
+
}) as any as S.Schema<UserListGPGKeysResponse>;
|
|
2913
|
+
|
|
2914
|
+
export interface UserListHooksRequest {
|
|
2915
|
+
/** page number of results to return (1-based) */
|
|
2916
|
+
page?: number;
|
|
2917
|
+
/** page size of results */
|
|
2918
|
+
limit?: number;
|
|
2919
|
+
}
|
|
2920
|
+
export const UserListHooksRequest = /*@__PURE__*/ S.suspend(() =>
|
|
2921
|
+
S.Struct({
|
|
2922
|
+
page: S.optional(S.Number.pipe(T.Query())),
|
|
2923
|
+
limit: S.optional(S.Number.pipe(T.Query())),
|
|
2924
|
+
}).pipe(T.Http({ method: "GET", uri: "/user/hooks", code: 200 })),
|
|
2925
|
+
).annotate({
|
|
2926
|
+
identifier: "UserListHooksRequest",
|
|
2927
|
+
}) as any as S.Schema<UserListHooksRequest>;
|
|
2928
|
+
|
|
2929
|
+
export type UserListHooksResponseBodyList = Array<Hook>;
|
|
2930
|
+
export const UserListHooksResponseBodyList = /*@__PURE__*/ S.Array(
|
|
2931
|
+
Hook,
|
|
2932
|
+
) as any as S.Schema<UserListHooksResponseBodyList>;
|
|
2933
|
+
|
|
2934
|
+
export type UserListHooksResponse = UserListHooksResponseBodyList;
|
|
2935
|
+
export const UserListHooksResponse = /*@__PURE__*/ S.suspend(() =>
|
|
2936
|
+
UserListHooksResponseBodyList.pipe(T.RawResponseRoot()),
|
|
2937
|
+
).annotate({
|
|
2938
|
+
identifier: "UserListHooksResponse",
|
|
2939
|
+
}) as any as S.Schema<UserListHooksResponse>;
|
|
2940
|
+
|
|
2941
|
+
export interface UserListKeysRequest {
|
|
2942
|
+
/** username of user */
|
|
2943
|
+
username: string;
|
|
2944
|
+
/** fingerprint of the key */
|
|
2945
|
+
fingerprint?: string;
|
|
2946
|
+
/** page number of results to return (1-based) */
|
|
2947
|
+
page?: number;
|
|
2948
|
+
/** page size of results */
|
|
2949
|
+
limit?: number;
|
|
2950
|
+
}
|
|
2951
|
+
export const UserListKeysRequest = /*@__PURE__*/ S.suspend(() =>
|
|
2952
|
+
S.Struct({
|
|
2953
|
+
username: S.String.pipe(T.Label()),
|
|
2954
|
+
fingerprint: S.optional(S.String.pipe(T.Query())),
|
|
2955
|
+
page: S.optional(S.Number.pipe(T.Query())),
|
|
2956
|
+
limit: S.optional(S.Number.pipe(T.Query())),
|
|
2957
|
+
}).pipe(T.Http({ method: "GET", uri: "/users/{username}/keys", code: 200 })),
|
|
2958
|
+
).annotate({
|
|
2959
|
+
identifier: "UserListKeysRequest",
|
|
2960
|
+
}) as any as S.Schema<UserListKeysRequest>;
|
|
2961
|
+
|
|
2962
|
+
export type UserListKeysResponseBodyList = Array<PublicKey>;
|
|
2963
|
+
export const UserListKeysResponseBodyList = /*@__PURE__*/ S.Array(
|
|
2964
|
+
PublicKey,
|
|
2965
|
+
) as any as S.Schema<UserListKeysResponseBodyList>;
|
|
2966
|
+
|
|
2967
|
+
export type UserListKeysResponse = UserListKeysResponseBodyList;
|
|
2968
|
+
export const UserListKeysResponse = /*@__PURE__*/ S.suspend(() =>
|
|
2969
|
+
UserListKeysResponseBodyList.pipe(T.RawResponseRoot()),
|
|
2970
|
+
).annotate({
|
|
2971
|
+
identifier: "UserListKeysResponse",
|
|
2972
|
+
}) as any as S.Schema<UserListKeysResponse>;
|
|
2973
|
+
|
|
2974
|
+
export interface UserListQuotaArtifactsRequest {
|
|
2975
|
+
/** page number of results to return (1-based) */
|
|
2976
|
+
page?: number;
|
|
2977
|
+
/** page size of results */
|
|
2978
|
+
limit?: number;
|
|
2979
|
+
}
|
|
2980
|
+
export const UserListQuotaArtifactsRequest = /*@__PURE__*/ S.suspend(() =>
|
|
2981
|
+
S.Struct({
|
|
2982
|
+
page: S.optional(S.Number.pipe(T.Query())),
|
|
2983
|
+
limit: S.optional(S.Number.pipe(T.Query())),
|
|
2984
|
+
}).pipe(T.Http({ method: "GET", uri: "/user/quota/artifacts", code: 200 })),
|
|
2985
|
+
).annotate({
|
|
2986
|
+
identifier: "UserListQuotaArtifactsRequest",
|
|
2987
|
+
}) as any as S.Schema<UserListQuotaArtifactsRequest>;
|
|
2988
|
+
|
|
2989
|
+
/** QuotaUsedArtifact represents an artifact counting towards a user's quota */
|
|
2990
|
+
export interface QuotaUsedArtifact {
|
|
2991
|
+
/** HTML URL to the action run containing the artifact */
|
|
2992
|
+
html_url?: string;
|
|
2993
|
+
/** Name of the artifact */
|
|
2994
|
+
name?: string;
|
|
2995
|
+
/** Size of the artifact (compressed) */
|
|
2996
|
+
size?: number;
|
|
2997
|
+
}
|
|
2998
|
+
export const QuotaUsedArtifact = /*@__PURE__*/ S.suspend(() =>
|
|
2999
|
+
S.Struct({
|
|
3000
|
+
html_url: S.optional(S.String),
|
|
3001
|
+
name: S.optional(S.String),
|
|
3002
|
+
size: S.optional(S.Number),
|
|
3003
|
+
}),
|
|
3004
|
+
).annotate({
|
|
3005
|
+
identifier: "QuotaUsedArtifact",
|
|
3006
|
+
}) as any as S.Schema<QuotaUsedArtifact>;
|
|
3007
|
+
|
|
3008
|
+
/** QuotaUsedArtifactList represents a list of artifacts counting towards a user's quota */
|
|
3009
|
+
export type QuotaUsedArtifactList = Array<QuotaUsedArtifact>;
|
|
3010
|
+
export const QuotaUsedArtifactList = /*@__PURE__*/ S.Array(
|
|
3011
|
+
QuotaUsedArtifact,
|
|
3012
|
+
) as any as S.Schema<QuotaUsedArtifactList>;
|
|
3013
|
+
|
|
3014
|
+
export type UserListQuotaArtifactsResponse = QuotaUsedArtifactList;
|
|
3015
|
+
export const UserListQuotaArtifactsResponse = /*@__PURE__*/ S.suspend(() =>
|
|
3016
|
+
QuotaUsedArtifactList.pipe(T.RawResponseRoot()),
|
|
3017
|
+
).annotate({
|
|
3018
|
+
identifier: "UserListQuotaArtifactsResponse",
|
|
3019
|
+
}) as any as S.Schema<UserListQuotaArtifactsResponse>;
|
|
3020
|
+
|
|
3021
|
+
export interface UserListQuotaAttachmentsRequest {
|
|
3022
|
+
/** page number of results to return (1-based) */
|
|
3023
|
+
page?: number;
|
|
3024
|
+
/** page size of results */
|
|
3025
|
+
limit?: number;
|
|
3026
|
+
}
|
|
3027
|
+
export const UserListQuotaAttachmentsRequest = /*@__PURE__*/ S.suspend(() =>
|
|
3028
|
+
S.Struct({
|
|
3029
|
+
page: S.optional(S.Number.pipe(T.Query())),
|
|
3030
|
+
limit: S.optional(S.Number.pipe(T.Query())),
|
|
3031
|
+
}).pipe(T.Http({ method: "GET", uri: "/user/quota/attachments", code: 200 })),
|
|
3032
|
+
).annotate({
|
|
3033
|
+
identifier: "UserListQuotaAttachmentsRequest",
|
|
3034
|
+
}) as any as S.Schema<UserListQuotaAttachmentsRequest>;
|
|
3035
|
+
|
|
3036
|
+
/** Context for the attachment: URLs to the containing object */
|
|
3037
|
+
export interface QuotaUsedAttachmentContainedIn {
|
|
3038
|
+
/** API URL for the object that contains this attachment */
|
|
3039
|
+
api_url?: string;
|
|
3040
|
+
/** HTML URL for the object that contains this attachment */
|
|
3041
|
+
html_url?: string;
|
|
3042
|
+
}
|
|
3043
|
+
export const QuotaUsedAttachmentContainedIn = /*@__PURE__*/ S.suspend(() =>
|
|
3044
|
+
S.Struct({
|
|
3045
|
+
api_url: S.optional(S.String),
|
|
3046
|
+
html_url: S.optional(S.String),
|
|
3047
|
+
}),
|
|
3048
|
+
).annotate({
|
|
3049
|
+
identifier: "QuotaUsedAttachmentContainedIn",
|
|
3050
|
+
}) as any as S.Schema<QuotaUsedAttachmentContainedIn>;
|
|
3051
|
+
|
|
3052
|
+
/** QuotaUsedAttachment represents an attachment counting towards a user's quota */
|
|
3053
|
+
export interface QuotaUsedAttachment {
|
|
3054
|
+
/** API URL for the attachment */
|
|
3055
|
+
api_url?: string;
|
|
3056
|
+
/** Context for the attachment: URLs to the containing object */
|
|
3057
|
+
contained_in?: QuotaUsedAttachmentContainedIn;
|
|
3058
|
+
/** Filename of the attachment */
|
|
3059
|
+
name?: string;
|
|
3060
|
+
/** Size of the attachment (in bytes) */
|
|
3061
|
+
size?: number;
|
|
3062
|
+
}
|
|
3063
|
+
export const QuotaUsedAttachment = /*@__PURE__*/ S.suspend(() =>
|
|
3064
|
+
S.Struct({
|
|
3065
|
+
api_url: S.optional(S.String),
|
|
3066
|
+
contained_in: S.optional(QuotaUsedAttachmentContainedIn),
|
|
3067
|
+
name: S.optional(S.String),
|
|
3068
|
+
size: S.optional(S.Number),
|
|
3069
|
+
}),
|
|
3070
|
+
).annotate({
|
|
3071
|
+
identifier: "QuotaUsedAttachment",
|
|
3072
|
+
}) as any as S.Schema<QuotaUsedAttachment>;
|
|
3073
|
+
|
|
3074
|
+
/** QuotaUsedAttachmentList represents a list of attachment counting towards a user's quota */
|
|
3075
|
+
export type QuotaUsedAttachmentList = Array<QuotaUsedAttachment>;
|
|
3076
|
+
export const QuotaUsedAttachmentList = /*@__PURE__*/ S.Array(
|
|
3077
|
+
QuotaUsedAttachment,
|
|
3078
|
+
) as any as S.Schema<QuotaUsedAttachmentList>;
|
|
3079
|
+
|
|
3080
|
+
export type UserListQuotaAttachmentsResponse = QuotaUsedAttachmentList;
|
|
3081
|
+
export const UserListQuotaAttachmentsResponse = /*@__PURE__*/ S.suspend(() =>
|
|
3082
|
+
QuotaUsedAttachmentList.pipe(T.RawResponseRoot()),
|
|
3083
|
+
).annotate({
|
|
3084
|
+
identifier: "UserListQuotaAttachmentsResponse",
|
|
3085
|
+
}) as any as S.Schema<UserListQuotaAttachmentsResponse>;
|
|
3086
|
+
|
|
3087
|
+
export interface UserListQuotaPackagesRequest {
|
|
3088
|
+
/** page number of results to return (1-based) */
|
|
3089
|
+
page?: number;
|
|
3090
|
+
/** page size of results */
|
|
3091
|
+
limit?: number;
|
|
3092
|
+
}
|
|
3093
|
+
export const UserListQuotaPackagesRequest = /*@__PURE__*/ S.suspend(() =>
|
|
3094
|
+
S.Struct({
|
|
3095
|
+
page: S.optional(S.Number.pipe(T.Query())),
|
|
3096
|
+
limit: S.optional(S.Number.pipe(T.Query())),
|
|
3097
|
+
}).pipe(T.Http({ method: "GET", uri: "/user/quota/packages", code: 200 })),
|
|
3098
|
+
).annotate({
|
|
3099
|
+
identifier: "UserListQuotaPackagesRequest",
|
|
3100
|
+
}) as any as S.Schema<UserListQuotaPackagesRequest>;
|
|
3101
|
+
|
|
3102
|
+
/** QuotaUsedPackage represents a package counting towards a user's quota */
|
|
3103
|
+
export interface QuotaUsedPackage {
|
|
3104
|
+
/** HTML URL to the package version */
|
|
3105
|
+
html_url?: string;
|
|
3106
|
+
/** Name of the package */
|
|
3107
|
+
name?: string;
|
|
3108
|
+
/** Size of the package version */
|
|
3109
|
+
size?: number;
|
|
3110
|
+
/** Type of the package */
|
|
3111
|
+
type?: string;
|
|
3112
|
+
/** Version of the package */
|
|
3113
|
+
version?: string;
|
|
3114
|
+
}
|
|
3115
|
+
export const QuotaUsedPackage = /*@__PURE__*/ S.suspend(() =>
|
|
3116
|
+
S.Struct({
|
|
3117
|
+
html_url: S.optional(S.String),
|
|
3118
|
+
name: S.optional(S.String),
|
|
3119
|
+
size: S.optional(S.Number),
|
|
3120
|
+
type: S.optional(S.String),
|
|
3121
|
+
version: S.optional(S.String),
|
|
3122
|
+
}),
|
|
3123
|
+
).annotate({
|
|
3124
|
+
identifier: "QuotaUsedPackage",
|
|
3125
|
+
}) as any as S.Schema<QuotaUsedPackage>;
|
|
3126
|
+
|
|
3127
|
+
/** QuotaUsedPackageList represents a list of packages counting towards a user's quota */
|
|
3128
|
+
export type QuotaUsedPackageList = Array<QuotaUsedPackage>;
|
|
3129
|
+
export const QuotaUsedPackageList = /*@__PURE__*/ S.Array(
|
|
3130
|
+
QuotaUsedPackage,
|
|
3131
|
+
) as any as S.Schema<QuotaUsedPackageList>;
|
|
3132
|
+
|
|
3133
|
+
export type UserListQuotaPackagesResponse = QuotaUsedPackageList;
|
|
3134
|
+
export const UserListQuotaPackagesResponse = /*@__PURE__*/ S.suspend(() =>
|
|
3135
|
+
QuotaUsedPackageList.pipe(T.RawResponseRoot()),
|
|
3136
|
+
).annotate({
|
|
3137
|
+
identifier: "UserListQuotaPackagesResponse",
|
|
3138
|
+
}) as any as S.Schema<UserListQuotaPackagesResponse>;
|
|
3139
|
+
|
|
3140
|
+
export interface UserListReposRequest {
|
|
3141
|
+
/** username of user */
|
|
3142
|
+
username: string;
|
|
3143
|
+
/** page number of results to return (1-based) */
|
|
3144
|
+
page?: number;
|
|
3145
|
+
/** page size of results */
|
|
3146
|
+
limit?: number;
|
|
3147
|
+
}
|
|
3148
|
+
export const UserListReposRequest = /*@__PURE__*/ S.suspend(() =>
|
|
3149
|
+
S.Struct({
|
|
3150
|
+
username: S.String.pipe(T.Label()),
|
|
3151
|
+
page: S.optional(S.Number.pipe(T.Query())),
|
|
3152
|
+
limit: S.optional(S.Number.pipe(T.Query())),
|
|
3153
|
+
}).pipe(T.Http({ method: "GET", uri: "/users/{username}/repos", code: 200 })),
|
|
3154
|
+
).annotate({
|
|
3155
|
+
identifier: "UserListReposRequest",
|
|
3156
|
+
}) as any as S.Schema<UserListReposRequest>;
|
|
3157
|
+
|
|
3158
|
+
export type UserListReposResponseBodyList = Array<Repository>;
|
|
3159
|
+
export const UserListReposResponseBodyList = /*@__PURE__*/ S.Array(
|
|
3160
|
+
Repository,
|
|
3161
|
+
) as any as S.Schema<UserListReposResponseBodyList>;
|
|
3162
|
+
|
|
3163
|
+
export type UserListReposResponse = UserListReposResponseBodyList;
|
|
3164
|
+
export const UserListReposResponse = /*@__PURE__*/ S.suspend(() =>
|
|
3165
|
+
UserListReposResponseBodyList.pipe(T.RawResponseRoot()),
|
|
3166
|
+
).annotate({
|
|
3167
|
+
identifier: "UserListReposResponse",
|
|
3168
|
+
}) as any as S.Schema<UserListReposResponse>;
|
|
3169
|
+
|
|
3170
|
+
export interface UserListStarredRequest {
|
|
3171
|
+
/** username of user */
|
|
3172
|
+
username: string;
|
|
3173
|
+
/** page number of results to return (1-based) */
|
|
3174
|
+
page?: number;
|
|
3175
|
+
/** page size of results */
|
|
3176
|
+
limit?: number;
|
|
3177
|
+
}
|
|
3178
|
+
export const UserListStarredRequest = /*@__PURE__*/ S.suspend(() =>
|
|
3179
|
+
S.Struct({
|
|
3180
|
+
username: S.String.pipe(T.Label()),
|
|
3181
|
+
page: S.optional(S.Number.pipe(T.Query())),
|
|
3182
|
+
limit: S.optional(S.Number.pipe(T.Query())),
|
|
3183
|
+
}).pipe(
|
|
3184
|
+
T.Http({ method: "GET", uri: "/users/{username}/starred", code: 200 }),
|
|
3185
|
+
),
|
|
3186
|
+
).annotate({
|
|
3187
|
+
identifier: "UserListStarredRequest",
|
|
3188
|
+
}) as any as S.Schema<UserListStarredRequest>;
|
|
3189
|
+
|
|
3190
|
+
export type UserListStarredResponseBodyList = Array<Repository>;
|
|
3191
|
+
export const UserListStarredResponseBodyList = /*@__PURE__*/ S.Array(
|
|
3192
|
+
Repository,
|
|
3193
|
+
) as any as S.Schema<UserListStarredResponseBodyList>;
|
|
3194
|
+
|
|
3195
|
+
export type UserListStarredResponse = UserListStarredResponseBodyList;
|
|
3196
|
+
export const UserListStarredResponse = /*@__PURE__*/ S.suspend(() =>
|
|
3197
|
+
UserListStarredResponseBodyList.pipe(T.RawResponseRoot()),
|
|
3198
|
+
).annotate({
|
|
3199
|
+
identifier: "UserListStarredResponse",
|
|
3200
|
+
}) as any as S.Schema<UserListStarredResponse>;
|
|
3201
|
+
|
|
3202
|
+
export interface UserListSubscriptionsRequest {
|
|
3203
|
+
/** username of the user */
|
|
3204
|
+
username: string;
|
|
3205
|
+
/** page number of results to return (1-based) */
|
|
3206
|
+
page?: number;
|
|
3207
|
+
/** page size of results */
|
|
3208
|
+
limit?: number;
|
|
3209
|
+
}
|
|
3210
|
+
export const UserListSubscriptionsRequest = /*@__PURE__*/ S.suspend(() =>
|
|
3211
|
+
S.Struct({
|
|
3212
|
+
username: S.String.pipe(T.Label()),
|
|
3213
|
+
page: S.optional(S.Number.pipe(T.Query())),
|
|
3214
|
+
limit: S.optional(S.Number.pipe(T.Query())),
|
|
3215
|
+
}).pipe(
|
|
3216
|
+
T.Http({
|
|
3217
|
+
method: "GET",
|
|
3218
|
+
uri: "/users/{username}/subscriptions",
|
|
3219
|
+
code: 200,
|
|
3220
|
+
}),
|
|
3221
|
+
),
|
|
3222
|
+
).annotate({
|
|
3223
|
+
identifier: "UserListSubscriptionsRequest",
|
|
3224
|
+
}) as any as S.Schema<UserListSubscriptionsRequest>;
|
|
3225
|
+
|
|
3226
|
+
export type UserListSubscriptionsResponseBodyList = Array<Repository>;
|
|
3227
|
+
export const UserListSubscriptionsResponseBodyList = /*@__PURE__*/ S.Array(
|
|
3228
|
+
Repository,
|
|
3229
|
+
) as any as S.Schema<UserListSubscriptionsResponseBodyList>;
|
|
3230
|
+
|
|
3231
|
+
export type UserListSubscriptionsResponse =
|
|
3232
|
+
UserListSubscriptionsResponseBodyList;
|
|
3233
|
+
export const UserListSubscriptionsResponse = /*@__PURE__*/ S.suspend(() =>
|
|
3234
|
+
UserListSubscriptionsResponseBodyList.pipe(T.RawResponseRoot()),
|
|
3235
|
+
).annotate({
|
|
3236
|
+
identifier: "UserListSubscriptionsResponse",
|
|
3237
|
+
}) as any as S.Schema<UserListSubscriptionsResponse>;
|
|
3238
|
+
|
|
3239
|
+
export interface UserListTeamsRequest {
|
|
3240
|
+
/** page number of results to return (1-based) */
|
|
3241
|
+
page?: number;
|
|
3242
|
+
/** page size of results */
|
|
3243
|
+
limit?: number;
|
|
3244
|
+
}
|
|
3245
|
+
export const UserListTeamsRequest = /*@__PURE__*/ S.suspend(() =>
|
|
3246
|
+
S.Struct({
|
|
3247
|
+
page: S.optional(S.Number.pipe(T.Query())),
|
|
3248
|
+
limit: S.optional(S.Number.pipe(T.Query())),
|
|
3249
|
+
}).pipe(T.Http({ method: "GET", uri: "/user/teams", code: 200 })),
|
|
3250
|
+
).annotate({
|
|
3251
|
+
identifier: "UserListTeamsRequest",
|
|
3252
|
+
}) as any as S.Schema<UserListTeamsRequest>;
|
|
3253
|
+
|
|
3254
|
+
export type UserListTeamsResponseBodyList = Array<Team>;
|
|
3255
|
+
export const UserListTeamsResponseBodyList = /*@__PURE__*/ S.Array(
|
|
3256
|
+
Team,
|
|
3257
|
+
) as any as S.Schema<UserListTeamsResponseBodyList>;
|
|
3258
|
+
|
|
3259
|
+
export type UserListTeamsResponse = UserListTeamsResponseBodyList;
|
|
3260
|
+
export const UserListTeamsResponse = /*@__PURE__*/ S.suspend(() =>
|
|
3261
|
+
UserListTeamsResponseBodyList.pipe(T.RawResponseRoot()),
|
|
3262
|
+
).annotate({
|
|
3263
|
+
identifier: "UserListTeamsResponse",
|
|
3264
|
+
}) as any as S.Schema<UserListTeamsResponse>;
|
|
3265
|
+
|
|
3266
|
+
export interface UserSearchRunJobsRequest {
|
|
3267
|
+
/** a comma separated list of run job labels to search for */
|
|
3268
|
+
labels?: string;
|
|
3269
|
+
}
|
|
3270
|
+
export const UserSearchRunJobsRequest = /*@__PURE__*/ S.suspend(() =>
|
|
3271
|
+
S.Struct({
|
|
3272
|
+
labels: S.optional(S.String.pipe(T.Query())),
|
|
3273
|
+
}).pipe(
|
|
3274
|
+
T.Http({ method: "GET", uri: "/user/actions/runners/jobs", code: 200 }),
|
|
3275
|
+
),
|
|
3276
|
+
).annotate({
|
|
3277
|
+
identifier: "UserSearchRunJobsRequest",
|
|
3278
|
+
}) as any as S.Schema<UserSearchRunJobsRequest>;
|
|
3279
|
+
|
|
3280
|
+
/** the action run job needed ids */
|
|
3281
|
+
export type ActionRunJobNeedsList = Array<string>;
|
|
3282
|
+
export const ActionRunJobNeedsList = /*@__PURE__*/ S.Array(
|
|
3283
|
+
S.String,
|
|
3284
|
+
) as any as S.Schema<ActionRunJobNeedsList>;
|
|
3285
|
+
|
|
3286
|
+
/** the action run job labels to run on */
|
|
3287
|
+
export type ActionRunJobRunsOnList = Array<string>;
|
|
3288
|
+
export const ActionRunJobRunsOnList = /*@__PURE__*/ S.Array(
|
|
3289
|
+
S.String,
|
|
3290
|
+
) as any as S.Schema<ActionRunJobRunsOnList>;
|
|
3291
|
+
|
|
3292
|
+
/** ActionRunJob represents a job of a run */
|
|
3293
|
+
export interface ActionRunJob {
|
|
3294
|
+
/** How many times the job has been attempted including the current attempt. */
|
|
3295
|
+
attempt?: number;
|
|
3296
|
+
/** Opaque identifier that uniquely identifies a single attempt of a job. */
|
|
3297
|
+
handle?: string;
|
|
3298
|
+
/** Identifier of this job. */
|
|
3299
|
+
id?: number;
|
|
3300
|
+
/** the action run job name */
|
|
3301
|
+
name?: string;
|
|
3302
|
+
/** the action run job needed ids */
|
|
3303
|
+
needs?: ActionRunJobNeedsList;
|
|
3304
|
+
/** the owner id */
|
|
3305
|
+
owner_id?: number;
|
|
3306
|
+
/** the repository id */
|
|
3307
|
+
repo_id?: number;
|
|
3308
|
+
/** Identifier of the workflow run this job belongs to. */
|
|
3309
|
+
run_id?: number;
|
|
3310
|
+
/** the action run job labels to run on */
|
|
3311
|
+
runs_on?: ActionRunJobRunsOnList;
|
|
3312
|
+
/** the action run job status */
|
|
3313
|
+
status?: string;
|
|
3314
|
+
/** the action run job latest task id */
|
|
3315
|
+
task_id?: number;
|
|
3316
|
+
}
|
|
3317
|
+
export const ActionRunJob = /*@__PURE__*/ S.suspend(() =>
|
|
3318
|
+
S.Struct({
|
|
3319
|
+
attempt: S.optional(S.Number),
|
|
3320
|
+
handle: S.optional(S.String),
|
|
3321
|
+
id: S.optional(S.Number),
|
|
3322
|
+
name: S.optional(S.String),
|
|
3323
|
+
needs: S.optional(ActionRunJobNeedsList),
|
|
3324
|
+
owner_id: S.optional(S.Number),
|
|
3325
|
+
repo_id: S.optional(S.Number),
|
|
3326
|
+
run_id: S.optional(S.Number),
|
|
3327
|
+
runs_on: S.optional(ActionRunJobRunsOnList),
|
|
3328
|
+
status: S.optional(S.String),
|
|
3329
|
+
task_id: S.optional(S.Number),
|
|
3330
|
+
}),
|
|
3331
|
+
).annotate({ identifier: "ActionRunJob" }) as any as S.Schema<ActionRunJob>;
|
|
3332
|
+
|
|
3333
|
+
export type UserSearchRunJobsResponseBodyList = Array<ActionRunJob>;
|
|
3334
|
+
export const UserSearchRunJobsResponseBodyList = /*@__PURE__*/ S.Array(
|
|
3335
|
+
ActionRunJob,
|
|
3336
|
+
) as any as S.Schema<UserSearchRunJobsResponseBodyList>;
|
|
3337
|
+
|
|
3338
|
+
export type UserSearchRunJobsResponse = UserSearchRunJobsResponseBodyList;
|
|
3339
|
+
export const UserSearchRunJobsResponse = /*@__PURE__*/ S.suspend(() =>
|
|
3340
|
+
UserSearchRunJobsResponseBodyList.pipe(T.RawResponseRoot()),
|
|
3341
|
+
).annotate({
|
|
3342
|
+
identifier: "UserSearchRunJobsResponse",
|
|
3343
|
+
}) as any as S.Schema<UserSearchRunJobsResponse>;
|
|
3344
|
+
|
|
3345
|
+
export interface UserUpdateAvatarRequest {
|
|
3346
|
+
/** image must be base64 encoded */
|
|
3347
|
+
image?: string;
|
|
3348
|
+
}
|
|
3349
|
+
export const UserUpdateAvatarRequest = /*@__PURE__*/ S.suspend(() =>
|
|
3350
|
+
S.Struct({
|
|
3351
|
+
image: S.optional(S.String),
|
|
3352
|
+
}).pipe(T.Http({ method: "POST", uri: "/user/avatar", code: 200 })),
|
|
3353
|
+
).annotate({
|
|
3354
|
+
identifier: "UserUpdateAvatarRequest",
|
|
3355
|
+
}) as any as S.Schema<UserUpdateAvatarRequest>;
|
|
3356
|
+
|
|
3357
|
+
export interface UserUpdateAvatarResponse {}
|
|
3358
|
+
export const UserUpdateAvatarResponse = /*@__PURE__*/ S.suspend(() =>
|
|
3359
|
+
S.Struct({}),
|
|
3360
|
+
).annotate({
|
|
3361
|
+
identifier: "UserUpdateAvatarResponse",
|
|
3362
|
+
}) as any as S.Schema<UserUpdateAvatarResponse>;
|
|
3363
|
+
|
|
3364
|
+
export type UserUpdateOAuth2ApplicationRequestRedirectUrisList = Array<string>;
|
|
3365
|
+
export const UserUpdateOAuth2ApplicationRequestRedirectUrisList =
|
|
3366
|
+
/*@__PURE__*/ S.Array(
|
|
3367
|
+
S.String,
|
|
3368
|
+
) as any as S.Schema<UserUpdateOAuth2ApplicationRequestRedirectUrisList>;
|
|
3369
|
+
|
|
3370
|
+
export interface UserUpdateOAuth2ApplicationRequest {
|
|
3371
|
+
/** application to be updated */
|
|
3372
|
+
id: number;
|
|
3373
|
+
confidential_client?: boolean;
|
|
3374
|
+
name?: string;
|
|
3375
|
+
redirect_uris?: UserUpdateOAuth2ApplicationRequestRedirectUrisList;
|
|
3376
|
+
}
|
|
3377
|
+
export const UserUpdateOAuth2ApplicationRequest = /*@__PURE__*/ S.suspend(() =>
|
|
3378
|
+
S.Struct({
|
|
3379
|
+
id: S.Number.pipe(T.Label()),
|
|
3380
|
+
confidential_client: S.optional(S.Boolean),
|
|
3381
|
+
name: S.optional(S.String),
|
|
3382
|
+
redirect_uris: S.optional(
|
|
3383
|
+
UserUpdateOAuth2ApplicationRequestRedirectUrisList,
|
|
3384
|
+
),
|
|
3385
|
+
}).pipe(
|
|
3386
|
+
T.Http({
|
|
3387
|
+
method: "PATCH",
|
|
3388
|
+
uri: "/user/applications/oauth2/{id}",
|
|
3389
|
+
code: 200,
|
|
3390
|
+
}),
|
|
3391
|
+
),
|
|
3392
|
+
).annotate({
|
|
3393
|
+
identifier: "UserUpdateOAuth2ApplicationRequest",
|
|
3394
|
+
}) as any as S.Schema<UserUpdateOAuth2ApplicationRequest>;
|
|
3395
|
+
|
|
3396
|
+
export interface UserVerifyGPGKeyRequest {
|
|
3397
|
+
armored_signature?: string;
|
|
3398
|
+
/** An Signature for a GPG key token */
|
|
3399
|
+
key_id: string;
|
|
3400
|
+
}
|
|
3401
|
+
export const UserVerifyGPGKeyRequest = /*@__PURE__*/ S.suspend(() =>
|
|
3402
|
+
S.Struct({
|
|
3403
|
+
armored_signature: S.optional(S.String),
|
|
3404
|
+
key_id: S.String,
|
|
3405
|
+
}).pipe(T.Http({ method: "POST", uri: "/user/gpg_key_verify", code: 200 })),
|
|
3406
|
+
).annotate({
|
|
3407
|
+
identifier: "UserVerifyGPGKeyRequest",
|
|
3408
|
+
}) as any as S.Schema<UserVerifyGPGKeyRequest>;
|
|
3409
|
+
|
|
3410
|
+
export type CreateUserVariableError =
|
|
3411
|
+
| BadRequest
|
|
3412
|
+
| Forbidden
|
|
3413
|
+
| NotFound
|
|
3414
|
+
| ForgejoOpError;
|
|
3415
|
+
/** Create a user-level variable */
|
|
3416
|
+
export const createUserVariable: API.OperationMethod<
|
|
3417
|
+
CreateUserVariableRequest,
|
|
3418
|
+
CreateUserVariableResponse,
|
|
3419
|
+
CreateUserVariableError,
|
|
3420
|
+
ForgejoOpContext
|
|
3421
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
3422
|
+
input: CreateUserVariableRequest,
|
|
3423
|
+
output: CreateUserVariableResponse,
|
|
3424
|
+
errors: [BadRequest, Forbidden, NotFound],
|
|
3425
|
+
protocol: ForgejoProtocol,
|
|
3426
|
+
retry: Retry.Retry,
|
|
3427
|
+
}));
|
|
3428
|
+
|
|
3429
|
+
export type DeleteUserRunnerError = BadRequest | NotFound | ForgejoOpError;
|
|
3430
|
+
/** Delete a particular user-level runner */
|
|
3431
|
+
export const deleteUserRunner: API.OperationMethod<
|
|
3432
|
+
DeleteUserRunnerRequest,
|
|
3433
|
+
DeleteUserRunnerResponse,
|
|
3434
|
+
DeleteUserRunnerError,
|
|
3435
|
+
ForgejoOpContext
|
|
3436
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
3437
|
+
input: DeleteUserRunnerRequest,
|
|
3438
|
+
output: DeleteUserRunnerResponse,
|
|
3439
|
+
errors: [BadRequest, NotFound],
|
|
3440
|
+
protocol: ForgejoProtocol,
|
|
3441
|
+
retry: Retry.Retry,
|
|
3442
|
+
}));
|
|
3443
|
+
|
|
3444
|
+
export type DeleteUserSecretError =
|
|
3445
|
+
| BadRequest
|
|
3446
|
+
| Forbidden
|
|
3447
|
+
| NotFound
|
|
3448
|
+
| ForgejoOpError;
|
|
3449
|
+
/** Delete a secret in a user scope */
|
|
3450
|
+
export const deleteUserSecret: API.OperationMethod<
|
|
3451
|
+
DeleteUserSecretRequest,
|
|
3452
|
+
DeleteUserSecretResponse,
|
|
3453
|
+
DeleteUserSecretError,
|
|
3454
|
+
ForgejoOpContext
|
|
3455
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
3456
|
+
input: DeleteUserSecretRequest,
|
|
3457
|
+
output: DeleteUserSecretResponse,
|
|
3458
|
+
errors: [BadRequest, Forbidden, NotFound],
|
|
3459
|
+
protocol: ForgejoProtocol,
|
|
3460
|
+
retry: Retry.Retry,
|
|
3461
|
+
}));
|
|
3462
|
+
|
|
3463
|
+
export type DeleteUserVariableError =
|
|
3464
|
+
| BadRequest
|
|
3465
|
+
| Forbidden
|
|
3466
|
+
| NotFound
|
|
3467
|
+
| ForgejoOpError;
|
|
3468
|
+
/** Delete a user-level variable which is created by current doer */
|
|
3469
|
+
export const deleteUserVariable: API.OperationMethod<
|
|
3470
|
+
DeleteUserVariableRequest,
|
|
3471
|
+
DeleteUserVariableResponse,
|
|
3472
|
+
DeleteUserVariableError,
|
|
3473
|
+
ForgejoOpContext
|
|
3474
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
3475
|
+
input: DeleteUserVariableRequest,
|
|
3476
|
+
output: DeleteUserVariableResponse,
|
|
3477
|
+
errors: [BadRequest, Forbidden, NotFound],
|
|
3478
|
+
protocol: ForgejoProtocol,
|
|
3479
|
+
retry: Retry.Retry,
|
|
3480
|
+
}));
|
|
3481
|
+
|
|
3482
|
+
export type FollowUserCurrentActivityPubError =
|
|
3483
|
+
| Forbidden
|
|
3484
|
+
| NotFound
|
|
3485
|
+
| ForgejoOpError;
|
|
3486
|
+
/** Follow a remote activitypub account */
|
|
3487
|
+
export const followUserCurrentActivityPub: API.OperationMethod<
|
|
3488
|
+
FollowUserCurrentActivityPubRequest,
|
|
3489
|
+
FollowUserCurrentActivityPubResponse,
|
|
3490
|
+
FollowUserCurrentActivityPubError,
|
|
3491
|
+
ForgejoOpContext
|
|
3492
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
3493
|
+
input: FollowUserCurrentActivityPubRequest,
|
|
3494
|
+
output: FollowUserCurrentActivityPubResponse,
|
|
3495
|
+
errors: [Forbidden, NotFound],
|
|
3496
|
+
protocol: ForgejoProtocol,
|
|
3497
|
+
retry: Retry.Retry,
|
|
3498
|
+
}));
|
|
3499
|
+
|
|
3500
|
+
export type GetUserError = NotFound | ForgejoOpError;
|
|
3501
|
+
/** Get a user */
|
|
3502
|
+
export const getUser: API.OperationMethod<
|
|
3503
|
+
GetUserRequest,
|
|
3504
|
+
User,
|
|
3505
|
+
GetUserError,
|
|
3506
|
+
ForgejoOpContext
|
|
3507
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
3508
|
+
input: GetUserRequest,
|
|
3509
|
+
output: User,
|
|
3510
|
+
errors: [NotFound],
|
|
3511
|
+
protocol: ForgejoProtocol,
|
|
3512
|
+
retry: Retry.Retry,
|
|
3513
|
+
}));
|
|
3514
|
+
|
|
3515
|
+
export type GetUserRunnerError = BadRequest | NotFound | ForgejoOpError;
|
|
3516
|
+
/** Get a particular runner that belongs to the user */
|
|
3517
|
+
export const getUserRunner: API.OperationMethod<
|
|
3518
|
+
GetUserRunnerRequest,
|
|
3519
|
+
ActionRunner,
|
|
3520
|
+
GetUserRunnerError,
|
|
3521
|
+
ForgejoOpContext
|
|
3522
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
3523
|
+
input: GetUserRunnerRequest,
|
|
3524
|
+
output: ActionRunner,
|
|
3525
|
+
errors: [BadRequest, NotFound],
|
|
3526
|
+
protocol: ForgejoProtocol,
|
|
3527
|
+
retry: Retry.Retry,
|
|
3528
|
+
}));
|
|
3529
|
+
|
|
3530
|
+
export type GetUserRunnersError = BadRequest | NotFound | ForgejoOpError;
|
|
3531
|
+
/** Get the user's runners */
|
|
3532
|
+
export const getUserRunners: API.OperationMethod<
|
|
3533
|
+
GetUserRunnersRequest,
|
|
3534
|
+
GetUserRunnersResponse,
|
|
3535
|
+
GetUserRunnersError,
|
|
3536
|
+
ForgejoOpContext
|
|
3537
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
3538
|
+
input: GetUserRunnersRequest,
|
|
3539
|
+
output: GetUserRunnersResponse,
|
|
3540
|
+
errors: [BadRequest, NotFound],
|
|
3541
|
+
protocol: ForgejoProtocol,
|
|
3542
|
+
retry: Retry.Retry,
|
|
3543
|
+
}));
|
|
3544
|
+
|
|
3545
|
+
export type GetUserSettingsError = Forbidden | ForgejoOpError;
|
|
3546
|
+
/** Get current user's account settings */
|
|
3547
|
+
export const getUserSettings: API.OperationMethod<
|
|
3548
|
+
GetUserSettingsRequest,
|
|
3549
|
+
UserSettings,
|
|
3550
|
+
GetUserSettingsError,
|
|
3551
|
+
ForgejoOpContext
|
|
3552
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
3553
|
+
input: GetUserSettingsRequest,
|
|
3554
|
+
output: UserSettings,
|
|
3555
|
+
errors: [Forbidden],
|
|
3556
|
+
protocol: ForgejoProtocol,
|
|
3557
|
+
retry: Retry.Retry,
|
|
3558
|
+
}));
|
|
3559
|
+
|
|
3560
|
+
export type GetUserVariableError =
|
|
3561
|
+
| BadRequest
|
|
3562
|
+
| Forbidden
|
|
3563
|
+
| NotFound
|
|
3564
|
+
| ForgejoOpError;
|
|
3565
|
+
/** Get a user-level variable which is created by current doer */
|
|
3566
|
+
export const getUserVariable: API.OperationMethod<
|
|
3567
|
+
GetUserVariableRequest,
|
|
3568
|
+
ActionVariable,
|
|
3569
|
+
GetUserVariableError,
|
|
3570
|
+
ForgejoOpContext
|
|
3571
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
3572
|
+
input: GetUserVariableRequest,
|
|
3573
|
+
output: ActionVariable,
|
|
3574
|
+
errors: [BadRequest, Forbidden, NotFound],
|
|
3575
|
+
protocol: ForgejoProtocol,
|
|
3576
|
+
retry: Retry.Retry,
|
|
3577
|
+
}));
|
|
3578
|
+
|
|
3579
|
+
export type GetUserVariablesListError =
|
|
3580
|
+
| BadRequest
|
|
3581
|
+
| Forbidden
|
|
3582
|
+
| NotFound
|
|
3583
|
+
| ForgejoOpError;
|
|
3584
|
+
/** Get the user-level list of variables which is created by current doer */
|
|
3585
|
+
export const getUserVariablesList: API.OperationMethod<
|
|
3586
|
+
GetUserVariablesListRequest,
|
|
3587
|
+
GetUserVariablesListResponse,
|
|
3588
|
+
GetUserVariablesListError,
|
|
3589
|
+
ForgejoOpContext
|
|
3590
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
3591
|
+
input: GetUserVariablesListRequest,
|
|
3592
|
+
output: GetUserVariablesListResponse,
|
|
3593
|
+
errors: [BadRequest, Forbidden, NotFound],
|
|
3594
|
+
protocol: ForgejoProtocol,
|
|
3595
|
+
retry: Retry.Retry,
|
|
3596
|
+
}));
|
|
3597
|
+
|
|
3598
|
+
export type GetVerificationTokenError = Forbidden | NotFound | ForgejoOpError;
|
|
3599
|
+
/** Get a Token to verify */
|
|
3600
|
+
export const getVerificationToken: API.OperationMethod<
|
|
3601
|
+
GetVerificationTokenRequest,
|
|
3602
|
+
GetVerificationTokenResponse,
|
|
3603
|
+
GetVerificationTokenError,
|
|
3604
|
+
ForgejoOpContext
|
|
3605
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
3606
|
+
input: GetVerificationTokenRequest,
|
|
3607
|
+
output: GetVerificationTokenResponse,
|
|
3608
|
+
errors: [Forbidden, NotFound],
|
|
3609
|
+
protocol: ForgejoProtocol,
|
|
3610
|
+
retry: Retry.Retry,
|
|
3611
|
+
}));
|
|
3612
|
+
|
|
3613
|
+
export type RegisterUserRunnerError = BadRequest | NotFound | ForgejoOpError;
|
|
3614
|
+
/** Register a new user-level runner */
|
|
3615
|
+
export const registerUserRunner: API.OperationMethod<
|
|
3616
|
+
RegisterUserRunnerRequest,
|
|
3617
|
+
RegisterRunnerResponse,
|
|
3618
|
+
RegisterUserRunnerError,
|
|
3619
|
+
ForgejoOpContext
|
|
3620
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
3621
|
+
input: RegisterUserRunnerRequest,
|
|
3622
|
+
output: RegisterRunnerResponse,
|
|
3623
|
+
errors: [BadRequest, NotFound],
|
|
3624
|
+
protocol: ForgejoProtocol,
|
|
3625
|
+
retry: Retry.Retry,
|
|
3626
|
+
}));
|
|
3627
|
+
|
|
3628
|
+
export type SearchUserError = ForgejoOpError;
|
|
3629
|
+
/** Search for users */
|
|
3630
|
+
export const searchUser: API.OperationMethod<
|
|
3631
|
+
SearchUserRequest,
|
|
3632
|
+
SearchUserResponse,
|
|
3633
|
+
SearchUserError,
|
|
3634
|
+
ForgejoOpContext
|
|
3635
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
3636
|
+
input: SearchUserRequest,
|
|
3637
|
+
output: SearchUserResponse,
|
|
3638
|
+
errors: [],
|
|
3639
|
+
protocol: ForgejoProtocol,
|
|
3640
|
+
retry: Retry.Retry,
|
|
3641
|
+
}));
|
|
3642
|
+
|
|
3643
|
+
export type UnblockUserError =
|
|
3644
|
+
| Forbidden
|
|
3645
|
+
| NotFound
|
|
3646
|
+
| UnprocessableEntity
|
|
3647
|
+
| ForgejoOpError;
|
|
3648
|
+
/** Unblocks a user from the doer */
|
|
3649
|
+
export const unblockUser: API.OperationMethod<
|
|
3650
|
+
UnblockUserRequest,
|
|
3651
|
+
UnblockUserResponse,
|
|
3652
|
+
UnblockUserError,
|
|
3653
|
+
ForgejoOpContext
|
|
3654
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
3655
|
+
input: UnblockUserRequest,
|
|
3656
|
+
output: UnblockUserResponse,
|
|
3657
|
+
errors: [Forbidden, NotFound, UnprocessableEntity],
|
|
3658
|
+
protocol: ForgejoProtocol,
|
|
3659
|
+
retry: Retry.Retry,
|
|
3660
|
+
}));
|
|
3661
|
+
|
|
3662
|
+
export type UpdateUserSecretError =
|
|
3663
|
+
| BadRequest
|
|
3664
|
+
| Forbidden
|
|
3665
|
+
| NotFound
|
|
3666
|
+
| ForgejoOpError;
|
|
3667
|
+
/** Create or Update a secret value in a user scope */
|
|
3668
|
+
export const updateUserSecret: API.OperationMethod<
|
|
3669
|
+
UpdateUserSecretRequest,
|
|
3670
|
+
UpdateUserSecretResponse,
|
|
3671
|
+
UpdateUserSecretError,
|
|
3672
|
+
ForgejoOpContext
|
|
3673
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
3674
|
+
input: UpdateUserSecretRequest,
|
|
3675
|
+
output: UpdateUserSecretResponse,
|
|
3676
|
+
errors: [BadRequest, Forbidden, NotFound],
|
|
3677
|
+
protocol: ForgejoProtocol,
|
|
3678
|
+
retry: Retry.Retry,
|
|
3679
|
+
}));
|
|
3680
|
+
|
|
3681
|
+
export type UpdateUserSettingsError = Forbidden | ForgejoOpError;
|
|
3682
|
+
/** Update settings in current user's account */
|
|
3683
|
+
export const updateUserSettings: API.OperationMethod<
|
|
3684
|
+
UpdateUserSettingsRequest,
|
|
3685
|
+
UserSettings,
|
|
3686
|
+
UpdateUserSettingsError,
|
|
3687
|
+
ForgejoOpContext
|
|
3688
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
3689
|
+
input: UpdateUserSettingsRequest,
|
|
3690
|
+
output: UserSettings,
|
|
3691
|
+
errors: [Forbidden],
|
|
3692
|
+
protocol: ForgejoProtocol,
|
|
3693
|
+
retry: Retry.Retry,
|
|
3694
|
+
}));
|
|
3695
|
+
|
|
3696
|
+
export type UpdateUserVariableError =
|
|
3697
|
+
| BadRequest
|
|
3698
|
+
| Forbidden
|
|
3699
|
+
| NotFound
|
|
3700
|
+
| ForgejoOpError;
|
|
3701
|
+
/** Update a user-level variable which is created by current doer */
|
|
3702
|
+
export const updateUserVariable: API.OperationMethod<
|
|
3703
|
+
UpdateUserVariableRequest,
|
|
3704
|
+
UpdateUserVariableResponse,
|
|
3705
|
+
UpdateUserVariableError,
|
|
3706
|
+
ForgejoOpContext
|
|
3707
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
3708
|
+
input: UpdateUserVariableRequest,
|
|
3709
|
+
output: UpdateUserVariableResponse,
|
|
3710
|
+
errors: [BadRequest, Forbidden, NotFound],
|
|
3711
|
+
protocol: ForgejoProtocol,
|
|
3712
|
+
retry: Retry.Retry,
|
|
3713
|
+
}));
|
|
3714
|
+
|
|
3715
|
+
export type UserAddEmailError =
|
|
3716
|
+
| Forbidden
|
|
3717
|
+
| UnprocessableEntity
|
|
3718
|
+
| ForgejoOpError;
|
|
3719
|
+
/** Add an email addresses to the current user's account */
|
|
3720
|
+
export const userAddEmail: API.OperationMethod<
|
|
3721
|
+
UserAddEmailRequest,
|
|
3722
|
+
UserAddEmailResponse,
|
|
3723
|
+
UserAddEmailError,
|
|
3724
|
+
ForgejoOpContext
|
|
3725
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
3726
|
+
input: UserAddEmailRequest,
|
|
3727
|
+
output: UserAddEmailResponse,
|
|
3728
|
+
errors: [Forbidden, UnprocessableEntity],
|
|
3729
|
+
protocol: ForgejoProtocol,
|
|
3730
|
+
retry: Retry.Retry,
|
|
3731
|
+
}));
|
|
3732
|
+
|
|
3733
|
+
export type UserBlockUserError =
|
|
3734
|
+
| Forbidden
|
|
3735
|
+
| NotFound
|
|
3736
|
+
| UnprocessableEntity
|
|
3737
|
+
| ForgejoOpError;
|
|
3738
|
+
/** Blocks a user from the doer */
|
|
3739
|
+
export const userBlockUser: API.OperationMethod<
|
|
3740
|
+
UserBlockUserRequest,
|
|
3741
|
+
UserBlockUserResponse,
|
|
3742
|
+
UserBlockUserError,
|
|
3743
|
+
ForgejoOpContext
|
|
3744
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
3745
|
+
input: UserBlockUserRequest,
|
|
3746
|
+
output: UserBlockUserResponse,
|
|
3747
|
+
errors: [Forbidden, NotFound, UnprocessableEntity],
|
|
3748
|
+
protocol: ForgejoProtocol,
|
|
3749
|
+
retry: Retry.Retry,
|
|
3750
|
+
}));
|
|
3751
|
+
|
|
3752
|
+
export type UserCheckFollowingError = NotFound | ForgejoOpError;
|
|
3753
|
+
/** Check if one user is following another user */
|
|
3754
|
+
export const userCheckFollowing: API.OperationMethod<
|
|
3755
|
+
UserCheckFollowingRequest,
|
|
3756
|
+
UserCheckFollowingResponse,
|
|
3757
|
+
UserCheckFollowingError,
|
|
3758
|
+
ForgejoOpContext
|
|
3759
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
3760
|
+
input: UserCheckFollowingRequest,
|
|
3761
|
+
output: UserCheckFollowingResponse,
|
|
3762
|
+
errors: [NotFound],
|
|
3763
|
+
protocol: ForgejoProtocol,
|
|
3764
|
+
retry: Retry.Retry,
|
|
3765
|
+
}));
|
|
3766
|
+
|
|
3767
|
+
export type UserCheckQuotaError =
|
|
3768
|
+
| Forbidden
|
|
3769
|
+
| UnprocessableEntity
|
|
3770
|
+
| ForgejoOpError;
|
|
3771
|
+
/** Check if the authenticated user is over quota for a given subject */
|
|
3772
|
+
export const userCheckQuota: API.OperationMethod<
|
|
3773
|
+
UserCheckQuotaRequest,
|
|
3774
|
+
UserCheckQuotaResponse,
|
|
3775
|
+
UserCheckQuotaError,
|
|
3776
|
+
ForgejoOpContext
|
|
3777
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
3778
|
+
input: UserCheckQuotaRequest,
|
|
3779
|
+
output: UserCheckQuotaResponse,
|
|
3780
|
+
errors: [Forbidden, UnprocessableEntity],
|
|
3781
|
+
protocol: ForgejoProtocol,
|
|
3782
|
+
retry: Retry.Retry,
|
|
3783
|
+
}));
|
|
3784
|
+
|
|
3785
|
+
export type UserCreateHookError = Forbidden | ForgejoOpError;
|
|
3786
|
+
/** Create a hook */
|
|
3787
|
+
export const userCreateHook: API.OperationMethod<
|
|
3788
|
+
UserCreateHookRequest,
|
|
3789
|
+
Hook,
|
|
3790
|
+
UserCreateHookError,
|
|
3791
|
+
ForgejoOpContext
|
|
3792
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
3793
|
+
input: UserCreateHookRequest,
|
|
3794
|
+
output: Hook,
|
|
3795
|
+
errors: [Forbidden],
|
|
3796
|
+
protocol: ForgejoProtocol,
|
|
3797
|
+
retry: Retry.Retry,
|
|
3798
|
+
}));
|
|
3799
|
+
|
|
3800
|
+
export type UserCreateOAuth2ApplicationError =
|
|
3801
|
+
| BadRequest
|
|
3802
|
+
| Forbidden
|
|
3803
|
+
| ForgejoOpError;
|
|
3804
|
+
/** Creates a new OAuth2 application */
|
|
3805
|
+
export const userCreateOAuth2Application: API.OperationMethod<
|
|
3806
|
+
UserCreateOAuth2ApplicationRequest,
|
|
3807
|
+
OAuth2Application,
|
|
3808
|
+
UserCreateOAuth2ApplicationError,
|
|
3809
|
+
ForgejoOpContext
|
|
3810
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
3811
|
+
input: UserCreateOAuth2ApplicationRequest,
|
|
3812
|
+
output: OAuth2Application,
|
|
3813
|
+
errors: [BadRequest, Forbidden],
|
|
3814
|
+
protocol: ForgejoProtocol,
|
|
3815
|
+
retry: Retry.Retry,
|
|
3816
|
+
}));
|
|
3817
|
+
|
|
3818
|
+
export type UserCreateTokenError =
|
|
3819
|
+
| BadRequest
|
|
3820
|
+
| Forbidden
|
|
3821
|
+
| NotFound
|
|
3822
|
+
| ForgejoOpError;
|
|
3823
|
+
/** Generate an access token for the specified user */
|
|
3824
|
+
export const userCreateToken: API.OperationMethod<
|
|
3825
|
+
UserCreateTokenRequest,
|
|
3826
|
+
AccessToken,
|
|
3827
|
+
UserCreateTokenError,
|
|
3828
|
+
ForgejoOpContext
|
|
3829
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
3830
|
+
input: UserCreateTokenRequest,
|
|
3831
|
+
output: AccessToken,
|
|
3832
|
+
errors: [BadRequest, Forbidden, NotFound],
|
|
3833
|
+
protocol: ForgejoProtocol,
|
|
3834
|
+
retry: Retry.Retry,
|
|
3835
|
+
}));
|
|
3836
|
+
|
|
3837
|
+
export type UserCurrentCheckFollowingError =
|
|
3838
|
+
| Forbidden
|
|
3839
|
+
| NotFound
|
|
3840
|
+
| ForgejoOpError;
|
|
3841
|
+
/** Check whether a user is followed by the authenticated user */
|
|
3842
|
+
export const userCurrentCheckFollowing: API.OperationMethod<
|
|
3843
|
+
UserCurrentCheckFollowingRequest,
|
|
3844
|
+
UserCurrentCheckFollowingResponse,
|
|
3845
|
+
UserCurrentCheckFollowingError,
|
|
3846
|
+
ForgejoOpContext
|
|
3847
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
3848
|
+
input: UserCurrentCheckFollowingRequest,
|
|
3849
|
+
output: UserCurrentCheckFollowingResponse,
|
|
3850
|
+
errors: [Forbidden, NotFound],
|
|
3851
|
+
protocol: ForgejoProtocol,
|
|
3852
|
+
retry: Retry.Retry,
|
|
3853
|
+
}));
|
|
3854
|
+
|
|
3855
|
+
export type UserCurrentCheckStarringError =
|
|
3856
|
+
| Forbidden
|
|
3857
|
+
| NotFound
|
|
3858
|
+
| ForgejoOpError;
|
|
3859
|
+
/** Whether the authenticated is starring the repo */
|
|
3860
|
+
export const userCurrentCheckStarring: API.OperationMethod<
|
|
3861
|
+
UserCurrentCheckStarringRequest,
|
|
3862
|
+
UserCurrentCheckStarringResponse,
|
|
3863
|
+
UserCurrentCheckStarringError,
|
|
3864
|
+
ForgejoOpContext
|
|
3865
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
3866
|
+
input: UserCurrentCheckStarringRequest,
|
|
3867
|
+
output: UserCurrentCheckStarringResponse,
|
|
3868
|
+
errors: [Forbidden, NotFound],
|
|
3869
|
+
protocol: ForgejoProtocol,
|
|
3870
|
+
retry: Retry.Retry,
|
|
3871
|
+
}));
|
|
3872
|
+
|
|
3873
|
+
export type UserCurrentDeleteFollowError =
|
|
3874
|
+
| Forbidden
|
|
3875
|
+
| NotFound
|
|
3876
|
+
| ForgejoOpError;
|
|
3877
|
+
/** Unfollow a user */
|
|
3878
|
+
export const userCurrentDeleteFollow: API.OperationMethod<
|
|
3879
|
+
UserCurrentDeleteFollowRequest,
|
|
3880
|
+
UserCurrentDeleteFollowResponse,
|
|
3881
|
+
UserCurrentDeleteFollowError,
|
|
3882
|
+
ForgejoOpContext
|
|
3883
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
3884
|
+
input: UserCurrentDeleteFollowRequest,
|
|
3885
|
+
output: UserCurrentDeleteFollowResponse,
|
|
3886
|
+
errors: [Forbidden, NotFound],
|
|
3887
|
+
protocol: ForgejoProtocol,
|
|
3888
|
+
retry: Retry.Retry,
|
|
3889
|
+
}));
|
|
3890
|
+
|
|
3891
|
+
export type UserCurrentDeleteGPGKeyError =
|
|
3892
|
+
| Forbidden
|
|
3893
|
+
| NotFound
|
|
3894
|
+
| ForgejoOpError;
|
|
3895
|
+
/** Remove a GPG public key from current user's account */
|
|
3896
|
+
export const userCurrentDeleteGPGKey: API.OperationMethod<
|
|
3897
|
+
UserCurrentDeleteGPGKeyRequest,
|
|
3898
|
+
UserCurrentDeleteGPGKeyResponse,
|
|
3899
|
+
UserCurrentDeleteGPGKeyError,
|
|
3900
|
+
ForgejoOpContext
|
|
3901
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
3902
|
+
input: UserCurrentDeleteGPGKeyRequest,
|
|
3903
|
+
output: UserCurrentDeleteGPGKeyResponse,
|
|
3904
|
+
errors: [Forbidden, NotFound],
|
|
3905
|
+
protocol: ForgejoProtocol,
|
|
3906
|
+
retry: Retry.Retry,
|
|
3907
|
+
}));
|
|
3908
|
+
|
|
3909
|
+
export type UserCurrentDeleteKeyError = Forbidden | NotFound | ForgejoOpError;
|
|
3910
|
+
/** Delete a public key */
|
|
3911
|
+
export const userCurrentDeleteKey: API.OperationMethod<
|
|
3912
|
+
UserCurrentDeleteKeyRequest,
|
|
3913
|
+
UserCurrentDeleteKeyResponse,
|
|
3914
|
+
UserCurrentDeleteKeyError,
|
|
3915
|
+
ForgejoOpContext
|
|
3916
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
3917
|
+
input: UserCurrentDeleteKeyRequest,
|
|
3918
|
+
output: UserCurrentDeleteKeyResponse,
|
|
3919
|
+
errors: [Forbidden, NotFound],
|
|
3920
|
+
protocol: ForgejoProtocol,
|
|
3921
|
+
retry: Retry.Retry,
|
|
3922
|
+
}));
|
|
3923
|
+
|
|
3924
|
+
export type UserCurrentDeleteStarError = Forbidden | NotFound | ForgejoOpError;
|
|
3925
|
+
/** Unstar the given repo */
|
|
3926
|
+
export const userCurrentDeleteStar: API.OperationMethod<
|
|
3927
|
+
UserCurrentDeleteStarRequest,
|
|
3928
|
+
UserCurrentDeleteStarResponse,
|
|
3929
|
+
UserCurrentDeleteStarError,
|
|
3930
|
+
ForgejoOpContext
|
|
3931
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
3932
|
+
input: UserCurrentDeleteStarRequest,
|
|
3933
|
+
output: UserCurrentDeleteStarResponse,
|
|
3934
|
+
errors: [Forbidden, NotFound],
|
|
3935
|
+
protocol: ForgejoProtocol,
|
|
3936
|
+
retry: Retry.Retry,
|
|
3937
|
+
}));
|
|
3938
|
+
|
|
3939
|
+
export type UserCurrentGetGPGKeyError = Forbidden | NotFound | ForgejoOpError;
|
|
3940
|
+
/** Get a GPG key */
|
|
3941
|
+
export const userCurrentGetGPGKey: API.OperationMethod<
|
|
3942
|
+
UserCurrentGetGPGKeyRequest,
|
|
3943
|
+
GPGKey,
|
|
3944
|
+
UserCurrentGetGPGKeyError,
|
|
3945
|
+
ForgejoOpContext
|
|
3946
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
3947
|
+
input: UserCurrentGetGPGKeyRequest,
|
|
3948
|
+
output: GPGKey,
|
|
3949
|
+
errors: [Forbidden, NotFound],
|
|
3950
|
+
protocol: ForgejoProtocol,
|
|
3951
|
+
retry: Retry.Retry,
|
|
3952
|
+
}));
|
|
3953
|
+
|
|
3954
|
+
export type UserCurrentGetKeyError = Forbidden | NotFound | ForgejoOpError;
|
|
3955
|
+
/** Get a public key */
|
|
3956
|
+
export const userCurrentGetKey: API.OperationMethod<
|
|
3957
|
+
UserCurrentGetKeyRequest,
|
|
3958
|
+
PublicKey,
|
|
3959
|
+
UserCurrentGetKeyError,
|
|
3960
|
+
ForgejoOpContext
|
|
3961
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
3962
|
+
input: UserCurrentGetKeyRequest,
|
|
3963
|
+
output: PublicKey,
|
|
3964
|
+
errors: [Forbidden, NotFound],
|
|
3965
|
+
protocol: ForgejoProtocol,
|
|
3966
|
+
retry: Retry.Retry,
|
|
3967
|
+
}));
|
|
3968
|
+
|
|
3969
|
+
export type UserCurrentListFollowersError = Forbidden | ForgejoOpError;
|
|
3970
|
+
/** List the authenticated user's followers */
|
|
3971
|
+
export const userCurrentListFollowers: API.OperationMethod<
|
|
3972
|
+
UserCurrentListFollowersRequest,
|
|
3973
|
+
UserCurrentListFollowersResponse,
|
|
3974
|
+
UserCurrentListFollowersError,
|
|
3975
|
+
ForgejoOpContext
|
|
3976
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
3977
|
+
input: UserCurrentListFollowersRequest,
|
|
3978
|
+
output: UserCurrentListFollowersResponse,
|
|
3979
|
+
errors: [Forbidden],
|
|
3980
|
+
protocol: ForgejoProtocol,
|
|
3981
|
+
retry: Retry.Retry,
|
|
3982
|
+
}));
|
|
3983
|
+
|
|
3984
|
+
export type UserCurrentListFollowingError = Forbidden | ForgejoOpError;
|
|
3985
|
+
/** List the users that the authenticated user is following */
|
|
3986
|
+
export const userCurrentListFollowing: API.OperationMethod<
|
|
3987
|
+
UserCurrentListFollowingRequest,
|
|
3988
|
+
UserCurrentListFollowingResponse,
|
|
3989
|
+
UserCurrentListFollowingError,
|
|
3990
|
+
ForgejoOpContext
|
|
3991
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
3992
|
+
input: UserCurrentListFollowingRequest,
|
|
3993
|
+
output: UserCurrentListFollowingResponse,
|
|
3994
|
+
errors: [Forbidden],
|
|
3995
|
+
protocol: ForgejoProtocol,
|
|
3996
|
+
retry: Retry.Retry,
|
|
3997
|
+
}));
|
|
3998
|
+
|
|
3999
|
+
export type UserCurrentListGPGKeysError = Forbidden | ForgejoOpError;
|
|
4000
|
+
/** List the authenticated user's GPG keys */
|
|
4001
|
+
export const userCurrentListGPGKeys: API.OperationMethod<
|
|
4002
|
+
UserCurrentListGPGKeysRequest,
|
|
4003
|
+
UserCurrentListGPGKeysResponse,
|
|
4004
|
+
UserCurrentListGPGKeysError,
|
|
4005
|
+
ForgejoOpContext
|
|
4006
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
4007
|
+
input: UserCurrentListGPGKeysRequest,
|
|
4008
|
+
output: UserCurrentListGPGKeysResponse,
|
|
4009
|
+
errors: [Forbidden],
|
|
4010
|
+
protocol: ForgejoProtocol,
|
|
4011
|
+
retry: Retry.Retry,
|
|
4012
|
+
}));
|
|
4013
|
+
|
|
4014
|
+
export type UserCurrentListKeysError = Forbidden | ForgejoOpError;
|
|
4015
|
+
/** List the authenticated user's public keys */
|
|
4016
|
+
export const userCurrentListKeys: API.OperationMethod<
|
|
4017
|
+
UserCurrentListKeysRequest,
|
|
4018
|
+
UserCurrentListKeysResponse,
|
|
4019
|
+
UserCurrentListKeysError,
|
|
4020
|
+
ForgejoOpContext
|
|
4021
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
4022
|
+
input: UserCurrentListKeysRequest,
|
|
4023
|
+
output: UserCurrentListKeysResponse,
|
|
4024
|
+
errors: [Forbidden],
|
|
4025
|
+
protocol: ForgejoProtocol,
|
|
4026
|
+
retry: Retry.Retry,
|
|
4027
|
+
}));
|
|
4028
|
+
|
|
4029
|
+
export type UserCurrentListReposError =
|
|
4030
|
+
| Forbidden
|
|
4031
|
+
| UnprocessableEntity
|
|
4032
|
+
| ForgejoOpError;
|
|
4033
|
+
/** List the repos that the authenticated user owns */
|
|
4034
|
+
export const userCurrentListRepos: API.OperationMethod<
|
|
4035
|
+
UserCurrentListReposRequest,
|
|
4036
|
+
UserCurrentListReposResponse,
|
|
4037
|
+
UserCurrentListReposError,
|
|
4038
|
+
ForgejoOpContext
|
|
4039
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
4040
|
+
input: UserCurrentListReposRequest,
|
|
4041
|
+
output: UserCurrentListReposResponse,
|
|
4042
|
+
errors: [Forbidden, UnprocessableEntity],
|
|
4043
|
+
protocol: ForgejoProtocol,
|
|
4044
|
+
retry: Retry.Retry,
|
|
4045
|
+
}));
|
|
4046
|
+
|
|
4047
|
+
export type UserCurrentListStarredError = Forbidden | ForgejoOpError;
|
|
4048
|
+
/** The repos that the authenticated user has starred */
|
|
4049
|
+
export const userCurrentListStarred: API.OperationMethod<
|
|
4050
|
+
UserCurrentListStarredRequest,
|
|
4051
|
+
UserCurrentListStarredResponse,
|
|
4052
|
+
UserCurrentListStarredError,
|
|
4053
|
+
ForgejoOpContext
|
|
4054
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
4055
|
+
input: UserCurrentListStarredRequest,
|
|
4056
|
+
output: UserCurrentListStarredResponse,
|
|
4057
|
+
errors: [Forbidden],
|
|
4058
|
+
protocol: ForgejoProtocol,
|
|
4059
|
+
retry: Retry.Retry,
|
|
4060
|
+
}));
|
|
4061
|
+
|
|
4062
|
+
export type UserCurrentListSubscriptionsError = Forbidden | ForgejoOpError;
|
|
4063
|
+
/** List repositories watched by the authenticated user */
|
|
4064
|
+
export const userCurrentListSubscriptions: API.OperationMethod<
|
|
4065
|
+
UserCurrentListSubscriptionsRequest,
|
|
4066
|
+
UserCurrentListSubscriptionsResponse,
|
|
4067
|
+
UserCurrentListSubscriptionsError,
|
|
4068
|
+
ForgejoOpContext
|
|
4069
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
4070
|
+
input: UserCurrentListSubscriptionsRequest,
|
|
4071
|
+
output: UserCurrentListSubscriptionsResponse,
|
|
4072
|
+
errors: [Forbidden],
|
|
4073
|
+
protocol: ForgejoProtocol,
|
|
4074
|
+
retry: Retry.Retry,
|
|
4075
|
+
}));
|
|
4076
|
+
|
|
4077
|
+
export type UserCurrentPostGPGKeyError =
|
|
4078
|
+
| Forbidden
|
|
4079
|
+
| NotFound
|
|
4080
|
+
| UnprocessableEntity
|
|
4081
|
+
| ForgejoOpError;
|
|
4082
|
+
/** Add a GPG public key to current user's account */
|
|
4083
|
+
export const userCurrentPostGPGKey: API.OperationMethod<
|
|
4084
|
+
UserCurrentPostGPGKeyRequest,
|
|
4085
|
+
GPGKey,
|
|
4086
|
+
UserCurrentPostGPGKeyError,
|
|
4087
|
+
ForgejoOpContext
|
|
4088
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
4089
|
+
input: UserCurrentPostGPGKeyRequest,
|
|
4090
|
+
output: GPGKey,
|
|
4091
|
+
errors: [Forbidden, NotFound, UnprocessableEntity],
|
|
4092
|
+
protocol: ForgejoProtocol,
|
|
4093
|
+
retry: Retry.Retry,
|
|
4094
|
+
}));
|
|
4095
|
+
|
|
4096
|
+
export type UserCurrentPostKeyError =
|
|
4097
|
+
| Forbidden
|
|
4098
|
+
| UnprocessableEntity
|
|
4099
|
+
| ForgejoOpError;
|
|
4100
|
+
/** Create a public key */
|
|
4101
|
+
export const userCurrentPostKey: API.OperationMethod<
|
|
4102
|
+
UserCurrentPostKeyRequest,
|
|
4103
|
+
PublicKey,
|
|
4104
|
+
UserCurrentPostKeyError,
|
|
4105
|
+
ForgejoOpContext
|
|
4106
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
4107
|
+
input: UserCurrentPostKeyRequest,
|
|
4108
|
+
output: PublicKey,
|
|
4109
|
+
errors: [Forbidden, UnprocessableEntity],
|
|
4110
|
+
protocol: ForgejoProtocol,
|
|
4111
|
+
retry: Retry.Retry,
|
|
4112
|
+
}));
|
|
4113
|
+
|
|
4114
|
+
export type UserCurrentPutFollowError = Forbidden | NotFound | ForgejoOpError;
|
|
4115
|
+
/** Follow a user */
|
|
4116
|
+
export const userCurrentPutFollow: API.OperationMethod<
|
|
4117
|
+
UserCurrentPutFollowRequest,
|
|
4118
|
+
UserCurrentPutFollowResponse,
|
|
4119
|
+
UserCurrentPutFollowError,
|
|
4120
|
+
ForgejoOpContext
|
|
4121
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
4122
|
+
input: UserCurrentPutFollowRequest,
|
|
4123
|
+
output: UserCurrentPutFollowResponse,
|
|
4124
|
+
errors: [Forbidden, NotFound],
|
|
4125
|
+
protocol: ForgejoProtocol,
|
|
4126
|
+
retry: Retry.Retry,
|
|
4127
|
+
}));
|
|
4128
|
+
|
|
4129
|
+
export type UserCurrentPutStarError = Forbidden | NotFound | ForgejoOpError;
|
|
4130
|
+
/** Star the given repo */
|
|
4131
|
+
export const userCurrentPutStar: API.OperationMethod<
|
|
4132
|
+
UserCurrentPutStarRequest,
|
|
4133
|
+
UserCurrentPutStarResponse,
|
|
4134
|
+
UserCurrentPutStarError,
|
|
4135
|
+
ForgejoOpContext
|
|
4136
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
4137
|
+
input: UserCurrentPutStarRequest,
|
|
4138
|
+
output: UserCurrentPutStarResponse,
|
|
4139
|
+
errors: [Forbidden, NotFound],
|
|
4140
|
+
protocol: ForgejoProtocol,
|
|
4141
|
+
retry: Retry.Retry,
|
|
4142
|
+
}));
|
|
4143
|
+
|
|
4144
|
+
export type UserCurrentTrackedTimesError = Forbidden | ForgejoOpError;
|
|
4145
|
+
/** List the current user's tracked times */
|
|
4146
|
+
export const userCurrentTrackedTimes: API.OperationMethod<
|
|
4147
|
+
UserCurrentTrackedTimesRequest,
|
|
4148
|
+
UserCurrentTrackedTimesResponse,
|
|
4149
|
+
UserCurrentTrackedTimesError,
|
|
4150
|
+
ForgejoOpContext
|
|
4151
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
4152
|
+
input: UserCurrentTrackedTimesRequest,
|
|
4153
|
+
output: UserCurrentTrackedTimesResponse,
|
|
4154
|
+
errors: [Forbidden],
|
|
4155
|
+
protocol: ForgejoProtocol,
|
|
4156
|
+
retry: Retry.Retry,
|
|
4157
|
+
}));
|
|
4158
|
+
|
|
4159
|
+
export type UserDeleteAccessTokenError =
|
|
4160
|
+
| Forbidden
|
|
4161
|
+
| NotFound
|
|
4162
|
+
| UnprocessableEntity
|
|
4163
|
+
| ForgejoOpError;
|
|
4164
|
+
/** Delete an access token from the specified user's account */
|
|
4165
|
+
export const userDeleteAccessToken: API.OperationMethod<
|
|
4166
|
+
UserDeleteAccessTokenRequest,
|
|
4167
|
+
UserDeleteAccessTokenResponse,
|
|
4168
|
+
UserDeleteAccessTokenError,
|
|
4169
|
+
ForgejoOpContext
|
|
4170
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
4171
|
+
input: UserDeleteAccessTokenRequest,
|
|
4172
|
+
output: UserDeleteAccessTokenResponse,
|
|
4173
|
+
errors: [Forbidden, NotFound, UnprocessableEntity],
|
|
4174
|
+
protocol: ForgejoProtocol,
|
|
4175
|
+
retry: Retry.Retry,
|
|
4176
|
+
}));
|
|
4177
|
+
|
|
4178
|
+
export type UserDeleteAvatarError = Forbidden | ForgejoOpError;
|
|
4179
|
+
/** Delete avatar of the current user. It will be replaced by a default one */
|
|
4180
|
+
export const userDeleteAvatar: API.OperationMethod<
|
|
4181
|
+
UserDeleteAvatarRequest,
|
|
4182
|
+
UserDeleteAvatarResponse,
|
|
4183
|
+
UserDeleteAvatarError,
|
|
4184
|
+
ForgejoOpContext
|
|
4185
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
4186
|
+
input: UserDeleteAvatarRequest,
|
|
4187
|
+
output: UserDeleteAvatarResponse,
|
|
4188
|
+
errors: [Forbidden],
|
|
4189
|
+
protocol: ForgejoProtocol,
|
|
4190
|
+
retry: Retry.Retry,
|
|
4191
|
+
}));
|
|
4192
|
+
|
|
4193
|
+
export type UserDeleteEmailError = Forbidden | NotFound | ForgejoOpError;
|
|
4194
|
+
/** Delete email addresses from the current user's account */
|
|
4195
|
+
export const userDeleteEmail: API.OperationMethod<
|
|
4196
|
+
UserDeleteEmailRequest,
|
|
4197
|
+
UserDeleteEmailResponse,
|
|
4198
|
+
UserDeleteEmailError,
|
|
4199
|
+
ForgejoOpContext
|
|
4200
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
4201
|
+
input: UserDeleteEmailRequest,
|
|
4202
|
+
output: UserDeleteEmailResponse,
|
|
4203
|
+
errors: [Forbidden, NotFound],
|
|
4204
|
+
protocol: ForgejoProtocol,
|
|
4205
|
+
retry: Retry.Retry,
|
|
4206
|
+
}));
|
|
4207
|
+
|
|
4208
|
+
export type UserDeleteHookError = Forbidden | ForgejoOpError;
|
|
4209
|
+
/** Delete a hook */
|
|
4210
|
+
export const userDeleteHook: API.OperationMethod<
|
|
4211
|
+
UserDeleteHookRequest,
|
|
4212
|
+
UserDeleteHookResponse,
|
|
4213
|
+
UserDeleteHookError,
|
|
4214
|
+
ForgejoOpContext
|
|
4215
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
4216
|
+
input: UserDeleteHookRequest,
|
|
4217
|
+
output: UserDeleteHookResponse,
|
|
4218
|
+
errors: [Forbidden],
|
|
4219
|
+
protocol: ForgejoProtocol,
|
|
4220
|
+
retry: Retry.Retry,
|
|
4221
|
+
}));
|
|
4222
|
+
|
|
4223
|
+
export type UserDeleteOAuth2ApplicationError =
|
|
4224
|
+
| Forbidden
|
|
4225
|
+
| NotFound
|
|
4226
|
+
| ForgejoOpError;
|
|
4227
|
+
/** Delete an OAuth2 application */
|
|
4228
|
+
export const userDeleteOAuth2Application: API.OperationMethod<
|
|
4229
|
+
UserDeleteOAuth2ApplicationRequest,
|
|
4230
|
+
UserDeleteOAuth2ApplicationResponse,
|
|
4231
|
+
UserDeleteOAuth2ApplicationError,
|
|
4232
|
+
ForgejoOpContext
|
|
4233
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
4234
|
+
input: UserDeleteOAuth2ApplicationRequest,
|
|
4235
|
+
output: UserDeleteOAuth2ApplicationResponse,
|
|
4236
|
+
errors: [Forbidden, NotFound],
|
|
4237
|
+
protocol: ForgejoProtocol,
|
|
4238
|
+
retry: Retry.Retry,
|
|
4239
|
+
}));
|
|
4240
|
+
|
|
4241
|
+
export type UserEditHookError = Forbidden | ForgejoOpError;
|
|
4242
|
+
/** Update a hook */
|
|
4243
|
+
export const userEditHook: API.OperationMethod<
|
|
4244
|
+
UserEditHookRequest,
|
|
4245
|
+
Hook,
|
|
4246
|
+
UserEditHookError,
|
|
4247
|
+
ForgejoOpContext
|
|
4248
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
4249
|
+
input: UserEditHookRequest,
|
|
4250
|
+
output: Hook,
|
|
4251
|
+
errors: [Forbidden],
|
|
4252
|
+
protocol: ForgejoProtocol,
|
|
4253
|
+
retry: Retry.Retry,
|
|
4254
|
+
}));
|
|
4255
|
+
|
|
4256
|
+
export type UserGetCurrentError = Forbidden | ForgejoOpError;
|
|
4257
|
+
/** Get the authenticated user */
|
|
4258
|
+
export const userGetCurrent: API.OperationMethod<
|
|
4259
|
+
UserGetCurrentRequest,
|
|
4260
|
+
User,
|
|
4261
|
+
UserGetCurrentError,
|
|
4262
|
+
ForgejoOpContext
|
|
4263
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
4264
|
+
input: UserGetCurrentRequest,
|
|
4265
|
+
output: User,
|
|
4266
|
+
errors: [Forbidden],
|
|
4267
|
+
protocol: ForgejoProtocol,
|
|
4268
|
+
retry: Retry.Retry,
|
|
4269
|
+
}));
|
|
4270
|
+
|
|
4271
|
+
export type UserGetHeatmapDataError = NotFound | ForgejoOpError;
|
|
4272
|
+
/** Get a user's heatmap */
|
|
4273
|
+
export const userGetHeatmapData: API.OperationMethod<
|
|
4274
|
+
UserGetHeatmapDataRequest,
|
|
4275
|
+
UserGetHeatmapDataResponse,
|
|
4276
|
+
UserGetHeatmapDataError,
|
|
4277
|
+
ForgejoOpContext
|
|
4278
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
4279
|
+
input: UserGetHeatmapDataRequest,
|
|
4280
|
+
output: UserGetHeatmapDataResponse,
|
|
4281
|
+
errors: [NotFound],
|
|
4282
|
+
protocol: ForgejoProtocol,
|
|
4283
|
+
retry: Retry.Retry,
|
|
4284
|
+
}));
|
|
4285
|
+
|
|
4286
|
+
export type UserGetHookError = Forbidden | ForgejoOpError;
|
|
4287
|
+
/** Get a hook */
|
|
4288
|
+
export const userGetHook: API.OperationMethod<
|
|
4289
|
+
UserGetHookRequest,
|
|
4290
|
+
Hook,
|
|
4291
|
+
UserGetHookError,
|
|
4292
|
+
ForgejoOpContext
|
|
4293
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
4294
|
+
input: UserGetHookRequest,
|
|
4295
|
+
output: Hook,
|
|
4296
|
+
errors: [Forbidden],
|
|
4297
|
+
protocol: ForgejoProtocol,
|
|
4298
|
+
retry: Retry.Retry,
|
|
4299
|
+
}));
|
|
4300
|
+
|
|
4301
|
+
export type UserGetOAuth2ApplicationError =
|
|
4302
|
+
| Forbidden
|
|
4303
|
+
| NotFound
|
|
4304
|
+
| ForgejoOpError;
|
|
4305
|
+
/** Get an OAuth2 application */
|
|
4306
|
+
export const userGetOAuth2Application: API.OperationMethod<
|
|
4307
|
+
UserGetOAuth2ApplicationRequest,
|
|
4308
|
+
OAuth2Application,
|
|
4309
|
+
UserGetOAuth2ApplicationError,
|
|
4310
|
+
ForgejoOpContext
|
|
4311
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
4312
|
+
input: UserGetOAuth2ApplicationRequest,
|
|
4313
|
+
output: OAuth2Application,
|
|
4314
|
+
errors: [Forbidden, NotFound],
|
|
4315
|
+
protocol: ForgejoProtocol,
|
|
4316
|
+
retry: Retry.Retry,
|
|
4317
|
+
}));
|
|
4318
|
+
|
|
4319
|
+
export type UserGetOAuth2ApplicationsError = Forbidden | ForgejoOpError;
|
|
4320
|
+
/** List the authenticated user's oauth2 applications */
|
|
4321
|
+
export const userGetOAuth2Applications: API.OperationMethod<
|
|
4322
|
+
UserGetOAuth2ApplicationsRequest,
|
|
4323
|
+
UserGetOAuth2ApplicationsResponse,
|
|
4324
|
+
UserGetOAuth2ApplicationsError,
|
|
4325
|
+
ForgejoOpContext
|
|
4326
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
4327
|
+
input: UserGetOAuth2ApplicationsRequest,
|
|
4328
|
+
output: UserGetOAuth2ApplicationsResponse,
|
|
4329
|
+
errors: [Forbidden],
|
|
4330
|
+
protocol: ForgejoProtocol,
|
|
4331
|
+
retry: Retry.Retry,
|
|
4332
|
+
}));
|
|
4333
|
+
|
|
4334
|
+
export type UserGetQuotaError = Forbidden | ForgejoOpError;
|
|
4335
|
+
/** Get quota information for the authenticated user */
|
|
4336
|
+
export const userGetQuota: API.OperationMethod<
|
|
4337
|
+
UserGetQuotaRequest,
|
|
4338
|
+
QuotaInfo,
|
|
4339
|
+
UserGetQuotaError,
|
|
4340
|
+
ForgejoOpContext
|
|
4341
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
4342
|
+
input: UserGetQuotaRequest,
|
|
4343
|
+
output: QuotaInfo,
|
|
4344
|
+
errors: [Forbidden],
|
|
4345
|
+
protocol: ForgejoProtocol,
|
|
4346
|
+
retry: Retry.Retry,
|
|
4347
|
+
}));
|
|
4348
|
+
|
|
4349
|
+
export type UserGetStopWatchesError = Forbidden | ForgejoOpError;
|
|
4350
|
+
/** Get list of all existing stopwatches */
|
|
4351
|
+
export const userGetStopWatches: API.OperationMethod<
|
|
4352
|
+
UserGetStopWatchesRequest,
|
|
4353
|
+
UserGetStopWatchesResponse,
|
|
4354
|
+
UserGetStopWatchesError,
|
|
4355
|
+
ForgejoOpContext
|
|
4356
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
4357
|
+
input: UserGetStopWatchesRequest,
|
|
4358
|
+
output: UserGetStopWatchesResponse,
|
|
4359
|
+
errors: [Forbidden],
|
|
4360
|
+
protocol: ForgejoProtocol,
|
|
4361
|
+
retry: Retry.Retry,
|
|
4362
|
+
}));
|
|
4363
|
+
|
|
4364
|
+
export type UserGetTokensError = Forbidden | NotFound | ForgejoOpError;
|
|
4365
|
+
/** List the specified user's access tokens */
|
|
4366
|
+
export const userGetTokens: API.OperationMethod<
|
|
4367
|
+
UserGetTokensRequest,
|
|
4368
|
+
UserGetTokensResponse,
|
|
4369
|
+
UserGetTokensError,
|
|
4370
|
+
ForgejoOpContext
|
|
4371
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
4372
|
+
input: UserGetTokensRequest,
|
|
4373
|
+
output: UserGetTokensResponse,
|
|
4374
|
+
errors: [Forbidden, NotFound],
|
|
4375
|
+
protocol: ForgejoProtocol,
|
|
4376
|
+
retry: Retry.Retry,
|
|
4377
|
+
}));
|
|
4378
|
+
|
|
4379
|
+
export type UserListActivityFeedsError = NotFound | ForgejoOpError;
|
|
4380
|
+
/** List a user's activity feeds */
|
|
4381
|
+
export const userListActivityFeeds: API.OperationMethod<
|
|
4382
|
+
UserListActivityFeedsRequest,
|
|
4383
|
+
UserListActivityFeedsResponse,
|
|
4384
|
+
UserListActivityFeedsError,
|
|
4385
|
+
ForgejoOpContext
|
|
4386
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
4387
|
+
input: UserListActivityFeedsRequest,
|
|
4388
|
+
output: UserListActivityFeedsResponse,
|
|
4389
|
+
errors: [NotFound],
|
|
4390
|
+
protocol: ForgejoProtocol,
|
|
4391
|
+
retry: Retry.Retry,
|
|
4392
|
+
}));
|
|
4393
|
+
|
|
4394
|
+
export type UserListBlockedUsersError = Forbidden | ForgejoOpError;
|
|
4395
|
+
/** List the authenticated user's blocked users */
|
|
4396
|
+
export const userListBlockedUsers: API.OperationMethod<
|
|
4397
|
+
UserListBlockedUsersRequest,
|
|
4398
|
+
UserListBlockedUsersResponse,
|
|
4399
|
+
UserListBlockedUsersError,
|
|
4400
|
+
ForgejoOpContext
|
|
4401
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
4402
|
+
input: UserListBlockedUsersRequest,
|
|
4403
|
+
output: UserListBlockedUsersResponse,
|
|
4404
|
+
errors: [Forbidden],
|
|
4405
|
+
protocol: ForgejoProtocol,
|
|
4406
|
+
retry: Retry.Retry,
|
|
4407
|
+
}));
|
|
4408
|
+
|
|
4409
|
+
export type UserListEmailsError = Forbidden | ForgejoOpError;
|
|
4410
|
+
/** List all email addresses of the current user */
|
|
4411
|
+
export const userListEmails: API.OperationMethod<
|
|
4412
|
+
UserListEmailsRequest,
|
|
4413
|
+
UserListEmailsResponse,
|
|
4414
|
+
UserListEmailsError,
|
|
4415
|
+
ForgejoOpContext
|
|
4416
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
4417
|
+
input: UserListEmailsRequest,
|
|
4418
|
+
output: UserListEmailsResponse,
|
|
4419
|
+
errors: [Forbidden],
|
|
4420
|
+
protocol: ForgejoProtocol,
|
|
4421
|
+
retry: Retry.Retry,
|
|
4422
|
+
}));
|
|
4423
|
+
|
|
4424
|
+
export type UserListFollowersError = NotFound | ForgejoOpError;
|
|
4425
|
+
/** List the given user's followers */
|
|
4426
|
+
export const userListFollowers: API.OperationMethod<
|
|
4427
|
+
UserListFollowersRequest,
|
|
4428
|
+
UserListFollowersResponse,
|
|
4429
|
+
UserListFollowersError,
|
|
4430
|
+
ForgejoOpContext
|
|
4431
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
4432
|
+
input: UserListFollowersRequest,
|
|
4433
|
+
output: UserListFollowersResponse,
|
|
4434
|
+
errors: [NotFound],
|
|
4435
|
+
protocol: ForgejoProtocol,
|
|
4436
|
+
retry: Retry.Retry,
|
|
4437
|
+
}));
|
|
4438
|
+
|
|
4439
|
+
export type UserListFollowingError = NotFound | ForgejoOpError;
|
|
4440
|
+
/** List the users that the given user is following */
|
|
4441
|
+
export const userListFollowing: API.OperationMethod<
|
|
4442
|
+
UserListFollowingRequest,
|
|
4443
|
+
UserListFollowingResponse,
|
|
4444
|
+
UserListFollowingError,
|
|
4445
|
+
ForgejoOpContext
|
|
4446
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
4447
|
+
input: UserListFollowingRequest,
|
|
4448
|
+
output: UserListFollowingResponse,
|
|
4449
|
+
errors: [NotFound],
|
|
4450
|
+
protocol: ForgejoProtocol,
|
|
4451
|
+
retry: Retry.Retry,
|
|
4452
|
+
}));
|
|
4453
|
+
|
|
4454
|
+
export type UserListGPGKeysError = NotFound | ForgejoOpError;
|
|
4455
|
+
/** List the given user's GPG keys */
|
|
4456
|
+
export const userListGPGKeys: API.OperationMethod<
|
|
4457
|
+
UserListGPGKeysRequest,
|
|
4458
|
+
UserListGPGKeysResponse,
|
|
4459
|
+
UserListGPGKeysError,
|
|
4460
|
+
ForgejoOpContext
|
|
4461
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
4462
|
+
input: UserListGPGKeysRequest,
|
|
4463
|
+
output: UserListGPGKeysResponse,
|
|
4464
|
+
errors: [NotFound],
|
|
4465
|
+
protocol: ForgejoProtocol,
|
|
4466
|
+
retry: Retry.Retry,
|
|
4467
|
+
}));
|
|
4468
|
+
|
|
4469
|
+
export type UserListHooksError = Forbidden | ForgejoOpError;
|
|
4470
|
+
/** List the authenticated user's webhooks */
|
|
4471
|
+
export const userListHooks: API.OperationMethod<
|
|
4472
|
+
UserListHooksRequest,
|
|
4473
|
+
UserListHooksResponse,
|
|
4474
|
+
UserListHooksError,
|
|
4475
|
+
ForgejoOpContext
|
|
4476
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
4477
|
+
input: UserListHooksRequest,
|
|
4478
|
+
output: UserListHooksResponse,
|
|
4479
|
+
errors: [Forbidden],
|
|
4480
|
+
protocol: ForgejoProtocol,
|
|
4481
|
+
retry: Retry.Retry,
|
|
4482
|
+
}));
|
|
4483
|
+
|
|
4484
|
+
export type UserListKeysError = NotFound | ForgejoOpError;
|
|
4485
|
+
/** List the given user's public keys */
|
|
4486
|
+
export const userListKeys: API.OperationMethod<
|
|
4487
|
+
UserListKeysRequest,
|
|
4488
|
+
UserListKeysResponse,
|
|
4489
|
+
UserListKeysError,
|
|
4490
|
+
ForgejoOpContext
|
|
4491
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
4492
|
+
input: UserListKeysRequest,
|
|
4493
|
+
output: UserListKeysResponse,
|
|
4494
|
+
errors: [NotFound],
|
|
4495
|
+
protocol: ForgejoProtocol,
|
|
4496
|
+
retry: Retry.Retry,
|
|
4497
|
+
}));
|
|
4498
|
+
|
|
4499
|
+
export type UserListQuotaArtifactsError = Forbidden | ForgejoOpError;
|
|
4500
|
+
/** List the artifacts affecting the authenticated user's quota */
|
|
4501
|
+
export const userListQuotaArtifacts: API.OperationMethod<
|
|
4502
|
+
UserListQuotaArtifactsRequest,
|
|
4503
|
+
UserListQuotaArtifactsResponse,
|
|
4504
|
+
UserListQuotaArtifactsError,
|
|
4505
|
+
ForgejoOpContext
|
|
4506
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
4507
|
+
input: UserListQuotaArtifactsRequest,
|
|
4508
|
+
output: UserListQuotaArtifactsResponse,
|
|
4509
|
+
errors: [Forbidden],
|
|
4510
|
+
protocol: ForgejoProtocol,
|
|
4511
|
+
retry: Retry.Retry,
|
|
4512
|
+
}));
|
|
4513
|
+
|
|
4514
|
+
export type UserListQuotaAttachmentsError = Forbidden | ForgejoOpError;
|
|
4515
|
+
/** List the attachments affecting the authenticated user's quota */
|
|
4516
|
+
export const userListQuotaAttachments: API.OperationMethod<
|
|
4517
|
+
UserListQuotaAttachmentsRequest,
|
|
4518
|
+
UserListQuotaAttachmentsResponse,
|
|
4519
|
+
UserListQuotaAttachmentsError,
|
|
4520
|
+
ForgejoOpContext
|
|
4521
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
4522
|
+
input: UserListQuotaAttachmentsRequest,
|
|
4523
|
+
output: UserListQuotaAttachmentsResponse,
|
|
4524
|
+
errors: [Forbidden],
|
|
4525
|
+
protocol: ForgejoProtocol,
|
|
4526
|
+
retry: Retry.Retry,
|
|
4527
|
+
}));
|
|
4528
|
+
|
|
4529
|
+
export type UserListQuotaPackagesError = Forbidden | ForgejoOpError;
|
|
4530
|
+
/** List the packages affecting the authenticated user's quota */
|
|
4531
|
+
export const userListQuotaPackages: API.OperationMethod<
|
|
4532
|
+
UserListQuotaPackagesRequest,
|
|
4533
|
+
UserListQuotaPackagesResponse,
|
|
4534
|
+
UserListQuotaPackagesError,
|
|
4535
|
+
ForgejoOpContext
|
|
4536
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
4537
|
+
input: UserListQuotaPackagesRequest,
|
|
4538
|
+
output: UserListQuotaPackagesResponse,
|
|
4539
|
+
errors: [Forbidden],
|
|
4540
|
+
protocol: ForgejoProtocol,
|
|
4541
|
+
retry: Retry.Retry,
|
|
4542
|
+
}));
|
|
4543
|
+
|
|
4544
|
+
export type UserListReposError = NotFound | ForgejoOpError;
|
|
4545
|
+
/** List the repos owned by the given user */
|
|
4546
|
+
export const userListRepos: API.OperationMethod<
|
|
4547
|
+
UserListReposRequest,
|
|
4548
|
+
UserListReposResponse,
|
|
4549
|
+
UserListReposError,
|
|
4550
|
+
ForgejoOpContext
|
|
4551
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
4552
|
+
input: UserListReposRequest,
|
|
4553
|
+
output: UserListReposResponse,
|
|
4554
|
+
errors: [NotFound],
|
|
4555
|
+
protocol: ForgejoProtocol,
|
|
4556
|
+
retry: Retry.Retry,
|
|
4557
|
+
}));
|
|
4558
|
+
|
|
4559
|
+
export type UserListStarredError = NotFound | ForgejoOpError;
|
|
4560
|
+
/** The repos that the given user has starred */
|
|
4561
|
+
export const userListStarred: API.OperationMethod<
|
|
4562
|
+
UserListStarredRequest,
|
|
4563
|
+
UserListStarredResponse,
|
|
4564
|
+
UserListStarredError,
|
|
4565
|
+
ForgejoOpContext
|
|
4566
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
4567
|
+
input: UserListStarredRequest,
|
|
4568
|
+
output: UserListStarredResponse,
|
|
4569
|
+
errors: [NotFound],
|
|
4570
|
+
protocol: ForgejoProtocol,
|
|
4571
|
+
retry: Retry.Retry,
|
|
4572
|
+
}));
|
|
4573
|
+
|
|
4574
|
+
export type UserListSubscriptionsError = NotFound | ForgejoOpError;
|
|
4575
|
+
/** List the repositories watched by a user */
|
|
4576
|
+
export const userListSubscriptions: API.OperationMethod<
|
|
4577
|
+
UserListSubscriptionsRequest,
|
|
4578
|
+
UserListSubscriptionsResponse,
|
|
4579
|
+
UserListSubscriptionsError,
|
|
4580
|
+
ForgejoOpContext
|
|
4581
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
4582
|
+
input: UserListSubscriptionsRequest,
|
|
4583
|
+
output: UserListSubscriptionsResponse,
|
|
4584
|
+
errors: [NotFound],
|
|
4585
|
+
protocol: ForgejoProtocol,
|
|
4586
|
+
retry: Retry.Retry,
|
|
4587
|
+
}));
|
|
4588
|
+
|
|
4589
|
+
export type UserListTeamsError = Forbidden | ForgejoOpError;
|
|
4590
|
+
/** List all the teams a user belongs to */
|
|
4591
|
+
export const userListTeams: API.OperationMethod<
|
|
4592
|
+
UserListTeamsRequest,
|
|
4593
|
+
UserListTeamsResponse,
|
|
4594
|
+
UserListTeamsError,
|
|
4595
|
+
ForgejoOpContext
|
|
4596
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
4597
|
+
input: UserListTeamsRequest,
|
|
4598
|
+
output: UserListTeamsResponse,
|
|
4599
|
+
errors: [Forbidden],
|
|
4600
|
+
protocol: ForgejoProtocol,
|
|
4601
|
+
retry: Retry.Retry,
|
|
4602
|
+
}));
|
|
4603
|
+
|
|
4604
|
+
export type UserSearchRunJobsError = Forbidden | ForgejoOpError;
|
|
4605
|
+
/** Search for user's action jobs according filter conditions */
|
|
4606
|
+
export const userSearchRunJobs: API.OperationMethod<
|
|
4607
|
+
UserSearchRunJobsRequest,
|
|
4608
|
+
UserSearchRunJobsResponse,
|
|
4609
|
+
UserSearchRunJobsError,
|
|
4610
|
+
ForgejoOpContext
|
|
4611
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
4612
|
+
input: UserSearchRunJobsRequest,
|
|
4613
|
+
output: UserSearchRunJobsResponse,
|
|
4614
|
+
errors: [Forbidden],
|
|
4615
|
+
protocol: ForgejoProtocol,
|
|
4616
|
+
retry: Retry.Retry,
|
|
4617
|
+
}));
|
|
4618
|
+
|
|
4619
|
+
export type UserUpdateAvatarError = Forbidden | ForgejoOpError;
|
|
4620
|
+
/** Update avatar of the current user */
|
|
4621
|
+
export const userUpdateAvatar: API.OperationMethod<
|
|
4622
|
+
UserUpdateAvatarRequest,
|
|
4623
|
+
UserUpdateAvatarResponse,
|
|
4624
|
+
UserUpdateAvatarError,
|
|
4625
|
+
ForgejoOpContext
|
|
4626
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
4627
|
+
input: UserUpdateAvatarRequest,
|
|
4628
|
+
output: UserUpdateAvatarResponse,
|
|
4629
|
+
errors: [Forbidden],
|
|
4630
|
+
protocol: ForgejoProtocol,
|
|
4631
|
+
retry: Retry.Retry,
|
|
4632
|
+
}));
|
|
4633
|
+
|
|
4634
|
+
export type UserUpdateOAuth2ApplicationError =
|
|
4635
|
+
| Forbidden
|
|
4636
|
+
| NotFound
|
|
4637
|
+
| ForgejoOpError;
|
|
4638
|
+
/** Update an OAuth2 application, this includes regenerating the client secret */
|
|
4639
|
+
export const userUpdateOAuth2Application: API.OperationMethod<
|
|
4640
|
+
UserUpdateOAuth2ApplicationRequest,
|
|
4641
|
+
OAuth2Application,
|
|
4642
|
+
UserUpdateOAuth2ApplicationError,
|
|
4643
|
+
ForgejoOpContext
|
|
4644
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
4645
|
+
input: UserUpdateOAuth2ApplicationRequest,
|
|
4646
|
+
output: OAuth2Application,
|
|
4647
|
+
errors: [Forbidden, NotFound],
|
|
4648
|
+
protocol: ForgejoProtocol,
|
|
4649
|
+
retry: Retry.Retry,
|
|
4650
|
+
}));
|
|
4651
|
+
|
|
4652
|
+
export type UserVerifyGPGKeyError =
|
|
4653
|
+
| Forbidden
|
|
4654
|
+
| NotFound
|
|
4655
|
+
| UnprocessableEntity
|
|
4656
|
+
| ForgejoOpError;
|
|
4657
|
+
/** Verify a GPG key */
|
|
4658
|
+
export const userVerifyGPGKey: API.OperationMethod<
|
|
4659
|
+
UserVerifyGPGKeyRequest,
|
|
4660
|
+
GPGKey,
|
|
4661
|
+
UserVerifyGPGKeyError,
|
|
4662
|
+
ForgejoOpContext
|
|
4663
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
4664
|
+
input: UserVerifyGPGKeyRequest,
|
|
4665
|
+
output: GPGKey,
|
|
4666
|
+
errors: [Forbidden, NotFound, UnprocessableEntity],
|
|
4667
|
+
protocol: ForgejoProtocol,
|
|
4668
|
+
retry: Retry.Retry,
|
|
4669
|
+
}));
|