@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,1196 @@
|
|
|
1
|
+
import * as S from "@distilled.cloud/core/schema";
|
|
2
|
+
import * as Redacted from "effect/Redacted";
|
|
3
|
+
import * as API from "@distilled.cloud/core/api";
|
|
4
|
+
import { type ForgejoOpError, type ForgejoOpContext } from "../protocol.ts";
|
|
5
|
+
export type { ForgejoOpError, ForgejoOpContext };
|
|
6
|
+
declare const BadRequest_base: S.Class<BadRequest, S.TaggedStruct<"BadRequest", {
|
|
7
|
+
readonly code: any;
|
|
8
|
+
readonly message: any;
|
|
9
|
+
}>, import("effect/Cause").YieldableError> & (new (...args: any[]) => {
|
|
10
|
+
"@distilled.cloud/error/categories": {
|
|
11
|
+
BadRequestError: true;
|
|
12
|
+
};
|
|
13
|
+
});
|
|
14
|
+
export declare class BadRequest extends /*@__PURE__*/ BadRequest_base {
|
|
15
|
+
}
|
|
16
|
+
declare const Conflict_base: S.Class<Conflict, S.TaggedStruct<"Conflict", {
|
|
17
|
+
readonly code: any;
|
|
18
|
+
readonly message: any;
|
|
19
|
+
}>, import("effect/Cause").YieldableError> & (new (...args: any[]) => {
|
|
20
|
+
"@distilled.cloud/error/categories": {
|
|
21
|
+
ConflictError: true;
|
|
22
|
+
};
|
|
23
|
+
});
|
|
24
|
+
export declare class Conflict extends /*@__PURE__*/ Conflict_base {
|
|
25
|
+
}
|
|
26
|
+
declare const Forbidden_base: S.Class<Forbidden, S.TaggedStruct<"Forbidden", {
|
|
27
|
+
readonly code: any;
|
|
28
|
+
readonly message: any;
|
|
29
|
+
}>, import("effect/Cause").YieldableError> & (new (...args: any[]) => {
|
|
30
|
+
"@distilled.cloud/error/categories": {
|
|
31
|
+
AuthError: true;
|
|
32
|
+
};
|
|
33
|
+
});
|
|
34
|
+
export declare class Forbidden extends /*@__PURE__*/ Forbidden_base {
|
|
35
|
+
}
|
|
36
|
+
declare const NotFound_base: S.Class<NotFound, S.TaggedStruct<"NotFound", {
|
|
37
|
+
readonly code: any;
|
|
38
|
+
readonly message: any;
|
|
39
|
+
}>, import("effect/Cause").YieldableError> & (new (...args: any[]) => {
|
|
40
|
+
"@distilled.cloud/error/categories": {
|
|
41
|
+
BadRequestError: true;
|
|
42
|
+
};
|
|
43
|
+
});
|
|
44
|
+
export declare class NotFound extends /*@__PURE__*/ NotFound_base {
|
|
45
|
+
}
|
|
46
|
+
declare const UnprocessableEntity_base: S.Class<UnprocessableEntity, S.TaggedStruct<"UnprocessableEntity", {
|
|
47
|
+
readonly code: any;
|
|
48
|
+
readonly message: any;
|
|
49
|
+
}>, import("effect/Cause").YieldableError> & (new (...args: any[]) => {
|
|
50
|
+
"@distilled.cloud/error/categories": {
|
|
51
|
+
BadRequestError: true;
|
|
52
|
+
};
|
|
53
|
+
});
|
|
54
|
+
export declare class UnprocessableEntity extends /*@__PURE__*/ UnprocessableEntity_base {
|
|
55
|
+
}
|
|
56
|
+
export interface AdminAddRuleToQuotaGroupRequest {
|
|
57
|
+
/** quota group to add a rule to */
|
|
58
|
+
quotagroup: string;
|
|
59
|
+
/** the name of the quota rule to add to the group */
|
|
60
|
+
quotarule: string;
|
|
61
|
+
}
|
|
62
|
+
export declare const AdminAddRuleToQuotaGroupRequest: S.Schema<AdminAddRuleToQuotaGroupRequest>;
|
|
63
|
+
export interface AdminAddRuleToQuotaGroupResponse {
|
|
64
|
+
}
|
|
65
|
+
export declare const AdminAddRuleToQuotaGroupResponse: S.Schema<AdminAddRuleToQuotaGroupResponse>;
|
|
66
|
+
export interface AdminAddUserToQuotaGroupRequest {
|
|
67
|
+
/** quota group to add the user to */
|
|
68
|
+
quotagroup: string;
|
|
69
|
+
/** username of the user to add to the quota group */
|
|
70
|
+
username: string;
|
|
71
|
+
}
|
|
72
|
+
export declare const AdminAddUserToQuotaGroupRequest: S.Schema<AdminAddUserToQuotaGroupRequest>;
|
|
73
|
+
export interface AdminAddUserToQuotaGroupResponse {
|
|
74
|
+
}
|
|
75
|
+
export declare const AdminAddUserToQuotaGroupResponse: S.Schema<AdminAddUserToQuotaGroupResponse>;
|
|
76
|
+
export interface AdminAdoptRepositoryRequest {
|
|
77
|
+
/** owner of the repo */
|
|
78
|
+
owner: string;
|
|
79
|
+
/** name of the repo */
|
|
80
|
+
repo: string;
|
|
81
|
+
}
|
|
82
|
+
export declare const AdminAdoptRepositoryRequest: S.Schema<AdminAdoptRepositoryRequest>;
|
|
83
|
+
export interface AdminAdoptRepositoryResponse {
|
|
84
|
+
}
|
|
85
|
+
export declare const AdminAdoptRepositoryResponse: S.Schema<AdminAdoptRepositoryResponse>;
|
|
86
|
+
/** CreateHookOptionConfig has all config options in it required are "content_type" and "url" Required */
|
|
87
|
+
export type CreateHookOptionConfig = {
|
|
88
|
+
[key: string]: string | undefined;
|
|
89
|
+
};
|
|
90
|
+
export declare const CreateHookOptionConfig: S.Schema<CreateHookOptionConfig>;
|
|
91
|
+
export type AdminCreateHookRequestEventsList = Array<string>;
|
|
92
|
+
export declare const AdminCreateHookRequestEventsList: S.Schema<AdminCreateHookRequestEventsList>;
|
|
93
|
+
export type AdminCreateHookRequestType = "forgejo" | "dingtalk" | "discord" | "gitea" | "gogs" | "msteams" | "slack" | "telegram" | "feishu" | "wechatwork" | "packagist";
|
|
94
|
+
export declare const AdminCreateHookRequestType: any;
|
|
95
|
+
export interface AdminCreateHookRequest {
|
|
96
|
+
active?: boolean;
|
|
97
|
+
authorization_header?: string;
|
|
98
|
+
branch_filter?: string;
|
|
99
|
+
config: CreateHookOptionConfig;
|
|
100
|
+
events?: AdminCreateHookRequestEventsList;
|
|
101
|
+
type: AdminCreateHookRequestType | (string & {});
|
|
102
|
+
}
|
|
103
|
+
export declare const AdminCreateHookRequest: S.Schema<AdminCreateHookRequest>;
|
|
104
|
+
/** Deprecated: use Metadata instead */
|
|
105
|
+
export type HookConfigMap = {
|
|
106
|
+
[key: string]: string | undefined;
|
|
107
|
+
};
|
|
108
|
+
export declare const HookConfigMap: S.Schema<HookConfigMap>;
|
|
109
|
+
export type HookEventsList = Array<string>;
|
|
110
|
+
export declare const HookEventsList: S.Schema<HookEventsList>;
|
|
111
|
+
/** Hook a hook is a web hook when one repository changed */
|
|
112
|
+
export interface Hook {
|
|
113
|
+
active: boolean;
|
|
114
|
+
authorization_header?: string;
|
|
115
|
+
branch_filter?: string;
|
|
116
|
+
/** Deprecated: use Metadata instead */
|
|
117
|
+
config?: HookConfigMap;
|
|
118
|
+
content_type?: string;
|
|
119
|
+
created_at: string;
|
|
120
|
+
events?: HookEventsList;
|
|
121
|
+
id: number;
|
|
122
|
+
metadata?: unknown;
|
|
123
|
+
type: string;
|
|
124
|
+
updated_at: string;
|
|
125
|
+
url: string;
|
|
126
|
+
}
|
|
127
|
+
export declare const Hook: S.Schema<Hook>;
|
|
128
|
+
/** possible values are `public` (default), `limited` or `private` */
|
|
129
|
+
export type AdminCreateOrgRequestVisibility = "public" | "limited" | "private";
|
|
130
|
+
export declare const AdminCreateOrgRequestVisibility: any;
|
|
131
|
+
export interface AdminCreateOrgRequest {
|
|
132
|
+
/** username of the user that will own the created organization */
|
|
133
|
+
owner: string;
|
|
134
|
+
description?: string;
|
|
135
|
+
email?: string;
|
|
136
|
+
full_name?: string;
|
|
137
|
+
location?: string;
|
|
138
|
+
repo_admin_change_team_access?: boolean;
|
|
139
|
+
username: string;
|
|
140
|
+
/** possible values are `public` (default), `limited` or `private` */
|
|
141
|
+
visibility?: AdminCreateOrgRequestVisibility | (string & {});
|
|
142
|
+
website?: string;
|
|
143
|
+
}
|
|
144
|
+
export declare const AdminCreateOrgRequest: S.Schema<AdminCreateOrgRequest>;
|
|
145
|
+
/** Organization represents an organization */
|
|
146
|
+
export interface Organization {
|
|
147
|
+
avatar_url?: string;
|
|
148
|
+
created?: string;
|
|
149
|
+
description?: string;
|
|
150
|
+
email?: string;
|
|
151
|
+
full_name?: string;
|
|
152
|
+
id: number;
|
|
153
|
+
location?: string;
|
|
154
|
+
name?: string;
|
|
155
|
+
repo_admin_change_team_access?: boolean;
|
|
156
|
+
/** deprecated */
|
|
157
|
+
username: string;
|
|
158
|
+
visibility?: string;
|
|
159
|
+
website?: string;
|
|
160
|
+
}
|
|
161
|
+
export declare const Organization: S.Schema<Organization>;
|
|
162
|
+
export interface AdminCreatePublicKeyRequest {
|
|
163
|
+
/** username of the user */
|
|
164
|
+
username: string;
|
|
165
|
+
/** An armored SSH key to add */
|
|
166
|
+
key: string;
|
|
167
|
+
/** Describe if the key has only read access or read/write */
|
|
168
|
+
read_only?: boolean;
|
|
169
|
+
/** Title of the key to add */
|
|
170
|
+
title: string;
|
|
171
|
+
}
|
|
172
|
+
export declare const AdminCreatePublicKeyRequest: S.Schema<AdminCreatePublicKeyRequest>;
|
|
173
|
+
/** User represents a user */
|
|
174
|
+
export interface User {
|
|
175
|
+
/** Is user active */
|
|
176
|
+
active?: boolean;
|
|
177
|
+
/** URL to the user's avatar */
|
|
178
|
+
avatar_url?: string;
|
|
179
|
+
created?: string;
|
|
180
|
+
/** the user's description */
|
|
181
|
+
description?: string;
|
|
182
|
+
email?: string;
|
|
183
|
+
/** user counts */
|
|
184
|
+
followers_count?: number;
|
|
185
|
+
following_count?: number;
|
|
186
|
+
/** the user's full name */
|
|
187
|
+
full_name?: string;
|
|
188
|
+
/** URL to the user's profile page */
|
|
189
|
+
html_url?: string;
|
|
190
|
+
/** the user's id */
|
|
191
|
+
id: number;
|
|
192
|
+
/** Is the user an administrator */
|
|
193
|
+
is_admin?: boolean;
|
|
194
|
+
/** User locale */
|
|
195
|
+
language?: string;
|
|
196
|
+
last_login?: string;
|
|
197
|
+
/** the user's location */
|
|
198
|
+
location?: string;
|
|
199
|
+
/** the user's username */
|
|
200
|
+
login: string;
|
|
201
|
+
/** the user's authentication sign-in name. */
|
|
202
|
+
login_name?: string;
|
|
203
|
+
/** Is user login prohibited */
|
|
204
|
+
prohibit_login?: boolean;
|
|
205
|
+
/** the user's pronouns */
|
|
206
|
+
pronouns?: string;
|
|
207
|
+
/** Is user restricted */
|
|
208
|
+
restricted?: boolean;
|
|
209
|
+
/** The ID of the user's Authentication Source */
|
|
210
|
+
source_id?: number;
|
|
211
|
+
starred_repos_count?: number;
|
|
212
|
+
/** User visibility level option: public, limited, private */
|
|
213
|
+
visibility?: string;
|
|
214
|
+
/** the user's website */
|
|
215
|
+
website?: string;
|
|
216
|
+
}
|
|
217
|
+
export declare const User: S.Schema<User>;
|
|
218
|
+
/** PublicKey publickey is a user key to push code to repository */
|
|
219
|
+
export interface PublicKey {
|
|
220
|
+
created_at?: string;
|
|
221
|
+
fingerprint?: string;
|
|
222
|
+
id?: number;
|
|
223
|
+
key?: string;
|
|
224
|
+
key_type?: string;
|
|
225
|
+
read_only?: boolean;
|
|
226
|
+
title?: string;
|
|
227
|
+
updated_at?: string;
|
|
228
|
+
url?: string;
|
|
229
|
+
user?: User;
|
|
230
|
+
verified?: boolean;
|
|
231
|
+
}
|
|
232
|
+
export declare const PublicKey: S.Schema<PublicKey>;
|
|
233
|
+
/** The subjects affected by the rule */
|
|
234
|
+
export type CreateQuotaRuleOptionsSubjectsList = Array<string>;
|
|
235
|
+
export declare const CreateQuotaRuleOptionsSubjectsList: S.Schema<CreateQuotaRuleOptionsSubjectsList>;
|
|
236
|
+
/** CreateQuotaRuleOptions represents the options for creating a quota rule */
|
|
237
|
+
export interface CreateQuotaRuleOptions {
|
|
238
|
+
/** The limit set by the rule */
|
|
239
|
+
limit?: number;
|
|
240
|
+
/** Name of the rule to create */
|
|
241
|
+
name?: string;
|
|
242
|
+
/** The subjects affected by the rule */
|
|
243
|
+
subjects?: CreateQuotaRuleOptionsSubjectsList;
|
|
244
|
+
}
|
|
245
|
+
export declare const CreateQuotaRuleOptions: S.Schema<CreateQuotaRuleOptions>;
|
|
246
|
+
/** Rules to add to the newly created group. If a rule does not exist, it will be created. */
|
|
247
|
+
export type AdminCreateQuotaGroupRequestRulesList = Array<CreateQuotaRuleOptions>;
|
|
248
|
+
export declare const AdminCreateQuotaGroupRequestRulesList: S.Schema<AdminCreateQuotaGroupRequestRulesList>;
|
|
249
|
+
export interface AdminCreateQuotaGroupRequest {
|
|
250
|
+
/** Name of the quota group to create */
|
|
251
|
+
name?: string;
|
|
252
|
+
/** Rules to add to the newly created group. If a rule does not exist, it will be created. */
|
|
253
|
+
rules?: AdminCreateQuotaGroupRequestRulesList;
|
|
254
|
+
}
|
|
255
|
+
export declare const AdminCreateQuotaGroupRequest: S.Schema<AdminCreateQuotaGroupRequest>;
|
|
256
|
+
/** Subjects the rule affects */
|
|
257
|
+
export type QuotaRuleInfoSubjectsList = Array<string>;
|
|
258
|
+
export declare const QuotaRuleInfoSubjectsList: S.Schema<QuotaRuleInfoSubjectsList>;
|
|
259
|
+
/** QuotaRuleInfo contains information about a quota rule */
|
|
260
|
+
export interface QuotaRuleInfo {
|
|
261
|
+
/** The limit set by the rule */
|
|
262
|
+
limit?: number;
|
|
263
|
+
/** Name of the rule (only shown to admins) */
|
|
264
|
+
name?: string;
|
|
265
|
+
/** Subjects the rule affects */
|
|
266
|
+
subjects?: QuotaRuleInfoSubjectsList;
|
|
267
|
+
}
|
|
268
|
+
export declare const QuotaRuleInfo: S.Schema<QuotaRuleInfo>;
|
|
269
|
+
/** Rules associated with the group */
|
|
270
|
+
export type QuotaGroupRulesList = Array<QuotaRuleInfo>;
|
|
271
|
+
export declare const QuotaGroupRulesList: S.Schema<QuotaGroupRulesList>;
|
|
272
|
+
/** QuotaGroup represents a quota group */
|
|
273
|
+
export interface QuotaGroup {
|
|
274
|
+
/** Name of the group */
|
|
275
|
+
name?: string;
|
|
276
|
+
/** Rules associated with the group */
|
|
277
|
+
rules?: QuotaGroupRulesList;
|
|
278
|
+
}
|
|
279
|
+
export declare const QuotaGroup: S.Schema<QuotaGroup>;
|
|
280
|
+
/** The subjects affected by the rule */
|
|
281
|
+
export type AdminCreateQuotaRuleRequestSubjectsList = Array<string>;
|
|
282
|
+
export declare const AdminCreateQuotaRuleRequestSubjectsList: S.Schema<AdminCreateQuotaRuleRequestSubjectsList>;
|
|
283
|
+
export interface AdminCreateQuotaRuleRequest {
|
|
284
|
+
/** The limit set by the rule */
|
|
285
|
+
limit?: number;
|
|
286
|
+
/** Name of the rule to create */
|
|
287
|
+
name?: string;
|
|
288
|
+
/** The subjects affected by the rule */
|
|
289
|
+
subjects?: AdminCreateQuotaRuleRequestSubjectsList;
|
|
290
|
+
}
|
|
291
|
+
export declare const AdminCreateQuotaRuleRequest: S.Schema<AdminCreateQuotaRuleRequest>;
|
|
292
|
+
/** ObjectFormatName of the underlying git repository */
|
|
293
|
+
export type AdminCreateRepoRequestObjectFormatName = "sha1" | "sha256";
|
|
294
|
+
export declare const AdminCreateRepoRequestObjectFormatName: any;
|
|
295
|
+
/** TrustModel of the repository */
|
|
296
|
+
export type AdminCreateRepoRequestTrustModel = "default" | "collaborator" | "committer" | "collaboratorcommitter";
|
|
297
|
+
export declare const AdminCreateRepoRequestTrustModel: any;
|
|
298
|
+
export interface AdminCreateRepoRequest {
|
|
299
|
+
/** username of the user. This user will own the created repository */
|
|
300
|
+
username: string;
|
|
301
|
+
/** Whether the repository should be auto-initialized? */
|
|
302
|
+
auto_init?: boolean;
|
|
303
|
+
/** DefaultBranch of the repository (used when initializes and in template) */
|
|
304
|
+
default_branch?: string;
|
|
305
|
+
/** Description of the repository to create */
|
|
306
|
+
description?: string;
|
|
307
|
+
/** Gitignores to use, separated by commas */
|
|
308
|
+
gitignores?: string;
|
|
309
|
+
/** Label-Set to use */
|
|
310
|
+
issue_labels?: string;
|
|
311
|
+
/** License to use */
|
|
312
|
+
license?: string;
|
|
313
|
+
/** Name of the repository to create */
|
|
314
|
+
name: string;
|
|
315
|
+
/** ObjectFormatName of the underlying git repository */
|
|
316
|
+
object_format_name?: AdminCreateRepoRequestObjectFormatName | (string & {});
|
|
317
|
+
/** Whether the repository is private */
|
|
318
|
+
private?: boolean;
|
|
319
|
+
/** Readme of the repository to create */
|
|
320
|
+
readme?: string;
|
|
321
|
+
/** Whether the repository is template */
|
|
322
|
+
template?: boolean;
|
|
323
|
+
/** TrustModel of the repository */
|
|
324
|
+
trust_model?: AdminCreateRepoRequestTrustModel | (string & {});
|
|
325
|
+
}
|
|
326
|
+
export declare const AdminCreateRepoRequest: S.Schema<AdminCreateRepoRequest>;
|
|
327
|
+
/** ExternalTracker represents settings for external tracker */
|
|
328
|
+
export interface ExternalTracker {
|
|
329
|
+
/** External Issue Tracker URL Format. Use the placeholders {user}, {repo} and {index} for the username, repository name and issue index. */
|
|
330
|
+
external_tracker_format?: string;
|
|
331
|
+
/** External Issue Tracker issue regular expression */
|
|
332
|
+
external_tracker_regexp_pattern?: string;
|
|
333
|
+
/** External Issue Tracker Number Format, either `numeric`, `alphanumeric`, or `regexp` */
|
|
334
|
+
external_tracker_style?: string;
|
|
335
|
+
/** URL of external issue tracker. */
|
|
336
|
+
external_tracker_url?: string;
|
|
337
|
+
}
|
|
338
|
+
export declare const ExternalTracker: S.Schema<ExternalTracker>;
|
|
339
|
+
/** ExternalWiki represents setting for external wiki */
|
|
340
|
+
export interface ExternalWiki {
|
|
341
|
+
/** URL of external wiki. */
|
|
342
|
+
external_wiki_url?: string;
|
|
343
|
+
}
|
|
344
|
+
export declare const ExternalWiki: S.Schema<ExternalWiki>;
|
|
345
|
+
/** InternalTracker represents settings for internal tracker */
|
|
346
|
+
export interface InternalTracker {
|
|
347
|
+
/** Let only contributors track time (Built-in issue tracker) */
|
|
348
|
+
allow_only_contributors_to_track_time?: boolean;
|
|
349
|
+
/** Enable dependencies for issues and pull requests (Built-in issue tracker) */
|
|
350
|
+
enable_issue_dependencies?: boolean;
|
|
351
|
+
/** Enable time tracking (Built-in issue tracker) */
|
|
352
|
+
enable_time_tracker?: boolean;
|
|
353
|
+
}
|
|
354
|
+
export declare const InternalTracker: S.Schema<InternalTracker>;
|
|
355
|
+
/** ObjectFormatName of the underlying git repository */
|
|
356
|
+
export type RepositoryObjectFormatName = "sha1" | "sha256";
|
|
357
|
+
export declare const RepositoryObjectFormatName: any;
|
|
358
|
+
/** Permission represents a set of permissions */
|
|
359
|
+
export interface Permission {
|
|
360
|
+
admin?: boolean;
|
|
361
|
+
pull?: boolean;
|
|
362
|
+
push?: boolean;
|
|
363
|
+
}
|
|
364
|
+
export declare const Permission: S.Schema<Permission>;
|
|
365
|
+
export type TeamPermission = "none" | "read" | "write" | "admin" | "owner";
|
|
366
|
+
export declare const TeamPermission: any;
|
|
367
|
+
export type TeamUnitsList = Array<string>;
|
|
368
|
+
export declare const TeamUnitsList: S.Schema<TeamUnitsList>;
|
|
369
|
+
export type TeamUnitsMapMap = {
|
|
370
|
+
[key: string]: string | undefined;
|
|
371
|
+
};
|
|
372
|
+
export declare const TeamUnitsMapMap: S.Schema<TeamUnitsMapMap>;
|
|
373
|
+
/** Team represents a team in an organization */
|
|
374
|
+
export interface Team {
|
|
375
|
+
can_create_org_repo?: boolean;
|
|
376
|
+
description?: string;
|
|
377
|
+
id: number;
|
|
378
|
+
includes_all_repositories?: boolean;
|
|
379
|
+
name: string;
|
|
380
|
+
organization?: Organization;
|
|
381
|
+
permission?: TeamPermission;
|
|
382
|
+
units?: TeamUnitsList;
|
|
383
|
+
units_map?: TeamUnitsMapMap;
|
|
384
|
+
}
|
|
385
|
+
export declare const Team: S.Schema<Team>;
|
|
386
|
+
export type RepoTransferTeamsList = Array<Team>;
|
|
387
|
+
export declare const RepoTransferTeamsList: S.Schema<RepoTransferTeamsList>;
|
|
388
|
+
/** RepoTransfer represents a pending repo transfer */
|
|
389
|
+
export interface RepoTransfer {
|
|
390
|
+
doer?: User;
|
|
391
|
+
recipient?: User;
|
|
392
|
+
teams?: RepoTransferTeamsList;
|
|
393
|
+
}
|
|
394
|
+
export declare const RepoTransfer: S.Schema<RepoTransfer>;
|
|
395
|
+
export type RepositoryTopicsList = Array<string>;
|
|
396
|
+
export declare const RepositoryTopicsList: S.Schema<RepositoryTopicsList>;
|
|
397
|
+
/** Repository represents a repository */
|
|
398
|
+
export interface Repository {
|
|
399
|
+
allow_fast_forward_only_merge?: boolean;
|
|
400
|
+
allow_merge_commits?: boolean;
|
|
401
|
+
allow_rebase?: boolean;
|
|
402
|
+
allow_rebase_explicit?: boolean;
|
|
403
|
+
allow_rebase_update?: boolean;
|
|
404
|
+
allow_squash_merge?: boolean;
|
|
405
|
+
archived?: boolean;
|
|
406
|
+
archived_at?: string;
|
|
407
|
+
avatar_url?: string;
|
|
408
|
+
clone_url: string;
|
|
409
|
+
created_at: string;
|
|
410
|
+
default_allow_maintainer_edit?: boolean;
|
|
411
|
+
default_branch: string;
|
|
412
|
+
default_delete_branch_after_merge?: boolean;
|
|
413
|
+
default_merge_style?: string;
|
|
414
|
+
default_update_style?: string;
|
|
415
|
+
description?: string;
|
|
416
|
+
empty?: boolean;
|
|
417
|
+
external_tracker?: ExternalTracker;
|
|
418
|
+
external_wiki?: ExternalWiki;
|
|
419
|
+
fork?: boolean;
|
|
420
|
+
forks_count?: number;
|
|
421
|
+
full_name: string;
|
|
422
|
+
globally_editable_wiki?: boolean;
|
|
423
|
+
has_actions?: boolean;
|
|
424
|
+
has_issues?: boolean;
|
|
425
|
+
has_packages?: boolean;
|
|
426
|
+
has_projects?: boolean;
|
|
427
|
+
has_pull_requests?: boolean;
|
|
428
|
+
has_releases?: boolean;
|
|
429
|
+
/** is the wiki enabled */
|
|
430
|
+
has_wiki?: boolean;
|
|
431
|
+
/** have wiki pages ever been created */
|
|
432
|
+
has_wiki_contents?: boolean;
|
|
433
|
+
html_url: string;
|
|
434
|
+
id: number;
|
|
435
|
+
ignore_whitespace_conflicts?: boolean;
|
|
436
|
+
internal?: boolean;
|
|
437
|
+
internal_tracker?: InternalTracker;
|
|
438
|
+
language?: string;
|
|
439
|
+
languages_url?: string;
|
|
440
|
+
link?: string;
|
|
441
|
+
mirror?: boolean;
|
|
442
|
+
mirror_interval?: string;
|
|
443
|
+
mirror_updated?: string;
|
|
444
|
+
name: string;
|
|
445
|
+
/** ObjectFormatName of the underlying git repository */
|
|
446
|
+
object_format_name?: RepositoryObjectFormatName;
|
|
447
|
+
open_issues_count?: number;
|
|
448
|
+
open_pr_counter?: number;
|
|
449
|
+
original_url?: string;
|
|
450
|
+
owner: User;
|
|
451
|
+
parent?: Repository;
|
|
452
|
+
permissions?: Permission;
|
|
453
|
+
private?: boolean;
|
|
454
|
+
release_counter?: number;
|
|
455
|
+
repo_transfer?: RepoTransfer;
|
|
456
|
+
size?: number;
|
|
457
|
+
ssh_url: string;
|
|
458
|
+
stars_count?: number;
|
|
459
|
+
template?: boolean;
|
|
460
|
+
topics?: RepositoryTopicsList;
|
|
461
|
+
updated_at: string;
|
|
462
|
+
url?: string;
|
|
463
|
+
watchers_count?: number;
|
|
464
|
+
website?: string;
|
|
465
|
+
wiki_branch?: string;
|
|
466
|
+
wiki_clone_url?: string;
|
|
467
|
+
wiki_ssh_url?: string;
|
|
468
|
+
}
|
|
469
|
+
export declare const Repository: S.Schema<Repository>;
|
|
470
|
+
export interface AdminCreateUserRequest {
|
|
471
|
+
/** For explicitly setting the user creation timestamp. Useful when users are migrated from other systems. When omitted, the user's creation timestamp will be set to "now". */
|
|
472
|
+
created_at?: string;
|
|
473
|
+
email: string;
|
|
474
|
+
full_name?: string;
|
|
475
|
+
login_name?: string;
|
|
476
|
+
must_change_password?: boolean;
|
|
477
|
+
password?: string | Redacted.Redacted<string>;
|
|
478
|
+
restricted?: boolean;
|
|
479
|
+
send_notify?: boolean;
|
|
480
|
+
source_id?: number;
|
|
481
|
+
username: string;
|
|
482
|
+
visibility?: string;
|
|
483
|
+
}
|
|
484
|
+
export declare const AdminCreateUserRequest: S.Schema<AdminCreateUserRequest>;
|
|
485
|
+
export interface RepoTargetOption {
|
|
486
|
+
/** Name of repository */
|
|
487
|
+
name: string;
|
|
488
|
+
/** Name of user or organisation that owns the repository */
|
|
489
|
+
owner: string;
|
|
490
|
+
}
|
|
491
|
+
export declare const RepoTargetOption: S.Schema<RepoTargetOption>;
|
|
492
|
+
/** If provided and not-empty, creates an access token with access only to specified repositories. */
|
|
493
|
+
export type AdminCreateUserAccessTokenRequestRepositoriesList = Array<RepoTargetOption>;
|
|
494
|
+
export declare const AdminCreateUserAccessTokenRequestRepositoriesList: S.Schema<AdminCreateUserAccessTokenRequestRepositoriesList>;
|
|
495
|
+
export type AdminCreateUserAccessTokenRequestScopesList = Array<string>;
|
|
496
|
+
export declare const AdminCreateUserAccessTokenRequestScopesList: S.Schema<AdminCreateUserAccessTokenRequestScopesList>;
|
|
497
|
+
export interface AdminCreateUserAccessTokenRequest {
|
|
498
|
+
/** username of user */
|
|
499
|
+
username: string;
|
|
500
|
+
name: string;
|
|
501
|
+
/** If provided and not-empty, creates an access token with access only to specified repositories. */
|
|
502
|
+
repositories?: AdminCreateUserAccessTokenRequestRepositoriesList;
|
|
503
|
+
scopes?: AdminCreateUserAccessTokenRequestScopesList;
|
|
504
|
+
}
|
|
505
|
+
export declare const AdminCreateUserAccessTokenRequest: S.Schema<AdminCreateUserAccessTokenRequest>;
|
|
506
|
+
/** RepositoryMeta basic repository information */
|
|
507
|
+
export interface RepositoryMeta {
|
|
508
|
+
full_name?: string;
|
|
509
|
+
id?: number;
|
|
510
|
+
name?: string;
|
|
511
|
+
owner?: string;
|
|
512
|
+
}
|
|
513
|
+
export declare const RepositoryMeta: S.Schema<RepositoryMeta>;
|
|
514
|
+
/** 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. */
|
|
515
|
+
export type AccessTokenRepositoriesList = Array<RepositoryMeta>;
|
|
516
|
+
export declare const AccessTokenRepositoriesList: S.Schema<AccessTokenRepositoriesList>;
|
|
517
|
+
export type AccessTokenScopesList = Array<string>;
|
|
518
|
+
export declare const AccessTokenScopesList: S.Schema<AccessTokenScopesList>;
|
|
519
|
+
export interface AccessToken {
|
|
520
|
+
created_at: string;
|
|
521
|
+
id: number;
|
|
522
|
+
name: string;
|
|
523
|
+
/** 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. */
|
|
524
|
+
repositories?: AccessTokenRepositoriesList;
|
|
525
|
+
scopes?: AccessTokenScopesList;
|
|
526
|
+
sha1?: string | Redacted.Redacted<string>;
|
|
527
|
+
token_last_eight: string;
|
|
528
|
+
}
|
|
529
|
+
export declare const AccessToken: S.Schema<AccessToken>;
|
|
530
|
+
export interface AdminDeleteHookRequest {
|
|
531
|
+
/** id of the hook to delete */
|
|
532
|
+
id: number;
|
|
533
|
+
}
|
|
534
|
+
export declare const AdminDeleteHookRequest: S.Schema<AdminDeleteHookRequest>;
|
|
535
|
+
export interface AdminDeleteHookResponse {
|
|
536
|
+
}
|
|
537
|
+
export declare const AdminDeleteHookResponse: S.Schema<AdminDeleteHookResponse>;
|
|
538
|
+
export interface AdminDeleteQuotaGroupRequest {
|
|
539
|
+
/** quota group to delete */
|
|
540
|
+
quotagroup: string;
|
|
541
|
+
}
|
|
542
|
+
export declare const AdminDeleteQuotaGroupRequest: S.Schema<AdminDeleteQuotaGroupRequest>;
|
|
543
|
+
export interface AdminDeleteQuotaGroupResponse {
|
|
544
|
+
}
|
|
545
|
+
export declare const AdminDeleteQuotaGroupResponse: S.Schema<AdminDeleteQuotaGroupResponse>;
|
|
546
|
+
export interface AdminDeleteQuotaRuleRequest {
|
|
547
|
+
/** quota rule to delete */
|
|
548
|
+
quotarule: string;
|
|
549
|
+
}
|
|
550
|
+
export declare const AdminDeleteQuotaRuleRequest: S.Schema<AdminDeleteQuotaRuleRequest>;
|
|
551
|
+
export interface AdminDeleteQuotaRuleResponse {
|
|
552
|
+
}
|
|
553
|
+
export declare const AdminDeleteQuotaRuleResponse: S.Schema<AdminDeleteQuotaRuleResponse>;
|
|
554
|
+
export interface AdminDeleteUnadoptedRepositoryRequest {
|
|
555
|
+
/** owner of the repo */
|
|
556
|
+
owner: string;
|
|
557
|
+
/** name of the repo */
|
|
558
|
+
repo: string;
|
|
559
|
+
}
|
|
560
|
+
export declare const AdminDeleteUnadoptedRepositoryRequest: S.Schema<AdminDeleteUnadoptedRepositoryRequest>;
|
|
561
|
+
export interface AdminDeleteUnadoptedRepositoryResponse {
|
|
562
|
+
}
|
|
563
|
+
export declare const AdminDeleteUnadoptedRepositoryResponse: S.Schema<AdminDeleteUnadoptedRepositoryResponse>;
|
|
564
|
+
export interface AdminDeleteUserRequest {
|
|
565
|
+
/** username of user to delete */
|
|
566
|
+
username: string;
|
|
567
|
+
/** purge the user from the system completely */
|
|
568
|
+
purge?: boolean;
|
|
569
|
+
}
|
|
570
|
+
export declare const AdminDeleteUserRequest: S.Schema<AdminDeleteUserRequest>;
|
|
571
|
+
export interface AdminDeleteUserResponse {
|
|
572
|
+
}
|
|
573
|
+
export declare const AdminDeleteUserResponse: S.Schema<AdminDeleteUserResponse>;
|
|
574
|
+
export interface AdminDeleteUserAccessTokenRequest {
|
|
575
|
+
/** username of user */
|
|
576
|
+
username: string;
|
|
577
|
+
/** token to be deleted, identified by ID and if not available by name */
|
|
578
|
+
token: string;
|
|
579
|
+
}
|
|
580
|
+
export declare const AdminDeleteUserAccessTokenRequest: S.Schema<AdminDeleteUserAccessTokenRequest>;
|
|
581
|
+
export interface AdminDeleteUserAccessTokenResponse {
|
|
582
|
+
}
|
|
583
|
+
export declare const AdminDeleteUserAccessTokenResponse: S.Schema<AdminDeleteUserAccessTokenResponse>;
|
|
584
|
+
/** email addresses to delete */
|
|
585
|
+
export type AdminDeleteUserEmailsRequestEmailsList = Array<string>;
|
|
586
|
+
export declare const AdminDeleteUserEmailsRequestEmailsList: S.Schema<AdminDeleteUserEmailsRequestEmailsList>;
|
|
587
|
+
export interface AdminDeleteUserEmailsRequest {
|
|
588
|
+
/** username of user to delete email addresses from */
|
|
589
|
+
username: string;
|
|
590
|
+
/** email addresses to delete */
|
|
591
|
+
emails?: AdminDeleteUserEmailsRequestEmailsList;
|
|
592
|
+
}
|
|
593
|
+
export declare const AdminDeleteUserEmailsRequest: S.Schema<AdminDeleteUserEmailsRequest>;
|
|
594
|
+
export interface AdminDeleteUserEmailsResponse {
|
|
595
|
+
}
|
|
596
|
+
export declare const AdminDeleteUserEmailsResponse: S.Schema<AdminDeleteUserEmailsResponse>;
|
|
597
|
+
export interface AdminDeleteUserPublicKeyRequest {
|
|
598
|
+
/** username of user */
|
|
599
|
+
username: string;
|
|
600
|
+
/** id of the key to delete */
|
|
601
|
+
id: number;
|
|
602
|
+
}
|
|
603
|
+
export declare const AdminDeleteUserPublicKeyRequest: S.Schema<AdminDeleteUserPublicKeyRequest>;
|
|
604
|
+
export interface AdminDeleteUserPublicKeyResponse {
|
|
605
|
+
}
|
|
606
|
+
export declare const AdminDeleteUserPublicKeyResponse: S.Schema<AdminDeleteUserPublicKeyResponse>;
|
|
607
|
+
export type AdminEditHookRequestConfigMap = {
|
|
608
|
+
[key: string]: string | undefined;
|
|
609
|
+
};
|
|
610
|
+
export declare const AdminEditHookRequestConfigMap: S.Schema<AdminEditHookRequestConfigMap>;
|
|
611
|
+
export type AdminEditHookRequestEventsList = Array<string>;
|
|
612
|
+
export declare const AdminEditHookRequestEventsList: S.Schema<AdminEditHookRequestEventsList>;
|
|
613
|
+
export interface AdminEditHookRequest {
|
|
614
|
+
/** id of the hook to update */
|
|
615
|
+
id: number;
|
|
616
|
+
active?: boolean;
|
|
617
|
+
authorization_header?: string;
|
|
618
|
+
branch_filter?: string;
|
|
619
|
+
config?: AdminEditHookRequestConfigMap;
|
|
620
|
+
events?: AdminEditHookRequestEventsList;
|
|
621
|
+
}
|
|
622
|
+
export declare const AdminEditHookRequest: S.Schema<AdminEditHookRequest>;
|
|
623
|
+
/** The subjects affected by the rule */
|
|
624
|
+
export type AdminEditQuotaRuleRequestSubjectsList = Array<string>;
|
|
625
|
+
export declare const AdminEditQuotaRuleRequestSubjectsList: S.Schema<AdminEditQuotaRuleRequestSubjectsList>;
|
|
626
|
+
export interface AdminEditQuotaRuleRequest {
|
|
627
|
+
/** Quota rule to change */
|
|
628
|
+
quotarule: string;
|
|
629
|
+
/** The limit set by the rule */
|
|
630
|
+
limit?: number;
|
|
631
|
+
/** The subjects affected by the rule */
|
|
632
|
+
subjects?: AdminEditQuotaRuleRequestSubjectsList;
|
|
633
|
+
}
|
|
634
|
+
export declare const AdminEditQuotaRuleRequest: S.Schema<AdminEditQuotaRuleRequest>;
|
|
635
|
+
export interface AdminEditUserRequest {
|
|
636
|
+
/** username of user to edit */
|
|
637
|
+
username: string;
|
|
638
|
+
active?: boolean;
|
|
639
|
+
admin?: boolean;
|
|
640
|
+
allow_create_organization?: boolean;
|
|
641
|
+
allow_git_hook?: boolean;
|
|
642
|
+
allow_import_local?: boolean;
|
|
643
|
+
description?: string;
|
|
644
|
+
email?: string;
|
|
645
|
+
full_name?: string;
|
|
646
|
+
hide_email?: boolean;
|
|
647
|
+
location?: string;
|
|
648
|
+
login_name?: string;
|
|
649
|
+
max_repo_creation?: number;
|
|
650
|
+
must_change_password?: boolean;
|
|
651
|
+
password?: string | Redacted.Redacted<string>;
|
|
652
|
+
prohibit_login?: boolean;
|
|
653
|
+
pronouns?: string;
|
|
654
|
+
restricted?: boolean;
|
|
655
|
+
source_id?: number;
|
|
656
|
+
visibility?: string;
|
|
657
|
+
website?: string;
|
|
658
|
+
}
|
|
659
|
+
export declare const AdminEditUserRequest: S.Schema<AdminEditUserRequest>;
|
|
660
|
+
export interface AdminGetActionRunJobsRequest {
|
|
661
|
+
/** a comma separated list of labels to search for */
|
|
662
|
+
labels?: string;
|
|
663
|
+
}
|
|
664
|
+
export declare const AdminGetActionRunJobsRequest: S.Schema<AdminGetActionRunJobsRequest>;
|
|
665
|
+
/** the action run job needed ids */
|
|
666
|
+
export type ActionRunJobNeedsList = Array<string>;
|
|
667
|
+
export declare const ActionRunJobNeedsList: S.Schema<ActionRunJobNeedsList>;
|
|
668
|
+
/** the action run job labels to run on */
|
|
669
|
+
export type ActionRunJobRunsOnList = Array<string>;
|
|
670
|
+
export declare const ActionRunJobRunsOnList: S.Schema<ActionRunJobRunsOnList>;
|
|
671
|
+
/** ActionRunJob represents a job of a run */
|
|
672
|
+
export interface ActionRunJob {
|
|
673
|
+
/** How many times the job has been attempted including the current attempt. */
|
|
674
|
+
attempt?: number;
|
|
675
|
+
/** Opaque identifier that uniquely identifies a single attempt of a job. */
|
|
676
|
+
handle?: string;
|
|
677
|
+
/** Identifier of this job. */
|
|
678
|
+
id?: number;
|
|
679
|
+
/** the action run job name */
|
|
680
|
+
name?: string;
|
|
681
|
+
/** the action run job needed ids */
|
|
682
|
+
needs?: ActionRunJobNeedsList;
|
|
683
|
+
/** the owner id */
|
|
684
|
+
owner_id?: number;
|
|
685
|
+
/** the repository id */
|
|
686
|
+
repo_id?: number;
|
|
687
|
+
/** Identifier of the workflow run this job belongs to. */
|
|
688
|
+
run_id?: number;
|
|
689
|
+
/** the action run job labels to run on */
|
|
690
|
+
runs_on?: ActionRunJobRunsOnList;
|
|
691
|
+
/** the action run job status */
|
|
692
|
+
status?: string;
|
|
693
|
+
/** the action run job latest task id */
|
|
694
|
+
task_id?: number;
|
|
695
|
+
}
|
|
696
|
+
export declare const ActionRunJob: S.Schema<ActionRunJob>;
|
|
697
|
+
export type AdminGetActionRunJobsResponseBodyList = Array<ActionRunJob>;
|
|
698
|
+
export declare const AdminGetActionRunJobsResponseBodyList: S.Schema<AdminGetActionRunJobsResponseBodyList>;
|
|
699
|
+
export type AdminGetActionRunJobsResponse = AdminGetActionRunJobsResponseBodyList;
|
|
700
|
+
export declare const AdminGetActionRunJobsResponse: S.Schema<AdminGetActionRunJobsResponse>;
|
|
701
|
+
export interface AdminGetAllEmailsRequest {
|
|
702
|
+
/** page number of results to return (1-based) */
|
|
703
|
+
page?: number;
|
|
704
|
+
/** page size of results */
|
|
705
|
+
limit?: number;
|
|
706
|
+
}
|
|
707
|
+
export declare const AdminGetAllEmailsRequest: S.Schema<AdminGetAllEmailsRequest>;
|
|
708
|
+
/** Email an email address belonging to a user */
|
|
709
|
+
export interface Email {
|
|
710
|
+
email?: string;
|
|
711
|
+
primary?: boolean;
|
|
712
|
+
user_id?: number;
|
|
713
|
+
username?: string;
|
|
714
|
+
verified?: boolean;
|
|
715
|
+
}
|
|
716
|
+
export declare const Email: S.Schema<Email>;
|
|
717
|
+
export type AdminGetAllEmailsResponseBodyList = Array<Email>;
|
|
718
|
+
export declare const AdminGetAllEmailsResponseBodyList: S.Schema<AdminGetAllEmailsResponseBodyList>;
|
|
719
|
+
export type AdminGetAllEmailsResponse = AdminGetAllEmailsResponseBodyList;
|
|
720
|
+
export declare const AdminGetAllEmailsResponse: S.Schema<AdminGetAllEmailsResponse>;
|
|
721
|
+
export interface AdminGetAllOrgsRequest {
|
|
722
|
+
/** page number of results to return (1-based) */
|
|
723
|
+
page?: number;
|
|
724
|
+
/** page size of results */
|
|
725
|
+
limit?: number;
|
|
726
|
+
}
|
|
727
|
+
export declare const AdminGetAllOrgsRequest: S.Schema<AdminGetAllOrgsRequest>;
|
|
728
|
+
export type AdminGetAllOrgsResponseBodyList = Array<Organization>;
|
|
729
|
+
export declare const AdminGetAllOrgsResponseBodyList: S.Schema<AdminGetAllOrgsResponseBodyList>;
|
|
730
|
+
export type AdminGetAllOrgsResponse = AdminGetAllOrgsResponseBodyList;
|
|
731
|
+
export declare const AdminGetAllOrgsResponse: S.Schema<AdminGetAllOrgsResponse>;
|
|
732
|
+
export interface AdminGetHookRequest {
|
|
733
|
+
/** id of the hook to get */
|
|
734
|
+
id: number;
|
|
735
|
+
}
|
|
736
|
+
export declare const AdminGetHookRequest: S.Schema<AdminGetHookRequest>;
|
|
737
|
+
export interface AdminGetQuotaGroupRequest {
|
|
738
|
+
/** quota group to query */
|
|
739
|
+
quotagroup: string;
|
|
740
|
+
}
|
|
741
|
+
export declare const AdminGetQuotaGroupRequest: S.Schema<AdminGetQuotaGroupRequest>;
|
|
742
|
+
export interface AdminGetQuotaRuleRequest {
|
|
743
|
+
/** quota rule to query */
|
|
744
|
+
quotarule: string;
|
|
745
|
+
}
|
|
746
|
+
export declare const AdminGetQuotaRuleRequest: S.Schema<AdminGetQuotaRuleRequest>;
|
|
747
|
+
export interface AdminGetUserQuotaRequest {
|
|
748
|
+
/** username of user to query */
|
|
749
|
+
username: string;
|
|
750
|
+
}
|
|
751
|
+
export declare const AdminGetUserQuotaRequest: S.Schema<AdminGetUserQuotaRequest>;
|
|
752
|
+
/** QuotaGroupList represents a list of quota groups */
|
|
753
|
+
export type QuotaGroupList = Array<QuotaGroup>;
|
|
754
|
+
export declare const QuotaGroupList: S.Schema<QuotaGroupList>;
|
|
755
|
+
/** QuotaUsedSizeAssetsAttachments represents the size-based attachment quota usage of a user */
|
|
756
|
+
export interface QuotaUsedSizeAssetsAttachments {
|
|
757
|
+
/** Storage size used for the user's issue & comment attachments */
|
|
758
|
+
issues?: number;
|
|
759
|
+
/** Storage size used for the user's release attachments */
|
|
760
|
+
releases?: number;
|
|
761
|
+
}
|
|
762
|
+
export declare const QuotaUsedSizeAssetsAttachments: S.Schema<QuotaUsedSizeAssetsAttachments>;
|
|
763
|
+
/** QuotaUsedSizeAssetsPackages represents the size-based package quota usage of a user */
|
|
764
|
+
export interface QuotaUsedSizeAssetsPackages {
|
|
765
|
+
/** Storage suze used for the user's packages */
|
|
766
|
+
all?: number;
|
|
767
|
+
}
|
|
768
|
+
export declare const QuotaUsedSizeAssetsPackages: S.Schema<QuotaUsedSizeAssetsPackages>;
|
|
769
|
+
/** QuotaUsedSizeAssets represents the size-based asset usage of a user */
|
|
770
|
+
export interface QuotaUsedSizeAssets {
|
|
771
|
+
/** Storage size used for the user's artifacts */
|
|
772
|
+
artifacts?: number;
|
|
773
|
+
attachments?: QuotaUsedSizeAssetsAttachments;
|
|
774
|
+
packages?: QuotaUsedSizeAssetsPackages;
|
|
775
|
+
}
|
|
776
|
+
export declare const QuotaUsedSizeAssets: S.Schema<QuotaUsedSizeAssets>;
|
|
777
|
+
/** QuotaUsedSizeGit represents the size-based git (lfs) quota usage of a user */
|
|
778
|
+
export interface QuotaUsedSizeGit {
|
|
779
|
+
/** Storage size of the user's Git LFS objects */
|
|
780
|
+
LFS?: number;
|
|
781
|
+
}
|
|
782
|
+
export declare const QuotaUsedSizeGit: S.Schema<QuotaUsedSizeGit>;
|
|
783
|
+
/** QuotaUsedSizeRepos represents the size-based repository quota usage of a user */
|
|
784
|
+
export interface QuotaUsedSizeRepos {
|
|
785
|
+
/** Storage size of the user's private repositories */
|
|
786
|
+
private?: number;
|
|
787
|
+
/** Storage size of the user's public repositories */
|
|
788
|
+
public?: number;
|
|
789
|
+
}
|
|
790
|
+
export declare const QuotaUsedSizeRepos: S.Schema<QuotaUsedSizeRepos>;
|
|
791
|
+
/** QuotaUsedSize represents the size-based quota usage of a user */
|
|
792
|
+
export interface QuotaUsedSize {
|
|
793
|
+
assets?: QuotaUsedSizeAssets;
|
|
794
|
+
git?: QuotaUsedSizeGit;
|
|
795
|
+
repos?: QuotaUsedSizeRepos;
|
|
796
|
+
}
|
|
797
|
+
export declare const QuotaUsedSize: S.Schema<QuotaUsedSize>;
|
|
798
|
+
/** QuotaUsed represents the quota usage of a user */
|
|
799
|
+
export interface QuotaUsed {
|
|
800
|
+
size?: QuotaUsedSize;
|
|
801
|
+
}
|
|
802
|
+
export declare const QuotaUsed: S.Schema<QuotaUsed>;
|
|
803
|
+
/** QuotaInfo represents information about a user's quota */
|
|
804
|
+
export interface QuotaInfo {
|
|
805
|
+
groups?: QuotaGroupList;
|
|
806
|
+
used?: QuotaUsed;
|
|
807
|
+
}
|
|
808
|
+
export declare const QuotaInfo: S.Schema<QuotaInfo>;
|
|
809
|
+
export interface AdminListHooksRequest {
|
|
810
|
+
/** page number of results to return (1-based) */
|
|
811
|
+
page?: number;
|
|
812
|
+
/** page size of results */
|
|
813
|
+
limit?: number;
|
|
814
|
+
}
|
|
815
|
+
export declare const AdminListHooksRequest: S.Schema<AdminListHooksRequest>;
|
|
816
|
+
export type AdminListHooksResponseBodyList = Array<Hook>;
|
|
817
|
+
export declare const AdminListHooksResponseBodyList: S.Schema<AdminListHooksResponseBodyList>;
|
|
818
|
+
export type AdminListHooksResponse = AdminListHooksResponseBodyList;
|
|
819
|
+
export declare const AdminListHooksResponse: S.Schema<AdminListHooksResponse>;
|
|
820
|
+
export interface AdminListQuotaGroupsRequest {
|
|
821
|
+
}
|
|
822
|
+
export declare const AdminListQuotaGroupsRequest: S.Schema<AdminListQuotaGroupsRequest>;
|
|
823
|
+
export type AdminListQuotaGroupsResponse = QuotaGroupList;
|
|
824
|
+
export declare const AdminListQuotaGroupsResponse: S.Schema<AdminListQuotaGroupsResponse>;
|
|
825
|
+
export interface AdminListQuotaRulesRequest {
|
|
826
|
+
}
|
|
827
|
+
export declare const AdminListQuotaRulesRequest: S.Schema<AdminListQuotaRulesRequest>;
|
|
828
|
+
export type AdminListQuotaRulesResponseBodyList = Array<QuotaRuleInfo>;
|
|
829
|
+
export declare const AdminListQuotaRulesResponseBodyList: S.Schema<AdminListQuotaRulesResponseBodyList>;
|
|
830
|
+
export type AdminListQuotaRulesResponse = AdminListQuotaRulesResponseBodyList;
|
|
831
|
+
export declare const AdminListQuotaRulesResponse: S.Schema<AdminListQuotaRulesResponse>;
|
|
832
|
+
export interface AdminListUserAccessTokensRequest {
|
|
833
|
+
/** username of user */
|
|
834
|
+
username: string;
|
|
835
|
+
/** page number of results to return (1-based) */
|
|
836
|
+
page?: number;
|
|
837
|
+
/** page size of results */
|
|
838
|
+
limit?: number;
|
|
839
|
+
}
|
|
840
|
+
export declare const AdminListUserAccessTokensRequest: S.Schema<AdminListUserAccessTokensRequest>;
|
|
841
|
+
export type AdminListUserAccessTokensResponseBodyList = Array<AccessToken>;
|
|
842
|
+
export declare const AdminListUserAccessTokensResponseBodyList: S.Schema<AdminListUserAccessTokensResponseBodyList>;
|
|
843
|
+
export type AdminListUserAccessTokensResponse = AdminListUserAccessTokensResponseBodyList;
|
|
844
|
+
export declare const AdminListUserAccessTokensResponse: S.Schema<AdminListUserAccessTokensResponse>;
|
|
845
|
+
export interface AdminListUserEmailsRequest {
|
|
846
|
+
/** username of user to get email addresses of */
|
|
847
|
+
username: string;
|
|
848
|
+
}
|
|
849
|
+
export declare const AdminListUserEmailsRequest: S.Schema<AdminListUserEmailsRequest>;
|
|
850
|
+
export type AdminListUserEmailsResponseBodyList = Array<Email>;
|
|
851
|
+
export declare const AdminListUserEmailsResponseBodyList: S.Schema<AdminListUserEmailsResponseBodyList>;
|
|
852
|
+
export type AdminListUserEmailsResponse = AdminListUserEmailsResponseBodyList;
|
|
853
|
+
export declare const AdminListUserEmailsResponse: S.Schema<AdminListUserEmailsResponse>;
|
|
854
|
+
export interface AdminListUsersInQuotaGroupRequest {
|
|
855
|
+
/** quota group to list members of */
|
|
856
|
+
quotagroup: string;
|
|
857
|
+
}
|
|
858
|
+
export declare const AdminListUsersInQuotaGroupRequest: S.Schema<AdminListUsersInQuotaGroupRequest>;
|
|
859
|
+
export type AdminListUsersInQuotaGroupResponseBodyList = Array<User>;
|
|
860
|
+
export declare const AdminListUsersInQuotaGroupResponseBodyList: S.Schema<AdminListUsersInQuotaGroupResponseBodyList>;
|
|
861
|
+
export type AdminListUsersInQuotaGroupResponse = AdminListUsersInQuotaGroupResponseBodyList;
|
|
862
|
+
export declare const AdminListUsersInQuotaGroupResponse: S.Schema<AdminListUsersInQuotaGroupResponse>;
|
|
863
|
+
export interface AdminRemoveRuleFromQuotaGroupRequest {
|
|
864
|
+
/** quota group to remove a rule from */
|
|
865
|
+
quotagroup: string;
|
|
866
|
+
/** the name of the quota rule to remove from the group */
|
|
867
|
+
quotarule: string;
|
|
868
|
+
}
|
|
869
|
+
export declare const AdminRemoveRuleFromQuotaGroupRequest: S.Schema<AdminRemoveRuleFromQuotaGroupRequest>;
|
|
870
|
+
export interface AdminRemoveRuleFromQuotaGroupResponse {
|
|
871
|
+
}
|
|
872
|
+
export declare const AdminRemoveRuleFromQuotaGroupResponse: S.Schema<AdminRemoveRuleFromQuotaGroupResponse>;
|
|
873
|
+
export interface AdminRemoveUserFromQuotaGroupRequest {
|
|
874
|
+
/** quota group to remove a user from */
|
|
875
|
+
quotagroup: string;
|
|
876
|
+
/** username of the user to remove from the quota group */
|
|
877
|
+
username: string;
|
|
878
|
+
}
|
|
879
|
+
export declare const AdminRemoveUserFromQuotaGroupRequest: S.Schema<AdminRemoveUserFromQuotaGroupRequest>;
|
|
880
|
+
export interface AdminRemoveUserFromQuotaGroupResponse {
|
|
881
|
+
}
|
|
882
|
+
export declare const AdminRemoveUserFromQuotaGroupResponse: S.Schema<AdminRemoveUserFromQuotaGroupResponse>;
|
|
883
|
+
export interface AdminRenameUserRequest {
|
|
884
|
+
/** existing username of user */
|
|
885
|
+
username: string;
|
|
886
|
+
/** New username for this user. This name cannot be in use yet by any other user. */
|
|
887
|
+
new_username: string;
|
|
888
|
+
}
|
|
889
|
+
export declare const AdminRenameUserRequest: S.Schema<AdminRenameUserRequest>;
|
|
890
|
+
export interface AdminRenameUserResponse {
|
|
891
|
+
}
|
|
892
|
+
export declare const AdminRenameUserResponse: S.Schema<AdminRenameUserResponse>;
|
|
893
|
+
export interface AdminSearchEmailsRequest {
|
|
894
|
+
/** keyword */
|
|
895
|
+
q?: string;
|
|
896
|
+
/** page number of results to return (1-based) */
|
|
897
|
+
page?: number;
|
|
898
|
+
/** page size of results */
|
|
899
|
+
limit?: number;
|
|
900
|
+
}
|
|
901
|
+
export declare const AdminSearchEmailsRequest: S.Schema<AdminSearchEmailsRequest>;
|
|
902
|
+
export type AdminSearchEmailsResponseBodyList = Array<Email>;
|
|
903
|
+
export declare const AdminSearchEmailsResponseBodyList: S.Schema<AdminSearchEmailsResponseBodyList>;
|
|
904
|
+
export type AdminSearchEmailsResponse = AdminSearchEmailsResponseBodyList;
|
|
905
|
+
export declare const AdminSearchEmailsResponse: S.Schema<AdminSearchEmailsResponse>;
|
|
906
|
+
export type AdminSearchUsersRequestSort = "oldest" | "newest" | "alphabetically" | "reversealphabetically" | "recentupdate" | "leastupdate";
|
|
907
|
+
export declare const AdminSearchUsersRequestSort: any;
|
|
908
|
+
export interface AdminSearchUsersRequest {
|
|
909
|
+
/** ID of the user's login source to search for */
|
|
910
|
+
source_id?: number;
|
|
911
|
+
/** user's login name to search for */
|
|
912
|
+
login_name?: string;
|
|
913
|
+
/** whether or not to filter users with the 2fa enabled */
|
|
914
|
+
is_2fa_enabled?: boolean;
|
|
915
|
+
/** sort order of results */
|
|
916
|
+
sort?: AdminSearchUsersRequestSort | (string & {});
|
|
917
|
+
/** page number of results to return (1-based) */
|
|
918
|
+
page?: number;
|
|
919
|
+
/** page size of results */
|
|
920
|
+
limit?: number;
|
|
921
|
+
}
|
|
922
|
+
export declare const AdminSearchUsersRequest: S.Schema<AdminSearchUsersRequest>;
|
|
923
|
+
export type AdminSearchUsersResponseBodyList = Array<User>;
|
|
924
|
+
export declare const AdminSearchUsersResponseBodyList: S.Schema<AdminSearchUsersResponseBodyList>;
|
|
925
|
+
export type AdminSearchUsersResponse = AdminSearchUsersResponseBodyList;
|
|
926
|
+
export declare const AdminSearchUsersResponse: S.Schema<AdminSearchUsersResponse>;
|
|
927
|
+
/** Quota groups the user shall have */
|
|
928
|
+
export type AdminSetUserQuotaGroupsRequestGroupsList = Array<string>;
|
|
929
|
+
export declare const AdminSetUserQuotaGroupsRequestGroupsList: S.Schema<AdminSetUserQuotaGroupsRequestGroupsList>;
|
|
930
|
+
export interface AdminSetUserQuotaGroupsRequest {
|
|
931
|
+
/** username of the user to modify the quota groups from */
|
|
932
|
+
username: string;
|
|
933
|
+
/** Quota groups the user shall have */
|
|
934
|
+
groups: AdminSetUserQuotaGroupsRequestGroupsList;
|
|
935
|
+
}
|
|
936
|
+
export declare const AdminSetUserQuotaGroupsRequest: S.Schema<AdminSetUserQuotaGroupsRequest>;
|
|
937
|
+
export interface AdminSetUserQuotaGroupsResponse {
|
|
938
|
+
}
|
|
939
|
+
export declare const AdminSetUserQuotaGroupsResponse: S.Schema<AdminSetUserQuotaGroupsResponse>;
|
|
940
|
+
export interface DeleteAdminRunnerRequest {
|
|
941
|
+
/** ID of the runner */
|
|
942
|
+
runner_id: string;
|
|
943
|
+
}
|
|
944
|
+
export declare const DeleteAdminRunnerRequest: S.Schema<DeleteAdminRunnerRequest>;
|
|
945
|
+
export interface DeleteAdminRunnerResponse {
|
|
946
|
+
}
|
|
947
|
+
export declare const DeleteAdminRunnerResponse: S.Schema<DeleteAdminRunnerResponse>;
|
|
948
|
+
export interface GetAdminRunnerRequest {
|
|
949
|
+
/** ID of the runner */
|
|
950
|
+
runner_id: string;
|
|
951
|
+
}
|
|
952
|
+
export declare const GetAdminRunnerRequest: S.Schema<GetAdminRunnerRequest>;
|
|
953
|
+
/** Labels is a list of labels attached to this runner. */
|
|
954
|
+
export type ActionRunnerLabelsList = Array<string>;
|
|
955
|
+
export declare const ActionRunnerLabelsList: S.Schema<ActionRunnerLabelsList>;
|
|
956
|
+
/** Status indicates whether this runner is offline, or active, for example. */
|
|
957
|
+
export type ActionRunnerStatus = "offline" | "idle" | "active";
|
|
958
|
+
export declare const ActionRunnerStatus: any;
|
|
959
|
+
/** ActionRunner represents a runner */
|
|
960
|
+
export interface ActionRunner {
|
|
961
|
+
/** Description provides optional details about this runner. */
|
|
962
|
+
description?: string;
|
|
963
|
+
/** Indicates if runner is ephemeral runner */
|
|
964
|
+
ephemeral?: boolean;
|
|
965
|
+
/** ID uniquely identifies this runner. */
|
|
966
|
+
id?: number;
|
|
967
|
+
/** Labels is a list of labels attached to this runner. */
|
|
968
|
+
labels?: ActionRunnerLabelsList;
|
|
969
|
+
/** Name of the runner; not unique. */
|
|
970
|
+
name?: string;
|
|
971
|
+
/** OwnerID is the identifier of the user or organization this runner belongs to. O if the runner is owned by a repository. */
|
|
972
|
+
owner_id?: number;
|
|
973
|
+
/** RepoID is the identifier of the repository this runner belongs to. 0 if the runner belongs to a user or organization. */
|
|
974
|
+
repo_id?: number;
|
|
975
|
+
/** Status indicates whether this runner is offline, or active, for example. */
|
|
976
|
+
status?: ActionRunnerStatus;
|
|
977
|
+
/** UUID uniquely identifies this runner. */
|
|
978
|
+
uuid?: string;
|
|
979
|
+
/** Version is the self-reported version string of Forgejo Runner. */
|
|
980
|
+
version?: string;
|
|
981
|
+
}
|
|
982
|
+
export declare const ActionRunner: S.Schema<ActionRunner>;
|
|
983
|
+
export interface GetAdminRunnersRequest {
|
|
984
|
+
/** whether to include all visible runners (true) or only those that are directly owned by the instance (false) */
|
|
985
|
+
visible?: boolean;
|
|
986
|
+
/** page number of results to return (1-based) */
|
|
987
|
+
page?: number;
|
|
988
|
+
/** page size of results */
|
|
989
|
+
limit?: number;
|
|
990
|
+
}
|
|
991
|
+
export declare const GetAdminRunnersRequest: S.Schema<GetAdminRunnersRequest>;
|
|
992
|
+
export type GetAdminRunnersResponseBodyList = Array<ActionRunner>;
|
|
993
|
+
export declare const GetAdminRunnersResponseBodyList: S.Schema<GetAdminRunnersResponseBodyList>;
|
|
994
|
+
export type GetAdminRunnersResponse = GetAdminRunnersResponseBodyList;
|
|
995
|
+
export declare const GetAdminRunnersResponse: S.Schema<GetAdminRunnersResponse>;
|
|
996
|
+
export interface ListAdminCronRequest {
|
|
997
|
+
/** page number of results to return (1-based) */
|
|
998
|
+
page?: number;
|
|
999
|
+
/** page size of results */
|
|
1000
|
+
limit?: number;
|
|
1001
|
+
}
|
|
1002
|
+
export declare const ListAdminCronRequest: S.Schema<ListAdminCronRequest>;
|
|
1003
|
+
/** Cron represents a Cron task */
|
|
1004
|
+
export interface Cron {
|
|
1005
|
+
exec_times?: number;
|
|
1006
|
+
name?: string;
|
|
1007
|
+
next?: string;
|
|
1008
|
+
prev?: string;
|
|
1009
|
+
schedule?: string;
|
|
1010
|
+
}
|
|
1011
|
+
export declare const Cron: S.Schema<Cron>;
|
|
1012
|
+
export type ListAdminCronResponseBodyList = Array<Cron>;
|
|
1013
|
+
export declare const ListAdminCronResponseBodyList: S.Schema<ListAdminCronResponseBodyList>;
|
|
1014
|
+
export type ListAdminCronResponse = ListAdminCronResponseBodyList;
|
|
1015
|
+
export declare const ListAdminCronResponse: S.Schema<ListAdminCronResponse>;
|
|
1016
|
+
export interface ListAdminUnadoptedRequest {
|
|
1017
|
+
/** page number of results to return (1-based) */
|
|
1018
|
+
page?: number;
|
|
1019
|
+
/** page size of results */
|
|
1020
|
+
limit?: number;
|
|
1021
|
+
/** pattern of repositories to search for */
|
|
1022
|
+
pattern?: string;
|
|
1023
|
+
}
|
|
1024
|
+
export declare const ListAdminUnadoptedRequest: S.Schema<ListAdminUnadoptedRequest>;
|
|
1025
|
+
export type ListAdminUnadoptedResponseBodyList = Array<string>;
|
|
1026
|
+
export declare const ListAdminUnadoptedResponseBodyList: S.Schema<ListAdminUnadoptedResponseBodyList>;
|
|
1027
|
+
export type ListAdminUnadoptedResponse = ListAdminUnadoptedResponseBodyList;
|
|
1028
|
+
export declare const ListAdminUnadoptedResponse: S.Schema<ListAdminUnadoptedResponse>;
|
|
1029
|
+
export interface RegisterAdminRunnerRequest {
|
|
1030
|
+
/** Description of the runner to register. */
|
|
1031
|
+
description?: string;
|
|
1032
|
+
/** Register as ephemeral runner https://forgejo.org/docs/latest/admin/actions/security/#ephemeral-runner */
|
|
1033
|
+
ephemeral?: boolean;
|
|
1034
|
+
/** Name of the runner to register. The name of the runner does not have to be unique. */
|
|
1035
|
+
name: string;
|
|
1036
|
+
}
|
|
1037
|
+
export declare const RegisterAdminRunnerRequest: S.Schema<RegisterAdminRunnerRequest>;
|
|
1038
|
+
export interface RegisterRunnerResponse {
|
|
1039
|
+
id?: number;
|
|
1040
|
+
token?: string;
|
|
1041
|
+
uuid?: string;
|
|
1042
|
+
}
|
|
1043
|
+
export declare const RegisterRunnerResponse: S.Schema<RegisterRunnerResponse>;
|
|
1044
|
+
export interface RunAdminCronRequest {
|
|
1045
|
+
/** task to run */
|
|
1046
|
+
task: string;
|
|
1047
|
+
}
|
|
1048
|
+
export declare const RunAdminCronRequest: S.Schema<RunAdminCronRequest>;
|
|
1049
|
+
export interface RunAdminCronResponse {
|
|
1050
|
+
}
|
|
1051
|
+
export declare const RunAdminCronResponse: S.Schema<RunAdminCronResponse>;
|
|
1052
|
+
export type AdminAddRuleToQuotaGroupError = BadRequest | Forbidden | NotFound | Conflict | UnprocessableEntity | ForgejoOpError;
|
|
1053
|
+
/** Adds a rule to a quota group */
|
|
1054
|
+
export declare const adminAddRuleToQuotaGroup: API.OperationMethod<AdminAddRuleToQuotaGroupRequest, AdminAddRuleToQuotaGroupResponse, AdminAddRuleToQuotaGroupError, ForgejoOpContext>;
|
|
1055
|
+
export type AdminAddUserToQuotaGroupError = BadRequest | Forbidden | NotFound | Conflict | UnprocessableEntity | ForgejoOpError;
|
|
1056
|
+
/** Add a user to a quota group */
|
|
1057
|
+
export declare const adminAddUserToQuotaGroup: API.OperationMethod<AdminAddUserToQuotaGroupRequest, AdminAddUserToQuotaGroupResponse, AdminAddUserToQuotaGroupError, ForgejoOpContext>;
|
|
1058
|
+
export type AdminAdoptRepositoryError = Forbidden | NotFound | ForgejoOpError;
|
|
1059
|
+
/** Adopt unadopted files as a repository */
|
|
1060
|
+
export declare const adminAdoptRepository: API.OperationMethod<AdminAdoptRepositoryRequest, AdminAdoptRepositoryResponse, AdminAdoptRepositoryError, ForgejoOpContext>;
|
|
1061
|
+
export type AdminCreateHookError = ForgejoOpError;
|
|
1062
|
+
/** Create a hook */
|
|
1063
|
+
export declare const adminCreateHook: API.OperationMethod<AdminCreateHookRequest, Hook, AdminCreateHookError, ForgejoOpContext>;
|
|
1064
|
+
export type AdminCreateOrgError = Forbidden | UnprocessableEntity | ForgejoOpError;
|
|
1065
|
+
/** Create an organization */
|
|
1066
|
+
export declare const adminCreateOrg: API.OperationMethod<AdminCreateOrgRequest, Organization, AdminCreateOrgError, ForgejoOpContext>;
|
|
1067
|
+
export type AdminCreatePublicKeyError = Forbidden | UnprocessableEntity | ForgejoOpError;
|
|
1068
|
+
/** Add an SSH public key to user's account */
|
|
1069
|
+
export declare const adminCreatePublicKey: API.OperationMethod<AdminCreatePublicKeyRequest, PublicKey, AdminCreatePublicKeyError, ForgejoOpContext>;
|
|
1070
|
+
export type AdminCreateQuotaGroupError = BadRequest | Forbidden | Conflict | UnprocessableEntity | ForgejoOpError;
|
|
1071
|
+
/** Create a new quota group */
|
|
1072
|
+
export declare const adminCreateQuotaGroup: API.OperationMethod<AdminCreateQuotaGroupRequest, QuotaGroup, AdminCreateQuotaGroupError, ForgejoOpContext>;
|
|
1073
|
+
export type AdminCreateQuotaRuleError = BadRequest | Forbidden | Conflict | UnprocessableEntity | ForgejoOpError;
|
|
1074
|
+
/** Create a new quota rule */
|
|
1075
|
+
export declare const adminCreateQuotaRule: API.OperationMethod<AdminCreateQuotaRuleRequest, QuotaRuleInfo, AdminCreateQuotaRuleError, ForgejoOpContext>;
|
|
1076
|
+
export type AdminCreateRepoError = BadRequest | Forbidden | NotFound | Conflict | UnprocessableEntity | ForgejoOpError;
|
|
1077
|
+
/** Create a repository on behalf of a user */
|
|
1078
|
+
export declare const adminCreateRepo: API.OperationMethod<AdminCreateRepoRequest, Repository, AdminCreateRepoError, ForgejoOpContext>;
|
|
1079
|
+
export type AdminCreateUserError = BadRequest | Forbidden | UnprocessableEntity | ForgejoOpError;
|
|
1080
|
+
/** Create a user account */
|
|
1081
|
+
export declare const adminCreateUser: API.OperationMethod<AdminCreateUserRequest, User, AdminCreateUserError, ForgejoOpContext>;
|
|
1082
|
+
export type AdminCreateUserAccessTokenError = BadRequest | Forbidden | NotFound | ForgejoOpError;
|
|
1083
|
+
/** Create an access token for the specified user */
|
|
1084
|
+
export declare const adminCreateUserAccessToken: API.OperationMethod<AdminCreateUserAccessTokenRequest, AccessToken, AdminCreateUserAccessTokenError, ForgejoOpContext>;
|
|
1085
|
+
export type AdminDeleteHookError = ForgejoOpError;
|
|
1086
|
+
/** Delete a hook */
|
|
1087
|
+
export declare const adminDeleteHook: API.OperationMethod<AdminDeleteHookRequest, AdminDeleteHookResponse, AdminDeleteHookError, ForgejoOpContext>;
|
|
1088
|
+
export type AdminDeleteQuotaGroupError = BadRequest | Forbidden | NotFound | ForgejoOpError;
|
|
1089
|
+
/** Delete a quota group */
|
|
1090
|
+
export declare const adminDeleteQuotaGroup: API.OperationMethod<AdminDeleteQuotaGroupRequest, AdminDeleteQuotaGroupResponse, AdminDeleteQuotaGroupError, ForgejoOpContext>;
|
|
1091
|
+
export type AdminDeleteQuotaRuleError = BadRequest | Forbidden | NotFound | ForgejoOpError;
|
|
1092
|
+
/** Deletes a quota rule */
|
|
1093
|
+
export declare const adminDeleteQuotaRule: API.OperationMethod<AdminDeleteQuotaRuleRequest, AdminDeleteQuotaRuleResponse, AdminDeleteQuotaRuleError, ForgejoOpContext>;
|
|
1094
|
+
export type AdminDeleteUnadoptedRepositoryError = Forbidden | ForgejoOpError;
|
|
1095
|
+
/** Delete unadopted files */
|
|
1096
|
+
export declare const adminDeleteUnadoptedRepository: API.OperationMethod<AdminDeleteUnadoptedRepositoryRequest, AdminDeleteUnadoptedRepositoryResponse, AdminDeleteUnadoptedRepositoryError, ForgejoOpContext>;
|
|
1097
|
+
export type AdminDeleteUserError = Forbidden | NotFound | UnprocessableEntity | ForgejoOpError;
|
|
1098
|
+
/** Delete user account */
|
|
1099
|
+
export declare const adminDeleteUser: API.OperationMethod<AdminDeleteUserRequest, AdminDeleteUserResponse, AdminDeleteUserError, ForgejoOpContext>;
|
|
1100
|
+
export type AdminDeleteUserAccessTokenError = Forbidden | NotFound | UnprocessableEntity | ForgejoOpError;
|
|
1101
|
+
/** Delete an access token for the specified user */
|
|
1102
|
+
export declare const adminDeleteUserAccessToken: API.OperationMethod<AdminDeleteUserAccessTokenRequest, AdminDeleteUserAccessTokenResponse, AdminDeleteUserAccessTokenError, ForgejoOpContext>;
|
|
1103
|
+
export type AdminDeleteUserEmailsError = Forbidden | UnprocessableEntity | ForgejoOpError;
|
|
1104
|
+
/** Delete email addresses from a user's account */
|
|
1105
|
+
export declare const adminDeleteUserEmails: API.OperationMethod<AdminDeleteUserEmailsRequest, AdminDeleteUserEmailsResponse, AdminDeleteUserEmailsError, ForgejoOpContext>;
|
|
1106
|
+
export type AdminDeleteUserPublicKeyError = Forbidden | NotFound | ForgejoOpError;
|
|
1107
|
+
/** Remove a public key from user's account */
|
|
1108
|
+
export declare const adminDeleteUserPublicKey: API.OperationMethod<AdminDeleteUserPublicKeyRequest, AdminDeleteUserPublicKeyResponse, AdminDeleteUserPublicKeyError, ForgejoOpContext>;
|
|
1109
|
+
export type AdminEditHookError = ForgejoOpError;
|
|
1110
|
+
/** Update a hook */
|
|
1111
|
+
export declare const adminEditHook: API.OperationMethod<AdminEditHookRequest, Hook, AdminEditHookError, ForgejoOpContext>;
|
|
1112
|
+
export type AdminEditQuotaRuleError = BadRequest | Forbidden | NotFound | UnprocessableEntity | ForgejoOpError;
|
|
1113
|
+
/** Change an existing quota rule */
|
|
1114
|
+
export declare const adminEditQuotaRule: API.OperationMethod<AdminEditQuotaRuleRequest, QuotaRuleInfo, AdminEditQuotaRuleError, ForgejoOpContext>;
|
|
1115
|
+
export type AdminEditUserError = BadRequest | Forbidden | UnprocessableEntity | ForgejoOpError;
|
|
1116
|
+
/** Edit an existing user */
|
|
1117
|
+
export declare const adminEditUser: API.OperationMethod<AdminEditUserRequest, User, AdminEditUserError, ForgejoOpContext>;
|
|
1118
|
+
export type AdminGetActionRunJobsError = Forbidden | ForgejoOpError;
|
|
1119
|
+
/** Get action run jobs */
|
|
1120
|
+
export declare const adminGetActionRunJobs: API.OperationMethod<AdminGetActionRunJobsRequest, AdminGetActionRunJobsResponse, AdminGetActionRunJobsError, ForgejoOpContext>;
|
|
1121
|
+
export type AdminGetAllEmailsError = Forbidden | ForgejoOpError;
|
|
1122
|
+
/** List all users' email addresses */
|
|
1123
|
+
export declare const adminGetAllEmails: API.OperationMethod<AdminGetAllEmailsRequest, AdminGetAllEmailsResponse, AdminGetAllEmailsError, ForgejoOpContext>;
|
|
1124
|
+
export type AdminGetAllOrgsError = Forbidden | ForgejoOpError;
|
|
1125
|
+
/** List all organizations */
|
|
1126
|
+
export declare const adminGetAllOrgs: API.OperationMethod<AdminGetAllOrgsRequest, AdminGetAllOrgsResponse, AdminGetAllOrgsError, ForgejoOpContext>;
|
|
1127
|
+
export type AdminGetHookError = ForgejoOpError;
|
|
1128
|
+
/** Get a hook */
|
|
1129
|
+
export declare const adminGetHook: API.OperationMethod<AdminGetHookRequest, Hook, AdminGetHookError, ForgejoOpContext>;
|
|
1130
|
+
export type AdminGetQuotaGroupError = BadRequest | Forbidden | NotFound | ForgejoOpError;
|
|
1131
|
+
/** Get information about the quota group */
|
|
1132
|
+
export declare const adminGetQuotaGroup: API.OperationMethod<AdminGetQuotaGroupRequest, QuotaGroup, AdminGetQuotaGroupError, ForgejoOpContext>;
|
|
1133
|
+
export type AdminGetQuotaRuleError = BadRequest | Forbidden | NotFound | ForgejoOpError;
|
|
1134
|
+
/** Get information about a quota rule */
|
|
1135
|
+
export declare const adminGetQuotaRule: API.OperationMethod<AdminGetQuotaRuleRequest, QuotaRuleInfo, AdminGetQuotaRuleError, ForgejoOpContext>;
|
|
1136
|
+
export type AdminGetUserQuotaError = BadRequest | Forbidden | NotFound | UnprocessableEntity | ForgejoOpError;
|
|
1137
|
+
/** Get the user's quota info */
|
|
1138
|
+
export declare const adminGetUserQuota: API.OperationMethod<AdminGetUserQuotaRequest, QuotaInfo, AdminGetUserQuotaError, ForgejoOpContext>;
|
|
1139
|
+
export type AdminListHooksError = ForgejoOpError;
|
|
1140
|
+
/** List global (system) webhooks */
|
|
1141
|
+
export declare const adminListHooks: API.OperationMethod<AdminListHooksRequest, AdminListHooksResponse, AdminListHooksError, ForgejoOpContext>;
|
|
1142
|
+
export type AdminListQuotaGroupsError = Forbidden | ForgejoOpError;
|
|
1143
|
+
/** List the available quota groups */
|
|
1144
|
+
export declare const adminListQuotaGroups: API.OperationMethod<AdminListQuotaGroupsRequest, AdminListQuotaGroupsResponse, AdminListQuotaGroupsError, ForgejoOpContext>;
|
|
1145
|
+
export type AdminListQuotaRulesError = Forbidden | ForgejoOpError;
|
|
1146
|
+
/** List the available quota rules */
|
|
1147
|
+
export declare const adminListQuotaRules: API.OperationMethod<AdminListQuotaRulesRequest, AdminListQuotaRulesResponse, AdminListQuotaRulesError, ForgejoOpContext>;
|
|
1148
|
+
export type AdminListUserAccessTokensError = Forbidden | NotFound | ForgejoOpError;
|
|
1149
|
+
/** List the specified user's access tokens */
|
|
1150
|
+
export declare const adminListUserAccessTokens: API.OperationMethod<AdminListUserAccessTokensRequest, AdminListUserAccessTokensResponse, AdminListUserAccessTokensError, ForgejoOpContext>;
|
|
1151
|
+
export type AdminListUserEmailsError = Forbidden | NotFound | ForgejoOpError;
|
|
1152
|
+
/** List all email addresses for a user */
|
|
1153
|
+
export declare const adminListUserEmails: API.OperationMethod<AdminListUserEmailsRequest, AdminListUserEmailsResponse, AdminListUserEmailsError, ForgejoOpContext>;
|
|
1154
|
+
export type AdminListUsersInQuotaGroupError = BadRequest | Forbidden | NotFound | ForgejoOpError;
|
|
1155
|
+
/** List users in a quota group */
|
|
1156
|
+
export declare const adminListUsersInQuotaGroup: API.OperationMethod<AdminListUsersInQuotaGroupRequest, AdminListUsersInQuotaGroupResponse, AdminListUsersInQuotaGroupError, ForgejoOpContext>;
|
|
1157
|
+
export type AdminRemoveRuleFromQuotaGroupError = BadRequest | Forbidden | NotFound | ForgejoOpError;
|
|
1158
|
+
/** Removes a rule from a quota group */
|
|
1159
|
+
export declare const adminRemoveRuleFromQuotaGroup: API.OperationMethod<AdminRemoveRuleFromQuotaGroupRequest, AdminRemoveRuleFromQuotaGroupResponse, AdminRemoveRuleFromQuotaGroupError, ForgejoOpContext>;
|
|
1160
|
+
export type AdminRemoveUserFromQuotaGroupError = BadRequest | Forbidden | NotFound | ForgejoOpError;
|
|
1161
|
+
/** Remove a user from a quota group */
|
|
1162
|
+
export declare const adminRemoveUserFromQuotaGroup: API.OperationMethod<AdminRemoveUserFromQuotaGroupRequest, AdminRemoveUserFromQuotaGroupResponse, AdminRemoveUserFromQuotaGroupError, ForgejoOpContext>;
|
|
1163
|
+
export type AdminRenameUserError = Forbidden | UnprocessableEntity | ForgejoOpError;
|
|
1164
|
+
/** Rename a user */
|
|
1165
|
+
export declare const adminRenameUser: API.OperationMethod<AdminRenameUserRequest, AdminRenameUserResponse, AdminRenameUserError, ForgejoOpContext>;
|
|
1166
|
+
export type AdminSearchEmailsError = Forbidden | ForgejoOpError;
|
|
1167
|
+
/** Search users' email addresses */
|
|
1168
|
+
export declare const adminSearchEmails: API.OperationMethod<AdminSearchEmailsRequest, AdminSearchEmailsResponse, AdminSearchEmailsError, ForgejoOpContext>;
|
|
1169
|
+
export type AdminSearchUsersError = Forbidden | ForgejoOpError;
|
|
1170
|
+
/** Search users according filter conditions */
|
|
1171
|
+
export declare const adminSearchUsers: API.OperationMethod<AdminSearchUsersRequest, AdminSearchUsersResponse, AdminSearchUsersError, ForgejoOpContext>;
|
|
1172
|
+
export type AdminSetUserQuotaGroupsError = BadRequest | Forbidden | NotFound | UnprocessableEntity | ForgejoOpError;
|
|
1173
|
+
/** Set the user's quota groups to a given list. */
|
|
1174
|
+
export declare const adminSetUserQuotaGroups: API.OperationMethod<AdminSetUserQuotaGroupsRequest, AdminSetUserQuotaGroupsResponse, AdminSetUserQuotaGroupsError, ForgejoOpContext>;
|
|
1175
|
+
export type DeleteAdminRunnerError = BadRequest | NotFound | ForgejoOpError;
|
|
1176
|
+
/** Delete a particular runner, no matter whether it is a global runner or scoped to an organization, user, or repository */
|
|
1177
|
+
export declare const deleteAdminRunner: API.OperationMethod<DeleteAdminRunnerRequest, DeleteAdminRunnerResponse, DeleteAdminRunnerError, ForgejoOpContext>;
|
|
1178
|
+
export type GetAdminRunnerError = BadRequest | NotFound | ForgejoOpError;
|
|
1179
|
+
/** Get a particular runner, no matter whether it is a global runner or scoped to an organization, user, or repository */
|
|
1180
|
+
export declare const getAdminRunner: API.OperationMethod<GetAdminRunnerRequest, ActionRunner, GetAdminRunnerError, ForgejoOpContext>;
|
|
1181
|
+
export type GetAdminRunnersError = BadRequest | NotFound | ForgejoOpError;
|
|
1182
|
+
/** Get all runners, no matter whether they are global runners or scoped to an organization, user, or repository */
|
|
1183
|
+
export declare const getAdminRunners: API.OperationMethod<GetAdminRunnersRequest, GetAdminRunnersResponse, GetAdminRunnersError, ForgejoOpContext>;
|
|
1184
|
+
export type ListAdminCronError = Forbidden | ForgejoOpError;
|
|
1185
|
+
/** List cron tasks */
|
|
1186
|
+
export declare const listAdminCron: API.OperationMethod<ListAdminCronRequest, ListAdminCronResponse, ListAdminCronError, ForgejoOpContext>;
|
|
1187
|
+
export type ListAdminUnadoptedError = Forbidden | ForgejoOpError;
|
|
1188
|
+
/** List unadopted repositories */
|
|
1189
|
+
export declare const listAdminUnadopted: API.OperationMethod<ListAdminUnadoptedRequest, ListAdminUnadoptedResponse, ListAdminUnadoptedError, ForgejoOpContext>;
|
|
1190
|
+
export type RegisterAdminRunnerError = BadRequest | NotFound | ForgejoOpError;
|
|
1191
|
+
/** Register a new global runner */
|
|
1192
|
+
export declare const registerAdminRunner: API.OperationMethod<RegisterAdminRunnerRequest, RegisterRunnerResponse, RegisterAdminRunnerError, ForgejoOpContext>;
|
|
1193
|
+
export type RunAdminCronError = NotFound | ForgejoOpError;
|
|
1194
|
+
/** Run cron task */
|
|
1195
|
+
export declare const runAdminCron: API.OperationMethod<RunAdminCronRequest, RunAdminCronResponse, RunAdminCronError, ForgejoOpContext>;
|
|
1196
|
+
//# sourceMappingURL=admin.d.ts.map
|