@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,1276 @@
|
|
|
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.js";
|
|
7
|
+
import { ForgejoProtocol, } from "../protocol.js";
|
|
8
|
+
import * as Retry from "../retry.js";
|
|
9
|
+
export class BadRequest extends /*@__PURE__*/ /*@__PURE__*/ T.applyErrorMatchers(
|
|
10
|
+
/*@__PURE__*/ S.TaggedError()("BadRequest", {
|
|
11
|
+
code: S.Number,
|
|
12
|
+
message: S.String,
|
|
13
|
+
}).pipe(C.withBadRequestError), [{ status: 400 }]) {
|
|
14
|
+
}
|
|
15
|
+
export class Conflict extends /*@__PURE__*/ /*@__PURE__*/ T.applyErrorMatchers(
|
|
16
|
+
/*@__PURE__*/ S.TaggedError()("Conflict", {
|
|
17
|
+
code: S.Number,
|
|
18
|
+
message: S.String,
|
|
19
|
+
}).pipe(C.withConflictError), [{ status: 409 }]) {
|
|
20
|
+
}
|
|
21
|
+
export class Forbidden extends /*@__PURE__*/ /*@__PURE__*/ T.applyErrorMatchers(
|
|
22
|
+
/*@__PURE__*/ S.TaggedError()("Forbidden", {
|
|
23
|
+
code: S.Number,
|
|
24
|
+
message: S.String,
|
|
25
|
+
}).pipe(C.withAuthError), [{ status: 403 }]) {
|
|
26
|
+
}
|
|
27
|
+
export class NotFound extends /*@__PURE__*/ /*@__PURE__*/ T.applyErrorMatchers(
|
|
28
|
+
/*@__PURE__*/ S.TaggedError()("NotFound", {
|
|
29
|
+
code: S.Number,
|
|
30
|
+
message: S.String,
|
|
31
|
+
}).pipe(C.withBadRequestError), [{ status: 404 }]) {
|
|
32
|
+
}
|
|
33
|
+
export class UnprocessableEntity extends /*@__PURE__*/ /*@__PURE__*/ T.applyErrorMatchers(
|
|
34
|
+
/*@__PURE__*/ S.TaggedError()("UnprocessableEntity", {
|
|
35
|
+
code: S.Number,
|
|
36
|
+
message: S.String,
|
|
37
|
+
}).pipe(C.withBadRequestError), [{ status: 422 }]) {
|
|
38
|
+
}
|
|
39
|
+
export const AdminAddRuleToQuotaGroupRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
40
|
+
quotagroup: S.String.pipe(T.Label()),
|
|
41
|
+
quotarule: S.String.pipe(T.Label()),
|
|
42
|
+
}).pipe(T.Http({
|
|
43
|
+
method: "PUT",
|
|
44
|
+
uri: "/admin/quota/groups/{quotagroup}/rules/{quotarule}",
|
|
45
|
+
code: 200,
|
|
46
|
+
}))).annotate({
|
|
47
|
+
identifier: "AdminAddRuleToQuotaGroupRequest",
|
|
48
|
+
});
|
|
49
|
+
export const AdminAddRuleToQuotaGroupResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
50
|
+
identifier: "AdminAddRuleToQuotaGroupResponse",
|
|
51
|
+
});
|
|
52
|
+
export const AdminAddUserToQuotaGroupRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
53
|
+
quotagroup: S.String.pipe(T.Label()),
|
|
54
|
+
username: S.String.pipe(T.Label()),
|
|
55
|
+
}).pipe(T.Http({
|
|
56
|
+
method: "PUT",
|
|
57
|
+
uri: "/admin/quota/groups/{quotagroup}/users/{username}",
|
|
58
|
+
code: 200,
|
|
59
|
+
}))).annotate({
|
|
60
|
+
identifier: "AdminAddUserToQuotaGroupRequest",
|
|
61
|
+
});
|
|
62
|
+
export const AdminAddUserToQuotaGroupResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
63
|
+
identifier: "AdminAddUserToQuotaGroupResponse",
|
|
64
|
+
});
|
|
65
|
+
export const AdminAdoptRepositoryRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
66
|
+
owner: S.String.pipe(T.Label()),
|
|
67
|
+
repo: S.String.pipe(T.Label()),
|
|
68
|
+
}).pipe(T.Http({
|
|
69
|
+
method: "POST",
|
|
70
|
+
uri: "/admin/unadopted/{owner}/{repo}",
|
|
71
|
+
code: 200,
|
|
72
|
+
}))).annotate({
|
|
73
|
+
identifier: "AdminAdoptRepositoryRequest",
|
|
74
|
+
});
|
|
75
|
+
export const AdminAdoptRepositoryResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
76
|
+
identifier: "AdminAdoptRepositoryResponse",
|
|
77
|
+
});
|
|
78
|
+
export const CreateHookOptionConfig = /*@__PURE__*/ S.Record(S.String, S.String);
|
|
79
|
+
export const AdminCreateHookRequestEventsList = /*@__PURE__*/ S.Array(S.String);
|
|
80
|
+
export const AdminCreateHookRequestType = /*@__PURE__*/ S.String;
|
|
81
|
+
export const AdminCreateHookRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
82
|
+
active: S.optional(S.Boolean),
|
|
83
|
+
authorization_header: S.optional(S.String),
|
|
84
|
+
branch_filter: S.optional(S.String),
|
|
85
|
+
config: CreateHookOptionConfig,
|
|
86
|
+
events: S.optional(AdminCreateHookRequestEventsList),
|
|
87
|
+
type: AdminCreateHookRequestType,
|
|
88
|
+
}).pipe(T.Http({ method: "POST", uri: "/admin/hooks", code: 200 }))).annotate({
|
|
89
|
+
identifier: "AdminCreateHookRequest",
|
|
90
|
+
});
|
|
91
|
+
export const HookConfigMap = /*@__PURE__*/ S.Record(S.String, S.String);
|
|
92
|
+
export const HookEventsList = /*@__PURE__*/ S.Array(S.String);
|
|
93
|
+
export const Hook = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
94
|
+
active: S.Boolean,
|
|
95
|
+
authorization_header: S.optional(S.String),
|
|
96
|
+
branch_filter: S.optional(S.String),
|
|
97
|
+
config: S.optional(HookConfigMap),
|
|
98
|
+
content_type: S.optional(S.String),
|
|
99
|
+
created_at: S.String,
|
|
100
|
+
events: S.optional(HookEventsList),
|
|
101
|
+
id: S.Number,
|
|
102
|
+
metadata: S.optional(S.Unknown),
|
|
103
|
+
type: S.String,
|
|
104
|
+
updated_at: S.String,
|
|
105
|
+
url: S.String,
|
|
106
|
+
})).annotate({ identifier: "Hook" });
|
|
107
|
+
export const AdminCreateOrgRequestVisibility = /*@__PURE__*/ S.String;
|
|
108
|
+
export const AdminCreateOrgRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
109
|
+
owner: S.String.pipe(T.Label()),
|
|
110
|
+
description: S.optional(S.String),
|
|
111
|
+
email: S.optional(S.String),
|
|
112
|
+
full_name: S.optional(S.String),
|
|
113
|
+
location: S.optional(S.String),
|
|
114
|
+
repo_admin_change_team_access: S.optional(S.Boolean),
|
|
115
|
+
username: S.String,
|
|
116
|
+
visibility: S.optional(AdminCreateOrgRequestVisibility),
|
|
117
|
+
website: S.optional(S.String),
|
|
118
|
+
}).pipe(T.Http({ method: "POST", uri: "/admin/users/{owner}/orgs", code: 200 }))).annotate({
|
|
119
|
+
identifier: "AdminCreateOrgRequest",
|
|
120
|
+
});
|
|
121
|
+
export const Organization = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
122
|
+
avatar_url: S.optional(S.String),
|
|
123
|
+
created: S.optional(S.String),
|
|
124
|
+
description: S.optional(S.String),
|
|
125
|
+
email: S.optional(S.String),
|
|
126
|
+
full_name: S.optional(S.String),
|
|
127
|
+
id: S.Number,
|
|
128
|
+
location: S.optional(S.String),
|
|
129
|
+
name: S.optional(S.String),
|
|
130
|
+
repo_admin_change_team_access: S.optional(S.Boolean),
|
|
131
|
+
username: S.String,
|
|
132
|
+
visibility: S.optional(S.String),
|
|
133
|
+
website: S.optional(S.String),
|
|
134
|
+
})).annotate({ identifier: "Organization" });
|
|
135
|
+
export const AdminCreatePublicKeyRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
136
|
+
username: S.String.pipe(T.Label()),
|
|
137
|
+
key: S.String,
|
|
138
|
+
read_only: S.optional(S.Boolean),
|
|
139
|
+
title: S.String,
|
|
140
|
+
}).pipe(T.Http({ method: "POST", uri: "/admin/users/{username}/keys", code: 200 }))).annotate({
|
|
141
|
+
identifier: "AdminCreatePublicKeyRequest",
|
|
142
|
+
});
|
|
143
|
+
export const User = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
144
|
+
active: S.optional(S.Boolean),
|
|
145
|
+
avatar_url: S.optional(S.String),
|
|
146
|
+
created: S.optional(S.String),
|
|
147
|
+
description: S.optional(S.String),
|
|
148
|
+
email: S.optional(S.String),
|
|
149
|
+
followers_count: S.optional(S.Number),
|
|
150
|
+
following_count: S.optional(S.Number),
|
|
151
|
+
full_name: S.optional(S.String),
|
|
152
|
+
html_url: S.optional(S.String),
|
|
153
|
+
id: S.Number,
|
|
154
|
+
is_admin: S.optional(S.Boolean),
|
|
155
|
+
language: S.optional(S.String),
|
|
156
|
+
last_login: S.optional(S.String),
|
|
157
|
+
location: S.optional(S.String),
|
|
158
|
+
login: S.String,
|
|
159
|
+
login_name: S.optional(S.String),
|
|
160
|
+
prohibit_login: S.optional(S.Boolean),
|
|
161
|
+
pronouns: S.optional(S.String),
|
|
162
|
+
restricted: S.optional(S.Boolean),
|
|
163
|
+
source_id: S.optional(S.Number),
|
|
164
|
+
starred_repos_count: S.optional(S.Number),
|
|
165
|
+
visibility: S.optional(S.String),
|
|
166
|
+
website: S.optional(S.String),
|
|
167
|
+
})).annotate({ identifier: "User" });
|
|
168
|
+
export const PublicKey = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
169
|
+
created_at: S.optional(S.String),
|
|
170
|
+
fingerprint: S.optional(S.String),
|
|
171
|
+
id: S.optional(S.Number),
|
|
172
|
+
key: S.optional(S.String),
|
|
173
|
+
key_type: S.optional(S.String),
|
|
174
|
+
read_only: S.optional(S.Boolean),
|
|
175
|
+
title: S.optional(S.String),
|
|
176
|
+
updated_at: S.optional(S.String),
|
|
177
|
+
url: S.optional(S.String),
|
|
178
|
+
user: S.optional(User),
|
|
179
|
+
verified: S.optional(S.Boolean),
|
|
180
|
+
})).annotate({ identifier: "PublicKey" });
|
|
181
|
+
export const CreateQuotaRuleOptionsSubjectsList = /*@__PURE__*/ S.Array(S.String);
|
|
182
|
+
export const CreateQuotaRuleOptions = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
183
|
+
limit: S.optional(S.Number),
|
|
184
|
+
name: S.optional(S.String),
|
|
185
|
+
subjects: S.optional(CreateQuotaRuleOptionsSubjectsList),
|
|
186
|
+
})).annotate({
|
|
187
|
+
identifier: "CreateQuotaRuleOptions",
|
|
188
|
+
});
|
|
189
|
+
export const AdminCreateQuotaGroupRequestRulesList = /*@__PURE__*/ S.Array(CreateQuotaRuleOptions);
|
|
190
|
+
export const AdminCreateQuotaGroupRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
191
|
+
name: S.optional(S.String),
|
|
192
|
+
rules: S.optional(AdminCreateQuotaGroupRequestRulesList),
|
|
193
|
+
}).pipe(T.Http({ method: "POST", uri: "/admin/quota/groups", code: 200 }))).annotate({
|
|
194
|
+
identifier: "AdminCreateQuotaGroupRequest",
|
|
195
|
+
});
|
|
196
|
+
export const QuotaRuleInfoSubjectsList = /*@__PURE__*/ S.Array(S.String);
|
|
197
|
+
export const QuotaRuleInfo = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
198
|
+
limit: S.optional(S.Number),
|
|
199
|
+
name: S.optional(S.String),
|
|
200
|
+
subjects: S.optional(QuotaRuleInfoSubjectsList),
|
|
201
|
+
})).annotate({ identifier: "QuotaRuleInfo" });
|
|
202
|
+
export const QuotaGroupRulesList = /*@__PURE__*/ S.Array(QuotaRuleInfo);
|
|
203
|
+
export const QuotaGroup = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
204
|
+
name: S.optional(S.String),
|
|
205
|
+
rules: S.optional(QuotaGroupRulesList),
|
|
206
|
+
})).annotate({ identifier: "QuotaGroup" });
|
|
207
|
+
export const AdminCreateQuotaRuleRequestSubjectsList = /*@__PURE__*/ S.Array(S.String);
|
|
208
|
+
export const AdminCreateQuotaRuleRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
209
|
+
limit: S.optional(S.Number),
|
|
210
|
+
name: S.optional(S.String),
|
|
211
|
+
subjects: S.optional(AdminCreateQuotaRuleRequestSubjectsList),
|
|
212
|
+
}).pipe(T.Http({ method: "POST", uri: "/admin/quota/rules", code: 200 }))).annotate({
|
|
213
|
+
identifier: "AdminCreateQuotaRuleRequest",
|
|
214
|
+
});
|
|
215
|
+
export const AdminCreateRepoRequestObjectFormatName = /*@__PURE__*/ S.String;
|
|
216
|
+
export const AdminCreateRepoRequestTrustModel = /*@__PURE__*/ S.String;
|
|
217
|
+
export const AdminCreateRepoRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
218
|
+
username: S.String.pipe(T.Label()),
|
|
219
|
+
auto_init: S.optional(S.Boolean),
|
|
220
|
+
default_branch: S.optional(S.String),
|
|
221
|
+
description: S.optional(S.String),
|
|
222
|
+
gitignores: S.optional(S.String),
|
|
223
|
+
issue_labels: S.optional(S.String),
|
|
224
|
+
license: S.optional(S.String),
|
|
225
|
+
name: S.String,
|
|
226
|
+
object_format_name: S.optional(AdminCreateRepoRequestObjectFormatName),
|
|
227
|
+
private: S.optional(S.Boolean),
|
|
228
|
+
readme: S.optional(S.String),
|
|
229
|
+
template: S.optional(S.Boolean),
|
|
230
|
+
trust_model: S.optional(AdminCreateRepoRequestTrustModel),
|
|
231
|
+
}).pipe(T.Http({ method: "POST", uri: "/admin/users/{username}/repos", code: 200 }))).annotate({
|
|
232
|
+
identifier: "AdminCreateRepoRequest",
|
|
233
|
+
});
|
|
234
|
+
export const ExternalTracker = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
235
|
+
external_tracker_format: S.optional(S.String),
|
|
236
|
+
external_tracker_regexp_pattern: S.optional(S.String),
|
|
237
|
+
external_tracker_style: S.optional(S.String),
|
|
238
|
+
external_tracker_url: S.optional(S.String),
|
|
239
|
+
})).annotate({
|
|
240
|
+
identifier: "ExternalTracker",
|
|
241
|
+
});
|
|
242
|
+
export const ExternalWiki = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
243
|
+
external_wiki_url: S.optional(S.String),
|
|
244
|
+
})).annotate({ identifier: "ExternalWiki" });
|
|
245
|
+
export const InternalTracker = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
246
|
+
allow_only_contributors_to_track_time: S.optional(S.Boolean),
|
|
247
|
+
enable_issue_dependencies: S.optional(S.Boolean),
|
|
248
|
+
enable_time_tracker: S.optional(S.Boolean),
|
|
249
|
+
})).annotate({
|
|
250
|
+
identifier: "InternalTracker",
|
|
251
|
+
});
|
|
252
|
+
export const RepositoryObjectFormatName = /*@__PURE__*/ S.String;
|
|
253
|
+
export const Permission = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
254
|
+
admin: S.optional(S.Boolean),
|
|
255
|
+
pull: S.optional(S.Boolean),
|
|
256
|
+
push: S.optional(S.Boolean),
|
|
257
|
+
})).annotate({ identifier: "Permission" });
|
|
258
|
+
export const TeamPermission = /*@__PURE__*/ S.String;
|
|
259
|
+
export const TeamUnitsList = /*@__PURE__*/ S.Array(S.String);
|
|
260
|
+
export const TeamUnitsMapMap = /*@__PURE__*/ S.Record(S.String, S.String);
|
|
261
|
+
export const Team = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
262
|
+
can_create_org_repo: S.optional(S.Boolean),
|
|
263
|
+
description: S.optional(S.String),
|
|
264
|
+
id: S.Number,
|
|
265
|
+
includes_all_repositories: S.optional(S.Boolean),
|
|
266
|
+
name: S.String,
|
|
267
|
+
organization: S.optional(Organization),
|
|
268
|
+
permission: S.optional(TeamPermission),
|
|
269
|
+
units: S.optional(TeamUnitsList),
|
|
270
|
+
units_map: S.optional(TeamUnitsMapMap),
|
|
271
|
+
})).annotate({ identifier: "Team" });
|
|
272
|
+
export const RepoTransferTeamsList = /*@__PURE__*/ S.Array(Team);
|
|
273
|
+
export const RepoTransfer = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
274
|
+
doer: S.optional(User),
|
|
275
|
+
recipient: S.optional(User),
|
|
276
|
+
teams: S.optional(RepoTransferTeamsList),
|
|
277
|
+
})).annotate({ identifier: "RepoTransfer" });
|
|
278
|
+
export const RepositoryTopicsList = /*@__PURE__*/ S.Array(S.String);
|
|
279
|
+
export const Repository = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
280
|
+
allow_fast_forward_only_merge: S.optional(S.Boolean),
|
|
281
|
+
allow_merge_commits: S.optional(S.Boolean),
|
|
282
|
+
allow_rebase: S.optional(S.Boolean),
|
|
283
|
+
allow_rebase_explicit: S.optional(S.Boolean),
|
|
284
|
+
allow_rebase_update: S.optional(S.Boolean),
|
|
285
|
+
allow_squash_merge: S.optional(S.Boolean),
|
|
286
|
+
archived: S.optional(S.Boolean),
|
|
287
|
+
archived_at: S.optional(S.String),
|
|
288
|
+
avatar_url: S.optional(S.String),
|
|
289
|
+
clone_url: S.String,
|
|
290
|
+
created_at: S.String,
|
|
291
|
+
default_allow_maintainer_edit: S.optional(S.Boolean),
|
|
292
|
+
default_branch: S.String,
|
|
293
|
+
default_delete_branch_after_merge: S.optional(S.Boolean),
|
|
294
|
+
default_merge_style: S.optional(S.String),
|
|
295
|
+
default_update_style: S.optional(S.String),
|
|
296
|
+
description: S.optional(S.String),
|
|
297
|
+
empty: S.optional(S.Boolean),
|
|
298
|
+
external_tracker: S.optional(ExternalTracker),
|
|
299
|
+
external_wiki: S.optional(ExternalWiki),
|
|
300
|
+
fork: S.optional(S.Boolean),
|
|
301
|
+
forks_count: S.optional(S.Number),
|
|
302
|
+
full_name: S.String,
|
|
303
|
+
globally_editable_wiki: S.optional(S.Boolean),
|
|
304
|
+
has_actions: S.optional(S.Boolean),
|
|
305
|
+
has_issues: S.optional(S.Boolean),
|
|
306
|
+
has_packages: S.optional(S.Boolean),
|
|
307
|
+
has_projects: S.optional(S.Boolean),
|
|
308
|
+
has_pull_requests: S.optional(S.Boolean),
|
|
309
|
+
has_releases: S.optional(S.Boolean),
|
|
310
|
+
has_wiki: S.optional(S.Boolean),
|
|
311
|
+
has_wiki_contents: S.optional(S.Boolean),
|
|
312
|
+
html_url: S.String,
|
|
313
|
+
id: S.Number,
|
|
314
|
+
ignore_whitespace_conflicts: S.optional(S.Boolean),
|
|
315
|
+
internal: S.optional(S.Boolean),
|
|
316
|
+
internal_tracker: S.optional(InternalTracker),
|
|
317
|
+
language: S.optional(S.String),
|
|
318
|
+
languages_url: S.optional(S.String),
|
|
319
|
+
link: S.optional(S.String),
|
|
320
|
+
mirror: S.optional(S.Boolean),
|
|
321
|
+
mirror_interval: S.optional(S.String),
|
|
322
|
+
mirror_updated: S.optional(S.String),
|
|
323
|
+
name: S.String,
|
|
324
|
+
object_format_name: S.optional(RepositoryObjectFormatName),
|
|
325
|
+
open_issues_count: S.optional(S.Number),
|
|
326
|
+
open_pr_counter: S.optional(S.Number),
|
|
327
|
+
original_url: S.optional(S.String),
|
|
328
|
+
owner: User,
|
|
329
|
+
parent: S.optional(Repository),
|
|
330
|
+
permissions: S.optional(Permission),
|
|
331
|
+
private: S.optional(S.Boolean),
|
|
332
|
+
release_counter: S.optional(S.Number),
|
|
333
|
+
repo_transfer: S.optional(RepoTransfer),
|
|
334
|
+
size: S.optional(S.Number),
|
|
335
|
+
ssh_url: S.String,
|
|
336
|
+
stars_count: S.optional(S.Number),
|
|
337
|
+
template: S.optional(S.Boolean),
|
|
338
|
+
topics: S.optional(RepositoryTopicsList),
|
|
339
|
+
updated_at: S.String,
|
|
340
|
+
url: S.optional(S.String),
|
|
341
|
+
watchers_count: S.optional(S.Number),
|
|
342
|
+
website: S.optional(S.String),
|
|
343
|
+
wiki_branch: S.optional(S.String),
|
|
344
|
+
wiki_clone_url: S.optional(S.String),
|
|
345
|
+
wiki_ssh_url: S.optional(S.String),
|
|
346
|
+
})).annotate({ identifier: "Repository" });
|
|
347
|
+
export const AdminCreateUserRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
348
|
+
created_at: S.optional(S.String),
|
|
349
|
+
email: S.String,
|
|
350
|
+
full_name: S.optional(S.String),
|
|
351
|
+
login_name: S.optional(S.String),
|
|
352
|
+
must_change_password: S.optional(S.Boolean),
|
|
353
|
+
password: S.optional(S.String.pipe(T.SensitiveValue({}))),
|
|
354
|
+
restricted: S.optional(S.Boolean),
|
|
355
|
+
send_notify: S.optional(S.Boolean),
|
|
356
|
+
source_id: S.optional(S.Number),
|
|
357
|
+
username: S.String,
|
|
358
|
+
visibility: S.optional(S.String),
|
|
359
|
+
}).pipe(T.Http({ method: "POST", uri: "/admin/users", code: 200 }))).annotate({
|
|
360
|
+
identifier: "AdminCreateUserRequest",
|
|
361
|
+
});
|
|
362
|
+
export const RepoTargetOption = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
363
|
+
name: S.String,
|
|
364
|
+
owner: S.String,
|
|
365
|
+
})).annotate({
|
|
366
|
+
identifier: "RepoTargetOption",
|
|
367
|
+
});
|
|
368
|
+
export const AdminCreateUserAccessTokenRequestRepositoriesList =
|
|
369
|
+
/*@__PURE__*/ S.Array(RepoTargetOption);
|
|
370
|
+
export const AdminCreateUserAccessTokenRequestScopesList =
|
|
371
|
+
/*@__PURE__*/ S.Array(S.String);
|
|
372
|
+
export const AdminCreateUserAccessTokenRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
373
|
+
username: S.String.pipe(T.Label()),
|
|
374
|
+
name: S.String,
|
|
375
|
+
repositories: S.optional(AdminCreateUserAccessTokenRequestRepositoriesList),
|
|
376
|
+
scopes: S.optional(AdminCreateUserAccessTokenRequestScopesList),
|
|
377
|
+
}).pipe(T.Http({
|
|
378
|
+
method: "POST",
|
|
379
|
+
uri: "/admin/users/{username}/tokens",
|
|
380
|
+
code: 200,
|
|
381
|
+
}))).annotate({
|
|
382
|
+
identifier: "AdminCreateUserAccessTokenRequest",
|
|
383
|
+
});
|
|
384
|
+
export const RepositoryMeta = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
385
|
+
full_name: S.optional(S.String),
|
|
386
|
+
id: S.optional(S.Number),
|
|
387
|
+
name: S.optional(S.String),
|
|
388
|
+
owner: S.optional(S.String),
|
|
389
|
+
})).annotate({ identifier: "RepositoryMeta" });
|
|
390
|
+
export const AccessTokenRepositoriesList = /*@__PURE__*/ S.Array(RepositoryMeta);
|
|
391
|
+
export const AccessTokenScopesList = /*@__PURE__*/ S.Array(S.String);
|
|
392
|
+
export const AccessToken = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
393
|
+
created_at: S.String,
|
|
394
|
+
id: S.Number,
|
|
395
|
+
name: S.String,
|
|
396
|
+
repositories: S.optional(AccessTokenRepositoriesList),
|
|
397
|
+
scopes: S.optional(AccessTokenScopesList),
|
|
398
|
+
sha1: S.optional(S.String.pipe(T.SensitiveValue({}))),
|
|
399
|
+
token_last_eight: S.String,
|
|
400
|
+
})).annotate({ identifier: "AccessToken" });
|
|
401
|
+
export const AdminDeleteHookRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
402
|
+
id: S.Number.pipe(T.Label()),
|
|
403
|
+
}).pipe(T.Http({ method: "DELETE", uri: "/admin/hooks/{id}", code: 200 }))).annotate({
|
|
404
|
+
identifier: "AdminDeleteHookRequest",
|
|
405
|
+
});
|
|
406
|
+
export const AdminDeleteHookResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
407
|
+
identifier: "AdminDeleteHookResponse",
|
|
408
|
+
});
|
|
409
|
+
export const AdminDeleteQuotaGroupRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
410
|
+
quotagroup: S.String.pipe(T.Label()),
|
|
411
|
+
}).pipe(T.Http({
|
|
412
|
+
method: "DELETE",
|
|
413
|
+
uri: "/admin/quota/groups/{quotagroup}",
|
|
414
|
+
code: 200,
|
|
415
|
+
}))).annotate({
|
|
416
|
+
identifier: "AdminDeleteQuotaGroupRequest",
|
|
417
|
+
});
|
|
418
|
+
export const AdminDeleteQuotaGroupResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
419
|
+
identifier: "AdminDeleteQuotaGroupResponse",
|
|
420
|
+
});
|
|
421
|
+
export const AdminDeleteQuotaRuleRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
422
|
+
quotarule: S.String.pipe(T.Label()),
|
|
423
|
+
}).pipe(T.Http({
|
|
424
|
+
method: "DELETE",
|
|
425
|
+
uri: "/admin/quota/rules/{quotarule}",
|
|
426
|
+
code: 200,
|
|
427
|
+
}))).annotate({
|
|
428
|
+
identifier: "AdminDeleteQuotaRuleRequest",
|
|
429
|
+
});
|
|
430
|
+
export const AdminDeleteQuotaRuleResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
431
|
+
identifier: "AdminDeleteQuotaRuleResponse",
|
|
432
|
+
});
|
|
433
|
+
export const AdminDeleteUnadoptedRepositoryRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
434
|
+
owner: S.String.pipe(T.Label()),
|
|
435
|
+
repo: S.String.pipe(T.Label()),
|
|
436
|
+
}).pipe(T.Http({
|
|
437
|
+
method: "DELETE",
|
|
438
|
+
uri: "/admin/unadopted/{owner}/{repo}",
|
|
439
|
+
code: 200,
|
|
440
|
+
}))).annotate({
|
|
441
|
+
identifier: "AdminDeleteUnadoptedRepositoryRequest",
|
|
442
|
+
});
|
|
443
|
+
export const AdminDeleteUnadoptedRepositoryResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
444
|
+
identifier: "AdminDeleteUnadoptedRepositoryResponse",
|
|
445
|
+
});
|
|
446
|
+
export const AdminDeleteUserRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
447
|
+
username: S.String.pipe(T.Label()),
|
|
448
|
+
purge: S.optional(S.Boolean.pipe(T.Query())),
|
|
449
|
+
}).pipe(T.Http({ method: "DELETE", uri: "/admin/users/{username}", code: 200 }))).annotate({
|
|
450
|
+
identifier: "AdminDeleteUserRequest",
|
|
451
|
+
});
|
|
452
|
+
export const AdminDeleteUserResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
453
|
+
identifier: "AdminDeleteUserResponse",
|
|
454
|
+
});
|
|
455
|
+
export const AdminDeleteUserAccessTokenRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
456
|
+
username: S.String.pipe(T.Label()),
|
|
457
|
+
token: S.String.pipe(T.Label()),
|
|
458
|
+
}).pipe(T.Http({
|
|
459
|
+
method: "DELETE",
|
|
460
|
+
uri: "/admin/users/{username}/tokens/{token}",
|
|
461
|
+
code: 200,
|
|
462
|
+
}))).annotate({
|
|
463
|
+
identifier: "AdminDeleteUserAccessTokenRequest",
|
|
464
|
+
});
|
|
465
|
+
export const AdminDeleteUserAccessTokenResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
466
|
+
identifier: "AdminDeleteUserAccessTokenResponse",
|
|
467
|
+
});
|
|
468
|
+
export const AdminDeleteUserEmailsRequestEmailsList = /*@__PURE__*/ S.Array(S.String);
|
|
469
|
+
export const AdminDeleteUserEmailsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
470
|
+
username: S.String.pipe(T.Label()),
|
|
471
|
+
emails: S.optional(AdminDeleteUserEmailsRequestEmailsList),
|
|
472
|
+
}).pipe(T.Http({
|
|
473
|
+
method: "DELETE",
|
|
474
|
+
uri: "/admin/users/{username}/emails",
|
|
475
|
+
code: 200,
|
|
476
|
+
}))).annotate({
|
|
477
|
+
identifier: "AdminDeleteUserEmailsRequest",
|
|
478
|
+
});
|
|
479
|
+
export const AdminDeleteUserEmailsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
480
|
+
identifier: "AdminDeleteUserEmailsResponse",
|
|
481
|
+
});
|
|
482
|
+
export const AdminDeleteUserPublicKeyRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
483
|
+
username: S.String.pipe(T.Label()),
|
|
484
|
+
id: S.Number.pipe(T.Label()),
|
|
485
|
+
}).pipe(T.Http({
|
|
486
|
+
method: "DELETE",
|
|
487
|
+
uri: "/admin/users/{username}/keys/{id}",
|
|
488
|
+
code: 200,
|
|
489
|
+
}))).annotate({
|
|
490
|
+
identifier: "AdminDeleteUserPublicKeyRequest",
|
|
491
|
+
});
|
|
492
|
+
export const AdminDeleteUserPublicKeyResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
493
|
+
identifier: "AdminDeleteUserPublicKeyResponse",
|
|
494
|
+
});
|
|
495
|
+
export const AdminEditHookRequestConfigMap = /*@__PURE__*/ S.Record(S.String, S.String);
|
|
496
|
+
export const AdminEditHookRequestEventsList = /*@__PURE__*/ S.Array(S.String);
|
|
497
|
+
export const AdminEditHookRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
498
|
+
id: S.Number.pipe(T.Label()),
|
|
499
|
+
active: S.optional(S.Boolean),
|
|
500
|
+
authorization_header: S.optional(S.String),
|
|
501
|
+
branch_filter: S.optional(S.String),
|
|
502
|
+
config: S.optional(AdminEditHookRequestConfigMap),
|
|
503
|
+
events: S.optional(AdminEditHookRequestEventsList),
|
|
504
|
+
}).pipe(T.Http({ method: "PATCH", uri: "/admin/hooks/{id}", code: 200 }))).annotate({
|
|
505
|
+
identifier: "AdminEditHookRequest",
|
|
506
|
+
});
|
|
507
|
+
export const AdminEditQuotaRuleRequestSubjectsList = /*@__PURE__*/ S.Array(S.String);
|
|
508
|
+
export const AdminEditQuotaRuleRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
509
|
+
quotarule: S.String.pipe(T.Label()),
|
|
510
|
+
limit: S.optional(S.Number),
|
|
511
|
+
subjects: S.optional(AdminEditQuotaRuleRequestSubjectsList),
|
|
512
|
+
}).pipe(T.Http({
|
|
513
|
+
method: "PATCH",
|
|
514
|
+
uri: "/admin/quota/rules/{quotarule}",
|
|
515
|
+
code: 200,
|
|
516
|
+
}))).annotate({
|
|
517
|
+
identifier: "AdminEditQuotaRuleRequest",
|
|
518
|
+
});
|
|
519
|
+
export const AdminEditUserRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
520
|
+
username: S.String.pipe(T.Label()),
|
|
521
|
+
active: S.optional(S.Boolean),
|
|
522
|
+
admin: S.optional(S.Boolean),
|
|
523
|
+
allow_create_organization: S.optional(S.Boolean),
|
|
524
|
+
allow_git_hook: S.optional(S.Boolean),
|
|
525
|
+
allow_import_local: S.optional(S.Boolean),
|
|
526
|
+
description: S.optional(S.String),
|
|
527
|
+
email: S.optional(S.String),
|
|
528
|
+
full_name: S.optional(S.String),
|
|
529
|
+
hide_email: S.optional(S.Boolean),
|
|
530
|
+
location: S.optional(S.String),
|
|
531
|
+
login_name: S.optional(S.String),
|
|
532
|
+
max_repo_creation: S.optional(S.Number),
|
|
533
|
+
must_change_password: S.optional(S.Boolean),
|
|
534
|
+
password: S.optional(S.String.pipe(T.SensitiveValue({}))),
|
|
535
|
+
prohibit_login: S.optional(S.Boolean),
|
|
536
|
+
pronouns: S.optional(S.String),
|
|
537
|
+
restricted: S.optional(S.Boolean),
|
|
538
|
+
source_id: S.optional(S.Number),
|
|
539
|
+
visibility: S.optional(S.String),
|
|
540
|
+
website: S.optional(S.String),
|
|
541
|
+
}).pipe(T.Http({ method: "PATCH", uri: "/admin/users/{username}", code: 200 }))).annotate({
|
|
542
|
+
identifier: "AdminEditUserRequest",
|
|
543
|
+
});
|
|
544
|
+
export const AdminGetActionRunJobsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
545
|
+
labels: S.optional(S.String.pipe(T.Query())),
|
|
546
|
+
}).pipe(T.Http({ method: "GET", uri: "/admin/actions/runners/jobs", code: 200 }))).annotate({
|
|
547
|
+
identifier: "AdminGetActionRunJobsRequest",
|
|
548
|
+
});
|
|
549
|
+
export const ActionRunJobNeedsList = /*@__PURE__*/ S.Array(S.String);
|
|
550
|
+
export const ActionRunJobRunsOnList = /*@__PURE__*/ S.Array(S.String);
|
|
551
|
+
export const ActionRunJob = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
552
|
+
attempt: S.optional(S.Number),
|
|
553
|
+
handle: S.optional(S.String),
|
|
554
|
+
id: S.optional(S.Number),
|
|
555
|
+
name: S.optional(S.String),
|
|
556
|
+
needs: S.optional(ActionRunJobNeedsList),
|
|
557
|
+
owner_id: S.optional(S.Number),
|
|
558
|
+
repo_id: S.optional(S.Number),
|
|
559
|
+
run_id: S.optional(S.Number),
|
|
560
|
+
runs_on: S.optional(ActionRunJobRunsOnList),
|
|
561
|
+
status: S.optional(S.String),
|
|
562
|
+
task_id: S.optional(S.Number),
|
|
563
|
+
})).annotate({ identifier: "ActionRunJob" });
|
|
564
|
+
export const AdminGetActionRunJobsResponseBodyList = /*@__PURE__*/ S.Array(ActionRunJob);
|
|
565
|
+
export const AdminGetActionRunJobsResponse = /*@__PURE__*/ S.suspend(() => AdminGetActionRunJobsResponseBodyList.pipe(T.RawResponseRoot())).annotate({
|
|
566
|
+
identifier: "AdminGetActionRunJobsResponse",
|
|
567
|
+
});
|
|
568
|
+
export const AdminGetAllEmailsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
569
|
+
page: S.optional(S.Number.pipe(T.Query())),
|
|
570
|
+
limit: S.optional(S.Number.pipe(T.Query())),
|
|
571
|
+
}).pipe(T.Http({ method: "GET", uri: "/admin/emails", code: 200 }))).annotate({
|
|
572
|
+
identifier: "AdminGetAllEmailsRequest",
|
|
573
|
+
});
|
|
574
|
+
export const Email = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
575
|
+
email: S.optional(S.String),
|
|
576
|
+
primary: S.optional(S.Boolean),
|
|
577
|
+
user_id: S.optional(S.Number),
|
|
578
|
+
username: S.optional(S.String),
|
|
579
|
+
verified: S.optional(S.Boolean),
|
|
580
|
+
})).annotate({ identifier: "Email" });
|
|
581
|
+
export const AdminGetAllEmailsResponseBodyList = /*@__PURE__*/ S.Array(Email);
|
|
582
|
+
export const AdminGetAllEmailsResponse = /*@__PURE__*/ S.suspend(() => AdminGetAllEmailsResponseBodyList.pipe(T.RawResponseRoot())).annotate({
|
|
583
|
+
identifier: "AdminGetAllEmailsResponse",
|
|
584
|
+
});
|
|
585
|
+
export const AdminGetAllOrgsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
586
|
+
page: S.optional(S.Number.pipe(T.Query())),
|
|
587
|
+
limit: S.optional(S.Number.pipe(T.Query())),
|
|
588
|
+
}).pipe(T.Http({ method: "GET", uri: "/admin/orgs", code: 200 }))).annotate({
|
|
589
|
+
identifier: "AdminGetAllOrgsRequest",
|
|
590
|
+
});
|
|
591
|
+
export const AdminGetAllOrgsResponseBodyList = /*@__PURE__*/ S.Array(Organization);
|
|
592
|
+
export const AdminGetAllOrgsResponse = /*@__PURE__*/ S.suspend(() => AdminGetAllOrgsResponseBodyList.pipe(T.RawResponseRoot())).annotate({
|
|
593
|
+
identifier: "AdminGetAllOrgsResponse",
|
|
594
|
+
});
|
|
595
|
+
export const AdminGetHookRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
596
|
+
id: S.Number.pipe(T.Label()),
|
|
597
|
+
}).pipe(T.Http({ method: "GET", uri: "/admin/hooks/{id}", code: 200 }))).annotate({
|
|
598
|
+
identifier: "AdminGetHookRequest",
|
|
599
|
+
});
|
|
600
|
+
export const AdminGetQuotaGroupRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
601
|
+
quotagroup: S.String.pipe(T.Label()),
|
|
602
|
+
}).pipe(T.Http({
|
|
603
|
+
method: "GET",
|
|
604
|
+
uri: "/admin/quota/groups/{quotagroup}",
|
|
605
|
+
code: 200,
|
|
606
|
+
}))).annotate({
|
|
607
|
+
identifier: "AdminGetQuotaGroupRequest",
|
|
608
|
+
});
|
|
609
|
+
export const AdminGetQuotaRuleRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
610
|
+
quotarule: S.String.pipe(T.Label()),
|
|
611
|
+
}).pipe(T.Http({ method: "GET", uri: "/admin/quota/rules/{quotarule}", code: 200 }))).annotate({
|
|
612
|
+
identifier: "AdminGetQuotaRuleRequest",
|
|
613
|
+
});
|
|
614
|
+
export const AdminGetUserQuotaRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
615
|
+
username: S.String.pipe(T.Label()),
|
|
616
|
+
}).pipe(T.Http({ method: "GET", uri: "/admin/users/{username}/quota", code: 200 }))).annotate({
|
|
617
|
+
identifier: "AdminGetUserQuotaRequest",
|
|
618
|
+
});
|
|
619
|
+
export const QuotaGroupList = /*@__PURE__*/ S.Array(QuotaGroup);
|
|
620
|
+
export const QuotaUsedSizeAssetsAttachments = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
621
|
+
issues: S.optional(S.Number),
|
|
622
|
+
releases: S.optional(S.Number),
|
|
623
|
+
})).annotate({
|
|
624
|
+
identifier: "QuotaUsedSizeAssetsAttachments",
|
|
625
|
+
});
|
|
626
|
+
export const QuotaUsedSizeAssetsPackages = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
627
|
+
all: S.optional(S.Number),
|
|
628
|
+
})).annotate({
|
|
629
|
+
identifier: "QuotaUsedSizeAssetsPackages",
|
|
630
|
+
});
|
|
631
|
+
export const QuotaUsedSizeAssets = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
632
|
+
artifacts: S.optional(S.Number),
|
|
633
|
+
attachments: S.optional(QuotaUsedSizeAssetsAttachments),
|
|
634
|
+
packages: S.optional(QuotaUsedSizeAssetsPackages),
|
|
635
|
+
})).annotate({
|
|
636
|
+
identifier: "QuotaUsedSizeAssets",
|
|
637
|
+
});
|
|
638
|
+
export const QuotaUsedSizeGit = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
639
|
+
LFS: S.optional(S.Number),
|
|
640
|
+
})).annotate({
|
|
641
|
+
identifier: "QuotaUsedSizeGit",
|
|
642
|
+
});
|
|
643
|
+
export const QuotaUsedSizeRepos = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
644
|
+
private: S.optional(S.Number),
|
|
645
|
+
public: S.optional(S.Number),
|
|
646
|
+
})).annotate({
|
|
647
|
+
identifier: "QuotaUsedSizeRepos",
|
|
648
|
+
});
|
|
649
|
+
export const QuotaUsedSize = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
650
|
+
assets: S.optional(QuotaUsedSizeAssets),
|
|
651
|
+
git: S.optional(QuotaUsedSizeGit),
|
|
652
|
+
repos: S.optional(QuotaUsedSizeRepos),
|
|
653
|
+
})).annotate({ identifier: "QuotaUsedSize" });
|
|
654
|
+
export const QuotaUsed = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
655
|
+
size: S.optional(QuotaUsedSize),
|
|
656
|
+
})).annotate({ identifier: "QuotaUsed" });
|
|
657
|
+
export const QuotaInfo = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
658
|
+
groups: S.optional(QuotaGroupList),
|
|
659
|
+
used: S.optional(QuotaUsed),
|
|
660
|
+
})).annotate({ identifier: "QuotaInfo" });
|
|
661
|
+
export const AdminListHooksRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
662
|
+
page: S.optional(S.Number.pipe(T.Query())),
|
|
663
|
+
limit: S.optional(S.Number.pipe(T.Query())),
|
|
664
|
+
}).pipe(T.Http({ method: "GET", uri: "/admin/hooks", code: 200 }))).annotate({
|
|
665
|
+
identifier: "AdminListHooksRequest",
|
|
666
|
+
});
|
|
667
|
+
export const AdminListHooksResponseBodyList = /*@__PURE__*/ S.Array(Hook);
|
|
668
|
+
export const AdminListHooksResponse = /*@__PURE__*/ S.suspend(() => AdminListHooksResponseBodyList.pipe(T.RawResponseRoot())).annotate({
|
|
669
|
+
identifier: "AdminListHooksResponse",
|
|
670
|
+
});
|
|
671
|
+
export const AdminListQuotaGroupsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(T.Http({ method: "GET", uri: "/admin/quota/groups", code: 200 }))).annotate({
|
|
672
|
+
identifier: "AdminListQuotaGroupsRequest",
|
|
673
|
+
});
|
|
674
|
+
export const AdminListQuotaGroupsResponse = /*@__PURE__*/ S.suspend(() => QuotaGroupList.pipe(T.RawResponseRoot())).annotate({
|
|
675
|
+
identifier: "AdminListQuotaGroupsResponse",
|
|
676
|
+
});
|
|
677
|
+
export const AdminListQuotaRulesRequest = /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(T.Http({ method: "GET", uri: "/admin/quota/rules", code: 200 }))).annotate({
|
|
678
|
+
identifier: "AdminListQuotaRulesRequest",
|
|
679
|
+
});
|
|
680
|
+
export const AdminListQuotaRulesResponseBodyList = /*@__PURE__*/ S.Array(QuotaRuleInfo);
|
|
681
|
+
export const AdminListQuotaRulesResponse = /*@__PURE__*/ S.suspend(() => AdminListQuotaRulesResponseBodyList.pipe(T.RawResponseRoot())).annotate({
|
|
682
|
+
identifier: "AdminListQuotaRulesResponse",
|
|
683
|
+
});
|
|
684
|
+
export const AdminListUserAccessTokensRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
685
|
+
username: S.String.pipe(T.Label()),
|
|
686
|
+
page: S.optional(S.Number.pipe(T.Query())),
|
|
687
|
+
limit: S.optional(S.Number.pipe(T.Query())),
|
|
688
|
+
}).pipe(T.Http({ method: "GET", uri: "/admin/users/{username}/tokens", code: 200 }))).annotate({
|
|
689
|
+
identifier: "AdminListUserAccessTokensRequest",
|
|
690
|
+
});
|
|
691
|
+
export const AdminListUserAccessTokensResponseBodyList = /*@__PURE__*/ S.Array(AccessToken);
|
|
692
|
+
export const AdminListUserAccessTokensResponse = /*@__PURE__*/ S.suspend(() => AdminListUserAccessTokensResponseBodyList.pipe(T.RawResponseRoot())).annotate({
|
|
693
|
+
identifier: "AdminListUserAccessTokensResponse",
|
|
694
|
+
});
|
|
695
|
+
export const AdminListUserEmailsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
696
|
+
username: S.String.pipe(T.Label()),
|
|
697
|
+
}).pipe(T.Http({ method: "GET", uri: "/admin/users/{username}/emails", code: 200 }))).annotate({
|
|
698
|
+
identifier: "AdminListUserEmailsRequest",
|
|
699
|
+
});
|
|
700
|
+
export const AdminListUserEmailsResponseBodyList = /*@__PURE__*/ S.Array(Email);
|
|
701
|
+
export const AdminListUserEmailsResponse = /*@__PURE__*/ S.suspend(() => AdminListUserEmailsResponseBodyList.pipe(T.RawResponseRoot())).annotate({
|
|
702
|
+
identifier: "AdminListUserEmailsResponse",
|
|
703
|
+
});
|
|
704
|
+
export const AdminListUsersInQuotaGroupRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
705
|
+
quotagroup: S.String.pipe(T.Label()),
|
|
706
|
+
}).pipe(T.Http({
|
|
707
|
+
method: "GET",
|
|
708
|
+
uri: "/admin/quota/groups/{quotagroup}/users",
|
|
709
|
+
code: 200,
|
|
710
|
+
}))).annotate({
|
|
711
|
+
identifier: "AdminListUsersInQuotaGroupRequest",
|
|
712
|
+
});
|
|
713
|
+
export const AdminListUsersInQuotaGroupResponseBodyList = /*@__PURE__*/ S.Array(User);
|
|
714
|
+
export const AdminListUsersInQuotaGroupResponse = /*@__PURE__*/ S.suspend(() => AdminListUsersInQuotaGroupResponseBodyList.pipe(T.RawResponseRoot())).annotate({
|
|
715
|
+
identifier: "AdminListUsersInQuotaGroupResponse",
|
|
716
|
+
});
|
|
717
|
+
export const AdminRemoveRuleFromQuotaGroupRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
718
|
+
quotagroup: S.String.pipe(T.Label()),
|
|
719
|
+
quotarule: S.String.pipe(T.Label()),
|
|
720
|
+
}).pipe(T.Http({
|
|
721
|
+
method: "DELETE",
|
|
722
|
+
uri: "/admin/quota/groups/{quotagroup}/rules/{quotarule}",
|
|
723
|
+
code: 200,
|
|
724
|
+
}))).annotate({
|
|
725
|
+
identifier: "AdminRemoveRuleFromQuotaGroupRequest",
|
|
726
|
+
});
|
|
727
|
+
export const AdminRemoveRuleFromQuotaGroupResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
728
|
+
identifier: "AdminRemoveRuleFromQuotaGroupResponse",
|
|
729
|
+
});
|
|
730
|
+
export const AdminRemoveUserFromQuotaGroupRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
731
|
+
quotagroup: S.String.pipe(T.Label()),
|
|
732
|
+
username: S.String.pipe(T.Label()),
|
|
733
|
+
}).pipe(T.Http({
|
|
734
|
+
method: "DELETE",
|
|
735
|
+
uri: "/admin/quota/groups/{quotagroup}/users/{username}",
|
|
736
|
+
code: 200,
|
|
737
|
+
}))).annotate({
|
|
738
|
+
identifier: "AdminRemoveUserFromQuotaGroupRequest",
|
|
739
|
+
});
|
|
740
|
+
export const AdminRemoveUserFromQuotaGroupResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
741
|
+
identifier: "AdminRemoveUserFromQuotaGroupResponse",
|
|
742
|
+
});
|
|
743
|
+
export const AdminRenameUserRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
744
|
+
username: S.String.pipe(T.Label()),
|
|
745
|
+
new_username: S.String,
|
|
746
|
+
}).pipe(T.Http({
|
|
747
|
+
method: "POST",
|
|
748
|
+
uri: "/admin/users/{username}/rename",
|
|
749
|
+
code: 200,
|
|
750
|
+
}))).annotate({
|
|
751
|
+
identifier: "AdminRenameUserRequest",
|
|
752
|
+
});
|
|
753
|
+
export const AdminRenameUserResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
754
|
+
identifier: "AdminRenameUserResponse",
|
|
755
|
+
});
|
|
756
|
+
export const AdminSearchEmailsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
757
|
+
q: S.optional(S.String.pipe(T.Query())),
|
|
758
|
+
page: S.optional(S.Number.pipe(T.Query())),
|
|
759
|
+
limit: S.optional(S.Number.pipe(T.Query())),
|
|
760
|
+
}).pipe(T.Http({ method: "GET", uri: "/admin/emails/search", code: 200 }))).annotate({
|
|
761
|
+
identifier: "AdminSearchEmailsRequest",
|
|
762
|
+
});
|
|
763
|
+
export const AdminSearchEmailsResponseBodyList = /*@__PURE__*/ S.Array(Email);
|
|
764
|
+
export const AdminSearchEmailsResponse = /*@__PURE__*/ S.suspend(() => AdminSearchEmailsResponseBodyList.pipe(T.RawResponseRoot())).annotate({
|
|
765
|
+
identifier: "AdminSearchEmailsResponse",
|
|
766
|
+
});
|
|
767
|
+
export const AdminSearchUsersRequestSort = /*@__PURE__*/ S.String;
|
|
768
|
+
export const AdminSearchUsersRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
769
|
+
source_id: S.optional(S.Number.pipe(T.Query())),
|
|
770
|
+
login_name: S.optional(S.String.pipe(T.Query())),
|
|
771
|
+
is_2fa_enabled: S.optional(S.Boolean.pipe(T.Query())),
|
|
772
|
+
sort: S.optional(AdminSearchUsersRequestSort.pipe(T.Query())),
|
|
773
|
+
page: S.optional(S.Number.pipe(T.Query())),
|
|
774
|
+
limit: S.optional(S.Number.pipe(T.Query())),
|
|
775
|
+
}).pipe(T.Http({ method: "GET", uri: "/admin/users", code: 200 }))).annotate({
|
|
776
|
+
identifier: "AdminSearchUsersRequest",
|
|
777
|
+
});
|
|
778
|
+
export const AdminSearchUsersResponseBodyList = /*@__PURE__*/ S.Array(User);
|
|
779
|
+
export const AdminSearchUsersResponse = /*@__PURE__*/ S.suspend(() => AdminSearchUsersResponseBodyList.pipe(T.RawResponseRoot())).annotate({
|
|
780
|
+
identifier: "AdminSearchUsersResponse",
|
|
781
|
+
});
|
|
782
|
+
export const AdminSetUserQuotaGroupsRequestGroupsList = /*@__PURE__*/ S.Array(S.String);
|
|
783
|
+
export const AdminSetUserQuotaGroupsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
784
|
+
username: S.String.pipe(T.Label()),
|
|
785
|
+
groups: AdminSetUserQuotaGroupsRequestGroupsList,
|
|
786
|
+
}).pipe(T.Http({
|
|
787
|
+
method: "POST",
|
|
788
|
+
uri: "/admin/users/{username}/quota/groups",
|
|
789
|
+
code: 200,
|
|
790
|
+
}))).annotate({
|
|
791
|
+
identifier: "AdminSetUserQuotaGroupsRequest",
|
|
792
|
+
});
|
|
793
|
+
export const AdminSetUserQuotaGroupsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
794
|
+
identifier: "AdminSetUserQuotaGroupsResponse",
|
|
795
|
+
});
|
|
796
|
+
export const DeleteAdminRunnerRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
797
|
+
runner_id: S.String.pipe(T.Label()),
|
|
798
|
+
}).pipe(T.Http({
|
|
799
|
+
method: "DELETE",
|
|
800
|
+
uri: "/admin/actions/runners/{runner_id}",
|
|
801
|
+
code: 200,
|
|
802
|
+
}))).annotate({
|
|
803
|
+
identifier: "DeleteAdminRunnerRequest",
|
|
804
|
+
});
|
|
805
|
+
export const DeleteAdminRunnerResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
806
|
+
identifier: "DeleteAdminRunnerResponse",
|
|
807
|
+
});
|
|
808
|
+
export const GetAdminRunnerRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
809
|
+
runner_id: S.String.pipe(T.Label()),
|
|
810
|
+
}).pipe(T.Http({
|
|
811
|
+
method: "GET",
|
|
812
|
+
uri: "/admin/actions/runners/{runner_id}",
|
|
813
|
+
code: 200,
|
|
814
|
+
}))).annotate({
|
|
815
|
+
identifier: "GetAdminRunnerRequest",
|
|
816
|
+
});
|
|
817
|
+
export const ActionRunnerLabelsList = /*@__PURE__*/ S.Array(S.String);
|
|
818
|
+
export const ActionRunnerStatus = /*@__PURE__*/ S.String;
|
|
819
|
+
export const ActionRunner = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
820
|
+
description: S.optional(S.String),
|
|
821
|
+
ephemeral: S.optional(S.Boolean),
|
|
822
|
+
id: S.optional(S.Number),
|
|
823
|
+
labels: S.optional(ActionRunnerLabelsList),
|
|
824
|
+
name: S.optional(S.String),
|
|
825
|
+
owner_id: S.optional(S.Number),
|
|
826
|
+
repo_id: S.optional(S.Number),
|
|
827
|
+
status: S.optional(ActionRunnerStatus),
|
|
828
|
+
uuid: S.optional(S.String),
|
|
829
|
+
version: S.optional(S.String),
|
|
830
|
+
})).annotate({ identifier: "ActionRunner" });
|
|
831
|
+
export const GetAdminRunnersRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
832
|
+
visible: S.optional(S.Boolean.pipe(T.Query())),
|
|
833
|
+
page: S.optional(S.Number.pipe(T.Query())),
|
|
834
|
+
limit: S.optional(S.Number.pipe(T.Query())),
|
|
835
|
+
}).pipe(T.Http({ method: "GET", uri: "/admin/actions/runners", code: 200 }))).annotate({
|
|
836
|
+
identifier: "GetAdminRunnersRequest",
|
|
837
|
+
});
|
|
838
|
+
export const GetAdminRunnersResponseBodyList = /*@__PURE__*/ S.Array(ActionRunner);
|
|
839
|
+
export const GetAdminRunnersResponse = /*@__PURE__*/ S.suspend(() => GetAdminRunnersResponseBodyList.pipe(T.RawResponseRoot())).annotate({
|
|
840
|
+
identifier: "GetAdminRunnersResponse",
|
|
841
|
+
});
|
|
842
|
+
export const ListAdminCronRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
843
|
+
page: S.optional(S.Number.pipe(T.Query())),
|
|
844
|
+
limit: S.optional(S.Number.pipe(T.Query())),
|
|
845
|
+
}).pipe(T.Http({ method: "GET", uri: "/admin/cron", code: 200 }))).annotate({
|
|
846
|
+
identifier: "ListAdminCronRequest",
|
|
847
|
+
});
|
|
848
|
+
export const Cron = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
849
|
+
exec_times: S.optional(S.Number),
|
|
850
|
+
name: S.optional(S.String),
|
|
851
|
+
next: S.optional(S.String),
|
|
852
|
+
prev: S.optional(S.String),
|
|
853
|
+
schedule: S.optional(S.String),
|
|
854
|
+
})).annotate({ identifier: "Cron" });
|
|
855
|
+
export const ListAdminCronResponseBodyList = /*@__PURE__*/ S.Array(Cron);
|
|
856
|
+
export const ListAdminCronResponse = /*@__PURE__*/ S.suspend(() => ListAdminCronResponseBodyList.pipe(T.RawResponseRoot())).annotate({
|
|
857
|
+
identifier: "ListAdminCronResponse",
|
|
858
|
+
});
|
|
859
|
+
export const ListAdminUnadoptedRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
860
|
+
page: S.optional(S.Number.pipe(T.Query())),
|
|
861
|
+
limit: S.optional(S.Number.pipe(T.Query())),
|
|
862
|
+
pattern: S.optional(S.String.pipe(T.Query())),
|
|
863
|
+
}).pipe(T.Http({ method: "GET", uri: "/admin/unadopted", code: 200 }))).annotate({
|
|
864
|
+
identifier: "ListAdminUnadoptedRequest",
|
|
865
|
+
});
|
|
866
|
+
export const ListAdminUnadoptedResponseBodyList = /*@__PURE__*/ S.Array(S.String);
|
|
867
|
+
export const ListAdminUnadoptedResponse = /*@__PURE__*/ S.suspend(() => ListAdminUnadoptedResponseBodyList.pipe(T.RawResponseRoot())).annotate({
|
|
868
|
+
identifier: "ListAdminUnadoptedResponse",
|
|
869
|
+
});
|
|
870
|
+
export const RegisterAdminRunnerRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
871
|
+
description: S.optional(S.String),
|
|
872
|
+
ephemeral: S.optional(S.Boolean),
|
|
873
|
+
name: S.String,
|
|
874
|
+
}).pipe(T.Http({ method: "POST", uri: "/admin/actions/runners", code: 200 }))).annotate({
|
|
875
|
+
identifier: "RegisterAdminRunnerRequest",
|
|
876
|
+
});
|
|
877
|
+
export const RegisterRunnerResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
878
|
+
id: S.optional(S.Number),
|
|
879
|
+
token: S.optional(S.String),
|
|
880
|
+
uuid: S.optional(S.String),
|
|
881
|
+
})).annotate({
|
|
882
|
+
identifier: "RegisterRunnerResponse",
|
|
883
|
+
});
|
|
884
|
+
export const RunAdminCronRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
885
|
+
task: S.String.pipe(T.Label()),
|
|
886
|
+
}).pipe(T.Http({ method: "POST", uri: "/admin/cron/{task}", code: 200 }))).annotate({
|
|
887
|
+
identifier: "RunAdminCronRequest",
|
|
888
|
+
});
|
|
889
|
+
export const RunAdminCronResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
890
|
+
identifier: "RunAdminCronResponse",
|
|
891
|
+
});
|
|
892
|
+
/** Adds a rule to a quota group */
|
|
893
|
+
export const adminAddRuleToQuotaGroup = /*@__PURE__*/ API.make(() => ({
|
|
894
|
+
input: AdminAddRuleToQuotaGroupRequest,
|
|
895
|
+
output: AdminAddRuleToQuotaGroupResponse,
|
|
896
|
+
errors: [BadRequest, Forbidden, NotFound, Conflict, UnprocessableEntity],
|
|
897
|
+
protocol: ForgejoProtocol,
|
|
898
|
+
retry: Retry.Retry,
|
|
899
|
+
}));
|
|
900
|
+
/** Add a user to a quota group */
|
|
901
|
+
export const adminAddUserToQuotaGroup = /*@__PURE__*/ API.make(() => ({
|
|
902
|
+
input: AdminAddUserToQuotaGroupRequest,
|
|
903
|
+
output: AdminAddUserToQuotaGroupResponse,
|
|
904
|
+
errors: [BadRequest, Forbidden, NotFound, Conflict, UnprocessableEntity],
|
|
905
|
+
protocol: ForgejoProtocol,
|
|
906
|
+
retry: Retry.Retry,
|
|
907
|
+
}));
|
|
908
|
+
/** Adopt unadopted files as a repository */
|
|
909
|
+
export const adminAdoptRepository = /*@__PURE__*/ API.make(() => ({
|
|
910
|
+
input: AdminAdoptRepositoryRequest,
|
|
911
|
+
output: AdminAdoptRepositoryResponse,
|
|
912
|
+
errors: [Forbidden, NotFound],
|
|
913
|
+
protocol: ForgejoProtocol,
|
|
914
|
+
retry: Retry.Retry,
|
|
915
|
+
}));
|
|
916
|
+
/** Create a hook */
|
|
917
|
+
export const adminCreateHook = /*@__PURE__*/ API.make(() => ({
|
|
918
|
+
input: AdminCreateHookRequest,
|
|
919
|
+
output: Hook,
|
|
920
|
+
errors: [],
|
|
921
|
+
protocol: ForgejoProtocol,
|
|
922
|
+
retry: Retry.Retry,
|
|
923
|
+
}));
|
|
924
|
+
/** Create an organization */
|
|
925
|
+
export const adminCreateOrg = /*@__PURE__*/ API.make(() => ({
|
|
926
|
+
input: AdminCreateOrgRequest,
|
|
927
|
+
output: Organization,
|
|
928
|
+
errors: [Forbidden, UnprocessableEntity],
|
|
929
|
+
protocol: ForgejoProtocol,
|
|
930
|
+
retry: Retry.Retry,
|
|
931
|
+
}));
|
|
932
|
+
/** Add an SSH public key to user's account */
|
|
933
|
+
export const adminCreatePublicKey = /*@__PURE__*/ API.make(() => ({
|
|
934
|
+
input: AdminCreatePublicKeyRequest,
|
|
935
|
+
output: PublicKey,
|
|
936
|
+
errors: [Forbidden, UnprocessableEntity],
|
|
937
|
+
protocol: ForgejoProtocol,
|
|
938
|
+
retry: Retry.Retry,
|
|
939
|
+
}));
|
|
940
|
+
/** Create a new quota group */
|
|
941
|
+
export const adminCreateQuotaGroup = /*@__PURE__*/ API.make(() => ({
|
|
942
|
+
input: AdminCreateQuotaGroupRequest,
|
|
943
|
+
output: QuotaGroup,
|
|
944
|
+
errors: [BadRequest, Forbidden, Conflict, UnprocessableEntity],
|
|
945
|
+
protocol: ForgejoProtocol,
|
|
946
|
+
retry: Retry.Retry,
|
|
947
|
+
}));
|
|
948
|
+
/** Create a new quota rule */
|
|
949
|
+
export const adminCreateQuotaRule = /*@__PURE__*/ API.make(() => ({
|
|
950
|
+
input: AdminCreateQuotaRuleRequest,
|
|
951
|
+
output: QuotaRuleInfo,
|
|
952
|
+
errors: [BadRequest, Forbidden, Conflict, UnprocessableEntity],
|
|
953
|
+
protocol: ForgejoProtocol,
|
|
954
|
+
retry: Retry.Retry,
|
|
955
|
+
}));
|
|
956
|
+
/** Create a repository on behalf of a user */
|
|
957
|
+
export const adminCreateRepo = /*@__PURE__*/ API.make(() => ({
|
|
958
|
+
input: AdminCreateRepoRequest,
|
|
959
|
+
output: Repository,
|
|
960
|
+
errors: [BadRequest, Forbidden, NotFound, Conflict, UnprocessableEntity],
|
|
961
|
+
protocol: ForgejoProtocol,
|
|
962
|
+
retry: Retry.Retry,
|
|
963
|
+
}));
|
|
964
|
+
/** Create a user account */
|
|
965
|
+
export const adminCreateUser = /*@__PURE__*/ API.make(() => ({
|
|
966
|
+
input: AdminCreateUserRequest,
|
|
967
|
+
output: User,
|
|
968
|
+
errors: [BadRequest, Forbidden, UnprocessableEntity],
|
|
969
|
+
protocol: ForgejoProtocol,
|
|
970
|
+
retry: Retry.Retry,
|
|
971
|
+
}));
|
|
972
|
+
/** Create an access token for the specified user */
|
|
973
|
+
export const adminCreateUserAccessToken = /*@__PURE__*/ API.make(() => ({
|
|
974
|
+
input: AdminCreateUserAccessTokenRequest,
|
|
975
|
+
output: AccessToken,
|
|
976
|
+
errors: [BadRequest, Forbidden, NotFound],
|
|
977
|
+
protocol: ForgejoProtocol,
|
|
978
|
+
retry: Retry.Retry,
|
|
979
|
+
}));
|
|
980
|
+
/** Delete a hook */
|
|
981
|
+
export const adminDeleteHook = /*@__PURE__*/ API.make(() => ({
|
|
982
|
+
input: AdminDeleteHookRequest,
|
|
983
|
+
output: AdminDeleteHookResponse,
|
|
984
|
+
errors: [],
|
|
985
|
+
protocol: ForgejoProtocol,
|
|
986
|
+
retry: Retry.Retry,
|
|
987
|
+
}));
|
|
988
|
+
/** Delete a quota group */
|
|
989
|
+
export const adminDeleteQuotaGroup = /*@__PURE__*/ API.make(() => ({
|
|
990
|
+
input: AdminDeleteQuotaGroupRequest,
|
|
991
|
+
output: AdminDeleteQuotaGroupResponse,
|
|
992
|
+
errors: [BadRequest, Forbidden, NotFound],
|
|
993
|
+
protocol: ForgejoProtocol,
|
|
994
|
+
retry: Retry.Retry,
|
|
995
|
+
}));
|
|
996
|
+
/** Deletes a quota rule */
|
|
997
|
+
export const adminDeleteQuotaRule = /*@__PURE__*/ API.make(() => ({
|
|
998
|
+
input: AdminDeleteQuotaRuleRequest,
|
|
999
|
+
output: AdminDeleteQuotaRuleResponse,
|
|
1000
|
+
errors: [BadRequest, Forbidden, NotFound],
|
|
1001
|
+
protocol: ForgejoProtocol,
|
|
1002
|
+
retry: Retry.Retry,
|
|
1003
|
+
}));
|
|
1004
|
+
/** Delete unadopted files */
|
|
1005
|
+
export const adminDeleteUnadoptedRepository = /*@__PURE__*/ API.make(() => ({
|
|
1006
|
+
input: AdminDeleteUnadoptedRepositoryRequest,
|
|
1007
|
+
output: AdminDeleteUnadoptedRepositoryResponse,
|
|
1008
|
+
errors: [Forbidden],
|
|
1009
|
+
protocol: ForgejoProtocol,
|
|
1010
|
+
retry: Retry.Retry,
|
|
1011
|
+
}));
|
|
1012
|
+
/** Delete user account */
|
|
1013
|
+
export const adminDeleteUser = /*@__PURE__*/ API.make(() => ({
|
|
1014
|
+
input: AdminDeleteUserRequest,
|
|
1015
|
+
output: AdminDeleteUserResponse,
|
|
1016
|
+
errors: [Forbidden, NotFound, UnprocessableEntity],
|
|
1017
|
+
protocol: ForgejoProtocol,
|
|
1018
|
+
retry: Retry.Retry,
|
|
1019
|
+
}));
|
|
1020
|
+
/** Delete an access token for the specified user */
|
|
1021
|
+
export const adminDeleteUserAccessToken = /*@__PURE__*/ API.make(() => ({
|
|
1022
|
+
input: AdminDeleteUserAccessTokenRequest,
|
|
1023
|
+
output: AdminDeleteUserAccessTokenResponse,
|
|
1024
|
+
errors: [Forbidden, NotFound, UnprocessableEntity],
|
|
1025
|
+
protocol: ForgejoProtocol,
|
|
1026
|
+
retry: Retry.Retry,
|
|
1027
|
+
}));
|
|
1028
|
+
/** Delete email addresses from a user's account */
|
|
1029
|
+
export const adminDeleteUserEmails = /*@__PURE__*/ API.make(() => ({
|
|
1030
|
+
input: AdminDeleteUserEmailsRequest,
|
|
1031
|
+
output: AdminDeleteUserEmailsResponse,
|
|
1032
|
+
errors: [Forbidden, UnprocessableEntity],
|
|
1033
|
+
protocol: ForgejoProtocol,
|
|
1034
|
+
retry: Retry.Retry,
|
|
1035
|
+
}));
|
|
1036
|
+
/** Remove a public key from user's account */
|
|
1037
|
+
export const adminDeleteUserPublicKey = /*@__PURE__*/ API.make(() => ({
|
|
1038
|
+
input: AdminDeleteUserPublicKeyRequest,
|
|
1039
|
+
output: AdminDeleteUserPublicKeyResponse,
|
|
1040
|
+
errors: [Forbidden, NotFound],
|
|
1041
|
+
protocol: ForgejoProtocol,
|
|
1042
|
+
retry: Retry.Retry,
|
|
1043
|
+
}));
|
|
1044
|
+
/** Update a hook */
|
|
1045
|
+
export const adminEditHook = /*@__PURE__*/ API.make(() => ({
|
|
1046
|
+
input: AdminEditHookRequest,
|
|
1047
|
+
output: Hook,
|
|
1048
|
+
errors: [],
|
|
1049
|
+
protocol: ForgejoProtocol,
|
|
1050
|
+
retry: Retry.Retry,
|
|
1051
|
+
}));
|
|
1052
|
+
/** Change an existing quota rule */
|
|
1053
|
+
export const adminEditQuotaRule = /*@__PURE__*/ API.make(() => ({
|
|
1054
|
+
input: AdminEditQuotaRuleRequest,
|
|
1055
|
+
output: QuotaRuleInfo,
|
|
1056
|
+
errors: [BadRequest, Forbidden, NotFound, UnprocessableEntity],
|
|
1057
|
+
protocol: ForgejoProtocol,
|
|
1058
|
+
retry: Retry.Retry,
|
|
1059
|
+
}));
|
|
1060
|
+
/** Edit an existing user */
|
|
1061
|
+
export const adminEditUser = /*@__PURE__*/ API.make(() => ({
|
|
1062
|
+
input: AdminEditUserRequest,
|
|
1063
|
+
output: User,
|
|
1064
|
+
errors: [BadRequest, Forbidden, UnprocessableEntity],
|
|
1065
|
+
protocol: ForgejoProtocol,
|
|
1066
|
+
retry: Retry.Retry,
|
|
1067
|
+
}));
|
|
1068
|
+
/** Get action run jobs */
|
|
1069
|
+
export const adminGetActionRunJobs = /*@__PURE__*/ API.make(() => ({
|
|
1070
|
+
input: AdminGetActionRunJobsRequest,
|
|
1071
|
+
output: AdminGetActionRunJobsResponse,
|
|
1072
|
+
errors: [Forbidden],
|
|
1073
|
+
protocol: ForgejoProtocol,
|
|
1074
|
+
retry: Retry.Retry,
|
|
1075
|
+
}));
|
|
1076
|
+
/** List all users' email addresses */
|
|
1077
|
+
export const adminGetAllEmails = /*@__PURE__*/ API.make(() => ({
|
|
1078
|
+
input: AdminGetAllEmailsRequest,
|
|
1079
|
+
output: AdminGetAllEmailsResponse,
|
|
1080
|
+
errors: [Forbidden],
|
|
1081
|
+
protocol: ForgejoProtocol,
|
|
1082
|
+
retry: Retry.Retry,
|
|
1083
|
+
}));
|
|
1084
|
+
/** List all organizations */
|
|
1085
|
+
export const adminGetAllOrgs = /*@__PURE__*/ API.make(() => ({
|
|
1086
|
+
input: AdminGetAllOrgsRequest,
|
|
1087
|
+
output: AdminGetAllOrgsResponse,
|
|
1088
|
+
errors: [Forbidden],
|
|
1089
|
+
protocol: ForgejoProtocol,
|
|
1090
|
+
retry: Retry.Retry,
|
|
1091
|
+
}));
|
|
1092
|
+
/** Get a hook */
|
|
1093
|
+
export const adminGetHook = /*@__PURE__*/ API.make(() => ({
|
|
1094
|
+
input: AdminGetHookRequest,
|
|
1095
|
+
output: Hook,
|
|
1096
|
+
errors: [],
|
|
1097
|
+
protocol: ForgejoProtocol,
|
|
1098
|
+
retry: Retry.Retry,
|
|
1099
|
+
}));
|
|
1100
|
+
/** Get information about the quota group */
|
|
1101
|
+
export const adminGetQuotaGroup = /*@__PURE__*/ API.make(() => ({
|
|
1102
|
+
input: AdminGetQuotaGroupRequest,
|
|
1103
|
+
output: QuotaGroup,
|
|
1104
|
+
errors: [BadRequest, Forbidden, NotFound],
|
|
1105
|
+
protocol: ForgejoProtocol,
|
|
1106
|
+
retry: Retry.Retry,
|
|
1107
|
+
}));
|
|
1108
|
+
/** Get information about a quota rule */
|
|
1109
|
+
export const adminGetQuotaRule = /*@__PURE__*/ API.make(() => ({
|
|
1110
|
+
input: AdminGetQuotaRuleRequest,
|
|
1111
|
+
output: QuotaRuleInfo,
|
|
1112
|
+
errors: [BadRequest, Forbidden, NotFound],
|
|
1113
|
+
protocol: ForgejoProtocol,
|
|
1114
|
+
retry: Retry.Retry,
|
|
1115
|
+
}));
|
|
1116
|
+
/** Get the user's quota info */
|
|
1117
|
+
export const adminGetUserQuota = /*@__PURE__*/ API.make(() => ({
|
|
1118
|
+
input: AdminGetUserQuotaRequest,
|
|
1119
|
+
output: QuotaInfo,
|
|
1120
|
+
errors: [BadRequest, Forbidden, NotFound, UnprocessableEntity],
|
|
1121
|
+
protocol: ForgejoProtocol,
|
|
1122
|
+
retry: Retry.Retry,
|
|
1123
|
+
}));
|
|
1124
|
+
/** List global (system) webhooks */
|
|
1125
|
+
export const adminListHooks = /*@__PURE__*/ API.make(() => ({
|
|
1126
|
+
input: AdminListHooksRequest,
|
|
1127
|
+
output: AdminListHooksResponse,
|
|
1128
|
+
errors: [],
|
|
1129
|
+
protocol: ForgejoProtocol,
|
|
1130
|
+
retry: Retry.Retry,
|
|
1131
|
+
}));
|
|
1132
|
+
/** List the available quota groups */
|
|
1133
|
+
export const adminListQuotaGroups = /*@__PURE__*/ API.make(() => ({
|
|
1134
|
+
input: AdminListQuotaGroupsRequest,
|
|
1135
|
+
output: AdminListQuotaGroupsResponse,
|
|
1136
|
+
errors: [Forbidden],
|
|
1137
|
+
protocol: ForgejoProtocol,
|
|
1138
|
+
retry: Retry.Retry,
|
|
1139
|
+
}));
|
|
1140
|
+
/** List the available quota rules */
|
|
1141
|
+
export const adminListQuotaRules = /*@__PURE__*/ API.make(() => ({
|
|
1142
|
+
input: AdminListQuotaRulesRequest,
|
|
1143
|
+
output: AdminListQuotaRulesResponse,
|
|
1144
|
+
errors: [Forbidden],
|
|
1145
|
+
protocol: ForgejoProtocol,
|
|
1146
|
+
retry: Retry.Retry,
|
|
1147
|
+
}));
|
|
1148
|
+
/** List the specified user's access tokens */
|
|
1149
|
+
export const adminListUserAccessTokens = /*@__PURE__*/ API.make(() => ({
|
|
1150
|
+
input: AdminListUserAccessTokensRequest,
|
|
1151
|
+
output: AdminListUserAccessTokensResponse,
|
|
1152
|
+
errors: [Forbidden, NotFound],
|
|
1153
|
+
protocol: ForgejoProtocol,
|
|
1154
|
+
retry: Retry.Retry,
|
|
1155
|
+
}));
|
|
1156
|
+
/** List all email addresses for a user */
|
|
1157
|
+
export const adminListUserEmails = /*@__PURE__*/ API.make(() => ({
|
|
1158
|
+
input: AdminListUserEmailsRequest,
|
|
1159
|
+
output: AdminListUserEmailsResponse,
|
|
1160
|
+
errors: [Forbidden, NotFound],
|
|
1161
|
+
protocol: ForgejoProtocol,
|
|
1162
|
+
retry: Retry.Retry,
|
|
1163
|
+
}));
|
|
1164
|
+
/** List users in a quota group */
|
|
1165
|
+
export const adminListUsersInQuotaGroup = /*@__PURE__*/ API.make(() => ({
|
|
1166
|
+
input: AdminListUsersInQuotaGroupRequest,
|
|
1167
|
+
output: AdminListUsersInQuotaGroupResponse,
|
|
1168
|
+
errors: [BadRequest, Forbidden, NotFound],
|
|
1169
|
+
protocol: ForgejoProtocol,
|
|
1170
|
+
retry: Retry.Retry,
|
|
1171
|
+
}));
|
|
1172
|
+
/** Removes a rule from a quota group */
|
|
1173
|
+
export const adminRemoveRuleFromQuotaGroup = /*@__PURE__*/ API.make(() => ({
|
|
1174
|
+
input: AdminRemoveRuleFromQuotaGroupRequest,
|
|
1175
|
+
output: AdminRemoveRuleFromQuotaGroupResponse,
|
|
1176
|
+
errors: [BadRequest, Forbidden, NotFound],
|
|
1177
|
+
protocol: ForgejoProtocol,
|
|
1178
|
+
retry: Retry.Retry,
|
|
1179
|
+
}));
|
|
1180
|
+
/** Remove a user from a quota group */
|
|
1181
|
+
export const adminRemoveUserFromQuotaGroup = /*@__PURE__*/ API.make(() => ({
|
|
1182
|
+
input: AdminRemoveUserFromQuotaGroupRequest,
|
|
1183
|
+
output: AdminRemoveUserFromQuotaGroupResponse,
|
|
1184
|
+
errors: [BadRequest, Forbidden, NotFound],
|
|
1185
|
+
protocol: ForgejoProtocol,
|
|
1186
|
+
retry: Retry.Retry,
|
|
1187
|
+
}));
|
|
1188
|
+
/** Rename a user */
|
|
1189
|
+
export const adminRenameUser = /*@__PURE__*/ API.make(() => ({
|
|
1190
|
+
input: AdminRenameUserRequest,
|
|
1191
|
+
output: AdminRenameUserResponse,
|
|
1192
|
+
errors: [Forbidden, UnprocessableEntity],
|
|
1193
|
+
protocol: ForgejoProtocol,
|
|
1194
|
+
retry: Retry.Retry,
|
|
1195
|
+
}));
|
|
1196
|
+
/** Search users' email addresses */
|
|
1197
|
+
export const adminSearchEmails = /*@__PURE__*/ API.make(() => ({
|
|
1198
|
+
input: AdminSearchEmailsRequest,
|
|
1199
|
+
output: AdminSearchEmailsResponse,
|
|
1200
|
+
errors: [Forbidden],
|
|
1201
|
+
protocol: ForgejoProtocol,
|
|
1202
|
+
retry: Retry.Retry,
|
|
1203
|
+
}));
|
|
1204
|
+
/** Search users according filter conditions */
|
|
1205
|
+
export const adminSearchUsers = /*@__PURE__*/ API.make(() => ({
|
|
1206
|
+
input: AdminSearchUsersRequest,
|
|
1207
|
+
output: AdminSearchUsersResponse,
|
|
1208
|
+
errors: [Forbidden],
|
|
1209
|
+
protocol: ForgejoProtocol,
|
|
1210
|
+
retry: Retry.Retry,
|
|
1211
|
+
}));
|
|
1212
|
+
/** Set the user's quota groups to a given list. */
|
|
1213
|
+
export const adminSetUserQuotaGroups = /*@__PURE__*/ API.make(() => ({
|
|
1214
|
+
input: AdminSetUserQuotaGroupsRequest,
|
|
1215
|
+
output: AdminSetUserQuotaGroupsResponse,
|
|
1216
|
+
errors: [BadRequest, Forbidden, NotFound, UnprocessableEntity],
|
|
1217
|
+
protocol: ForgejoProtocol,
|
|
1218
|
+
retry: Retry.Retry,
|
|
1219
|
+
}));
|
|
1220
|
+
/** Delete a particular runner, no matter whether it is a global runner or scoped to an organization, user, or repository */
|
|
1221
|
+
export const deleteAdminRunner = /*@__PURE__*/ API.make(() => ({
|
|
1222
|
+
input: DeleteAdminRunnerRequest,
|
|
1223
|
+
output: DeleteAdminRunnerResponse,
|
|
1224
|
+
errors: [BadRequest, NotFound],
|
|
1225
|
+
protocol: ForgejoProtocol,
|
|
1226
|
+
retry: Retry.Retry,
|
|
1227
|
+
}));
|
|
1228
|
+
/** Get a particular runner, no matter whether it is a global runner or scoped to an organization, user, or repository */
|
|
1229
|
+
export const getAdminRunner = /*@__PURE__*/ API.make(() => ({
|
|
1230
|
+
input: GetAdminRunnerRequest,
|
|
1231
|
+
output: ActionRunner,
|
|
1232
|
+
errors: [BadRequest, NotFound],
|
|
1233
|
+
protocol: ForgejoProtocol,
|
|
1234
|
+
retry: Retry.Retry,
|
|
1235
|
+
}));
|
|
1236
|
+
/** Get all runners, no matter whether they are global runners or scoped to an organization, user, or repository */
|
|
1237
|
+
export const getAdminRunners = /*@__PURE__*/ API.make(() => ({
|
|
1238
|
+
input: GetAdminRunnersRequest,
|
|
1239
|
+
output: GetAdminRunnersResponse,
|
|
1240
|
+
errors: [BadRequest, NotFound],
|
|
1241
|
+
protocol: ForgejoProtocol,
|
|
1242
|
+
retry: Retry.Retry,
|
|
1243
|
+
}));
|
|
1244
|
+
/** List cron tasks */
|
|
1245
|
+
export const listAdminCron = /*@__PURE__*/ API.make(() => ({
|
|
1246
|
+
input: ListAdminCronRequest,
|
|
1247
|
+
output: ListAdminCronResponse,
|
|
1248
|
+
errors: [Forbidden],
|
|
1249
|
+
protocol: ForgejoProtocol,
|
|
1250
|
+
retry: Retry.Retry,
|
|
1251
|
+
}));
|
|
1252
|
+
/** List unadopted repositories */
|
|
1253
|
+
export const listAdminUnadopted = /*@__PURE__*/ API.make(() => ({
|
|
1254
|
+
input: ListAdminUnadoptedRequest,
|
|
1255
|
+
output: ListAdminUnadoptedResponse,
|
|
1256
|
+
errors: [Forbidden],
|
|
1257
|
+
protocol: ForgejoProtocol,
|
|
1258
|
+
retry: Retry.Retry,
|
|
1259
|
+
}));
|
|
1260
|
+
/** Register a new global runner */
|
|
1261
|
+
export const registerAdminRunner = /*@__PURE__*/ API.make(() => ({
|
|
1262
|
+
input: RegisterAdminRunnerRequest,
|
|
1263
|
+
output: RegisterRunnerResponse,
|
|
1264
|
+
errors: [BadRequest, NotFound],
|
|
1265
|
+
protocol: ForgejoProtocol,
|
|
1266
|
+
retry: Retry.Retry,
|
|
1267
|
+
}));
|
|
1268
|
+
/** Run cron task */
|
|
1269
|
+
export const runAdminCron = /*@__PURE__*/ API.make(() => ({
|
|
1270
|
+
input: RunAdminCronRequest,
|
|
1271
|
+
output: RunAdminCronResponse,
|
|
1272
|
+
errors: [NotFound],
|
|
1273
|
+
protocol: ForgejoProtocol,
|
|
1274
|
+
retry: Retry.Retry,
|
|
1275
|
+
}));
|
|
1276
|
+
//# sourceMappingURL=admin.js.map
|