@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,4008 @@
|
|
|
1
|
+
// AUTO-GENERATED by scripts/generate.ts from .generated-specs (specs/spec-mirror-forgejo). Do not edit.
|
|
2
|
+
import * as S from "@distilled.cloud/core/schema";
|
|
3
|
+
import * as API from "@distilled.cloud/core/api";
|
|
4
|
+
import * as C from "@distilled.cloud/core/category";
|
|
5
|
+
import * as T from "../traits.ts";
|
|
6
|
+
import {
|
|
7
|
+
ForgejoProtocol,
|
|
8
|
+
type ForgejoOpError,
|
|
9
|
+
type ForgejoOpContext,
|
|
10
|
+
} from "../protocol.ts";
|
|
11
|
+
import * as Retry from "../retry.ts";
|
|
12
|
+
|
|
13
|
+
export type { ForgejoOpError, ForgejoOpContext };
|
|
14
|
+
|
|
15
|
+
export class BadRequest
|
|
16
|
+
extends /*@__PURE__*/ T.applyErrorMatchers(
|
|
17
|
+
/*@__PURE__*/ S.TaggedError<BadRequest>()("BadRequest", {
|
|
18
|
+
code: S.Number,
|
|
19
|
+
message: S.String,
|
|
20
|
+
}).pipe(C.withBadRequestError),
|
|
21
|
+
[{ status: 400 }],
|
|
22
|
+
) {}
|
|
23
|
+
|
|
24
|
+
export class Conflict
|
|
25
|
+
extends /*@__PURE__*/ T.applyErrorMatchers(
|
|
26
|
+
/*@__PURE__*/ S.TaggedError<Conflict>()("Conflict", {
|
|
27
|
+
code: S.Number,
|
|
28
|
+
message: S.String,
|
|
29
|
+
}).pipe(C.withConflictError),
|
|
30
|
+
[{ status: 409 }],
|
|
31
|
+
) {}
|
|
32
|
+
|
|
33
|
+
export class Forbidden
|
|
34
|
+
extends /*@__PURE__*/ T.applyErrorMatchers(
|
|
35
|
+
/*@__PURE__*/ S.TaggedError<Forbidden>()("Forbidden", {
|
|
36
|
+
code: S.Number,
|
|
37
|
+
message: S.String,
|
|
38
|
+
}).pipe(C.withAuthError),
|
|
39
|
+
[{ status: 403 }],
|
|
40
|
+
) {}
|
|
41
|
+
|
|
42
|
+
export class NotFound
|
|
43
|
+
extends /*@__PURE__*/ T.applyErrorMatchers(
|
|
44
|
+
/*@__PURE__*/ S.TaggedError<NotFound>()("NotFound", {
|
|
45
|
+
code: S.Number,
|
|
46
|
+
message: S.String,
|
|
47
|
+
}).pipe(C.withBadRequestError),
|
|
48
|
+
[{ status: 404 }],
|
|
49
|
+
) {}
|
|
50
|
+
|
|
51
|
+
/** The organization still owns repositories and cannot be deleted until they are gone (Forgejo answers HTTP 500 with `user still has ownership of repositories`). Retry once the repositories are deleted. */
|
|
52
|
+
export class OrganizationOwnsRepositories
|
|
53
|
+
extends /*@__PURE__*/ T.applyErrorMatchers(
|
|
54
|
+
/*@__PURE__*/ S.TaggedError<OrganizationOwnsRepositories>()(
|
|
55
|
+
"OrganizationOwnsRepositories",
|
|
56
|
+
{
|
|
57
|
+
code: S.Number,
|
|
58
|
+
message: S.String,
|
|
59
|
+
},
|
|
60
|
+
).pipe(C.withConflictError),
|
|
61
|
+
[
|
|
62
|
+
{
|
|
63
|
+
status: 500,
|
|
64
|
+
message: { includes: "still has ownership of repositories" },
|
|
65
|
+
},
|
|
66
|
+
],
|
|
67
|
+
) {}
|
|
68
|
+
|
|
69
|
+
export class UnprocessableEntity
|
|
70
|
+
extends /*@__PURE__*/ T.applyErrorMatchers(
|
|
71
|
+
/*@__PURE__*/ S.TaggedError<UnprocessableEntity>()("UnprocessableEntity", {
|
|
72
|
+
code: S.Number,
|
|
73
|
+
message: S.String,
|
|
74
|
+
}).pipe(C.withBadRequestError),
|
|
75
|
+
[{ status: 422 }],
|
|
76
|
+
) {}
|
|
77
|
+
|
|
78
|
+
/** possible values are `public` (default), `limited` or `private` */
|
|
79
|
+
export type CreateOrgRequestVisibility = "public" | "limited" | "private";
|
|
80
|
+
export const CreateOrgRequestVisibility = /*@__PURE__*/ S.String;
|
|
81
|
+
|
|
82
|
+
export interface CreateOrgRequest {
|
|
83
|
+
description?: string;
|
|
84
|
+
email?: string;
|
|
85
|
+
full_name?: string;
|
|
86
|
+
location?: string;
|
|
87
|
+
repo_admin_change_team_access?: boolean;
|
|
88
|
+
username: string;
|
|
89
|
+
/** possible values are `public` (default), `limited` or `private` */
|
|
90
|
+
visibility?: CreateOrgRequestVisibility | (string & {});
|
|
91
|
+
website?: string;
|
|
92
|
+
}
|
|
93
|
+
export const CreateOrgRequest = /*@__PURE__*/ S.suspend(() =>
|
|
94
|
+
S.Struct({
|
|
95
|
+
description: S.optional(S.String),
|
|
96
|
+
email: S.optional(S.String),
|
|
97
|
+
full_name: S.optional(S.String),
|
|
98
|
+
location: S.optional(S.String),
|
|
99
|
+
repo_admin_change_team_access: S.optional(S.Boolean),
|
|
100
|
+
username: S.String,
|
|
101
|
+
visibility: S.optional(CreateOrgRequestVisibility),
|
|
102
|
+
website: S.optional(S.String),
|
|
103
|
+
}).pipe(T.Http({ method: "POST", uri: "/orgs", code: 200 })),
|
|
104
|
+
).annotate({
|
|
105
|
+
identifier: "CreateOrgRequest",
|
|
106
|
+
}) as any as S.Schema<CreateOrgRequest>;
|
|
107
|
+
|
|
108
|
+
/** Organization represents an organization */
|
|
109
|
+
export interface Organization {
|
|
110
|
+
avatar_url?: string;
|
|
111
|
+
created?: string;
|
|
112
|
+
description?: string;
|
|
113
|
+
email?: string;
|
|
114
|
+
full_name?: string;
|
|
115
|
+
id: number;
|
|
116
|
+
location?: string;
|
|
117
|
+
name?: string;
|
|
118
|
+
repo_admin_change_team_access?: boolean;
|
|
119
|
+
/** deprecated */
|
|
120
|
+
username: string;
|
|
121
|
+
visibility?: string;
|
|
122
|
+
website?: string;
|
|
123
|
+
}
|
|
124
|
+
export const Organization = /*@__PURE__*/ S.suspend(() =>
|
|
125
|
+
S.Struct({
|
|
126
|
+
avatar_url: S.optional(S.String),
|
|
127
|
+
created: S.optional(S.String),
|
|
128
|
+
description: S.optional(S.String),
|
|
129
|
+
email: S.optional(S.String),
|
|
130
|
+
full_name: S.optional(S.String),
|
|
131
|
+
id: S.Number,
|
|
132
|
+
location: S.optional(S.String),
|
|
133
|
+
name: S.optional(S.String),
|
|
134
|
+
repo_admin_change_team_access: S.optional(S.Boolean),
|
|
135
|
+
username: S.String,
|
|
136
|
+
visibility: S.optional(S.String),
|
|
137
|
+
website: S.optional(S.String),
|
|
138
|
+
}),
|
|
139
|
+
).annotate({ identifier: "Organization" }) as any as S.Schema<Organization>;
|
|
140
|
+
|
|
141
|
+
/** ObjectFormatName of the underlying git repository */
|
|
142
|
+
export type CreateOrgRepoRequestObjectFormatName = "sha1" | "sha256";
|
|
143
|
+
export const CreateOrgRepoRequestObjectFormatName = /*@__PURE__*/ S.String;
|
|
144
|
+
|
|
145
|
+
/** TrustModel of the repository */
|
|
146
|
+
export type CreateOrgRepoRequestTrustModel =
|
|
147
|
+
| "default"
|
|
148
|
+
| "collaborator"
|
|
149
|
+
| "committer"
|
|
150
|
+
| "collaboratorcommitter";
|
|
151
|
+
export const CreateOrgRepoRequestTrustModel = /*@__PURE__*/ S.String;
|
|
152
|
+
|
|
153
|
+
export interface CreateOrgRepoRequest {
|
|
154
|
+
/** name of organization */
|
|
155
|
+
org: string;
|
|
156
|
+
/** Whether the repository should be auto-initialized? */
|
|
157
|
+
auto_init?: boolean;
|
|
158
|
+
/** DefaultBranch of the repository (used when initializes and in template) */
|
|
159
|
+
default_branch?: string;
|
|
160
|
+
/** Description of the repository to create */
|
|
161
|
+
description?: string;
|
|
162
|
+
/** Gitignores to use, separated by commas */
|
|
163
|
+
gitignores?: string;
|
|
164
|
+
/** Label-Set to use */
|
|
165
|
+
issue_labels?: string;
|
|
166
|
+
/** License to use */
|
|
167
|
+
license?: string;
|
|
168
|
+
/** Name of the repository to create */
|
|
169
|
+
name: string;
|
|
170
|
+
/** ObjectFormatName of the underlying git repository */
|
|
171
|
+
object_format_name?: CreateOrgRepoRequestObjectFormatName | (string & {});
|
|
172
|
+
/** Whether the repository is private */
|
|
173
|
+
private?: boolean;
|
|
174
|
+
/** Readme of the repository to create */
|
|
175
|
+
readme?: string;
|
|
176
|
+
/** Whether the repository is template */
|
|
177
|
+
template?: boolean;
|
|
178
|
+
/** TrustModel of the repository */
|
|
179
|
+
trust_model?: CreateOrgRepoRequestTrustModel | (string & {});
|
|
180
|
+
}
|
|
181
|
+
export const CreateOrgRepoRequest = /*@__PURE__*/ S.suspend(() =>
|
|
182
|
+
S.Struct({
|
|
183
|
+
org: S.String.pipe(T.Label()),
|
|
184
|
+
auto_init: S.optional(S.Boolean),
|
|
185
|
+
default_branch: S.optional(S.String),
|
|
186
|
+
description: S.optional(S.String),
|
|
187
|
+
gitignores: S.optional(S.String),
|
|
188
|
+
issue_labels: S.optional(S.String),
|
|
189
|
+
license: S.optional(S.String),
|
|
190
|
+
name: S.String,
|
|
191
|
+
object_format_name: S.optional(CreateOrgRepoRequestObjectFormatName),
|
|
192
|
+
private: S.optional(S.Boolean),
|
|
193
|
+
readme: S.optional(S.String),
|
|
194
|
+
template: S.optional(S.Boolean),
|
|
195
|
+
trust_model: S.optional(CreateOrgRepoRequestTrustModel),
|
|
196
|
+
}).pipe(T.Http({ method: "POST", uri: "/orgs/{org}/repos", code: 200 })),
|
|
197
|
+
).annotate({
|
|
198
|
+
identifier: "CreateOrgRepoRequest",
|
|
199
|
+
}) as any as S.Schema<CreateOrgRepoRequest>;
|
|
200
|
+
|
|
201
|
+
/** ExternalTracker represents settings for external tracker */
|
|
202
|
+
export interface ExternalTracker {
|
|
203
|
+
/** External Issue Tracker URL Format. Use the placeholders {user}, {repo} and {index} for the username, repository name and issue index. */
|
|
204
|
+
external_tracker_format?: string;
|
|
205
|
+
/** External Issue Tracker issue regular expression */
|
|
206
|
+
external_tracker_regexp_pattern?: string;
|
|
207
|
+
/** External Issue Tracker Number Format, either `numeric`, `alphanumeric`, or `regexp` */
|
|
208
|
+
external_tracker_style?: string;
|
|
209
|
+
/** URL of external issue tracker. */
|
|
210
|
+
external_tracker_url?: string;
|
|
211
|
+
}
|
|
212
|
+
export const ExternalTracker = /*@__PURE__*/ S.suspend(() =>
|
|
213
|
+
S.Struct({
|
|
214
|
+
external_tracker_format: S.optional(S.String),
|
|
215
|
+
external_tracker_regexp_pattern: S.optional(S.String),
|
|
216
|
+
external_tracker_style: S.optional(S.String),
|
|
217
|
+
external_tracker_url: S.optional(S.String),
|
|
218
|
+
}),
|
|
219
|
+
).annotate({
|
|
220
|
+
identifier: "ExternalTracker",
|
|
221
|
+
}) as any as S.Schema<ExternalTracker>;
|
|
222
|
+
|
|
223
|
+
/** ExternalWiki represents setting for external wiki */
|
|
224
|
+
export interface ExternalWiki {
|
|
225
|
+
/** URL of external wiki. */
|
|
226
|
+
external_wiki_url?: string;
|
|
227
|
+
}
|
|
228
|
+
export const ExternalWiki = /*@__PURE__*/ S.suspend(() =>
|
|
229
|
+
S.Struct({
|
|
230
|
+
external_wiki_url: S.optional(S.String),
|
|
231
|
+
}),
|
|
232
|
+
).annotate({ identifier: "ExternalWiki" }) as any as S.Schema<ExternalWiki>;
|
|
233
|
+
|
|
234
|
+
/** InternalTracker represents settings for internal tracker */
|
|
235
|
+
export interface InternalTracker {
|
|
236
|
+
/** Let only contributors track time (Built-in issue tracker) */
|
|
237
|
+
allow_only_contributors_to_track_time?: boolean;
|
|
238
|
+
/** Enable dependencies for issues and pull requests (Built-in issue tracker) */
|
|
239
|
+
enable_issue_dependencies?: boolean;
|
|
240
|
+
/** Enable time tracking (Built-in issue tracker) */
|
|
241
|
+
enable_time_tracker?: boolean;
|
|
242
|
+
}
|
|
243
|
+
export const InternalTracker = /*@__PURE__*/ S.suspend(() =>
|
|
244
|
+
S.Struct({
|
|
245
|
+
allow_only_contributors_to_track_time: S.optional(S.Boolean),
|
|
246
|
+
enable_issue_dependencies: S.optional(S.Boolean),
|
|
247
|
+
enable_time_tracker: S.optional(S.Boolean),
|
|
248
|
+
}),
|
|
249
|
+
).annotate({
|
|
250
|
+
identifier: "InternalTracker",
|
|
251
|
+
}) as any as S.Schema<InternalTracker>;
|
|
252
|
+
|
|
253
|
+
/** ObjectFormatName of the underlying git repository */
|
|
254
|
+
export type RepositoryObjectFormatName = "sha1" | "sha256";
|
|
255
|
+
export const RepositoryObjectFormatName = /*@__PURE__*/ S.String;
|
|
256
|
+
|
|
257
|
+
/** User represents a user */
|
|
258
|
+
export interface User {
|
|
259
|
+
/** Is user active */
|
|
260
|
+
active?: boolean;
|
|
261
|
+
/** URL to the user's avatar */
|
|
262
|
+
avatar_url?: string;
|
|
263
|
+
created?: string;
|
|
264
|
+
/** the user's description */
|
|
265
|
+
description?: string;
|
|
266
|
+
email?: string;
|
|
267
|
+
/** user counts */
|
|
268
|
+
followers_count?: number;
|
|
269
|
+
following_count?: number;
|
|
270
|
+
/** the user's full name */
|
|
271
|
+
full_name?: string;
|
|
272
|
+
/** URL to the user's profile page */
|
|
273
|
+
html_url?: string;
|
|
274
|
+
/** the user's id */
|
|
275
|
+
id: number;
|
|
276
|
+
/** Is the user an administrator */
|
|
277
|
+
is_admin?: boolean;
|
|
278
|
+
/** User locale */
|
|
279
|
+
language?: string;
|
|
280
|
+
last_login?: string;
|
|
281
|
+
/** the user's location */
|
|
282
|
+
location?: string;
|
|
283
|
+
/** the user's username */
|
|
284
|
+
login: string;
|
|
285
|
+
/** the user's authentication sign-in name. */
|
|
286
|
+
login_name?: string;
|
|
287
|
+
/** Is user login prohibited */
|
|
288
|
+
prohibit_login?: boolean;
|
|
289
|
+
/** the user's pronouns */
|
|
290
|
+
pronouns?: string;
|
|
291
|
+
/** Is user restricted */
|
|
292
|
+
restricted?: boolean;
|
|
293
|
+
/** The ID of the user's Authentication Source */
|
|
294
|
+
source_id?: number;
|
|
295
|
+
starred_repos_count?: number;
|
|
296
|
+
/** User visibility level option: public, limited, private */
|
|
297
|
+
visibility?: string;
|
|
298
|
+
/** the user's website */
|
|
299
|
+
website?: string;
|
|
300
|
+
}
|
|
301
|
+
export const User = /*@__PURE__*/ S.suspend(() =>
|
|
302
|
+
S.Struct({
|
|
303
|
+
active: S.optional(S.Boolean),
|
|
304
|
+
avatar_url: S.optional(S.String),
|
|
305
|
+
created: S.optional(S.String),
|
|
306
|
+
description: S.optional(S.String),
|
|
307
|
+
email: S.optional(S.String),
|
|
308
|
+
followers_count: S.optional(S.Number),
|
|
309
|
+
following_count: S.optional(S.Number),
|
|
310
|
+
full_name: S.optional(S.String),
|
|
311
|
+
html_url: S.optional(S.String),
|
|
312
|
+
id: S.Number,
|
|
313
|
+
is_admin: S.optional(S.Boolean),
|
|
314
|
+
language: S.optional(S.String),
|
|
315
|
+
last_login: S.optional(S.String),
|
|
316
|
+
location: S.optional(S.String),
|
|
317
|
+
login: S.String,
|
|
318
|
+
login_name: S.optional(S.String),
|
|
319
|
+
prohibit_login: S.optional(S.Boolean),
|
|
320
|
+
pronouns: S.optional(S.String),
|
|
321
|
+
restricted: S.optional(S.Boolean),
|
|
322
|
+
source_id: S.optional(S.Number),
|
|
323
|
+
starred_repos_count: S.optional(S.Number),
|
|
324
|
+
visibility: S.optional(S.String),
|
|
325
|
+
website: S.optional(S.String),
|
|
326
|
+
}),
|
|
327
|
+
).annotate({ identifier: "User" }) as any as S.Schema<User>;
|
|
328
|
+
|
|
329
|
+
/** Permission represents a set of permissions */
|
|
330
|
+
export interface Permission {
|
|
331
|
+
admin?: boolean;
|
|
332
|
+
pull?: boolean;
|
|
333
|
+
push?: boolean;
|
|
334
|
+
}
|
|
335
|
+
export const Permission = /*@__PURE__*/ S.suspend(() =>
|
|
336
|
+
S.Struct({
|
|
337
|
+
admin: S.optional(S.Boolean),
|
|
338
|
+
pull: S.optional(S.Boolean),
|
|
339
|
+
push: S.optional(S.Boolean),
|
|
340
|
+
}),
|
|
341
|
+
).annotate({ identifier: "Permission" }) as any as S.Schema<Permission>;
|
|
342
|
+
|
|
343
|
+
export type TeamPermission = "none" | "read" | "write" | "admin" | "owner";
|
|
344
|
+
export const TeamPermission = /*@__PURE__*/ S.String;
|
|
345
|
+
|
|
346
|
+
export type TeamUnitsList = Array<string>;
|
|
347
|
+
export const TeamUnitsList = /*@__PURE__*/ S.Array(
|
|
348
|
+
S.String,
|
|
349
|
+
) as any as S.Schema<TeamUnitsList>;
|
|
350
|
+
|
|
351
|
+
export type TeamUnitsMapMap = { [key: string]: string | undefined };
|
|
352
|
+
export const TeamUnitsMapMap = /*@__PURE__*/ S.Record(
|
|
353
|
+
S.String,
|
|
354
|
+
S.String,
|
|
355
|
+
) as any as S.Schema<TeamUnitsMapMap>;
|
|
356
|
+
|
|
357
|
+
/** Team represents a team in an organization */
|
|
358
|
+
export interface Team {
|
|
359
|
+
can_create_org_repo?: boolean;
|
|
360
|
+
description?: string;
|
|
361
|
+
id: number;
|
|
362
|
+
includes_all_repositories?: boolean;
|
|
363
|
+
name: string;
|
|
364
|
+
organization?: Organization;
|
|
365
|
+
permission?: TeamPermission;
|
|
366
|
+
units?: TeamUnitsList;
|
|
367
|
+
units_map?: TeamUnitsMapMap;
|
|
368
|
+
}
|
|
369
|
+
export const Team = /*@__PURE__*/ S.suspend(() =>
|
|
370
|
+
S.Struct({
|
|
371
|
+
can_create_org_repo: S.optional(S.Boolean),
|
|
372
|
+
description: S.optional(S.String),
|
|
373
|
+
id: S.Number,
|
|
374
|
+
includes_all_repositories: S.optional(S.Boolean),
|
|
375
|
+
name: S.String,
|
|
376
|
+
organization: S.optional(Organization),
|
|
377
|
+
permission: S.optional(TeamPermission),
|
|
378
|
+
units: S.optional(TeamUnitsList),
|
|
379
|
+
units_map: S.optional(TeamUnitsMapMap),
|
|
380
|
+
}),
|
|
381
|
+
).annotate({ identifier: "Team" }) as any as S.Schema<Team>;
|
|
382
|
+
|
|
383
|
+
export type RepoTransferTeamsList = Array<Team>;
|
|
384
|
+
export const RepoTransferTeamsList = /*@__PURE__*/ S.Array(
|
|
385
|
+
Team,
|
|
386
|
+
) as any as S.Schema<RepoTransferTeamsList>;
|
|
387
|
+
|
|
388
|
+
/** RepoTransfer represents a pending repo transfer */
|
|
389
|
+
export interface RepoTransfer {
|
|
390
|
+
doer?: User;
|
|
391
|
+
recipient?: User;
|
|
392
|
+
teams?: RepoTransferTeamsList;
|
|
393
|
+
}
|
|
394
|
+
export const RepoTransfer = /*@__PURE__*/ S.suspend(() =>
|
|
395
|
+
S.Struct({
|
|
396
|
+
doer: S.optional(User),
|
|
397
|
+
recipient: S.optional(User),
|
|
398
|
+
teams: S.optional(RepoTransferTeamsList),
|
|
399
|
+
}),
|
|
400
|
+
).annotate({ identifier: "RepoTransfer" }) as any as S.Schema<RepoTransfer>;
|
|
401
|
+
|
|
402
|
+
export type RepositoryTopicsList = Array<string>;
|
|
403
|
+
export const RepositoryTopicsList = /*@__PURE__*/ S.Array(
|
|
404
|
+
S.String,
|
|
405
|
+
) as any as S.Schema<RepositoryTopicsList>;
|
|
406
|
+
|
|
407
|
+
/** Repository represents a repository */
|
|
408
|
+
export interface Repository {
|
|
409
|
+
allow_fast_forward_only_merge?: boolean;
|
|
410
|
+
allow_merge_commits?: boolean;
|
|
411
|
+
allow_rebase?: boolean;
|
|
412
|
+
allow_rebase_explicit?: boolean;
|
|
413
|
+
allow_rebase_update?: boolean;
|
|
414
|
+
allow_squash_merge?: boolean;
|
|
415
|
+
archived?: boolean;
|
|
416
|
+
archived_at?: string;
|
|
417
|
+
avatar_url?: string;
|
|
418
|
+
clone_url: string;
|
|
419
|
+
created_at: string;
|
|
420
|
+
default_allow_maintainer_edit?: boolean;
|
|
421
|
+
default_branch: string;
|
|
422
|
+
default_delete_branch_after_merge?: boolean;
|
|
423
|
+
default_merge_style?: string;
|
|
424
|
+
default_update_style?: string;
|
|
425
|
+
description?: string;
|
|
426
|
+
empty?: boolean;
|
|
427
|
+
external_tracker?: ExternalTracker;
|
|
428
|
+
external_wiki?: ExternalWiki;
|
|
429
|
+
fork?: boolean;
|
|
430
|
+
forks_count?: number;
|
|
431
|
+
full_name: string;
|
|
432
|
+
globally_editable_wiki?: boolean;
|
|
433
|
+
has_actions?: boolean;
|
|
434
|
+
has_issues?: boolean;
|
|
435
|
+
has_packages?: boolean;
|
|
436
|
+
has_projects?: boolean;
|
|
437
|
+
has_pull_requests?: boolean;
|
|
438
|
+
has_releases?: boolean;
|
|
439
|
+
/** is the wiki enabled */
|
|
440
|
+
has_wiki?: boolean;
|
|
441
|
+
/** have wiki pages ever been created */
|
|
442
|
+
has_wiki_contents?: boolean;
|
|
443
|
+
html_url: string;
|
|
444
|
+
id: number;
|
|
445
|
+
ignore_whitespace_conflicts?: boolean;
|
|
446
|
+
internal?: boolean;
|
|
447
|
+
internal_tracker?: InternalTracker;
|
|
448
|
+
language?: string;
|
|
449
|
+
languages_url?: string;
|
|
450
|
+
link?: string;
|
|
451
|
+
mirror?: boolean;
|
|
452
|
+
mirror_interval?: string;
|
|
453
|
+
mirror_updated?: string;
|
|
454
|
+
name: string;
|
|
455
|
+
/** ObjectFormatName of the underlying git repository */
|
|
456
|
+
object_format_name?: RepositoryObjectFormatName;
|
|
457
|
+
open_issues_count?: number;
|
|
458
|
+
open_pr_counter?: number;
|
|
459
|
+
original_url?: string;
|
|
460
|
+
owner: User;
|
|
461
|
+
parent?: Repository;
|
|
462
|
+
permissions?: Permission;
|
|
463
|
+
private?: boolean;
|
|
464
|
+
release_counter?: number;
|
|
465
|
+
repo_transfer?: RepoTransfer;
|
|
466
|
+
size?: number;
|
|
467
|
+
ssh_url: string;
|
|
468
|
+
stars_count?: number;
|
|
469
|
+
template?: boolean;
|
|
470
|
+
topics?: RepositoryTopicsList;
|
|
471
|
+
updated_at: string;
|
|
472
|
+
url?: string;
|
|
473
|
+
watchers_count?: number;
|
|
474
|
+
website?: string;
|
|
475
|
+
wiki_branch?: string;
|
|
476
|
+
wiki_clone_url?: string;
|
|
477
|
+
wiki_ssh_url?: string;
|
|
478
|
+
}
|
|
479
|
+
export const Repository = /*@__PURE__*/ S.suspend(() =>
|
|
480
|
+
S.Struct({
|
|
481
|
+
allow_fast_forward_only_merge: S.optional(S.Boolean),
|
|
482
|
+
allow_merge_commits: S.optional(S.Boolean),
|
|
483
|
+
allow_rebase: S.optional(S.Boolean),
|
|
484
|
+
allow_rebase_explicit: S.optional(S.Boolean),
|
|
485
|
+
allow_rebase_update: S.optional(S.Boolean),
|
|
486
|
+
allow_squash_merge: S.optional(S.Boolean),
|
|
487
|
+
archived: S.optional(S.Boolean),
|
|
488
|
+
archived_at: S.optional(S.String),
|
|
489
|
+
avatar_url: S.optional(S.String),
|
|
490
|
+
clone_url: S.String,
|
|
491
|
+
created_at: S.String,
|
|
492
|
+
default_allow_maintainer_edit: S.optional(S.Boolean),
|
|
493
|
+
default_branch: S.String,
|
|
494
|
+
default_delete_branch_after_merge: S.optional(S.Boolean),
|
|
495
|
+
default_merge_style: S.optional(S.String),
|
|
496
|
+
default_update_style: S.optional(S.String),
|
|
497
|
+
description: S.optional(S.String),
|
|
498
|
+
empty: S.optional(S.Boolean),
|
|
499
|
+
external_tracker: S.optional(ExternalTracker),
|
|
500
|
+
external_wiki: S.optional(ExternalWiki),
|
|
501
|
+
fork: S.optional(S.Boolean),
|
|
502
|
+
forks_count: S.optional(S.Number),
|
|
503
|
+
full_name: S.String,
|
|
504
|
+
globally_editable_wiki: S.optional(S.Boolean),
|
|
505
|
+
has_actions: S.optional(S.Boolean),
|
|
506
|
+
has_issues: S.optional(S.Boolean),
|
|
507
|
+
has_packages: S.optional(S.Boolean),
|
|
508
|
+
has_projects: S.optional(S.Boolean),
|
|
509
|
+
has_pull_requests: S.optional(S.Boolean),
|
|
510
|
+
has_releases: S.optional(S.Boolean),
|
|
511
|
+
has_wiki: S.optional(S.Boolean),
|
|
512
|
+
has_wiki_contents: S.optional(S.Boolean),
|
|
513
|
+
html_url: S.String,
|
|
514
|
+
id: S.Number,
|
|
515
|
+
ignore_whitespace_conflicts: S.optional(S.Boolean),
|
|
516
|
+
internal: S.optional(S.Boolean),
|
|
517
|
+
internal_tracker: S.optional(InternalTracker),
|
|
518
|
+
language: S.optional(S.String),
|
|
519
|
+
languages_url: S.optional(S.String),
|
|
520
|
+
link: S.optional(S.String),
|
|
521
|
+
mirror: S.optional(S.Boolean),
|
|
522
|
+
mirror_interval: S.optional(S.String),
|
|
523
|
+
mirror_updated: S.optional(S.String),
|
|
524
|
+
name: S.String,
|
|
525
|
+
object_format_name: S.optional(RepositoryObjectFormatName),
|
|
526
|
+
open_issues_count: S.optional(S.Number),
|
|
527
|
+
open_pr_counter: S.optional(S.Number),
|
|
528
|
+
original_url: S.optional(S.String),
|
|
529
|
+
owner: User,
|
|
530
|
+
parent: S.optional(Repository),
|
|
531
|
+
permissions: S.optional(Permission),
|
|
532
|
+
private: S.optional(S.Boolean),
|
|
533
|
+
release_counter: S.optional(S.Number),
|
|
534
|
+
repo_transfer: S.optional(RepoTransfer),
|
|
535
|
+
size: S.optional(S.Number),
|
|
536
|
+
ssh_url: S.String,
|
|
537
|
+
stars_count: S.optional(S.Number),
|
|
538
|
+
template: S.optional(S.Boolean),
|
|
539
|
+
topics: S.optional(RepositoryTopicsList),
|
|
540
|
+
updated_at: S.String,
|
|
541
|
+
url: S.optional(S.String),
|
|
542
|
+
watchers_count: S.optional(S.Number),
|
|
543
|
+
website: S.optional(S.String),
|
|
544
|
+
wiki_branch: S.optional(S.String),
|
|
545
|
+
wiki_clone_url: S.optional(S.String),
|
|
546
|
+
wiki_ssh_url: S.optional(S.String),
|
|
547
|
+
}),
|
|
548
|
+
).annotate({ identifier: "Repository" }) as any as S.Schema<Repository>;
|
|
549
|
+
|
|
550
|
+
export interface CreateOrgVariableRequest {
|
|
551
|
+
/** name of the organization */
|
|
552
|
+
org: string;
|
|
553
|
+
/** name of the variable */
|
|
554
|
+
variablename: string;
|
|
555
|
+
/** Value of the variable to create. Special characters will be retained. Line endings will be normalized to LF to match the behaviour of browsers. Encode the data with Base64 if line endings should be retained. */
|
|
556
|
+
value: string;
|
|
557
|
+
}
|
|
558
|
+
export const CreateOrgVariableRequest = /*@__PURE__*/ S.suspend(() =>
|
|
559
|
+
S.Struct({
|
|
560
|
+
org: S.String.pipe(T.Label()),
|
|
561
|
+
variablename: S.String.pipe(T.Label()),
|
|
562
|
+
value: S.String,
|
|
563
|
+
}).pipe(
|
|
564
|
+
T.Http({
|
|
565
|
+
method: "POST",
|
|
566
|
+
uri: "/orgs/{org}/actions/variables/{variablename}",
|
|
567
|
+
code: 200,
|
|
568
|
+
}),
|
|
569
|
+
),
|
|
570
|
+
).annotate({
|
|
571
|
+
identifier: "CreateOrgVariableRequest",
|
|
572
|
+
}) as any as S.Schema<CreateOrgVariableRequest>;
|
|
573
|
+
|
|
574
|
+
export interface CreateOrgVariableResponse {}
|
|
575
|
+
export const CreateOrgVariableResponse = /*@__PURE__*/ S.suspend(() =>
|
|
576
|
+
S.Struct({}),
|
|
577
|
+
).annotate({
|
|
578
|
+
identifier: "CreateOrgVariableResponse",
|
|
579
|
+
}) as any as S.Schema<CreateOrgVariableResponse>;
|
|
580
|
+
|
|
581
|
+
export interface DeleteOrgRequest {
|
|
582
|
+
/** organization that is to be deleted */
|
|
583
|
+
org: string;
|
|
584
|
+
}
|
|
585
|
+
export const DeleteOrgRequest = /*@__PURE__*/ S.suspend(() =>
|
|
586
|
+
S.Struct({
|
|
587
|
+
org: S.String.pipe(T.Label()),
|
|
588
|
+
}).pipe(T.Http({ method: "DELETE", uri: "/orgs/{org}", code: 200 })),
|
|
589
|
+
).annotate({
|
|
590
|
+
identifier: "DeleteOrgRequest",
|
|
591
|
+
}) as any as S.Schema<DeleteOrgRequest>;
|
|
592
|
+
|
|
593
|
+
export interface DeleteOrgResponse {}
|
|
594
|
+
export const DeleteOrgResponse = /*@__PURE__*/ S.suspend(() =>
|
|
595
|
+
S.Struct({}),
|
|
596
|
+
).annotate({
|
|
597
|
+
identifier: "DeleteOrgResponse",
|
|
598
|
+
}) as any as S.Schema<DeleteOrgResponse>;
|
|
599
|
+
|
|
600
|
+
export interface DeleteOrgRunnerRequest {
|
|
601
|
+
/** name of the organization */
|
|
602
|
+
org: string;
|
|
603
|
+
/** ID of the runner */
|
|
604
|
+
runner_id: string;
|
|
605
|
+
}
|
|
606
|
+
export const DeleteOrgRunnerRequest = /*@__PURE__*/ S.suspend(() =>
|
|
607
|
+
S.Struct({
|
|
608
|
+
org: S.String.pipe(T.Label()),
|
|
609
|
+
runner_id: S.String.pipe(T.Label()),
|
|
610
|
+
}).pipe(
|
|
611
|
+
T.Http({
|
|
612
|
+
method: "DELETE",
|
|
613
|
+
uri: "/orgs/{org}/actions/runners/{runner_id}",
|
|
614
|
+
code: 200,
|
|
615
|
+
}),
|
|
616
|
+
),
|
|
617
|
+
).annotate({
|
|
618
|
+
identifier: "DeleteOrgRunnerRequest",
|
|
619
|
+
}) as any as S.Schema<DeleteOrgRunnerRequest>;
|
|
620
|
+
|
|
621
|
+
export interface DeleteOrgRunnerResponse {}
|
|
622
|
+
export const DeleteOrgRunnerResponse = /*@__PURE__*/ S.suspend(() =>
|
|
623
|
+
S.Struct({}),
|
|
624
|
+
).annotate({
|
|
625
|
+
identifier: "DeleteOrgRunnerResponse",
|
|
626
|
+
}) as any as S.Schema<DeleteOrgRunnerResponse>;
|
|
627
|
+
|
|
628
|
+
export interface DeleteOrgSecretRequest {
|
|
629
|
+
/** name of organization */
|
|
630
|
+
org: string;
|
|
631
|
+
/** name of the secret */
|
|
632
|
+
secretname: string;
|
|
633
|
+
}
|
|
634
|
+
export const DeleteOrgSecretRequest = /*@__PURE__*/ S.suspend(() =>
|
|
635
|
+
S.Struct({
|
|
636
|
+
org: S.String.pipe(T.Label()),
|
|
637
|
+
secretname: S.String.pipe(T.Label()),
|
|
638
|
+
}).pipe(
|
|
639
|
+
T.Http({
|
|
640
|
+
method: "DELETE",
|
|
641
|
+
uri: "/orgs/{org}/actions/secrets/{secretname}",
|
|
642
|
+
code: 200,
|
|
643
|
+
}),
|
|
644
|
+
),
|
|
645
|
+
).annotate({
|
|
646
|
+
identifier: "DeleteOrgSecretRequest",
|
|
647
|
+
}) as any as S.Schema<DeleteOrgSecretRequest>;
|
|
648
|
+
|
|
649
|
+
export interface DeleteOrgSecretResponse {}
|
|
650
|
+
export const DeleteOrgSecretResponse = /*@__PURE__*/ S.suspend(() =>
|
|
651
|
+
S.Struct({}),
|
|
652
|
+
).annotate({
|
|
653
|
+
identifier: "DeleteOrgSecretResponse",
|
|
654
|
+
}) as any as S.Schema<DeleteOrgSecretResponse>;
|
|
655
|
+
|
|
656
|
+
export interface DeleteOrgVariableRequest {
|
|
657
|
+
/** name of the organization */
|
|
658
|
+
org: string;
|
|
659
|
+
/** name of the variable */
|
|
660
|
+
variablename: string;
|
|
661
|
+
}
|
|
662
|
+
export const DeleteOrgVariableRequest = /*@__PURE__*/ S.suspend(() =>
|
|
663
|
+
S.Struct({
|
|
664
|
+
org: S.String.pipe(T.Label()),
|
|
665
|
+
variablename: S.String.pipe(T.Label()),
|
|
666
|
+
}).pipe(
|
|
667
|
+
T.Http({
|
|
668
|
+
method: "DELETE",
|
|
669
|
+
uri: "/orgs/{org}/actions/variables/{variablename}",
|
|
670
|
+
code: 200,
|
|
671
|
+
}),
|
|
672
|
+
),
|
|
673
|
+
).annotate({
|
|
674
|
+
identifier: "DeleteOrgVariableRequest",
|
|
675
|
+
}) as any as S.Schema<DeleteOrgVariableRequest>;
|
|
676
|
+
|
|
677
|
+
export interface DeleteOrgVariableResponse {}
|
|
678
|
+
export const DeleteOrgVariableResponse = /*@__PURE__*/ S.suspend(() =>
|
|
679
|
+
S.Struct({}),
|
|
680
|
+
).annotate({
|
|
681
|
+
identifier: "DeleteOrgVariableResponse",
|
|
682
|
+
}) as any as S.Schema<DeleteOrgVariableResponse>;
|
|
683
|
+
|
|
684
|
+
/** possible values are `public`, `limited` or `private` */
|
|
685
|
+
export type EditOrgRequestVisibility = "public" | "limited" | "private";
|
|
686
|
+
export const EditOrgRequestVisibility = /*@__PURE__*/ S.String;
|
|
687
|
+
|
|
688
|
+
export interface EditOrgRequest {
|
|
689
|
+
/** name of the organization to edit */
|
|
690
|
+
org: string;
|
|
691
|
+
description?: string;
|
|
692
|
+
email?: string;
|
|
693
|
+
full_name?: string;
|
|
694
|
+
location?: string;
|
|
695
|
+
repo_admin_change_team_access?: boolean;
|
|
696
|
+
/** possible values are `public`, `limited` or `private` */
|
|
697
|
+
visibility?: EditOrgRequestVisibility | (string & {});
|
|
698
|
+
website?: string;
|
|
699
|
+
}
|
|
700
|
+
export const EditOrgRequest = /*@__PURE__*/ S.suspend(() =>
|
|
701
|
+
S.Struct({
|
|
702
|
+
org: S.String.pipe(T.Label()),
|
|
703
|
+
description: S.optional(S.String),
|
|
704
|
+
email: S.optional(S.String),
|
|
705
|
+
full_name: S.optional(S.String),
|
|
706
|
+
location: S.optional(S.String),
|
|
707
|
+
repo_admin_change_team_access: S.optional(S.Boolean),
|
|
708
|
+
visibility: S.optional(EditOrgRequestVisibility),
|
|
709
|
+
website: S.optional(S.String),
|
|
710
|
+
}).pipe(T.Http({ method: "PATCH", uri: "/orgs/{org}", code: 200 })),
|
|
711
|
+
).annotate({ identifier: "EditOrgRequest" }) as any as S.Schema<EditOrgRequest>;
|
|
712
|
+
|
|
713
|
+
export interface GetOrgRequest {
|
|
714
|
+
/** name of the organization to get */
|
|
715
|
+
org: string;
|
|
716
|
+
}
|
|
717
|
+
export const GetOrgRequest = /*@__PURE__*/ S.suspend(() =>
|
|
718
|
+
S.Struct({
|
|
719
|
+
org: S.String.pipe(T.Label()),
|
|
720
|
+
}).pipe(T.Http({ method: "GET", uri: "/orgs/{org}", code: 200 })),
|
|
721
|
+
).annotate({ identifier: "GetOrgRequest" }) as any as S.Schema<GetOrgRequest>;
|
|
722
|
+
|
|
723
|
+
export interface GetOrgRunnerRequest {
|
|
724
|
+
/** name of the organization */
|
|
725
|
+
org: string;
|
|
726
|
+
/** ID of the runner */
|
|
727
|
+
runner_id: string;
|
|
728
|
+
}
|
|
729
|
+
export const GetOrgRunnerRequest = /*@__PURE__*/ S.suspend(() =>
|
|
730
|
+
S.Struct({
|
|
731
|
+
org: S.String.pipe(T.Label()),
|
|
732
|
+
runner_id: S.String.pipe(T.Label()),
|
|
733
|
+
}).pipe(
|
|
734
|
+
T.Http({
|
|
735
|
+
method: "GET",
|
|
736
|
+
uri: "/orgs/{org}/actions/runners/{runner_id}",
|
|
737
|
+
code: 200,
|
|
738
|
+
}),
|
|
739
|
+
),
|
|
740
|
+
).annotate({
|
|
741
|
+
identifier: "GetOrgRunnerRequest",
|
|
742
|
+
}) as any as S.Schema<GetOrgRunnerRequest>;
|
|
743
|
+
|
|
744
|
+
/** Labels is a list of labels attached to this runner. */
|
|
745
|
+
export type ActionRunnerLabelsList = Array<string>;
|
|
746
|
+
export const ActionRunnerLabelsList = /*@__PURE__*/ S.Array(
|
|
747
|
+
S.String,
|
|
748
|
+
) as any as S.Schema<ActionRunnerLabelsList>;
|
|
749
|
+
|
|
750
|
+
/** Status indicates whether this runner is offline, or active, for example. */
|
|
751
|
+
export type ActionRunnerStatus = "offline" | "idle" | "active";
|
|
752
|
+
export const ActionRunnerStatus = /*@__PURE__*/ S.String;
|
|
753
|
+
|
|
754
|
+
/** ActionRunner represents a runner */
|
|
755
|
+
export interface ActionRunner {
|
|
756
|
+
/** Description provides optional details about this runner. */
|
|
757
|
+
description?: string;
|
|
758
|
+
/** Indicates if runner is ephemeral runner */
|
|
759
|
+
ephemeral?: boolean;
|
|
760
|
+
/** ID uniquely identifies this runner. */
|
|
761
|
+
id?: number;
|
|
762
|
+
/** Labels is a list of labels attached to this runner. */
|
|
763
|
+
labels?: ActionRunnerLabelsList;
|
|
764
|
+
/** Name of the runner; not unique. */
|
|
765
|
+
name?: string;
|
|
766
|
+
/** OwnerID is the identifier of the user or organization this runner belongs to. O if the runner is owned by a repository. */
|
|
767
|
+
owner_id?: number;
|
|
768
|
+
/** RepoID is the identifier of the repository this runner belongs to. 0 if the runner belongs to a user or organization. */
|
|
769
|
+
repo_id?: number;
|
|
770
|
+
/** Status indicates whether this runner is offline, or active, for example. */
|
|
771
|
+
status?: ActionRunnerStatus;
|
|
772
|
+
/** UUID uniquely identifies this runner. */
|
|
773
|
+
uuid?: string;
|
|
774
|
+
/** Version is the self-reported version string of Forgejo Runner. */
|
|
775
|
+
version?: string;
|
|
776
|
+
}
|
|
777
|
+
export const ActionRunner = /*@__PURE__*/ S.suspend(() =>
|
|
778
|
+
S.Struct({
|
|
779
|
+
description: S.optional(S.String),
|
|
780
|
+
ephemeral: S.optional(S.Boolean),
|
|
781
|
+
id: S.optional(S.Number),
|
|
782
|
+
labels: S.optional(ActionRunnerLabelsList),
|
|
783
|
+
name: S.optional(S.String),
|
|
784
|
+
owner_id: S.optional(S.Number),
|
|
785
|
+
repo_id: S.optional(S.Number),
|
|
786
|
+
status: S.optional(ActionRunnerStatus),
|
|
787
|
+
uuid: S.optional(S.String),
|
|
788
|
+
version: S.optional(S.String),
|
|
789
|
+
}),
|
|
790
|
+
).annotate({ identifier: "ActionRunner" }) as any as S.Schema<ActionRunner>;
|
|
791
|
+
|
|
792
|
+
export interface GetOrgRunnersRequest {
|
|
793
|
+
/** name of the organization */
|
|
794
|
+
org: string;
|
|
795
|
+
/** whether to include all visible runners (true) or only those that are directly owned by the organization (false) */
|
|
796
|
+
visible?: boolean;
|
|
797
|
+
/** page number of results to return (1-based) */
|
|
798
|
+
page?: number;
|
|
799
|
+
/** page size of results */
|
|
800
|
+
limit?: number;
|
|
801
|
+
}
|
|
802
|
+
export const GetOrgRunnersRequest = /*@__PURE__*/ S.suspend(() =>
|
|
803
|
+
S.Struct({
|
|
804
|
+
org: S.String.pipe(T.Label()),
|
|
805
|
+
visible: S.optional(S.Boolean.pipe(T.Query())),
|
|
806
|
+
page: S.optional(S.Number.pipe(T.Query())),
|
|
807
|
+
limit: S.optional(S.Number.pipe(T.Query())),
|
|
808
|
+
}).pipe(
|
|
809
|
+
T.Http({ method: "GET", uri: "/orgs/{org}/actions/runners", code: 200 }),
|
|
810
|
+
),
|
|
811
|
+
).annotate({
|
|
812
|
+
identifier: "GetOrgRunnersRequest",
|
|
813
|
+
}) as any as S.Schema<GetOrgRunnersRequest>;
|
|
814
|
+
|
|
815
|
+
export type GetOrgRunnersResponseBodyList = Array<ActionRunner>;
|
|
816
|
+
export const GetOrgRunnersResponseBodyList = /*@__PURE__*/ S.Array(
|
|
817
|
+
ActionRunner,
|
|
818
|
+
) as any as S.Schema<GetOrgRunnersResponseBodyList>;
|
|
819
|
+
|
|
820
|
+
export type GetOrgRunnersResponse = GetOrgRunnersResponseBodyList;
|
|
821
|
+
export const GetOrgRunnersResponse = /*@__PURE__*/ S.suspend(() =>
|
|
822
|
+
GetOrgRunnersResponseBodyList.pipe(T.RawResponseRoot()),
|
|
823
|
+
).annotate({
|
|
824
|
+
identifier: "GetOrgRunnersResponse",
|
|
825
|
+
}) as any as S.Schema<GetOrgRunnersResponse>;
|
|
826
|
+
|
|
827
|
+
export interface GetOrgVariableRequest {
|
|
828
|
+
/** name of the organization */
|
|
829
|
+
org: string;
|
|
830
|
+
/** name of the variable */
|
|
831
|
+
variablename: string;
|
|
832
|
+
}
|
|
833
|
+
export const GetOrgVariableRequest = /*@__PURE__*/ S.suspend(() =>
|
|
834
|
+
S.Struct({
|
|
835
|
+
org: S.String.pipe(T.Label()),
|
|
836
|
+
variablename: S.String.pipe(T.Label()),
|
|
837
|
+
}).pipe(
|
|
838
|
+
T.Http({
|
|
839
|
+
method: "GET",
|
|
840
|
+
uri: "/orgs/{org}/actions/variables/{variablename}",
|
|
841
|
+
code: 200,
|
|
842
|
+
}),
|
|
843
|
+
),
|
|
844
|
+
).annotate({
|
|
845
|
+
identifier: "GetOrgVariableRequest",
|
|
846
|
+
}) as any as S.Schema<GetOrgVariableRequest>;
|
|
847
|
+
|
|
848
|
+
/** ActionVariable return value of the query API */
|
|
849
|
+
export interface ActionVariable {
|
|
850
|
+
/** the value of the variable */
|
|
851
|
+
data: string;
|
|
852
|
+
/** the name of the variable */
|
|
853
|
+
name: string;
|
|
854
|
+
/** the owner to which the variable belongs */
|
|
855
|
+
owner_id?: number;
|
|
856
|
+
/** the repository to which the variable belongs */
|
|
857
|
+
repo_id?: number;
|
|
858
|
+
}
|
|
859
|
+
export const ActionVariable = /*@__PURE__*/ S.suspend(() =>
|
|
860
|
+
S.Struct({
|
|
861
|
+
data: S.String,
|
|
862
|
+
name: S.String,
|
|
863
|
+
owner_id: S.optional(S.Number),
|
|
864
|
+
repo_id: S.optional(S.Number),
|
|
865
|
+
}),
|
|
866
|
+
).annotate({ identifier: "ActionVariable" }) as any as S.Schema<ActionVariable>;
|
|
867
|
+
|
|
868
|
+
export interface GetOrgVariablesListRequest {
|
|
869
|
+
/** name of the organization */
|
|
870
|
+
org: string;
|
|
871
|
+
/** page number of results to return (1-based) */
|
|
872
|
+
page?: number;
|
|
873
|
+
/** page size of results */
|
|
874
|
+
limit?: number;
|
|
875
|
+
}
|
|
876
|
+
export const GetOrgVariablesListRequest = /*@__PURE__*/ S.suspend(() =>
|
|
877
|
+
S.Struct({
|
|
878
|
+
org: S.String.pipe(T.Label()),
|
|
879
|
+
page: S.optional(S.Number.pipe(T.Query())),
|
|
880
|
+
limit: S.optional(S.Number.pipe(T.Query())),
|
|
881
|
+
}).pipe(
|
|
882
|
+
T.Http({ method: "GET", uri: "/orgs/{org}/actions/variables", code: 200 }),
|
|
883
|
+
),
|
|
884
|
+
).annotate({
|
|
885
|
+
identifier: "GetOrgVariablesListRequest",
|
|
886
|
+
}) as any as S.Schema<GetOrgVariablesListRequest>;
|
|
887
|
+
|
|
888
|
+
export type GetOrgVariablesListResponseBodyList = Array<ActionVariable>;
|
|
889
|
+
export const GetOrgVariablesListResponseBodyList = /*@__PURE__*/ S.Array(
|
|
890
|
+
ActionVariable,
|
|
891
|
+
) as any as S.Schema<GetOrgVariablesListResponseBodyList>;
|
|
892
|
+
|
|
893
|
+
export type GetOrgVariablesListResponse = GetOrgVariablesListResponseBodyList;
|
|
894
|
+
export const GetOrgVariablesListResponse = /*@__PURE__*/ S.suspend(() =>
|
|
895
|
+
GetOrgVariablesListResponseBodyList.pipe(T.RawResponseRoot()),
|
|
896
|
+
).annotate({
|
|
897
|
+
identifier: "GetOrgVariablesListResponse",
|
|
898
|
+
}) as any as S.Schema<GetOrgVariablesListResponse>;
|
|
899
|
+
|
|
900
|
+
export interface OrgAddTeamMemberRequest {
|
|
901
|
+
/** id of the team */
|
|
902
|
+
id: number;
|
|
903
|
+
/** username of the user to add */
|
|
904
|
+
username: string;
|
|
905
|
+
}
|
|
906
|
+
export const OrgAddTeamMemberRequest = /*@__PURE__*/ S.suspend(() =>
|
|
907
|
+
S.Struct({
|
|
908
|
+
id: S.Number.pipe(T.Label()),
|
|
909
|
+
username: S.String.pipe(T.Label()),
|
|
910
|
+
}).pipe(
|
|
911
|
+
T.Http({ method: "PUT", uri: "/teams/{id}/members/{username}", code: 200 }),
|
|
912
|
+
),
|
|
913
|
+
).annotate({
|
|
914
|
+
identifier: "OrgAddTeamMemberRequest",
|
|
915
|
+
}) as any as S.Schema<OrgAddTeamMemberRequest>;
|
|
916
|
+
|
|
917
|
+
export interface OrgAddTeamMemberResponse {}
|
|
918
|
+
export const OrgAddTeamMemberResponse = /*@__PURE__*/ S.suspend(() =>
|
|
919
|
+
S.Struct({}),
|
|
920
|
+
).annotate({
|
|
921
|
+
identifier: "OrgAddTeamMemberResponse",
|
|
922
|
+
}) as any as S.Schema<OrgAddTeamMemberResponse>;
|
|
923
|
+
|
|
924
|
+
export interface OrgAddTeamRepositoryRequest {
|
|
925
|
+
/** id of the team */
|
|
926
|
+
id: number;
|
|
927
|
+
/** organization that owns the repo to add */
|
|
928
|
+
org: string;
|
|
929
|
+
/** name of the repo to add */
|
|
930
|
+
repo: string;
|
|
931
|
+
}
|
|
932
|
+
export const OrgAddTeamRepositoryRequest = /*@__PURE__*/ S.suspend(() =>
|
|
933
|
+
S.Struct({
|
|
934
|
+
id: S.Number.pipe(T.Label()),
|
|
935
|
+
org: S.String.pipe(T.Label()),
|
|
936
|
+
repo: S.String.pipe(T.Label()),
|
|
937
|
+
}).pipe(
|
|
938
|
+
T.Http({ method: "PUT", uri: "/teams/{id}/repos/{org}/{repo}", code: 200 }),
|
|
939
|
+
),
|
|
940
|
+
).annotate({
|
|
941
|
+
identifier: "OrgAddTeamRepositoryRequest",
|
|
942
|
+
}) as any as S.Schema<OrgAddTeamRepositoryRequest>;
|
|
943
|
+
|
|
944
|
+
export interface OrgAddTeamRepositoryResponse {}
|
|
945
|
+
export const OrgAddTeamRepositoryResponse = /*@__PURE__*/ S.suspend(() =>
|
|
946
|
+
S.Struct({}),
|
|
947
|
+
).annotate({
|
|
948
|
+
identifier: "OrgAddTeamRepositoryResponse",
|
|
949
|
+
}) as any as S.Schema<OrgAddTeamRepositoryResponse>;
|
|
950
|
+
|
|
951
|
+
export interface OrgBlockUserRequest {
|
|
952
|
+
/** name of the org */
|
|
953
|
+
org: string;
|
|
954
|
+
/** username of the user */
|
|
955
|
+
username: string;
|
|
956
|
+
}
|
|
957
|
+
export const OrgBlockUserRequest = /*@__PURE__*/ S.suspend(() =>
|
|
958
|
+
S.Struct({
|
|
959
|
+
org: S.String.pipe(T.Label()),
|
|
960
|
+
username: S.String.pipe(T.Label()),
|
|
961
|
+
}).pipe(
|
|
962
|
+
T.Http({ method: "PUT", uri: "/orgs/{org}/block/{username}", code: 200 }),
|
|
963
|
+
),
|
|
964
|
+
).annotate({
|
|
965
|
+
identifier: "OrgBlockUserRequest",
|
|
966
|
+
}) as any as S.Schema<OrgBlockUserRequest>;
|
|
967
|
+
|
|
968
|
+
export interface OrgBlockUserResponse {}
|
|
969
|
+
export const OrgBlockUserResponse = /*@__PURE__*/ S.suspend(() =>
|
|
970
|
+
S.Struct({}),
|
|
971
|
+
).annotate({
|
|
972
|
+
identifier: "OrgBlockUserResponse",
|
|
973
|
+
}) as any as S.Schema<OrgBlockUserResponse>;
|
|
974
|
+
|
|
975
|
+
export interface OrgCheckQuotaRequest {
|
|
976
|
+
/** name of the organization */
|
|
977
|
+
org: string;
|
|
978
|
+
/** subject of the quota */
|
|
979
|
+
subject: string;
|
|
980
|
+
}
|
|
981
|
+
export const OrgCheckQuotaRequest = /*@__PURE__*/ S.suspend(() =>
|
|
982
|
+
S.Struct({
|
|
983
|
+
org: S.String.pipe(T.Label()),
|
|
984
|
+
subject: S.String.pipe(T.Query()),
|
|
985
|
+
}).pipe(T.Http({ method: "GET", uri: "/orgs/{org}/quota/check", code: 200 })),
|
|
986
|
+
).annotate({
|
|
987
|
+
identifier: "OrgCheckQuotaRequest",
|
|
988
|
+
}) as any as S.Schema<OrgCheckQuotaRequest>;
|
|
989
|
+
|
|
990
|
+
export type OrgCheckQuotaResponse = boolean;
|
|
991
|
+
export const OrgCheckQuotaResponse = /*@__PURE__*/ S.suspend(() =>
|
|
992
|
+
S.Boolean.pipe(T.RawResponseRoot()),
|
|
993
|
+
).annotate({
|
|
994
|
+
identifier: "OrgCheckQuotaResponse",
|
|
995
|
+
}) as any as S.Schema<OrgCheckQuotaResponse>;
|
|
996
|
+
|
|
997
|
+
export interface OrgConcealMemberRequest {
|
|
998
|
+
/** name of the organization */
|
|
999
|
+
org: string;
|
|
1000
|
+
/** username of the user */
|
|
1001
|
+
username: string;
|
|
1002
|
+
}
|
|
1003
|
+
export const OrgConcealMemberRequest = /*@__PURE__*/ S.suspend(() =>
|
|
1004
|
+
S.Struct({
|
|
1005
|
+
org: S.String.pipe(T.Label()),
|
|
1006
|
+
username: S.String.pipe(T.Label()),
|
|
1007
|
+
}).pipe(
|
|
1008
|
+
T.Http({
|
|
1009
|
+
method: "DELETE",
|
|
1010
|
+
uri: "/orgs/{org}/public_members/{username}",
|
|
1011
|
+
code: 200,
|
|
1012
|
+
}),
|
|
1013
|
+
),
|
|
1014
|
+
).annotate({
|
|
1015
|
+
identifier: "OrgConcealMemberRequest",
|
|
1016
|
+
}) as any as S.Schema<OrgConcealMemberRequest>;
|
|
1017
|
+
|
|
1018
|
+
export interface OrgConcealMemberResponse {}
|
|
1019
|
+
export const OrgConcealMemberResponse = /*@__PURE__*/ S.suspend(() =>
|
|
1020
|
+
S.Struct({}),
|
|
1021
|
+
).annotate({
|
|
1022
|
+
identifier: "OrgConcealMemberResponse",
|
|
1023
|
+
}) as any as S.Schema<OrgConcealMemberResponse>;
|
|
1024
|
+
|
|
1025
|
+
/** CreateHookOptionConfig has all config options in it required are "content_type" and "url" Required */
|
|
1026
|
+
export type CreateHookOptionConfig = { [key: string]: string | undefined };
|
|
1027
|
+
export const CreateHookOptionConfig = /*@__PURE__*/ S.Record(
|
|
1028
|
+
S.String,
|
|
1029
|
+
S.String,
|
|
1030
|
+
) as any as S.Schema<CreateHookOptionConfig>;
|
|
1031
|
+
|
|
1032
|
+
export type OrgCreateHookRequestEventsList = Array<string>;
|
|
1033
|
+
export const OrgCreateHookRequestEventsList = /*@__PURE__*/ S.Array(
|
|
1034
|
+
S.String,
|
|
1035
|
+
) as any as S.Schema<OrgCreateHookRequestEventsList>;
|
|
1036
|
+
|
|
1037
|
+
export type OrgCreateHookRequestType =
|
|
1038
|
+
| "forgejo"
|
|
1039
|
+
| "dingtalk"
|
|
1040
|
+
| "discord"
|
|
1041
|
+
| "gitea"
|
|
1042
|
+
| "gogs"
|
|
1043
|
+
| "msteams"
|
|
1044
|
+
| "slack"
|
|
1045
|
+
| "telegram"
|
|
1046
|
+
| "feishu"
|
|
1047
|
+
| "wechatwork"
|
|
1048
|
+
| "packagist";
|
|
1049
|
+
export const OrgCreateHookRequestType = /*@__PURE__*/ S.String;
|
|
1050
|
+
|
|
1051
|
+
export interface OrgCreateHookRequest {
|
|
1052
|
+
/** name of the organization */
|
|
1053
|
+
org: string;
|
|
1054
|
+
active?: boolean;
|
|
1055
|
+
authorization_header?: string;
|
|
1056
|
+
branch_filter?: string;
|
|
1057
|
+
config: CreateHookOptionConfig;
|
|
1058
|
+
events?: OrgCreateHookRequestEventsList;
|
|
1059
|
+
type: OrgCreateHookRequestType | (string & {});
|
|
1060
|
+
}
|
|
1061
|
+
export const OrgCreateHookRequest = /*@__PURE__*/ S.suspend(() =>
|
|
1062
|
+
S.Struct({
|
|
1063
|
+
org: S.String.pipe(T.Label()),
|
|
1064
|
+
active: S.optional(S.Boolean),
|
|
1065
|
+
authorization_header: S.optional(S.String),
|
|
1066
|
+
branch_filter: S.optional(S.String),
|
|
1067
|
+
config: CreateHookOptionConfig,
|
|
1068
|
+
events: S.optional(OrgCreateHookRequestEventsList),
|
|
1069
|
+
type: OrgCreateHookRequestType,
|
|
1070
|
+
}).pipe(T.Http({ method: "POST", uri: "/orgs/{org}/hooks", code: 200 })),
|
|
1071
|
+
).annotate({
|
|
1072
|
+
identifier: "OrgCreateHookRequest",
|
|
1073
|
+
}) as any as S.Schema<OrgCreateHookRequest>;
|
|
1074
|
+
|
|
1075
|
+
/** Deprecated: use Metadata instead */
|
|
1076
|
+
export type HookConfigMap = { [key: string]: string | undefined };
|
|
1077
|
+
export const HookConfigMap = /*@__PURE__*/ S.Record(
|
|
1078
|
+
S.String,
|
|
1079
|
+
S.String,
|
|
1080
|
+
) as any as S.Schema<HookConfigMap>;
|
|
1081
|
+
|
|
1082
|
+
export type HookEventsList = Array<string>;
|
|
1083
|
+
export const HookEventsList = /*@__PURE__*/ S.Array(
|
|
1084
|
+
S.String,
|
|
1085
|
+
) as any as S.Schema<HookEventsList>;
|
|
1086
|
+
|
|
1087
|
+
/** Hook a hook is a web hook when one repository changed */
|
|
1088
|
+
export interface Hook {
|
|
1089
|
+
active: boolean;
|
|
1090
|
+
authorization_header?: string;
|
|
1091
|
+
branch_filter?: string;
|
|
1092
|
+
/** Deprecated: use Metadata instead */
|
|
1093
|
+
config?: HookConfigMap;
|
|
1094
|
+
content_type?: string;
|
|
1095
|
+
created_at: string;
|
|
1096
|
+
events?: HookEventsList;
|
|
1097
|
+
id: number;
|
|
1098
|
+
metadata?: unknown;
|
|
1099
|
+
type: string;
|
|
1100
|
+
updated_at: string;
|
|
1101
|
+
url: string;
|
|
1102
|
+
}
|
|
1103
|
+
export const Hook = /*@__PURE__*/ S.suspend(() =>
|
|
1104
|
+
S.Struct({
|
|
1105
|
+
active: S.Boolean,
|
|
1106
|
+
authorization_header: S.optional(S.String),
|
|
1107
|
+
branch_filter: S.optional(S.String),
|
|
1108
|
+
config: S.optional(HookConfigMap),
|
|
1109
|
+
content_type: S.optional(S.String),
|
|
1110
|
+
created_at: S.String,
|
|
1111
|
+
events: S.optional(HookEventsList),
|
|
1112
|
+
id: S.Number,
|
|
1113
|
+
metadata: S.optional(S.Unknown),
|
|
1114
|
+
type: S.String,
|
|
1115
|
+
updated_at: S.String,
|
|
1116
|
+
url: S.String,
|
|
1117
|
+
}),
|
|
1118
|
+
).annotate({ identifier: "Hook" }) as any as S.Schema<Hook>;
|
|
1119
|
+
|
|
1120
|
+
export interface OrgCreateLabelRequest {
|
|
1121
|
+
/** name of the organization */
|
|
1122
|
+
org: string;
|
|
1123
|
+
color: string;
|
|
1124
|
+
description?: string;
|
|
1125
|
+
exclusive?: boolean;
|
|
1126
|
+
is_archived?: boolean;
|
|
1127
|
+
name: string;
|
|
1128
|
+
}
|
|
1129
|
+
export const OrgCreateLabelRequest = /*@__PURE__*/ S.suspend(() =>
|
|
1130
|
+
S.Struct({
|
|
1131
|
+
org: S.String.pipe(T.Label()),
|
|
1132
|
+
color: S.String,
|
|
1133
|
+
description: S.optional(S.String),
|
|
1134
|
+
exclusive: S.optional(S.Boolean),
|
|
1135
|
+
is_archived: S.optional(S.Boolean),
|
|
1136
|
+
name: S.String,
|
|
1137
|
+
}).pipe(T.Http({ method: "POST", uri: "/orgs/{org}/labels", code: 200 })),
|
|
1138
|
+
).annotate({
|
|
1139
|
+
identifier: "OrgCreateLabelRequest",
|
|
1140
|
+
}) as any as S.Schema<OrgCreateLabelRequest>;
|
|
1141
|
+
|
|
1142
|
+
/** Label a label to an issue or a pr */
|
|
1143
|
+
export interface Label {
|
|
1144
|
+
color: string;
|
|
1145
|
+
description?: string;
|
|
1146
|
+
exclusive?: boolean;
|
|
1147
|
+
id: number;
|
|
1148
|
+
is_archived?: boolean;
|
|
1149
|
+
name: string;
|
|
1150
|
+
url?: string;
|
|
1151
|
+
}
|
|
1152
|
+
export const Label = /*@__PURE__*/ S.suspend(() =>
|
|
1153
|
+
S.Struct({
|
|
1154
|
+
color: S.String,
|
|
1155
|
+
description: S.optional(S.String),
|
|
1156
|
+
exclusive: S.optional(S.Boolean),
|
|
1157
|
+
id: S.Number,
|
|
1158
|
+
is_archived: S.optional(S.Boolean),
|
|
1159
|
+
name: S.String,
|
|
1160
|
+
url: S.optional(S.String),
|
|
1161
|
+
}),
|
|
1162
|
+
).annotate({ identifier: "Label" }) as any as S.Schema<Label>;
|
|
1163
|
+
|
|
1164
|
+
export type OrgCreateTeamRequestPermission = "read" | "write" | "admin";
|
|
1165
|
+
export const OrgCreateTeamRequestPermission = /*@__PURE__*/ S.String;
|
|
1166
|
+
|
|
1167
|
+
export type OrgCreateTeamRequestUnitsList = Array<string>;
|
|
1168
|
+
export const OrgCreateTeamRequestUnitsList = /*@__PURE__*/ S.Array(
|
|
1169
|
+
S.String,
|
|
1170
|
+
) as any as S.Schema<OrgCreateTeamRequestUnitsList>;
|
|
1171
|
+
|
|
1172
|
+
export type OrgCreateTeamRequestUnitsMapMap = {
|
|
1173
|
+
[key: string]: string | undefined;
|
|
1174
|
+
};
|
|
1175
|
+
export const OrgCreateTeamRequestUnitsMapMap = /*@__PURE__*/ S.Record(
|
|
1176
|
+
S.String,
|
|
1177
|
+
S.String,
|
|
1178
|
+
) as any as S.Schema<OrgCreateTeamRequestUnitsMapMap>;
|
|
1179
|
+
|
|
1180
|
+
export interface OrgCreateTeamRequest {
|
|
1181
|
+
/** name of the organization */
|
|
1182
|
+
org: string;
|
|
1183
|
+
can_create_org_repo?: boolean;
|
|
1184
|
+
description?: string;
|
|
1185
|
+
includes_all_repositories?: boolean;
|
|
1186
|
+
name: string;
|
|
1187
|
+
permission?: OrgCreateTeamRequestPermission | (string & {});
|
|
1188
|
+
units?: OrgCreateTeamRequestUnitsList;
|
|
1189
|
+
units_map?: OrgCreateTeamRequestUnitsMapMap;
|
|
1190
|
+
}
|
|
1191
|
+
export const OrgCreateTeamRequest = /*@__PURE__*/ S.suspend(() =>
|
|
1192
|
+
S.Struct({
|
|
1193
|
+
org: S.String.pipe(T.Label()),
|
|
1194
|
+
can_create_org_repo: S.optional(S.Boolean),
|
|
1195
|
+
description: S.optional(S.String),
|
|
1196
|
+
includes_all_repositories: S.optional(S.Boolean),
|
|
1197
|
+
name: S.String,
|
|
1198
|
+
permission: S.optional(OrgCreateTeamRequestPermission),
|
|
1199
|
+
units: S.optional(OrgCreateTeamRequestUnitsList),
|
|
1200
|
+
units_map: S.optional(OrgCreateTeamRequestUnitsMapMap),
|
|
1201
|
+
}).pipe(T.Http({ method: "POST", uri: "/orgs/{org}/teams", code: 200 })),
|
|
1202
|
+
).annotate({
|
|
1203
|
+
identifier: "OrgCreateTeamRequest",
|
|
1204
|
+
}) as any as S.Schema<OrgCreateTeamRequest>;
|
|
1205
|
+
|
|
1206
|
+
export interface OrgDeleteAvatarRequest {
|
|
1207
|
+
/** name of the organization */
|
|
1208
|
+
org: string;
|
|
1209
|
+
}
|
|
1210
|
+
export const OrgDeleteAvatarRequest = /*@__PURE__*/ S.suspend(() =>
|
|
1211
|
+
S.Struct({
|
|
1212
|
+
org: S.String.pipe(T.Label()),
|
|
1213
|
+
}).pipe(T.Http({ method: "DELETE", uri: "/orgs/{org}/avatar", code: 200 })),
|
|
1214
|
+
).annotate({
|
|
1215
|
+
identifier: "OrgDeleteAvatarRequest",
|
|
1216
|
+
}) as any as S.Schema<OrgDeleteAvatarRequest>;
|
|
1217
|
+
|
|
1218
|
+
export interface OrgDeleteAvatarResponse {}
|
|
1219
|
+
export const OrgDeleteAvatarResponse = /*@__PURE__*/ S.suspend(() =>
|
|
1220
|
+
S.Struct({}),
|
|
1221
|
+
).annotate({
|
|
1222
|
+
identifier: "OrgDeleteAvatarResponse",
|
|
1223
|
+
}) as any as S.Schema<OrgDeleteAvatarResponse>;
|
|
1224
|
+
|
|
1225
|
+
export interface OrgDeleteHookRequest {
|
|
1226
|
+
/** name of the organization */
|
|
1227
|
+
org: string;
|
|
1228
|
+
/** id of the hook to delete */
|
|
1229
|
+
id: number;
|
|
1230
|
+
}
|
|
1231
|
+
export const OrgDeleteHookRequest = /*@__PURE__*/ S.suspend(() =>
|
|
1232
|
+
S.Struct({
|
|
1233
|
+
org: S.String.pipe(T.Label()),
|
|
1234
|
+
id: S.Number.pipe(T.Label()),
|
|
1235
|
+
}).pipe(
|
|
1236
|
+
T.Http({ method: "DELETE", uri: "/orgs/{org}/hooks/{id}", code: 200 }),
|
|
1237
|
+
),
|
|
1238
|
+
).annotate({
|
|
1239
|
+
identifier: "OrgDeleteHookRequest",
|
|
1240
|
+
}) as any as S.Schema<OrgDeleteHookRequest>;
|
|
1241
|
+
|
|
1242
|
+
export interface OrgDeleteHookResponse {}
|
|
1243
|
+
export const OrgDeleteHookResponse = /*@__PURE__*/ S.suspend(() =>
|
|
1244
|
+
S.Struct({}),
|
|
1245
|
+
).annotate({
|
|
1246
|
+
identifier: "OrgDeleteHookResponse",
|
|
1247
|
+
}) as any as S.Schema<OrgDeleteHookResponse>;
|
|
1248
|
+
|
|
1249
|
+
export interface OrgDeleteLabelRequest {
|
|
1250
|
+
/** name of the organization */
|
|
1251
|
+
org: string;
|
|
1252
|
+
/** id of the label to delete */
|
|
1253
|
+
id: number;
|
|
1254
|
+
}
|
|
1255
|
+
export const OrgDeleteLabelRequest = /*@__PURE__*/ S.suspend(() =>
|
|
1256
|
+
S.Struct({
|
|
1257
|
+
org: S.String.pipe(T.Label()),
|
|
1258
|
+
id: S.Number.pipe(T.Label()),
|
|
1259
|
+
}).pipe(
|
|
1260
|
+
T.Http({ method: "DELETE", uri: "/orgs/{org}/labels/{id}", code: 200 }),
|
|
1261
|
+
),
|
|
1262
|
+
).annotate({
|
|
1263
|
+
identifier: "OrgDeleteLabelRequest",
|
|
1264
|
+
}) as any as S.Schema<OrgDeleteLabelRequest>;
|
|
1265
|
+
|
|
1266
|
+
export interface OrgDeleteLabelResponse {}
|
|
1267
|
+
export const OrgDeleteLabelResponse = /*@__PURE__*/ S.suspend(() =>
|
|
1268
|
+
S.Struct({}),
|
|
1269
|
+
).annotate({
|
|
1270
|
+
identifier: "OrgDeleteLabelResponse",
|
|
1271
|
+
}) as any as S.Schema<OrgDeleteLabelResponse>;
|
|
1272
|
+
|
|
1273
|
+
export interface OrgDeleteMemberRequest {
|
|
1274
|
+
/** name of the organization */
|
|
1275
|
+
org: string;
|
|
1276
|
+
/** username of the user */
|
|
1277
|
+
username: string;
|
|
1278
|
+
}
|
|
1279
|
+
export const OrgDeleteMemberRequest = /*@__PURE__*/ S.suspend(() =>
|
|
1280
|
+
S.Struct({
|
|
1281
|
+
org: S.String.pipe(T.Label()),
|
|
1282
|
+
username: S.String.pipe(T.Label()),
|
|
1283
|
+
}).pipe(
|
|
1284
|
+
T.Http({
|
|
1285
|
+
method: "DELETE",
|
|
1286
|
+
uri: "/orgs/{org}/members/{username}",
|
|
1287
|
+
code: 200,
|
|
1288
|
+
}),
|
|
1289
|
+
),
|
|
1290
|
+
).annotate({
|
|
1291
|
+
identifier: "OrgDeleteMemberRequest",
|
|
1292
|
+
}) as any as S.Schema<OrgDeleteMemberRequest>;
|
|
1293
|
+
|
|
1294
|
+
export interface OrgDeleteMemberResponse {}
|
|
1295
|
+
export const OrgDeleteMemberResponse = /*@__PURE__*/ S.suspend(() =>
|
|
1296
|
+
S.Struct({}),
|
|
1297
|
+
).annotate({
|
|
1298
|
+
identifier: "OrgDeleteMemberResponse",
|
|
1299
|
+
}) as any as S.Schema<OrgDeleteMemberResponse>;
|
|
1300
|
+
|
|
1301
|
+
export interface OrgDeleteTeamRequest {
|
|
1302
|
+
/** id of the team to delete */
|
|
1303
|
+
id: number;
|
|
1304
|
+
}
|
|
1305
|
+
export const OrgDeleteTeamRequest = /*@__PURE__*/ S.suspend(() =>
|
|
1306
|
+
S.Struct({
|
|
1307
|
+
id: S.Number.pipe(T.Label()),
|
|
1308
|
+
}).pipe(T.Http({ method: "DELETE", uri: "/teams/{id}", code: 200 })),
|
|
1309
|
+
).annotate({
|
|
1310
|
+
identifier: "OrgDeleteTeamRequest",
|
|
1311
|
+
}) as any as S.Schema<OrgDeleteTeamRequest>;
|
|
1312
|
+
|
|
1313
|
+
export interface OrgDeleteTeamResponse {}
|
|
1314
|
+
export const OrgDeleteTeamResponse = /*@__PURE__*/ S.suspend(() =>
|
|
1315
|
+
S.Struct({}),
|
|
1316
|
+
).annotate({
|
|
1317
|
+
identifier: "OrgDeleteTeamResponse",
|
|
1318
|
+
}) as any as S.Schema<OrgDeleteTeamResponse>;
|
|
1319
|
+
|
|
1320
|
+
export type OrgEditHookRequestConfigMap = { [key: string]: string | undefined };
|
|
1321
|
+
export const OrgEditHookRequestConfigMap = /*@__PURE__*/ S.Record(
|
|
1322
|
+
S.String,
|
|
1323
|
+
S.String,
|
|
1324
|
+
) as any as S.Schema<OrgEditHookRequestConfigMap>;
|
|
1325
|
+
|
|
1326
|
+
export type OrgEditHookRequestEventsList = Array<string>;
|
|
1327
|
+
export const OrgEditHookRequestEventsList = /*@__PURE__*/ S.Array(
|
|
1328
|
+
S.String,
|
|
1329
|
+
) as any as S.Schema<OrgEditHookRequestEventsList>;
|
|
1330
|
+
|
|
1331
|
+
export interface OrgEditHookRequest {
|
|
1332
|
+
/** name of the organization */
|
|
1333
|
+
org: string;
|
|
1334
|
+
/** id of the hook to update */
|
|
1335
|
+
id: number;
|
|
1336
|
+
active?: boolean;
|
|
1337
|
+
authorization_header?: string;
|
|
1338
|
+
branch_filter?: string;
|
|
1339
|
+
config?: OrgEditHookRequestConfigMap;
|
|
1340
|
+
events?: OrgEditHookRequestEventsList;
|
|
1341
|
+
}
|
|
1342
|
+
export const OrgEditHookRequest = /*@__PURE__*/ S.suspend(() =>
|
|
1343
|
+
S.Struct({
|
|
1344
|
+
org: S.String.pipe(T.Label()),
|
|
1345
|
+
id: S.Number.pipe(T.Label()),
|
|
1346
|
+
active: S.optional(S.Boolean),
|
|
1347
|
+
authorization_header: S.optional(S.String),
|
|
1348
|
+
branch_filter: S.optional(S.String),
|
|
1349
|
+
config: S.optional(OrgEditHookRequestConfigMap),
|
|
1350
|
+
events: S.optional(OrgEditHookRequestEventsList),
|
|
1351
|
+
}).pipe(
|
|
1352
|
+
T.Http({ method: "PATCH", uri: "/orgs/{org}/hooks/{id}", code: 200 }),
|
|
1353
|
+
),
|
|
1354
|
+
).annotate({
|
|
1355
|
+
identifier: "OrgEditHookRequest",
|
|
1356
|
+
}) as any as S.Schema<OrgEditHookRequest>;
|
|
1357
|
+
|
|
1358
|
+
export interface OrgEditLabelRequest {
|
|
1359
|
+
/** name of the organization */
|
|
1360
|
+
org: string;
|
|
1361
|
+
/** id of the label to edit */
|
|
1362
|
+
id: number;
|
|
1363
|
+
color?: string;
|
|
1364
|
+
description?: string;
|
|
1365
|
+
exclusive?: boolean;
|
|
1366
|
+
is_archived?: boolean;
|
|
1367
|
+
name?: string;
|
|
1368
|
+
}
|
|
1369
|
+
export const OrgEditLabelRequest = /*@__PURE__*/ S.suspend(() =>
|
|
1370
|
+
S.Struct({
|
|
1371
|
+
org: S.String.pipe(T.Label()),
|
|
1372
|
+
id: S.Number.pipe(T.Label()),
|
|
1373
|
+
color: S.optional(S.String),
|
|
1374
|
+
description: S.optional(S.String),
|
|
1375
|
+
exclusive: S.optional(S.Boolean),
|
|
1376
|
+
is_archived: S.optional(S.Boolean),
|
|
1377
|
+
name: S.optional(S.String),
|
|
1378
|
+
}).pipe(
|
|
1379
|
+
T.Http({ method: "PATCH", uri: "/orgs/{org}/labels/{id}", code: 200 }),
|
|
1380
|
+
),
|
|
1381
|
+
).annotate({
|
|
1382
|
+
identifier: "OrgEditLabelRequest",
|
|
1383
|
+
}) as any as S.Schema<OrgEditLabelRequest>;
|
|
1384
|
+
|
|
1385
|
+
export type OrgEditTeamRequestPermission = "read" | "write" | "admin";
|
|
1386
|
+
export const OrgEditTeamRequestPermission = /*@__PURE__*/ S.String;
|
|
1387
|
+
|
|
1388
|
+
export type OrgEditTeamRequestUnitsList = Array<string>;
|
|
1389
|
+
export const OrgEditTeamRequestUnitsList = /*@__PURE__*/ S.Array(
|
|
1390
|
+
S.String,
|
|
1391
|
+
) as any as S.Schema<OrgEditTeamRequestUnitsList>;
|
|
1392
|
+
|
|
1393
|
+
export type OrgEditTeamRequestUnitsMapMap = {
|
|
1394
|
+
[key: string]: string | undefined;
|
|
1395
|
+
};
|
|
1396
|
+
export const OrgEditTeamRequestUnitsMapMap = /*@__PURE__*/ S.Record(
|
|
1397
|
+
S.String,
|
|
1398
|
+
S.String,
|
|
1399
|
+
) as any as S.Schema<OrgEditTeamRequestUnitsMapMap>;
|
|
1400
|
+
|
|
1401
|
+
export interface OrgEditTeamRequest {
|
|
1402
|
+
/** id of the team to edit */
|
|
1403
|
+
id: number;
|
|
1404
|
+
can_create_org_repo?: boolean;
|
|
1405
|
+
description?: string;
|
|
1406
|
+
includes_all_repositories?: boolean;
|
|
1407
|
+
name: string;
|
|
1408
|
+
permission?: OrgEditTeamRequestPermission | (string & {});
|
|
1409
|
+
units?: OrgEditTeamRequestUnitsList;
|
|
1410
|
+
units_map?: OrgEditTeamRequestUnitsMapMap;
|
|
1411
|
+
}
|
|
1412
|
+
export const OrgEditTeamRequest = /*@__PURE__*/ S.suspend(() =>
|
|
1413
|
+
S.Struct({
|
|
1414
|
+
id: S.Number.pipe(T.Label()),
|
|
1415
|
+
can_create_org_repo: S.optional(S.Boolean),
|
|
1416
|
+
description: S.optional(S.String),
|
|
1417
|
+
includes_all_repositories: S.optional(S.Boolean),
|
|
1418
|
+
name: S.String,
|
|
1419
|
+
permission: S.optional(OrgEditTeamRequestPermission),
|
|
1420
|
+
units: S.optional(OrgEditTeamRequestUnitsList),
|
|
1421
|
+
units_map: S.optional(OrgEditTeamRequestUnitsMapMap),
|
|
1422
|
+
}).pipe(T.Http({ method: "PATCH", uri: "/teams/{id}", code: 200 })),
|
|
1423
|
+
).annotate({
|
|
1424
|
+
identifier: "OrgEditTeamRequest",
|
|
1425
|
+
}) as any as S.Schema<OrgEditTeamRequest>;
|
|
1426
|
+
|
|
1427
|
+
export interface OrgGetAllRequest {
|
|
1428
|
+
/** page number of results to return (1-based) */
|
|
1429
|
+
page?: number;
|
|
1430
|
+
/** page size of results */
|
|
1431
|
+
limit?: number;
|
|
1432
|
+
}
|
|
1433
|
+
export const OrgGetAllRequest = /*@__PURE__*/ S.suspend(() =>
|
|
1434
|
+
S.Struct({
|
|
1435
|
+
page: S.optional(S.Number.pipe(T.Query())),
|
|
1436
|
+
limit: S.optional(S.Number.pipe(T.Query())),
|
|
1437
|
+
}).pipe(T.Http({ method: "GET", uri: "/orgs", code: 200 })),
|
|
1438
|
+
).annotate({
|
|
1439
|
+
identifier: "OrgGetAllRequest",
|
|
1440
|
+
}) as any as S.Schema<OrgGetAllRequest>;
|
|
1441
|
+
|
|
1442
|
+
export type OrgGetAllResponseBodyList = Array<Organization>;
|
|
1443
|
+
export const OrgGetAllResponseBodyList = /*@__PURE__*/ S.Array(
|
|
1444
|
+
Organization,
|
|
1445
|
+
) as any as S.Schema<OrgGetAllResponseBodyList>;
|
|
1446
|
+
|
|
1447
|
+
export type OrgGetAllResponse = OrgGetAllResponseBodyList;
|
|
1448
|
+
export const OrgGetAllResponse = /*@__PURE__*/ S.suspend(() =>
|
|
1449
|
+
OrgGetAllResponseBodyList.pipe(T.RawResponseRoot()),
|
|
1450
|
+
).annotate({
|
|
1451
|
+
identifier: "OrgGetAllResponse",
|
|
1452
|
+
}) as any as S.Schema<OrgGetAllResponse>;
|
|
1453
|
+
|
|
1454
|
+
export interface OrgGetHookRequest {
|
|
1455
|
+
/** name of the organization */
|
|
1456
|
+
org: string;
|
|
1457
|
+
/** id of the hook to get */
|
|
1458
|
+
id: number;
|
|
1459
|
+
}
|
|
1460
|
+
export const OrgGetHookRequest = /*@__PURE__*/ S.suspend(() =>
|
|
1461
|
+
S.Struct({
|
|
1462
|
+
org: S.String.pipe(T.Label()),
|
|
1463
|
+
id: S.Number.pipe(T.Label()),
|
|
1464
|
+
}).pipe(T.Http({ method: "GET", uri: "/orgs/{org}/hooks/{id}", code: 200 })),
|
|
1465
|
+
).annotate({
|
|
1466
|
+
identifier: "OrgGetHookRequest",
|
|
1467
|
+
}) as any as S.Schema<OrgGetHookRequest>;
|
|
1468
|
+
|
|
1469
|
+
export interface OrgGetLabelRequest {
|
|
1470
|
+
/** name of the organization */
|
|
1471
|
+
org: string;
|
|
1472
|
+
/** id of the label to get */
|
|
1473
|
+
id: number;
|
|
1474
|
+
}
|
|
1475
|
+
export const OrgGetLabelRequest = /*@__PURE__*/ S.suspend(() =>
|
|
1476
|
+
S.Struct({
|
|
1477
|
+
org: S.String.pipe(T.Label()),
|
|
1478
|
+
id: S.Number.pipe(T.Label()),
|
|
1479
|
+
}).pipe(T.Http({ method: "GET", uri: "/orgs/{org}/labels/{id}", code: 200 })),
|
|
1480
|
+
).annotate({
|
|
1481
|
+
identifier: "OrgGetLabelRequest",
|
|
1482
|
+
}) as any as S.Schema<OrgGetLabelRequest>;
|
|
1483
|
+
|
|
1484
|
+
export interface OrgGetQuotaRequest {
|
|
1485
|
+
/** name of the organization */
|
|
1486
|
+
org: string;
|
|
1487
|
+
}
|
|
1488
|
+
export const OrgGetQuotaRequest = /*@__PURE__*/ S.suspend(() =>
|
|
1489
|
+
S.Struct({
|
|
1490
|
+
org: S.String.pipe(T.Label()),
|
|
1491
|
+
}).pipe(T.Http({ method: "GET", uri: "/orgs/{org}/quota", code: 200 })),
|
|
1492
|
+
).annotate({
|
|
1493
|
+
identifier: "OrgGetQuotaRequest",
|
|
1494
|
+
}) as any as S.Schema<OrgGetQuotaRequest>;
|
|
1495
|
+
|
|
1496
|
+
/** Subjects the rule affects */
|
|
1497
|
+
export type QuotaRuleInfoSubjectsList = Array<string>;
|
|
1498
|
+
export const QuotaRuleInfoSubjectsList = /*@__PURE__*/ S.Array(
|
|
1499
|
+
S.String,
|
|
1500
|
+
) as any as S.Schema<QuotaRuleInfoSubjectsList>;
|
|
1501
|
+
|
|
1502
|
+
/** QuotaRuleInfo contains information about a quota rule */
|
|
1503
|
+
export interface QuotaRuleInfo {
|
|
1504
|
+
/** The limit set by the rule */
|
|
1505
|
+
limit?: number;
|
|
1506
|
+
/** Name of the rule (only shown to admins) */
|
|
1507
|
+
name?: string;
|
|
1508
|
+
/** Subjects the rule affects */
|
|
1509
|
+
subjects?: QuotaRuleInfoSubjectsList;
|
|
1510
|
+
}
|
|
1511
|
+
export const QuotaRuleInfo = /*@__PURE__*/ S.suspend(() =>
|
|
1512
|
+
S.Struct({
|
|
1513
|
+
limit: S.optional(S.Number),
|
|
1514
|
+
name: S.optional(S.String),
|
|
1515
|
+
subjects: S.optional(QuotaRuleInfoSubjectsList),
|
|
1516
|
+
}),
|
|
1517
|
+
).annotate({ identifier: "QuotaRuleInfo" }) as any as S.Schema<QuotaRuleInfo>;
|
|
1518
|
+
|
|
1519
|
+
/** Rules associated with the group */
|
|
1520
|
+
export type QuotaGroupRulesList = Array<QuotaRuleInfo>;
|
|
1521
|
+
export const QuotaGroupRulesList = /*@__PURE__*/ S.Array(
|
|
1522
|
+
QuotaRuleInfo,
|
|
1523
|
+
) as any as S.Schema<QuotaGroupRulesList>;
|
|
1524
|
+
|
|
1525
|
+
/** QuotaGroup represents a quota group */
|
|
1526
|
+
export interface QuotaGroup {
|
|
1527
|
+
/** Name of the group */
|
|
1528
|
+
name?: string;
|
|
1529
|
+
/** Rules associated with the group */
|
|
1530
|
+
rules?: QuotaGroupRulesList;
|
|
1531
|
+
}
|
|
1532
|
+
export const QuotaGroup = /*@__PURE__*/ S.suspend(() =>
|
|
1533
|
+
S.Struct({
|
|
1534
|
+
name: S.optional(S.String),
|
|
1535
|
+
rules: S.optional(QuotaGroupRulesList),
|
|
1536
|
+
}),
|
|
1537
|
+
).annotate({ identifier: "QuotaGroup" }) as any as S.Schema<QuotaGroup>;
|
|
1538
|
+
|
|
1539
|
+
/** QuotaGroupList represents a list of quota groups */
|
|
1540
|
+
export type QuotaGroupList = Array<QuotaGroup>;
|
|
1541
|
+
export const QuotaGroupList = /*@__PURE__*/ S.Array(
|
|
1542
|
+
QuotaGroup,
|
|
1543
|
+
) as any as S.Schema<QuotaGroupList>;
|
|
1544
|
+
|
|
1545
|
+
/** QuotaUsedSizeAssetsAttachments represents the size-based attachment quota usage of a user */
|
|
1546
|
+
export interface QuotaUsedSizeAssetsAttachments {
|
|
1547
|
+
/** Storage size used for the user's issue & comment attachments */
|
|
1548
|
+
issues?: number;
|
|
1549
|
+
/** Storage size used for the user's release attachments */
|
|
1550
|
+
releases?: number;
|
|
1551
|
+
}
|
|
1552
|
+
export const QuotaUsedSizeAssetsAttachments = /*@__PURE__*/ S.suspend(() =>
|
|
1553
|
+
S.Struct({
|
|
1554
|
+
issues: S.optional(S.Number),
|
|
1555
|
+
releases: S.optional(S.Number),
|
|
1556
|
+
}),
|
|
1557
|
+
).annotate({
|
|
1558
|
+
identifier: "QuotaUsedSizeAssetsAttachments",
|
|
1559
|
+
}) as any as S.Schema<QuotaUsedSizeAssetsAttachments>;
|
|
1560
|
+
|
|
1561
|
+
/** QuotaUsedSizeAssetsPackages represents the size-based package quota usage of a user */
|
|
1562
|
+
export interface QuotaUsedSizeAssetsPackages {
|
|
1563
|
+
/** Storage suze used for the user's packages */
|
|
1564
|
+
all?: number;
|
|
1565
|
+
}
|
|
1566
|
+
export const QuotaUsedSizeAssetsPackages = /*@__PURE__*/ S.suspend(() =>
|
|
1567
|
+
S.Struct({
|
|
1568
|
+
all: S.optional(S.Number),
|
|
1569
|
+
}),
|
|
1570
|
+
).annotate({
|
|
1571
|
+
identifier: "QuotaUsedSizeAssetsPackages",
|
|
1572
|
+
}) as any as S.Schema<QuotaUsedSizeAssetsPackages>;
|
|
1573
|
+
|
|
1574
|
+
/** QuotaUsedSizeAssets represents the size-based asset usage of a user */
|
|
1575
|
+
export interface QuotaUsedSizeAssets {
|
|
1576
|
+
/** Storage size used for the user's artifacts */
|
|
1577
|
+
artifacts?: number;
|
|
1578
|
+
attachments?: QuotaUsedSizeAssetsAttachments;
|
|
1579
|
+
packages?: QuotaUsedSizeAssetsPackages;
|
|
1580
|
+
}
|
|
1581
|
+
export const QuotaUsedSizeAssets = /*@__PURE__*/ S.suspend(() =>
|
|
1582
|
+
S.Struct({
|
|
1583
|
+
artifacts: S.optional(S.Number),
|
|
1584
|
+
attachments: S.optional(QuotaUsedSizeAssetsAttachments),
|
|
1585
|
+
packages: S.optional(QuotaUsedSizeAssetsPackages),
|
|
1586
|
+
}),
|
|
1587
|
+
).annotate({
|
|
1588
|
+
identifier: "QuotaUsedSizeAssets",
|
|
1589
|
+
}) as any as S.Schema<QuotaUsedSizeAssets>;
|
|
1590
|
+
|
|
1591
|
+
/** QuotaUsedSizeGit represents the size-based git (lfs) quota usage of a user */
|
|
1592
|
+
export interface QuotaUsedSizeGit {
|
|
1593
|
+
/** Storage size of the user's Git LFS objects */
|
|
1594
|
+
LFS?: number;
|
|
1595
|
+
}
|
|
1596
|
+
export const QuotaUsedSizeGit = /*@__PURE__*/ S.suspend(() =>
|
|
1597
|
+
S.Struct({
|
|
1598
|
+
LFS: S.optional(S.Number),
|
|
1599
|
+
}),
|
|
1600
|
+
).annotate({
|
|
1601
|
+
identifier: "QuotaUsedSizeGit",
|
|
1602
|
+
}) as any as S.Schema<QuotaUsedSizeGit>;
|
|
1603
|
+
|
|
1604
|
+
/** QuotaUsedSizeRepos represents the size-based repository quota usage of a user */
|
|
1605
|
+
export interface QuotaUsedSizeRepos {
|
|
1606
|
+
/** Storage size of the user's private repositories */
|
|
1607
|
+
private?: number;
|
|
1608
|
+
/** Storage size of the user's public repositories */
|
|
1609
|
+
public?: number;
|
|
1610
|
+
}
|
|
1611
|
+
export const QuotaUsedSizeRepos = /*@__PURE__*/ S.suspend(() =>
|
|
1612
|
+
S.Struct({
|
|
1613
|
+
private: S.optional(S.Number),
|
|
1614
|
+
public: S.optional(S.Number),
|
|
1615
|
+
}),
|
|
1616
|
+
).annotate({
|
|
1617
|
+
identifier: "QuotaUsedSizeRepos",
|
|
1618
|
+
}) as any as S.Schema<QuotaUsedSizeRepos>;
|
|
1619
|
+
|
|
1620
|
+
/** QuotaUsedSize represents the size-based quota usage of a user */
|
|
1621
|
+
export interface QuotaUsedSize {
|
|
1622
|
+
assets?: QuotaUsedSizeAssets;
|
|
1623
|
+
git?: QuotaUsedSizeGit;
|
|
1624
|
+
repos?: QuotaUsedSizeRepos;
|
|
1625
|
+
}
|
|
1626
|
+
export const QuotaUsedSize = /*@__PURE__*/ S.suspend(() =>
|
|
1627
|
+
S.Struct({
|
|
1628
|
+
assets: S.optional(QuotaUsedSizeAssets),
|
|
1629
|
+
git: S.optional(QuotaUsedSizeGit),
|
|
1630
|
+
repos: S.optional(QuotaUsedSizeRepos),
|
|
1631
|
+
}),
|
|
1632
|
+
).annotate({ identifier: "QuotaUsedSize" }) as any as S.Schema<QuotaUsedSize>;
|
|
1633
|
+
|
|
1634
|
+
/** QuotaUsed represents the quota usage of a user */
|
|
1635
|
+
export interface QuotaUsed {
|
|
1636
|
+
size?: QuotaUsedSize;
|
|
1637
|
+
}
|
|
1638
|
+
export const QuotaUsed = /*@__PURE__*/ S.suspend(() =>
|
|
1639
|
+
S.Struct({
|
|
1640
|
+
size: S.optional(QuotaUsedSize),
|
|
1641
|
+
}),
|
|
1642
|
+
).annotate({ identifier: "QuotaUsed" }) as any as S.Schema<QuotaUsed>;
|
|
1643
|
+
|
|
1644
|
+
/** QuotaInfo represents information about a user's quota */
|
|
1645
|
+
export interface QuotaInfo {
|
|
1646
|
+
groups?: QuotaGroupList;
|
|
1647
|
+
used?: QuotaUsed;
|
|
1648
|
+
}
|
|
1649
|
+
export const QuotaInfo = /*@__PURE__*/ S.suspend(() =>
|
|
1650
|
+
S.Struct({
|
|
1651
|
+
groups: S.optional(QuotaGroupList),
|
|
1652
|
+
used: S.optional(QuotaUsed),
|
|
1653
|
+
}),
|
|
1654
|
+
).annotate({ identifier: "QuotaInfo" }) as any as S.Schema<QuotaInfo>;
|
|
1655
|
+
|
|
1656
|
+
export interface OrgGetTeamRequest {
|
|
1657
|
+
/** id of the team to get */
|
|
1658
|
+
id: number;
|
|
1659
|
+
}
|
|
1660
|
+
export const OrgGetTeamRequest = /*@__PURE__*/ S.suspend(() =>
|
|
1661
|
+
S.Struct({
|
|
1662
|
+
id: S.Number.pipe(T.Label()),
|
|
1663
|
+
}).pipe(T.Http({ method: "GET", uri: "/teams/{id}", code: 200 })),
|
|
1664
|
+
).annotate({
|
|
1665
|
+
identifier: "OrgGetTeamRequest",
|
|
1666
|
+
}) as any as S.Schema<OrgGetTeamRequest>;
|
|
1667
|
+
|
|
1668
|
+
export interface OrgGetUserPermissionsRequest {
|
|
1669
|
+
/** username of user */
|
|
1670
|
+
username: string;
|
|
1671
|
+
/** name of the organization */
|
|
1672
|
+
org: string;
|
|
1673
|
+
}
|
|
1674
|
+
export const OrgGetUserPermissionsRequest = /*@__PURE__*/ S.suspend(() =>
|
|
1675
|
+
S.Struct({
|
|
1676
|
+
username: S.String.pipe(T.Label()),
|
|
1677
|
+
org: S.String.pipe(T.Label()),
|
|
1678
|
+
}).pipe(
|
|
1679
|
+
T.Http({
|
|
1680
|
+
method: "GET",
|
|
1681
|
+
uri: "/users/{username}/orgs/{org}/permissions",
|
|
1682
|
+
code: 200,
|
|
1683
|
+
}),
|
|
1684
|
+
),
|
|
1685
|
+
).annotate({
|
|
1686
|
+
identifier: "OrgGetUserPermissionsRequest",
|
|
1687
|
+
}) as any as S.Schema<OrgGetUserPermissionsRequest>;
|
|
1688
|
+
|
|
1689
|
+
/** OrganizationPermissions list different users permissions on an organization */
|
|
1690
|
+
export interface OrganizationPermissions {
|
|
1691
|
+
can_create_repository?: boolean;
|
|
1692
|
+
can_read?: boolean;
|
|
1693
|
+
can_write?: boolean;
|
|
1694
|
+
is_admin?: boolean;
|
|
1695
|
+
is_owner?: boolean;
|
|
1696
|
+
}
|
|
1697
|
+
export const OrganizationPermissions = /*@__PURE__*/ S.suspend(() =>
|
|
1698
|
+
S.Struct({
|
|
1699
|
+
can_create_repository: S.optional(S.Boolean),
|
|
1700
|
+
can_read: S.optional(S.Boolean),
|
|
1701
|
+
can_write: S.optional(S.Boolean),
|
|
1702
|
+
is_admin: S.optional(S.Boolean),
|
|
1703
|
+
is_owner: S.optional(S.Boolean),
|
|
1704
|
+
}),
|
|
1705
|
+
).annotate({
|
|
1706
|
+
identifier: "OrganizationPermissions",
|
|
1707
|
+
}) as any as S.Schema<OrganizationPermissions>;
|
|
1708
|
+
|
|
1709
|
+
export interface OrgIsMemberRequest {
|
|
1710
|
+
/** name of the organization */
|
|
1711
|
+
org: string;
|
|
1712
|
+
/** username of the user */
|
|
1713
|
+
username: string;
|
|
1714
|
+
}
|
|
1715
|
+
export const OrgIsMemberRequest = /*@__PURE__*/ S.suspend(() =>
|
|
1716
|
+
S.Struct({
|
|
1717
|
+
org: S.String.pipe(T.Label()),
|
|
1718
|
+
username: S.String.pipe(T.Label()),
|
|
1719
|
+
}).pipe(
|
|
1720
|
+
T.Http({ method: "GET", uri: "/orgs/{org}/members/{username}", code: 200 }),
|
|
1721
|
+
),
|
|
1722
|
+
).annotate({
|
|
1723
|
+
identifier: "OrgIsMemberRequest",
|
|
1724
|
+
}) as any as S.Schema<OrgIsMemberRequest>;
|
|
1725
|
+
|
|
1726
|
+
export interface OrgIsMemberResponse {}
|
|
1727
|
+
export const OrgIsMemberResponse = /*@__PURE__*/ S.suspend(() =>
|
|
1728
|
+
S.Struct({}),
|
|
1729
|
+
).annotate({
|
|
1730
|
+
identifier: "OrgIsMemberResponse",
|
|
1731
|
+
}) as any as S.Schema<OrgIsMemberResponse>;
|
|
1732
|
+
|
|
1733
|
+
export interface OrgIsPublicMemberRequest {
|
|
1734
|
+
/** name of the organization */
|
|
1735
|
+
org: string;
|
|
1736
|
+
/** username of the user */
|
|
1737
|
+
username: string;
|
|
1738
|
+
}
|
|
1739
|
+
export const OrgIsPublicMemberRequest = /*@__PURE__*/ S.suspend(() =>
|
|
1740
|
+
S.Struct({
|
|
1741
|
+
org: S.String.pipe(T.Label()),
|
|
1742
|
+
username: S.String.pipe(T.Label()),
|
|
1743
|
+
}).pipe(
|
|
1744
|
+
T.Http({
|
|
1745
|
+
method: "GET",
|
|
1746
|
+
uri: "/orgs/{org}/public_members/{username}",
|
|
1747
|
+
code: 200,
|
|
1748
|
+
}),
|
|
1749
|
+
),
|
|
1750
|
+
).annotate({
|
|
1751
|
+
identifier: "OrgIsPublicMemberRequest",
|
|
1752
|
+
}) as any as S.Schema<OrgIsPublicMemberRequest>;
|
|
1753
|
+
|
|
1754
|
+
export interface OrgIsPublicMemberResponse {}
|
|
1755
|
+
export const OrgIsPublicMemberResponse = /*@__PURE__*/ S.suspend(() =>
|
|
1756
|
+
S.Struct({}),
|
|
1757
|
+
).annotate({
|
|
1758
|
+
identifier: "OrgIsPublicMemberResponse",
|
|
1759
|
+
}) as any as S.Schema<OrgIsPublicMemberResponse>;
|
|
1760
|
+
|
|
1761
|
+
export interface OrgListActionsSecretsRequest {
|
|
1762
|
+
/** name of the organization */
|
|
1763
|
+
org: string;
|
|
1764
|
+
/** page number of results to return (1-based) */
|
|
1765
|
+
page?: number;
|
|
1766
|
+
/** page size of results */
|
|
1767
|
+
limit?: number;
|
|
1768
|
+
}
|
|
1769
|
+
export const OrgListActionsSecretsRequest = /*@__PURE__*/ S.suspend(() =>
|
|
1770
|
+
S.Struct({
|
|
1771
|
+
org: S.String.pipe(T.Label()),
|
|
1772
|
+
page: S.optional(S.Number.pipe(T.Query())),
|
|
1773
|
+
limit: S.optional(S.Number.pipe(T.Query())),
|
|
1774
|
+
}).pipe(
|
|
1775
|
+
T.Http({ method: "GET", uri: "/orgs/{org}/actions/secrets", code: 200 }),
|
|
1776
|
+
),
|
|
1777
|
+
).annotate({
|
|
1778
|
+
identifier: "OrgListActionsSecretsRequest",
|
|
1779
|
+
}) as any as S.Schema<OrgListActionsSecretsRequest>;
|
|
1780
|
+
|
|
1781
|
+
/** Secret represents a secret */
|
|
1782
|
+
export interface Secret {
|
|
1783
|
+
created_at: string;
|
|
1784
|
+
/** the secret's name */
|
|
1785
|
+
name: string;
|
|
1786
|
+
}
|
|
1787
|
+
export const Secret = /*@__PURE__*/ S.suspend(() =>
|
|
1788
|
+
S.Struct({
|
|
1789
|
+
created_at: S.String,
|
|
1790
|
+
name: S.String,
|
|
1791
|
+
}),
|
|
1792
|
+
).annotate({ identifier: "Secret" }) as any as S.Schema<Secret>;
|
|
1793
|
+
|
|
1794
|
+
export type OrgListActionsSecretsResponseBodyList = Array<Secret>;
|
|
1795
|
+
export const OrgListActionsSecretsResponseBodyList = /*@__PURE__*/ S.Array(
|
|
1796
|
+
Secret,
|
|
1797
|
+
) as any as S.Schema<OrgListActionsSecretsResponseBodyList>;
|
|
1798
|
+
|
|
1799
|
+
export type OrgListActionsSecretsResponse =
|
|
1800
|
+
OrgListActionsSecretsResponseBodyList;
|
|
1801
|
+
export const OrgListActionsSecretsResponse = /*@__PURE__*/ S.suspend(() =>
|
|
1802
|
+
OrgListActionsSecretsResponseBodyList.pipe(T.RawResponseRoot()),
|
|
1803
|
+
).annotate({
|
|
1804
|
+
identifier: "OrgListActionsSecretsResponse",
|
|
1805
|
+
}) as any as S.Schema<OrgListActionsSecretsResponse>;
|
|
1806
|
+
|
|
1807
|
+
export interface OrgListActivityFeedsRequest {
|
|
1808
|
+
/** name of the org */
|
|
1809
|
+
org: string;
|
|
1810
|
+
/** the date of the activities to be found */
|
|
1811
|
+
date?: string;
|
|
1812
|
+
/** page number of results to return (1-based) */
|
|
1813
|
+
page?: number;
|
|
1814
|
+
/** page size of results */
|
|
1815
|
+
limit?: number;
|
|
1816
|
+
}
|
|
1817
|
+
export const OrgListActivityFeedsRequest = /*@__PURE__*/ S.suspend(() =>
|
|
1818
|
+
S.Struct({
|
|
1819
|
+
org: S.String.pipe(T.Label()),
|
|
1820
|
+
date: S.optional(S.String.pipe(T.Query())),
|
|
1821
|
+
page: S.optional(S.Number.pipe(T.Query())),
|
|
1822
|
+
limit: S.optional(S.Number.pipe(T.Query())),
|
|
1823
|
+
}).pipe(
|
|
1824
|
+
T.Http({ method: "GET", uri: "/orgs/{org}/activities/feeds", code: 200 }),
|
|
1825
|
+
),
|
|
1826
|
+
).annotate({
|
|
1827
|
+
identifier: "OrgListActivityFeedsRequest",
|
|
1828
|
+
}) as any as S.Schema<OrgListActivityFeedsRequest>;
|
|
1829
|
+
|
|
1830
|
+
export type AttachmentType = "attachment" | "external";
|
|
1831
|
+
export const AttachmentType = /*@__PURE__*/ S.String;
|
|
1832
|
+
|
|
1833
|
+
/** Attachment a generic attachment */
|
|
1834
|
+
export interface Attachment {
|
|
1835
|
+
browser_download_url?: string;
|
|
1836
|
+
created_at?: string;
|
|
1837
|
+
download_count?: number;
|
|
1838
|
+
id?: number;
|
|
1839
|
+
name?: string;
|
|
1840
|
+
size?: number;
|
|
1841
|
+
type?: AttachmentType;
|
|
1842
|
+
uuid?: string;
|
|
1843
|
+
}
|
|
1844
|
+
export const Attachment = /*@__PURE__*/ S.suspend(() =>
|
|
1845
|
+
S.Struct({
|
|
1846
|
+
browser_download_url: S.optional(S.String),
|
|
1847
|
+
created_at: S.optional(S.String),
|
|
1848
|
+
download_count: S.optional(S.Number),
|
|
1849
|
+
id: S.optional(S.Number),
|
|
1850
|
+
name: S.optional(S.String),
|
|
1851
|
+
size: S.optional(S.Number),
|
|
1852
|
+
type: S.optional(AttachmentType),
|
|
1853
|
+
uuid: S.optional(S.String),
|
|
1854
|
+
}),
|
|
1855
|
+
).annotate({ identifier: "Attachment" }) as any as S.Schema<Attachment>;
|
|
1856
|
+
|
|
1857
|
+
/** The attachments to the comment */
|
|
1858
|
+
export type CommentAssetsList = Array<Attachment>;
|
|
1859
|
+
export const CommentAssetsList = /*@__PURE__*/ S.Array(
|
|
1860
|
+
Attachment,
|
|
1861
|
+
) as any as S.Schema<CommentAssetsList>;
|
|
1862
|
+
|
|
1863
|
+
/** Comment represents a comment on a commit or issue */
|
|
1864
|
+
export interface Comment {
|
|
1865
|
+
/** The attachments to the comment */
|
|
1866
|
+
assets?: CommentAssetsList;
|
|
1867
|
+
/** The body of the comment */
|
|
1868
|
+
body?: string;
|
|
1869
|
+
/** The time of the comment's creation */
|
|
1870
|
+
created_at?: string;
|
|
1871
|
+
/** The HTML URL of the comment */
|
|
1872
|
+
html_url?: string;
|
|
1873
|
+
/** The identifier of the comment */
|
|
1874
|
+
id?: number;
|
|
1875
|
+
/** The HTML URL of the issue if the comment is posted on an issue, else empty string */
|
|
1876
|
+
issue_url?: string;
|
|
1877
|
+
/** The original author that posted the comment if it was not posted locally, else empty string */
|
|
1878
|
+
original_author?: string;
|
|
1879
|
+
/** The ID of the original author that posted the comment if it was not posted locally, else 0 */
|
|
1880
|
+
original_author_id?: number;
|
|
1881
|
+
/** The HTML URL of the pull request if the comment is posted on a pull request, else empty string */
|
|
1882
|
+
pull_request_url?: string;
|
|
1883
|
+
/** The time of the comment's update */
|
|
1884
|
+
updated_at?: string;
|
|
1885
|
+
user?: User;
|
|
1886
|
+
}
|
|
1887
|
+
export const Comment = /*@__PURE__*/ S.suspend(() =>
|
|
1888
|
+
S.Struct({
|
|
1889
|
+
assets: S.optional(CommentAssetsList),
|
|
1890
|
+
body: S.optional(S.String),
|
|
1891
|
+
created_at: S.optional(S.String),
|
|
1892
|
+
html_url: S.optional(S.String),
|
|
1893
|
+
id: S.optional(S.Number),
|
|
1894
|
+
issue_url: S.optional(S.String),
|
|
1895
|
+
original_author: S.optional(S.String),
|
|
1896
|
+
original_author_id: S.optional(S.Number),
|
|
1897
|
+
pull_request_url: S.optional(S.String),
|
|
1898
|
+
updated_at: S.optional(S.String),
|
|
1899
|
+
user: S.optional(User),
|
|
1900
|
+
}),
|
|
1901
|
+
).annotate({ identifier: "Comment" }) as any as S.Schema<Comment>;
|
|
1902
|
+
|
|
1903
|
+
/** the type of action */
|
|
1904
|
+
export type ActivityOpType =
|
|
1905
|
+
| "create_repo"
|
|
1906
|
+
| "rename_repo"
|
|
1907
|
+
| "star_repo"
|
|
1908
|
+
| "watch_repo"
|
|
1909
|
+
| "commit_repo"
|
|
1910
|
+
| "create_issue"
|
|
1911
|
+
| "create_pull_request"
|
|
1912
|
+
| "transfer_repo"
|
|
1913
|
+
| "push_tag"
|
|
1914
|
+
| "comment_issue"
|
|
1915
|
+
| "merge_pull_request"
|
|
1916
|
+
| "close_issue"
|
|
1917
|
+
| "reopen_issue"
|
|
1918
|
+
| "close_pull_request"
|
|
1919
|
+
| "reopen_pull_request"
|
|
1920
|
+
| "delete_tag"
|
|
1921
|
+
| "delete_branch"
|
|
1922
|
+
| "mirror_sync_push"
|
|
1923
|
+
| "mirror_sync_create"
|
|
1924
|
+
| "mirror_sync_delete"
|
|
1925
|
+
| "approve_pull_request"
|
|
1926
|
+
| "reject_pull_request"
|
|
1927
|
+
| "comment_pull"
|
|
1928
|
+
| "publish_release"
|
|
1929
|
+
| "pull_review_dismissed"
|
|
1930
|
+
| "pull_request_ready_for_review"
|
|
1931
|
+
| "auto_merge_pull_request";
|
|
1932
|
+
export const ActivityOpType = /*@__PURE__*/ S.String;
|
|
1933
|
+
|
|
1934
|
+
export interface Activity {
|
|
1935
|
+
act_user?: User;
|
|
1936
|
+
act_user_id?: number;
|
|
1937
|
+
comment?: Comment;
|
|
1938
|
+
comment_id?: number;
|
|
1939
|
+
content?: string;
|
|
1940
|
+
created?: string;
|
|
1941
|
+
id?: number;
|
|
1942
|
+
is_private?: boolean;
|
|
1943
|
+
/** the type of action */
|
|
1944
|
+
op_type?: ActivityOpType;
|
|
1945
|
+
ref_name?: string;
|
|
1946
|
+
repo?: Repository;
|
|
1947
|
+
repo_id?: number;
|
|
1948
|
+
user_id?: number;
|
|
1949
|
+
}
|
|
1950
|
+
export const Activity = /*@__PURE__*/ S.suspend(() =>
|
|
1951
|
+
S.Struct({
|
|
1952
|
+
act_user: S.optional(User),
|
|
1953
|
+
act_user_id: S.optional(S.Number),
|
|
1954
|
+
comment: S.optional(Comment),
|
|
1955
|
+
comment_id: S.optional(S.Number),
|
|
1956
|
+
content: S.optional(S.String),
|
|
1957
|
+
created: S.optional(S.String),
|
|
1958
|
+
id: S.optional(S.Number),
|
|
1959
|
+
is_private: S.optional(S.Boolean),
|
|
1960
|
+
op_type: S.optional(ActivityOpType),
|
|
1961
|
+
ref_name: S.optional(S.String),
|
|
1962
|
+
repo: S.optional(Repository),
|
|
1963
|
+
repo_id: S.optional(S.Number),
|
|
1964
|
+
user_id: S.optional(S.Number),
|
|
1965
|
+
}),
|
|
1966
|
+
).annotate({ identifier: "Activity" }) as any as S.Schema<Activity>;
|
|
1967
|
+
|
|
1968
|
+
export type OrgListActivityFeedsResponseBodyList = Array<Activity>;
|
|
1969
|
+
export const OrgListActivityFeedsResponseBodyList = /*@__PURE__*/ S.Array(
|
|
1970
|
+
Activity,
|
|
1971
|
+
) as any as S.Schema<OrgListActivityFeedsResponseBodyList>;
|
|
1972
|
+
|
|
1973
|
+
export type OrgListActivityFeedsResponse = OrgListActivityFeedsResponseBodyList;
|
|
1974
|
+
export const OrgListActivityFeedsResponse = /*@__PURE__*/ S.suspend(() =>
|
|
1975
|
+
OrgListActivityFeedsResponseBodyList.pipe(T.RawResponseRoot()),
|
|
1976
|
+
).annotate({
|
|
1977
|
+
identifier: "OrgListActivityFeedsResponse",
|
|
1978
|
+
}) as any as S.Schema<OrgListActivityFeedsResponse>;
|
|
1979
|
+
|
|
1980
|
+
export interface OrgListBlockedUsersRequest {
|
|
1981
|
+
/** name of the org */
|
|
1982
|
+
org: string;
|
|
1983
|
+
/** page number of results to return (1-based) */
|
|
1984
|
+
page?: number;
|
|
1985
|
+
/** page size of results */
|
|
1986
|
+
limit?: number;
|
|
1987
|
+
}
|
|
1988
|
+
export const OrgListBlockedUsersRequest = /*@__PURE__*/ S.suspend(() =>
|
|
1989
|
+
S.Struct({
|
|
1990
|
+
org: S.String.pipe(T.Label()),
|
|
1991
|
+
page: S.optional(S.Number.pipe(T.Query())),
|
|
1992
|
+
limit: S.optional(S.Number.pipe(T.Query())),
|
|
1993
|
+
}).pipe(
|
|
1994
|
+
T.Http({ method: "GET", uri: "/orgs/{org}/list_blocked", code: 200 }),
|
|
1995
|
+
),
|
|
1996
|
+
).annotate({
|
|
1997
|
+
identifier: "OrgListBlockedUsersRequest",
|
|
1998
|
+
}) as any as S.Schema<OrgListBlockedUsersRequest>;
|
|
1999
|
+
|
|
2000
|
+
export interface BlockedUser {
|
|
2001
|
+
block_id?: number;
|
|
2002
|
+
created_at?: string;
|
|
2003
|
+
}
|
|
2004
|
+
export const BlockedUser = /*@__PURE__*/ S.suspend(() =>
|
|
2005
|
+
S.Struct({
|
|
2006
|
+
block_id: S.optional(S.Number),
|
|
2007
|
+
created_at: S.optional(S.String),
|
|
2008
|
+
}),
|
|
2009
|
+
).annotate({ identifier: "BlockedUser" }) as any as S.Schema<BlockedUser>;
|
|
2010
|
+
|
|
2011
|
+
export type OrgListBlockedUsersResponseBodyList = Array<BlockedUser>;
|
|
2012
|
+
export const OrgListBlockedUsersResponseBodyList = /*@__PURE__*/ S.Array(
|
|
2013
|
+
BlockedUser,
|
|
2014
|
+
) as any as S.Schema<OrgListBlockedUsersResponseBodyList>;
|
|
2015
|
+
|
|
2016
|
+
export type OrgListBlockedUsersResponse = OrgListBlockedUsersResponseBodyList;
|
|
2017
|
+
export const OrgListBlockedUsersResponse = /*@__PURE__*/ S.suspend(() =>
|
|
2018
|
+
OrgListBlockedUsersResponseBodyList.pipe(T.RawResponseRoot()),
|
|
2019
|
+
).annotate({
|
|
2020
|
+
identifier: "OrgListBlockedUsersResponse",
|
|
2021
|
+
}) as any as S.Schema<OrgListBlockedUsersResponse>;
|
|
2022
|
+
|
|
2023
|
+
export interface OrgListCurrentUserOrgsRequest {
|
|
2024
|
+
/** page number of results to return (1-based) */
|
|
2025
|
+
page?: number;
|
|
2026
|
+
/** page size of results */
|
|
2027
|
+
limit?: number;
|
|
2028
|
+
}
|
|
2029
|
+
export const OrgListCurrentUserOrgsRequest = /*@__PURE__*/ S.suspend(() =>
|
|
2030
|
+
S.Struct({
|
|
2031
|
+
page: S.optional(S.Number.pipe(T.Query())),
|
|
2032
|
+
limit: S.optional(S.Number.pipe(T.Query())),
|
|
2033
|
+
}).pipe(T.Http({ method: "GET", uri: "/user/orgs", code: 200 })),
|
|
2034
|
+
).annotate({
|
|
2035
|
+
identifier: "OrgListCurrentUserOrgsRequest",
|
|
2036
|
+
}) as any as S.Schema<OrgListCurrentUserOrgsRequest>;
|
|
2037
|
+
|
|
2038
|
+
export type OrgListCurrentUserOrgsResponseBodyList = Array<Organization>;
|
|
2039
|
+
export const OrgListCurrentUserOrgsResponseBodyList = /*@__PURE__*/ S.Array(
|
|
2040
|
+
Organization,
|
|
2041
|
+
) as any as S.Schema<OrgListCurrentUserOrgsResponseBodyList>;
|
|
2042
|
+
|
|
2043
|
+
export type OrgListCurrentUserOrgsResponse =
|
|
2044
|
+
OrgListCurrentUserOrgsResponseBodyList;
|
|
2045
|
+
export const OrgListCurrentUserOrgsResponse = /*@__PURE__*/ S.suspend(() =>
|
|
2046
|
+
OrgListCurrentUserOrgsResponseBodyList.pipe(T.RawResponseRoot()),
|
|
2047
|
+
).annotate({
|
|
2048
|
+
identifier: "OrgListCurrentUserOrgsResponse",
|
|
2049
|
+
}) as any as S.Schema<OrgListCurrentUserOrgsResponse>;
|
|
2050
|
+
|
|
2051
|
+
export interface OrgListHooksRequest {
|
|
2052
|
+
/** name of the organization */
|
|
2053
|
+
org: string;
|
|
2054
|
+
/** page number of results to return (1-based) */
|
|
2055
|
+
page?: number;
|
|
2056
|
+
/** page size of results */
|
|
2057
|
+
limit?: number;
|
|
2058
|
+
}
|
|
2059
|
+
export const OrgListHooksRequest = /*@__PURE__*/ S.suspend(() =>
|
|
2060
|
+
S.Struct({
|
|
2061
|
+
org: S.String.pipe(T.Label()),
|
|
2062
|
+
page: S.optional(S.Number.pipe(T.Query())),
|
|
2063
|
+
limit: S.optional(S.Number.pipe(T.Query())),
|
|
2064
|
+
}).pipe(T.Http({ method: "GET", uri: "/orgs/{org}/hooks", code: 200 })),
|
|
2065
|
+
).annotate({
|
|
2066
|
+
identifier: "OrgListHooksRequest",
|
|
2067
|
+
}) as any as S.Schema<OrgListHooksRequest>;
|
|
2068
|
+
|
|
2069
|
+
export type OrgListHooksResponseBodyList = Array<Hook>;
|
|
2070
|
+
export const OrgListHooksResponseBodyList = /*@__PURE__*/ S.Array(
|
|
2071
|
+
Hook,
|
|
2072
|
+
) as any as S.Schema<OrgListHooksResponseBodyList>;
|
|
2073
|
+
|
|
2074
|
+
export type OrgListHooksResponse = OrgListHooksResponseBodyList;
|
|
2075
|
+
export const OrgListHooksResponse = /*@__PURE__*/ S.suspend(() =>
|
|
2076
|
+
OrgListHooksResponseBodyList.pipe(T.RawResponseRoot()),
|
|
2077
|
+
).annotate({
|
|
2078
|
+
identifier: "OrgListHooksResponse",
|
|
2079
|
+
}) as any as S.Schema<OrgListHooksResponse>;
|
|
2080
|
+
|
|
2081
|
+
export type OrgListLabelsRequestSort =
|
|
2082
|
+
| "mostissues"
|
|
2083
|
+
| "leastissues"
|
|
2084
|
+
| "reversealphabetically";
|
|
2085
|
+
export const OrgListLabelsRequestSort = /*@__PURE__*/ S.String;
|
|
2086
|
+
|
|
2087
|
+
export interface OrgListLabelsRequest {
|
|
2088
|
+
/** name of the organization */
|
|
2089
|
+
org: string;
|
|
2090
|
+
/** Specifies the sorting method: mostissues, leastissues, or reversealphabetically. */
|
|
2091
|
+
sort?: OrgListLabelsRequestSort | (string & {});
|
|
2092
|
+
/** page number of results to return (1-based) */
|
|
2093
|
+
page?: number;
|
|
2094
|
+
/** page size of results */
|
|
2095
|
+
limit?: number;
|
|
2096
|
+
}
|
|
2097
|
+
export const OrgListLabelsRequest = /*@__PURE__*/ S.suspend(() =>
|
|
2098
|
+
S.Struct({
|
|
2099
|
+
org: S.String.pipe(T.Label()),
|
|
2100
|
+
sort: S.optional(OrgListLabelsRequestSort.pipe(T.Query())),
|
|
2101
|
+
page: S.optional(S.Number.pipe(T.Query())),
|
|
2102
|
+
limit: S.optional(S.Number.pipe(T.Query())),
|
|
2103
|
+
}).pipe(T.Http({ method: "GET", uri: "/orgs/{org}/labels", code: 200 })),
|
|
2104
|
+
).annotate({
|
|
2105
|
+
identifier: "OrgListLabelsRequest",
|
|
2106
|
+
}) as any as S.Schema<OrgListLabelsRequest>;
|
|
2107
|
+
|
|
2108
|
+
export type OrgListLabelsResponseBodyList = Array<Label>;
|
|
2109
|
+
export const OrgListLabelsResponseBodyList = /*@__PURE__*/ S.Array(
|
|
2110
|
+
Label,
|
|
2111
|
+
) as any as S.Schema<OrgListLabelsResponseBodyList>;
|
|
2112
|
+
|
|
2113
|
+
export type OrgListLabelsResponse = OrgListLabelsResponseBodyList;
|
|
2114
|
+
export const OrgListLabelsResponse = /*@__PURE__*/ S.suspend(() =>
|
|
2115
|
+
OrgListLabelsResponseBodyList.pipe(T.RawResponseRoot()),
|
|
2116
|
+
).annotate({
|
|
2117
|
+
identifier: "OrgListLabelsResponse",
|
|
2118
|
+
}) as any as S.Schema<OrgListLabelsResponse>;
|
|
2119
|
+
|
|
2120
|
+
export interface OrgListMembersRequest {
|
|
2121
|
+
/** name of the organization */
|
|
2122
|
+
org: string;
|
|
2123
|
+
/** page number of results to return (1-based) */
|
|
2124
|
+
page?: number;
|
|
2125
|
+
/** page size of results */
|
|
2126
|
+
limit?: number;
|
|
2127
|
+
}
|
|
2128
|
+
export const OrgListMembersRequest = /*@__PURE__*/ S.suspend(() =>
|
|
2129
|
+
S.Struct({
|
|
2130
|
+
org: S.String.pipe(T.Label()),
|
|
2131
|
+
page: S.optional(S.Number.pipe(T.Query())),
|
|
2132
|
+
limit: S.optional(S.Number.pipe(T.Query())),
|
|
2133
|
+
}).pipe(T.Http({ method: "GET", uri: "/orgs/{org}/members", code: 200 })),
|
|
2134
|
+
).annotate({
|
|
2135
|
+
identifier: "OrgListMembersRequest",
|
|
2136
|
+
}) as any as S.Schema<OrgListMembersRequest>;
|
|
2137
|
+
|
|
2138
|
+
export type OrgListMembersResponseBodyList = Array<User>;
|
|
2139
|
+
export const OrgListMembersResponseBodyList = /*@__PURE__*/ S.Array(
|
|
2140
|
+
User,
|
|
2141
|
+
) as any as S.Schema<OrgListMembersResponseBodyList>;
|
|
2142
|
+
|
|
2143
|
+
export type OrgListMembersResponse = OrgListMembersResponseBodyList;
|
|
2144
|
+
export const OrgListMembersResponse = /*@__PURE__*/ S.suspend(() =>
|
|
2145
|
+
OrgListMembersResponseBodyList.pipe(T.RawResponseRoot()),
|
|
2146
|
+
).annotate({
|
|
2147
|
+
identifier: "OrgListMembersResponse",
|
|
2148
|
+
}) as any as S.Schema<OrgListMembersResponse>;
|
|
2149
|
+
|
|
2150
|
+
export interface OrgListPublicMembersRequest {
|
|
2151
|
+
/** name of the organization */
|
|
2152
|
+
org: string;
|
|
2153
|
+
/** page number of results to return (1-based) */
|
|
2154
|
+
page?: number;
|
|
2155
|
+
/** page size of results */
|
|
2156
|
+
limit?: number;
|
|
2157
|
+
}
|
|
2158
|
+
export const OrgListPublicMembersRequest = /*@__PURE__*/ S.suspend(() =>
|
|
2159
|
+
S.Struct({
|
|
2160
|
+
org: S.String.pipe(T.Label()),
|
|
2161
|
+
page: S.optional(S.Number.pipe(T.Query())),
|
|
2162
|
+
limit: S.optional(S.Number.pipe(T.Query())),
|
|
2163
|
+
}).pipe(
|
|
2164
|
+
T.Http({ method: "GET", uri: "/orgs/{org}/public_members", code: 200 }),
|
|
2165
|
+
),
|
|
2166
|
+
).annotate({
|
|
2167
|
+
identifier: "OrgListPublicMembersRequest",
|
|
2168
|
+
}) as any as S.Schema<OrgListPublicMembersRequest>;
|
|
2169
|
+
|
|
2170
|
+
export type OrgListPublicMembersResponseBodyList = Array<User>;
|
|
2171
|
+
export const OrgListPublicMembersResponseBodyList = /*@__PURE__*/ S.Array(
|
|
2172
|
+
User,
|
|
2173
|
+
) as any as S.Schema<OrgListPublicMembersResponseBodyList>;
|
|
2174
|
+
|
|
2175
|
+
export type OrgListPublicMembersResponse = OrgListPublicMembersResponseBodyList;
|
|
2176
|
+
export const OrgListPublicMembersResponse = /*@__PURE__*/ S.suspend(() =>
|
|
2177
|
+
OrgListPublicMembersResponseBodyList.pipe(T.RawResponseRoot()),
|
|
2178
|
+
).annotate({
|
|
2179
|
+
identifier: "OrgListPublicMembersResponse",
|
|
2180
|
+
}) as any as S.Schema<OrgListPublicMembersResponse>;
|
|
2181
|
+
|
|
2182
|
+
export interface OrgListQuotaArtifactsRequest {
|
|
2183
|
+
/** name of the organization */
|
|
2184
|
+
org: string;
|
|
2185
|
+
/** page number of results to return (1-based) */
|
|
2186
|
+
page?: number;
|
|
2187
|
+
/** page size of results */
|
|
2188
|
+
limit?: number;
|
|
2189
|
+
}
|
|
2190
|
+
export const OrgListQuotaArtifactsRequest = /*@__PURE__*/ S.suspend(() =>
|
|
2191
|
+
S.Struct({
|
|
2192
|
+
org: S.String.pipe(T.Label()),
|
|
2193
|
+
page: S.optional(S.Number.pipe(T.Query())),
|
|
2194
|
+
limit: S.optional(S.Number.pipe(T.Query())),
|
|
2195
|
+
}).pipe(
|
|
2196
|
+
T.Http({ method: "GET", uri: "/orgs/{org}/quota/artifacts", code: 200 }),
|
|
2197
|
+
),
|
|
2198
|
+
).annotate({
|
|
2199
|
+
identifier: "OrgListQuotaArtifactsRequest",
|
|
2200
|
+
}) as any as S.Schema<OrgListQuotaArtifactsRequest>;
|
|
2201
|
+
|
|
2202
|
+
/** QuotaUsedArtifact represents an artifact counting towards a user's quota */
|
|
2203
|
+
export interface QuotaUsedArtifact {
|
|
2204
|
+
/** HTML URL to the action run containing the artifact */
|
|
2205
|
+
html_url?: string;
|
|
2206
|
+
/** Name of the artifact */
|
|
2207
|
+
name?: string;
|
|
2208
|
+
/** Size of the artifact (compressed) */
|
|
2209
|
+
size?: number;
|
|
2210
|
+
}
|
|
2211
|
+
export const QuotaUsedArtifact = /*@__PURE__*/ S.suspend(() =>
|
|
2212
|
+
S.Struct({
|
|
2213
|
+
html_url: S.optional(S.String),
|
|
2214
|
+
name: S.optional(S.String),
|
|
2215
|
+
size: S.optional(S.Number),
|
|
2216
|
+
}),
|
|
2217
|
+
).annotate({
|
|
2218
|
+
identifier: "QuotaUsedArtifact",
|
|
2219
|
+
}) as any as S.Schema<QuotaUsedArtifact>;
|
|
2220
|
+
|
|
2221
|
+
/** QuotaUsedArtifactList represents a list of artifacts counting towards a user's quota */
|
|
2222
|
+
export type QuotaUsedArtifactList = Array<QuotaUsedArtifact>;
|
|
2223
|
+
export const QuotaUsedArtifactList = /*@__PURE__*/ S.Array(
|
|
2224
|
+
QuotaUsedArtifact,
|
|
2225
|
+
) as any as S.Schema<QuotaUsedArtifactList>;
|
|
2226
|
+
|
|
2227
|
+
export type OrgListQuotaArtifactsResponse = QuotaUsedArtifactList;
|
|
2228
|
+
export const OrgListQuotaArtifactsResponse = /*@__PURE__*/ S.suspend(() =>
|
|
2229
|
+
QuotaUsedArtifactList.pipe(T.RawResponseRoot()),
|
|
2230
|
+
).annotate({
|
|
2231
|
+
identifier: "OrgListQuotaArtifactsResponse",
|
|
2232
|
+
}) as any as S.Schema<OrgListQuotaArtifactsResponse>;
|
|
2233
|
+
|
|
2234
|
+
export interface OrgListQuotaAttachmentsRequest {
|
|
2235
|
+
/** name of the organization */
|
|
2236
|
+
org: string;
|
|
2237
|
+
/** page number of results to return (1-based) */
|
|
2238
|
+
page?: number;
|
|
2239
|
+
/** page size of results */
|
|
2240
|
+
limit?: number;
|
|
2241
|
+
}
|
|
2242
|
+
export const OrgListQuotaAttachmentsRequest = /*@__PURE__*/ S.suspend(() =>
|
|
2243
|
+
S.Struct({
|
|
2244
|
+
org: S.String.pipe(T.Label()),
|
|
2245
|
+
page: S.optional(S.Number.pipe(T.Query())),
|
|
2246
|
+
limit: S.optional(S.Number.pipe(T.Query())),
|
|
2247
|
+
}).pipe(
|
|
2248
|
+
T.Http({ method: "GET", uri: "/orgs/{org}/quota/attachments", code: 200 }),
|
|
2249
|
+
),
|
|
2250
|
+
).annotate({
|
|
2251
|
+
identifier: "OrgListQuotaAttachmentsRequest",
|
|
2252
|
+
}) as any as S.Schema<OrgListQuotaAttachmentsRequest>;
|
|
2253
|
+
|
|
2254
|
+
/** Context for the attachment: URLs to the containing object */
|
|
2255
|
+
export interface QuotaUsedAttachmentContainedIn {
|
|
2256
|
+
/** API URL for the object that contains this attachment */
|
|
2257
|
+
api_url?: string;
|
|
2258
|
+
/** HTML URL for the object that contains this attachment */
|
|
2259
|
+
html_url?: string;
|
|
2260
|
+
}
|
|
2261
|
+
export const QuotaUsedAttachmentContainedIn = /*@__PURE__*/ S.suspend(() =>
|
|
2262
|
+
S.Struct({
|
|
2263
|
+
api_url: S.optional(S.String),
|
|
2264
|
+
html_url: S.optional(S.String),
|
|
2265
|
+
}),
|
|
2266
|
+
).annotate({
|
|
2267
|
+
identifier: "QuotaUsedAttachmentContainedIn",
|
|
2268
|
+
}) as any as S.Schema<QuotaUsedAttachmentContainedIn>;
|
|
2269
|
+
|
|
2270
|
+
/** QuotaUsedAttachment represents an attachment counting towards a user's quota */
|
|
2271
|
+
export interface QuotaUsedAttachment {
|
|
2272
|
+
/** API URL for the attachment */
|
|
2273
|
+
api_url?: string;
|
|
2274
|
+
/** Context for the attachment: URLs to the containing object */
|
|
2275
|
+
contained_in?: QuotaUsedAttachmentContainedIn;
|
|
2276
|
+
/** Filename of the attachment */
|
|
2277
|
+
name?: string;
|
|
2278
|
+
/** Size of the attachment (in bytes) */
|
|
2279
|
+
size?: number;
|
|
2280
|
+
}
|
|
2281
|
+
export const QuotaUsedAttachment = /*@__PURE__*/ S.suspend(() =>
|
|
2282
|
+
S.Struct({
|
|
2283
|
+
api_url: S.optional(S.String),
|
|
2284
|
+
contained_in: S.optional(QuotaUsedAttachmentContainedIn),
|
|
2285
|
+
name: S.optional(S.String),
|
|
2286
|
+
size: S.optional(S.Number),
|
|
2287
|
+
}),
|
|
2288
|
+
).annotate({
|
|
2289
|
+
identifier: "QuotaUsedAttachment",
|
|
2290
|
+
}) as any as S.Schema<QuotaUsedAttachment>;
|
|
2291
|
+
|
|
2292
|
+
/** QuotaUsedAttachmentList represents a list of attachment counting towards a user's quota */
|
|
2293
|
+
export type QuotaUsedAttachmentList = Array<QuotaUsedAttachment>;
|
|
2294
|
+
export const QuotaUsedAttachmentList = /*@__PURE__*/ S.Array(
|
|
2295
|
+
QuotaUsedAttachment,
|
|
2296
|
+
) as any as S.Schema<QuotaUsedAttachmentList>;
|
|
2297
|
+
|
|
2298
|
+
export type OrgListQuotaAttachmentsResponse = QuotaUsedAttachmentList;
|
|
2299
|
+
export const OrgListQuotaAttachmentsResponse = /*@__PURE__*/ S.suspend(() =>
|
|
2300
|
+
QuotaUsedAttachmentList.pipe(T.RawResponseRoot()),
|
|
2301
|
+
).annotate({
|
|
2302
|
+
identifier: "OrgListQuotaAttachmentsResponse",
|
|
2303
|
+
}) as any as S.Schema<OrgListQuotaAttachmentsResponse>;
|
|
2304
|
+
|
|
2305
|
+
export interface OrgListQuotaPackagesRequest {
|
|
2306
|
+
/** name of the organization */
|
|
2307
|
+
org: string;
|
|
2308
|
+
/** page number of results to return (1-based) */
|
|
2309
|
+
page?: number;
|
|
2310
|
+
/** page size of results */
|
|
2311
|
+
limit?: number;
|
|
2312
|
+
}
|
|
2313
|
+
export const OrgListQuotaPackagesRequest = /*@__PURE__*/ S.suspend(() =>
|
|
2314
|
+
S.Struct({
|
|
2315
|
+
org: S.String.pipe(T.Label()),
|
|
2316
|
+
page: S.optional(S.Number.pipe(T.Query())),
|
|
2317
|
+
limit: S.optional(S.Number.pipe(T.Query())),
|
|
2318
|
+
}).pipe(
|
|
2319
|
+
T.Http({ method: "GET", uri: "/orgs/{org}/quota/packages", code: 200 }),
|
|
2320
|
+
),
|
|
2321
|
+
).annotate({
|
|
2322
|
+
identifier: "OrgListQuotaPackagesRequest",
|
|
2323
|
+
}) as any as S.Schema<OrgListQuotaPackagesRequest>;
|
|
2324
|
+
|
|
2325
|
+
/** QuotaUsedPackage represents a package counting towards a user's quota */
|
|
2326
|
+
export interface QuotaUsedPackage {
|
|
2327
|
+
/** HTML URL to the package version */
|
|
2328
|
+
html_url?: string;
|
|
2329
|
+
/** Name of the package */
|
|
2330
|
+
name?: string;
|
|
2331
|
+
/** Size of the package version */
|
|
2332
|
+
size?: number;
|
|
2333
|
+
/** Type of the package */
|
|
2334
|
+
type?: string;
|
|
2335
|
+
/** Version of the package */
|
|
2336
|
+
version?: string;
|
|
2337
|
+
}
|
|
2338
|
+
export const QuotaUsedPackage = /*@__PURE__*/ S.suspend(() =>
|
|
2339
|
+
S.Struct({
|
|
2340
|
+
html_url: S.optional(S.String),
|
|
2341
|
+
name: S.optional(S.String),
|
|
2342
|
+
size: S.optional(S.Number),
|
|
2343
|
+
type: S.optional(S.String),
|
|
2344
|
+
version: S.optional(S.String),
|
|
2345
|
+
}),
|
|
2346
|
+
).annotate({
|
|
2347
|
+
identifier: "QuotaUsedPackage",
|
|
2348
|
+
}) as any as S.Schema<QuotaUsedPackage>;
|
|
2349
|
+
|
|
2350
|
+
/** QuotaUsedPackageList represents a list of packages counting towards a user's quota */
|
|
2351
|
+
export type QuotaUsedPackageList = Array<QuotaUsedPackage>;
|
|
2352
|
+
export const QuotaUsedPackageList = /*@__PURE__*/ S.Array(
|
|
2353
|
+
QuotaUsedPackage,
|
|
2354
|
+
) as any as S.Schema<QuotaUsedPackageList>;
|
|
2355
|
+
|
|
2356
|
+
export type OrgListQuotaPackagesResponse = QuotaUsedPackageList;
|
|
2357
|
+
export const OrgListQuotaPackagesResponse = /*@__PURE__*/ S.suspend(() =>
|
|
2358
|
+
QuotaUsedPackageList.pipe(T.RawResponseRoot()),
|
|
2359
|
+
).annotate({
|
|
2360
|
+
identifier: "OrgListQuotaPackagesResponse",
|
|
2361
|
+
}) as any as S.Schema<OrgListQuotaPackagesResponse>;
|
|
2362
|
+
|
|
2363
|
+
export interface OrgListReposRequest {
|
|
2364
|
+
/** name of the organization */
|
|
2365
|
+
org: string;
|
|
2366
|
+
/** page number of results to return (1-based) */
|
|
2367
|
+
page?: number;
|
|
2368
|
+
/** page size of results */
|
|
2369
|
+
limit?: number;
|
|
2370
|
+
}
|
|
2371
|
+
export const OrgListReposRequest = /*@__PURE__*/ S.suspend(() =>
|
|
2372
|
+
S.Struct({
|
|
2373
|
+
org: S.String.pipe(T.Label()),
|
|
2374
|
+
page: S.optional(S.Number.pipe(T.Query())),
|
|
2375
|
+
limit: S.optional(S.Number.pipe(T.Query())),
|
|
2376
|
+
}).pipe(T.Http({ method: "GET", uri: "/orgs/{org}/repos", code: 200 })),
|
|
2377
|
+
).annotate({
|
|
2378
|
+
identifier: "OrgListReposRequest",
|
|
2379
|
+
}) as any as S.Schema<OrgListReposRequest>;
|
|
2380
|
+
|
|
2381
|
+
export type OrgListReposResponseBodyList = Array<Repository>;
|
|
2382
|
+
export const OrgListReposResponseBodyList = /*@__PURE__*/ S.Array(
|
|
2383
|
+
Repository,
|
|
2384
|
+
) as any as S.Schema<OrgListReposResponseBodyList>;
|
|
2385
|
+
|
|
2386
|
+
export type OrgListReposResponse = OrgListReposResponseBodyList;
|
|
2387
|
+
export const OrgListReposResponse = /*@__PURE__*/ S.suspend(() =>
|
|
2388
|
+
OrgListReposResponseBodyList.pipe(T.RawResponseRoot()),
|
|
2389
|
+
).annotate({
|
|
2390
|
+
identifier: "OrgListReposResponse",
|
|
2391
|
+
}) as any as S.Schema<OrgListReposResponse>;
|
|
2392
|
+
|
|
2393
|
+
export interface OrgListTeamActivityFeedsRequest {
|
|
2394
|
+
/** id of the team */
|
|
2395
|
+
id: number;
|
|
2396
|
+
/** the date of the activities to be found */
|
|
2397
|
+
date?: string;
|
|
2398
|
+
/** page number of results to return (1-based) */
|
|
2399
|
+
page?: number;
|
|
2400
|
+
/** page size of results */
|
|
2401
|
+
limit?: number;
|
|
2402
|
+
}
|
|
2403
|
+
export const OrgListTeamActivityFeedsRequest = /*@__PURE__*/ S.suspend(() =>
|
|
2404
|
+
S.Struct({
|
|
2405
|
+
id: S.Number.pipe(T.Label()),
|
|
2406
|
+
date: S.optional(S.String.pipe(T.Query())),
|
|
2407
|
+
page: S.optional(S.Number.pipe(T.Query())),
|
|
2408
|
+
limit: S.optional(S.Number.pipe(T.Query())),
|
|
2409
|
+
}).pipe(
|
|
2410
|
+
T.Http({ method: "GET", uri: "/teams/{id}/activities/feeds", code: 200 }),
|
|
2411
|
+
),
|
|
2412
|
+
).annotate({
|
|
2413
|
+
identifier: "OrgListTeamActivityFeedsRequest",
|
|
2414
|
+
}) as any as S.Schema<OrgListTeamActivityFeedsRequest>;
|
|
2415
|
+
|
|
2416
|
+
export type OrgListTeamActivityFeedsResponseBodyList = Array<Activity>;
|
|
2417
|
+
export const OrgListTeamActivityFeedsResponseBodyList = /*@__PURE__*/ S.Array(
|
|
2418
|
+
Activity,
|
|
2419
|
+
) as any as S.Schema<OrgListTeamActivityFeedsResponseBodyList>;
|
|
2420
|
+
|
|
2421
|
+
export type OrgListTeamActivityFeedsResponse =
|
|
2422
|
+
OrgListTeamActivityFeedsResponseBodyList;
|
|
2423
|
+
export const OrgListTeamActivityFeedsResponse = /*@__PURE__*/ S.suspend(() =>
|
|
2424
|
+
OrgListTeamActivityFeedsResponseBodyList.pipe(T.RawResponseRoot()),
|
|
2425
|
+
).annotate({
|
|
2426
|
+
identifier: "OrgListTeamActivityFeedsResponse",
|
|
2427
|
+
}) as any as S.Schema<OrgListTeamActivityFeedsResponse>;
|
|
2428
|
+
|
|
2429
|
+
export interface OrgListTeamMemberRequest {
|
|
2430
|
+
/** id of the team */
|
|
2431
|
+
id: number;
|
|
2432
|
+
/** username of the member to list */
|
|
2433
|
+
username: string;
|
|
2434
|
+
}
|
|
2435
|
+
export const OrgListTeamMemberRequest = /*@__PURE__*/ S.suspend(() =>
|
|
2436
|
+
S.Struct({
|
|
2437
|
+
id: S.Number.pipe(T.Label()),
|
|
2438
|
+
username: S.String.pipe(T.Label()),
|
|
2439
|
+
}).pipe(
|
|
2440
|
+
T.Http({ method: "GET", uri: "/teams/{id}/members/{username}", code: 200 }),
|
|
2441
|
+
),
|
|
2442
|
+
).annotate({
|
|
2443
|
+
identifier: "OrgListTeamMemberRequest",
|
|
2444
|
+
}) as any as S.Schema<OrgListTeamMemberRequest>;
|
|
2445
|
+
|
|
2446
|
+
export interface OrgListTeamMembersRequest {
|
|
2447
|
+
/** id of the team */
|
|
2448
|
+
id: number;
|
|
2449
|
+
/** page number of results to return (1-based) */
|
|
2450
|
+
page?: number;
|
|
2451
|
+
/** page size of results */
|
|
2452
|
+
limit?: number;
|
|
2453
|
+
}
|
|
2454
|
+
export const OrgListTeamMembersRequest = /*@__PURE__*/ S.suspend(() =>
|
|
2455
|
+
S.Struct({
|
|
2456
|
+
id: S.Number.pipe(T.Label()),
|
|
2457
|
+
page: S.optional(S.Number.pipe(T.Query())),
|
|
2458
|
+
limit: S.optional(S.Number.pipe(T.Query())),
|
|
2459
|
+
}).pipe(T.Http({ method: "GET", uri: "/teams/{id}/members", code: 200 })),
|
|
2460
|
+
).annotate({
|
|
2461
|
+
identifier: "OrgListTeamMembersRequest",
|
|
2462
|
+
}) as any as S.Schema<OrgListTeamMembersRequest>;
|
|
2463
|
+
|
|
2464
|
+
export type OrgListTeamMembersResponseBodyList = Array<User>;
|
|
2465
|
+
export const OrgListTeamMembersResponseBodyList = /*@__PURE__*/ S.Array(
|
|
2466
|
+
User,
|
|
2467
|
+
) as any as S.Schema<OrgListTeamMembersResponseBodyList>;
|
|
2468
|
+
|
|
2469
|
+
export type OrgListTeamMembersResponse = OrgListTeamMembersResponseBodyList;
|
|
2470
|
+
export const OrgListTeamMembersResponse = /*@__PURE__*/ S.suspend(() =>
|
|
2471
|
+
OrgListTeamMembersResponseBodyList.pipe(T.RawResponseRoot()),
|
|
2472
|
+
).annotate({
|
|
2473
|
+
identifier: "OrgListTeamMembersResponse",
|
|
2474
|
+
}) as any as S.Schema<OrgListTeamMembersResponse>;
|
|
2475
|
+
|
|
2476
|
+
export interface OrgListTeamRepoRequest {
|
|
2477
|
+
/** id of the team */
|
|
2478
|
+
id: number;
|
|
2479
|
+
/** organization that owns the repo to list */
|
|
2480
|
+
org: string;
|
|
2481
|
+
/** name of the repo to list */
|
|
2482
|
+
repo: string;
|
|
2483
|
+
}
|
|
2484
|
+
export const OrgListTeamRepoRequest = /*@__PURE__*/ S.suspend(() =>
|
|
2485
|
+
S.Struct({
|
|
2486
|
+
id: S.Number.pipe(T.Label()),
|
|
2487
|
+
org: S.String.pipe(T.Label()),
|
|
2488
|
+
repo: S.String.pipe(T.Label()),
|
|
2489
|
+
}).pipe(
|
|
2490
|
+
T.Http({ method: "GET", uri: "/teams/{id}/repos/{org}/{repo}", code: 200 }),
|
|
2491
|
+
),
|
|
2492
|
+
).annotate({
|
|
2493
|
+
identifier: "OrgListTeamRepoRequest",
|
|
2494
|
+
}) as any as S.Schema<OrgListTeamRepoRequest>;
|
|
2495
|
+
|
|
2496
|
+
export interface OrgListTeamReposRequest {
|
|
2497
|
+
/** id of the team */
|
|
2498
|
+
id: number;
|
|
2499
|
+
/** page number of results to return (1-based) */
|
|
2500
|
+
page?: number;
|
|
2501
|
+
/** page size of results */
|
|
2502
|
+
limit?: number;
|
|
2503
|
+
}
|
|
2504
|
+
export const OrgListTeamReposRequest = /*@__PURE__*/ S.suspend(() =>
|
|
2505
|
+
S.Struct({
|
|
2506
|
+
id: S.Number.pipe(T.Label()),
|
|
2507
|
+
page: S.optional(S.Number.pipe(T.Query())),
|
|
2508
|
+
limit: S.optional(S.Number.pipe(T.Query())),
|
|
2509
|
+
}).pipe(T.Http({ method: "GET", uri: "/teams/{id}/repos", code: 200 })),
|
|
2510
|
+
).annotate({
|
|
2511
|
+
identifier: "OrgListTeamReposRequest",
|
|
2512
|
+
}) as any as S.Schema<OrgListTeamReposRequest>;
|
|
2513
|
+
|
|
2514
|
+
export type OrgListTeamReposResponseBodyList = Array<Repository>;
|
|
2515
|
+
export const OrgListTeamReposResponseBodyList = /*@__PURE__*/ S.Array(
|
|
2516
|
+
Repository,
|
|
2517
|
+
) as any as S.Schema<OrgListTeamReposResponseBodyList>;
|
|
2518
|
+
|
|
2519
|
+
export type OrgListTeamReposResponse = OrgListTeamReposResponseBodyList;
|
|
2520
|
+
export const OrgListTeamReposResponse = /*@__PURE__*/ S.suspend(() =>
|
|
2521
|
+
OrgListTeamReposResponseBodyList.pipe(T.RawResponseRoot()),
|
|
2522
|
+
).annotate({
|
|
2523
|
+
identifier: "OrgListTeamReposResponse",
|
|
2524
|
+
}) as any as S.Schema<OrgListTeamReposResponse>;
|
|
2525
|
+
|
|
2526
|
+
export interface OrgListTeamsRequest {
|
|
2527
|
+
/** name of the organization */
|
|
2528
|
+
org: string;
|
|
2529
|
+
/** page number of results to return (1-based) */
|
|
2530
|
+
page?: number;
|
|
2531
|
+
/** page size of results */
|
|
2532
|
+
limit?: number;
|
|
2533
|
+
}
|
|
2534
|
+
export const OrgListTeamsRequest = /*@__PURE__*/ S.suspend(() =>
|
|
2535
|
+
S.Struct({
|
|
2536
|
+
org: S.String.pipe(T.Label()),
|
|
2537
|
+
page: S.optional(S.Number.pipe(T.Query())),
|
|
2538
|
+
limit: S.optional(S.Number.pipe(T.Query())),
|
|
2539
|
+
}).pipe(T.Http({ method: "GET", uri: "/orgs/{org}/teams", code: 200 })),
|
|
2540
|
+
).annotate({
|
|
2541
|
+
identifier: "OrgListTeamsRequest",
|
|
2542
|
+
}) as any as S.Schema<OrgListTeamsRequest>;
|
|
2543
|
+
|
|
2544
|
+
export type OrgListTeamsResponseBodyList = Array<Team>;
|
|
2545
|
+
export const OrgListTeamsResponseBodyList = /*@__PURE__*/ S.Array(
|
|
2546
|
+
Team,
|
|
2547
|
+
) as any as S.Schema<OrgListTeamsResponseBodyList>;
|
|
2548
|
+
|
|
2549
|
+
export type OrgListTeamsResponse = OrgListTeamsResponseBodyList;
|
|
2550
|
+
export const OrgListTeamsResponse = /*@__PURE__*/ S.suspend(() =>
|
|
2551
|
+
OrgListTeamsResponseBodyList.pipe(T.RawResponseRoot()),
|
|
2552
|
+
).annotate({
|
|
2553
|
+
identifier: "OrgListTeamsResponse",
|
|
2554
|
+
}) as any as S.Schema<OrgListTeamsResponse>;
|
|
2555
|
+
|
|
2556
|
+
export interface OrgListUserOrgsRequest {
|
|
2557
|
+
/** username of user */
|
|
2558
|
+
username: string;
|
|
2559
|
+
/** page number of results to return (1-based) */
|
|
2560
|
+
page?: number;
|
|
2561
|
+
/** page size of results */
|
|
2562
|
+
limit?: number;
|
|
2563
|
+
}
|
|
2564
|
+
export const OrgListUserOrgsRequest = /*@__PURE__*/ S.suspend(() =>
|
|
2565
|
+
S.Struct({
|
|
2566
|
+
username: S.String.pipe(T.Label()),
|
|
2567
|
+
page: S.optional(S.Number.pipe(T.Query())),
|
|
2568
|
+
limit: S.optional(S.Number.pipe(T.Query())),
|
|
2569
|
+
}).pipe(T.Http({ method: "GET", uri: "/users/{username}/orgs", code: 200 })),
|
|
2570
|
+
).annotate({
|
|
2571
|
+
identifier: "OrgListUserOrgsRequest",
|
|
2572
|
+
}) as any as S.Schema<OrgListUserOrgsRequest>;
|
|
2573
|
+
|
|
2574
|
+
export type OrgListUserOrgsResponseBodyList = Array<Organization>;
|
|
2575
|
+
export const OrgListUserOrgsResponseBodyList = /*@__PURE__*/ S.Array(
|
|
2576
|
+
Organization,
|
|
2577
|
+
) as any as S.Schema<OrgListUserOrgsResponseBodyList>;
|
|
2578
|
+
|
|
2579
|
+
export type OrgListUserOrgsResponse = OrgListUserOrgsResponseBodyList;
|
|
2580
|
+
export const OrgListUserOrgsResponse = /*@__PURE__*/ S.suspend(() =>
|
|
2581
|
+
OrgListUserOrgsResponseBodyList.pipe(T.RawResponseRoot()),
|
|
2582
|
+
).annotate({
|
|
2583
|
+
identifier: "OrgListUserOrgsResponse",
|
|
2584
|
+
}) as any as S.Schema<OrgListUserOrgsResponse>;
|
|
2585
|
+
|
|
2586
|
+
export interface OrgPublicizeMemberRequest {
|
|
2587
|
+
/** name of the organization */
|
|
2588
|
+
org: string;
|
|
2589
|
+
/** username of the user */
|
|
2590
|
+
username: string;
|
|
2591
|
+
}
|
|
2592
|
+
export const OrgPublicizeMemberRequest = /*@__PURE__*/ S.suspend(() =>
|
|
2593
|
+
S.Struct({
|
|
2594
|
+
org: S.String.pipe(T.Label()),
|
|
2595
|
+
username: S.String.pipe(T.Label()),
|
|
2596
|
+
}).pipe(
|
|
2597
|
+
T.Http({
|
|
2598
|
+
method: "PUT",
|
|
2599
|
+
uri: "/orgs/{org}/public_members/{username}",
|
|
2600
|
+
code: 200,
|
|
2601
|
+
}),
|
|
2602
|
+
),
|
|
2603
|
+
).annotate({
|
|
2604
|
+
identifier: "OrgPublicizeMemberRequest",
|
|
2605
|
+
}) as any as S.Schema<OrgPublicizeMemberRequest>;
|
|
2606
|
+
|
|
2607
|
+
export interface OrgPublicizeMemberResponse {}
|
|
2608
|
+
export const OrgPublicizeMemberResponse = /*@__PURE__*/ S.suspend(() =>
|
|
2609
|
+
S.Struct({}),
|
|
2610
|
+
).annotate({
|
|
2611
|
+
identifier: "OrgPublicizeMemberResponse",
|
|
2612
|
+
}) as any as S.Schema<OrgPublicizeMemberResponse>;
|
|
2613
|
+
|
|
2614
|
+
export interface OrgRemoveTeamMemberRequest {
|
|
2615
|
+
/** id of the team */
|
|
2616
|
+
id: number;
|
|
2617
|
+
/** username of the user to remove */
|
|
2618
|
+
username: string;
|
|
2619
|
+
}
|
|
2620
|
+
export const OrgRemoveTeamMemberRequest = /*@__PURE__*/ S.suspend(() =>
|
|
2621
|
+
S.Struct({
|
|
2622
|
+
id: S.Number.pipe(T.Label()),
|
|
2623
|
+
username: S.String.pipe(T.Label()),
|
|
2624
|
+
}).pipe(
|
|
2625
|
+
T.Http({
|
|
2626
|
+
method: "DELETE",
|
|
2627
|
+
uri: "/teams/{id}/members/{username}",
|
|
2628
|
+
code: 200,
|
|
2629
|
+
}),
|
|
2630
|
+
),
|
|
2631
|
+
).annotate({
|
|
2632
|
+
identifier: "OrgRemoveTeamMemberRequest",
|
|
2633
|
+
}) as any as S.Schema<OrgRemoveTeamMemberRequest>;
|
|
2634
|
+
|
|
2635
|
+
export interface OrgRemoveTeamMemberResponse {}
|
|
2636
|
+
export const OrgRemoveTeamMemberResponse = /*@__PURE__*/ S.suspend(() =>
|
|
2637
|
+
S.Struct({}),
|
|
2638
|
+
).annotate({
|
|
2639
|
+
identifier: "OrgRemoveTeamMemberResponse",
|
|
2640
|
+
}) as any as S.Schema<OrgRemoveTeamMemberResponse>;
|
|
2641
|
+
|
|
2642
|
+
export interface OrgRemoveTeamRepositoryRequest {
|
|
2643
|
+
/** id of the team */
|
|
2644
|
+
id: number;
|
|
2645
|
+
/** organization that owns the repo to remove */
|
|
2646
|
+
org: string;
|
|
2647
|
+
/** name of the repo to remove */
|
|
2648
|
+
repo: string;
|
|
2649
|
+
}
|
|
2650
|
+
export const OrgRemoveTeamRepositoryRequest = /*@__PURE__*/ S.suspend(() =>
|
|
2651
|
+
S.Struct({
|
|
2652
|
+
id: S.Number.pipe(T.Label()),
|
|
2653
|
+
org: S.String.pipe(T.Label()),
|
|
2654
|
+
repo: S.String.pipe(T.Label()),
|
|
2655
|
+
}).pipe(
|
|
2656
|
+
T.Http({
|
|
2657
|
+
method: "DELETE",
|
|
2658
|
+
uri: "/teams/{id}/repos/{org}/{repo}",
|
|
2659
|
+
code: 200,
|
|
2660
|
+
}),
|
|
2661
|
+
),
|
|
2662
|
+
).annotate({
|
|
2663
|
+
identifier: "OrgRemoveTeamRepositoryRequest",
|
|
2664
|
+
}) as any as S.Schema<OrgRemoveTeamRepositoryRequest>;
|
|
2665
|
+
|
|
2666
|
+
export interface OrgRemoveTeamRepositoryResponse {}
|
|
2667
|
+
export const OrgRemoveTeamRepositoryResponse = /*@__PURE__*/ S.suspend(() =>
|
|
2668
|
+
S.Struct({}),
|
|
2669
|
+
).annotate({
|
|
2670
|
+
identifier: "OrgRemoveTeamRepositoryResponse",
|
|
2671
|
+
}) as any as S.Schema<OrgRemoveTeamRepositoryResponse>;
|
|
2672
|
+
|
|
2673
|
+
export interface OrgSearchRunJobsRequest {
|
|
2674
|
+
/** name of the organization */
|
|
2675
|
+
org: string;
|
|
2676
|
+
/** a comma separated list of run job labels to search for */
|
|
2677
|
+
labels?: string;
|
|
2678
|
+
}
|
|
2679
|
+
export const OrgSearchRunJobsRequest = /*@__PURE__*/ S.suspend(() =>
|
|
2680
|
+
S.Struct({
|
|
2681
|
+
org: S.String.pipe(T.Label()),
|
|
2682
|
+
labels: S.optional(S.String.pipe(T.Query())),
|
|
2683
|
+
}).pipe(
|
|
2684
|
+
T.Http({
|
|
2685
|
+
method: "GET",
|
|
2686
|
+
uri: "/orgs/{org}/actions/runners/jobs",
|
|
2687
|
+
code: 200,
|
|
2688
|
+
}),
|
|
2689
|
+
),
|
|
2690
|
+
).annotate({
|
|
2691
|
+
identifier: "OrgSearchRunJobsRequest",
|
|
2692
|
+
}) as any as S.Schema<OrgSearchRunJobsRequest>;
|
|
2693
|
+
|
|
2694
|
+
/** the action run job needed ids */
|
|
2695
|
+
export type ActionRunJobNeedsList = Array<string>;
|
|
2696
|
+
export const ActionRunJobNeedsList = /*@__PURE__*/ S.Array(
|
|
2697
|
+
S.String,
|
|
2698
|
+
) as any as S.Schema<ActionRunJobNeedsList>;
|
|
2699
|
+
|
|
2700
|
+
/** the action run job labels to run on */
|
|
2701
|
+
export type ActionRunJobRunsOnList = Array<string>;
|
|
2702
|
+
export const ActionRunJobRunsOnList = /*@__PURE__*/ S.Array(
|
|
2703
|
+
S.String,
|
|
2704
|
+
) as any as S.Schema<ActionRunJobRunsOnList>;
|
|
2705
|
+
|
|
2706
|
+
/** ActionRunJob represents a job of a run */
|
|
2707
|
+
export interface ActionRunJob {
|
|
2708
|
+
/** How many times the job has been attempted including the current attempt. */
|
|
2709
|
+
attempt?: number;
|
|
2710
|
+
/** Opaque identifier that uniquely identifies a single attempt of a job. */
|
|
2711
|
+
handle?: string;
|
|
2712
|
+
/** Identifier of this job. */
|
|
2713
|
+
id?: number;
|
|
2714
|
+
/** the action run job name */
|
|
2715
|
+
name?: string;
|
|
2716
|
+
/** the action run job needed ids */
|
|
2717
|
+
needs?: ActionRunJobNeedsList;
|
|
2718
|
+
/** the owner id */
|
|
2719
|
+
owner_id?: number;
|
|
2720
|
+
/** the repository id */
|
|
2721
|
+
repo_id?: number;
|
|
2722
|
+
/** Identifier of the workflow run this job belongs to. */
|
|
2723
|
+
run_id?: number;
|
|
2724
|
+
/** the action run job labels to run on */
|
|
2725
|
+
runs_on?: ActionRunJobRunsOnList;
|
|
2726
|
+
/** the action run job status */
|
|
2727
|
+
status?: string;
|
|
2728
|
+
/** the action run job latest task id */
|
|
2729
|
+
task_id?: number;
|
|
2730
|
+
}
|
|
2731
|
+
export const ActionRunJob = /*@__PURE__*/ S.suspend(() =>
|
|
2732
|
+
S.Struct({
|
|
2733
|
+
attempt: S.optional(S.Number),
|
|
2734
|
+
handle: S.optional(S.String),
|
|
2735
|
+
id: S.optional(S.Number),
|
|
2736
|
+
name: S.optional(S.String),
|
|
2737
|
+
needs: S.optional(ActionRunJobNeedsList),
|
|
2738
|
+
owner_id: S.optional(S.Number),
|
|
2739
|
+
repo_id: S.optional(S.Number),
|
|
2740
|
+
run_id: S.optional(S.Number),
|
|
2741
|
+
runs_on: S.optional(ActionRunJobRunsOnList),
|
|
2742
|
+
status: S.optional(S.String),
|
|
2743
|
+
task_id: S.optional(S.Number),
|
|
2744
|
+
}),
|
|
2745
|
+
).annotate({ identifier: "ActionRunJob" }) as any as S.Schema<ActionRunJob>;
|
|
2746
|
+
|
|
2747
|
+
export type OrgSearchRunJobsResponseBodyList = Array<ActionRunJob>;
|
|
2748
|
+
export const OrgSearchRunJobsResponseBodyList = /*@__PURE__*/ S.Array(
|
|
2749
|
+
ActionRunJob,
|
|
2750
|
+
) as any as S.Schema<OrgSearchRunJobsResponseBodyList>;
|
|
2751
|
+
|
|
2752
|
+
export type OrgSearchRunJobsResponse = OrgSearchRunJobsResponseBodyList;
|
|
2753
|
+
export const OrgSearchRunJobsResponse = /*@__PURE__*/ S.suspend(() =>
|
|
2754
|
+
OrgSearchRunJobsResponseBodyList.pipe(T.RawResponseRoot()),
|
|
2755
|
+
).annotate({
|
|
2756
|
+
identifier: "OrgSearchRunJobsResponse",
|
|
2757
|
+
}) as any as S.Schema<OrgSearchRunJobsResponse>;
|
|
2758
|
+
|
|
2759
|
+
export interface OrgUnblockUserRequest {
|
|
2760
|
+
/** name of the org */
|
|
2761
|
+
org: string;
|
|
2762
|
+
/** username of the user */
|
|
2763
|
+
username: string;
|
|
2764
|
+
}
|
|
2765
|
+
export const OrgUnblockUserRequest = /*@__PURE__*/ S.suspend(() =>
|
|
2766
|
+
S.Struct({
|
|
2767
|
+
org: S.String.pipe(T.Label()),
|
|
2768
|
+
username: S.String.pipe(T.Label()),
|
|
2769
|
+
}).pipe(
|
|
2770
|
+
T.Http({ method: "PUT", uri: "/orgs/{org}/unblock/{username}", code: 200 }),
|
|
2771
|
+
),
|
|
2772
|
+
).annotate({
|
|
2773
|
+
identifier: "OrgUnblockUserRequest",
|
|
2774
|
+
}) as any as S.Schema<OrgUnblockUserRequest>;
|
|
2775
|
+
|
|
2776
|
+
export interface OrgUnblockUserResponse {}
|
|
2777
|
+
export const OrgUnblockUserResponse = /*@__PURE__*/ S.suspend(() =>
|
|
2778
|
+
S.Struct({}),
|
|
2779
|
+
).annotate({
|
|
2780
|
+
identifier: "OrgUnblockUserResponse",
|
|
2781
|
+
}) as any as S.Schema<OrgUnblockUserResponse>;
|
|
2782
|
+
|
|
2783
|
+
export interface OrgUpdateAvatarRequest {
|
|
2784
|
+
/** name of the organization */
|
|
2785
|
+
org: string;
|
|
2786
|
+
/** image must be base64 encoded */
|
|
2787
|
+
image?: string;
|
|
2788
|
+
}
|
|
2789
|
+
export const OrgUpdateAvatarRequest = /*@__PURE__*/ S.suspend(() =>
|
|
2790
|
+
S.Struct({
|
|
2791
|
+
org: S.String.pipe(T.Label()),
|
|
2792
|
+
image: S.optional(S.String),
|
|
2793
|
+
}).pipe(T.Http({ method: "POST", uri: "/orgs/{org}/avatar", code: 200 })),
|
|
2794
|
+
).annotate({
|
|
2795
|
+
identifier: "OrgUpdateAvatarRequest",
|
|
2796
|
+
}) as any as S.Schema<OrgUpdateAvatarRequest>;
|
|
2797
|
+
|
|
2798
|
+
export interface OrgUpdateAvatarResponse {}
|
|
2799
|
+
export const OrgUpdateAvatarResponse = /*@__PURE__*/ S.suspend(() =>
|
|
2800
|
+
S.Struct({}),
|
|
2801
|
+
).annotate({
|
|
2802
|
+
identifier: "OrgUpdateAvatarResponse",
|
|
2803
|
+
}) as any as S.Schema<OrgUpdateAvatarResponse>;
|
|
2804
|
+
|
|
2805
|
+
export interface RegisterOrgRunnerRequest {
|
|
2806
|
+
/** name of the organization */
|
|
2807
|
+
org: string;
|
|
2808
|
+
/** Description of the runner to register. */
|
|
2809
|
+
description?: string;
|
|
2810
|
+
/** Register as ephemeral runner https://forgejo.org/docs/latest/admin/actions/security/#ephemeral-runner */
|
|
2811
|
+
ephemeral?: boolean;
|
|
2812
|
+
/** Name of the runner to register. The name of the runner does not have to be unique. */
|
|
2813
|
+
name: string;
|
|
2814
|
+
}
|
|
2815
|
+
export const RegisterOrgRunnerRequest = /*@__PURE__*/ S.suspend(() =>
|
|
2816
|
+
S.Struct({
|
|
2817
|
+
org: S.String.pipe(T.Label()),
|
|
2818
|
+
description: S.optional(S.String),
|
|
2819
|
+
ephemeral: S.optional(S.Boolean),
|
|
2820
|
+
name: S.String,
|
|
2821
|
+
}).pipe(
|
|
2822
|
+
T.Http({ method: "POST", uri: "/orgs/{org}/actions/runners", code: 200 }),
|
|
2823
|
+
),
|
|
2824
|
+
).annotate({
|
|
2825
|
+
identifier: "RegisterOrgRunnerRequest",
|
|
2826
|
+
}) as any as S.Schema<RegisterOrgRunnerRequest>;
|
|
2827
|
+
|
|
2828
|
+
export interface RegisterRunnerResponse {
|
|
2829
|
+
id?: number;
|
|
2830
|
+
token?: string;
|
|
2831
|
+
uuid?: string;
|
|
2832
|
+
}
|
|
2833
|
+
export const RegisterRunnerResponse = /*@__PURE__*/ S.suspend(() =>
|
|
2834
|
+
S.Struct({
|
|
2835
|
+
id: S.optional(S.Number),
|
|
2836
|
+
token: S.optional(S.String),
|
|
2837
|
+
uuid: S.optional(S.String),
|
|
2838
|
+
}),
|
|
2839
|
+
).annotate({
|
|
2840
|
+
identifier: "RegisterRunnerResponse",
|
|
2841
|
+
}) as any as S.Schema<RegisterRunnerResponse>;
|
|
2842
|
+
|
|
2843
|
+
export interface RenameOrgRequest {
|
|
2844
|
+
/** existing org name */
|
|
2845
|
+
org: string;
|
|
2846
|
+
/** New username for this org. This name cannot be in use yet by any other user. */
|
|
2847
|
+
new_name: string;
|
|
2848
|
+
}
|
|
2849
|
+
export const RenameOrgRequest = /*@__PURE__*/ S.suspend(() =>
|
|
2850
|
+
S.Struct({
|
|
2851
|
+
org: S.String.pipe(T.Label()),
|
|
2852
|
+
new_name: S.String,
|
|
2853
|
+
}).pipe(T.Http({ method: "POST", uri: "/orgs/{org}/rename", code: 200 })),
|
|
2854
|
+
).annotate({
|
|
2855
|
+
identifier: "RenameOrgRequest",
|
|
2856
|
+
}) as any as S.Schema<RenameOrgRequest>;
|
|
2857
|
+
|
|
2858
|
+
export interface RenameOrgResponse {}
|
|
2859
|
+
export const RenameOrgResponse = /*@__PURE__*/ S.suspend(() =>
|
|
2860
|
+
S.Struct({}),
|
|
2861
|
+
).annotate({
|
|
2862
|
+
identifier: "RenameOrgResponse",
|
|
2863
|
+
}) as any as S.Schema<RenameOrgResponse>;
|
|
2864
|
+
|
|
2865
|
+
export interface SearchTeamRequest {
|
|
2866
|
+
/** name of the organization */
|
|
2867
|
+
org: string;
|
|
2868
|
+
/** keywords to search */
|
|
2869
|
+
q?: string;
|
|
2870
|
+
/** include search within team description (defaults to true) */
|
|
2871
|
+
include_desc?: boolean;
|
|
2872
|
+
/** page number of results to return (1-based) */
|
|
2873
|
+
page?: number;
|
|
2874
|
+
/** page size of results */
|
|
2875
|
+
limit?: number;
|
|
2876
|
+
}
|
|
2877
|
+
export const SearchTeamRequest = /*@__PURE__*/ S.suspend(() =>
|
|
2878
|
+
S.Struct({
|
|
2879
|
+
org: S.String.pipe(T.Label()),
|
|
2880
|
+
q: S.optional(S.String.pipe(T.Query())),
|
|
2881
|
+
include_desc: S.optional(S.Boolean.pipe(T.Query())),
|
|
2882
|
+
page: S.optional(S.Number.pipe(T.Query())),
|
|
2883
|
+
limit: S.optional(S.Number.pipe(T.Query())),
|
|
2884
|
+
}).pipe(
|
|
2885
|
+
T.Http({ method: "GET", uri: "/orgs/{org}/teams/search", code: 200 }),
|
|
2886
|
+
),
|
|
2887
|
+
).annotate({
|
|
2888
|
+
identifier: "SearchTeamRequest",
|
|
2889
|
+
}) as any as S.Schema<SearchTeamRequest>;
|
|
2890
|
+
|
|
2891
|
+
export type SearchTeamResponseDataList = Array<Team>;
|
|
2892
|
+
export const SearchTeamResponseDataList = /*@__PURE__*/ S.Array(
|
|
2893
|
+
Team,
|
|
2894
|
+
) as any as S.Schema<SearchTeamResponseDataList>;
|
|
2895
|
+
|
|
2896
|
+
export interface SearchTeamResponse {
|
|
2897
|
+
data?: SearchTeamResponseDataList;
|
|
2898
|
+
ok?: boolean;
|
|
2899
|
+
}
|
|
2900
|
+
export const SearchTeamResponse = /*@__PURE__*/ S.suspend(() =>
|
|
2901
|
+
S.Struct({
|
|
2902
|
+
data: S.optional(SearchTeamResponseDataList),
|
|
2903
|
+
ok: S.optional(S.Boolean),
|
|
2904
|
+
}),
|
|
2905
|
+
).annotate({
|
|
2906
|
+
identifier: "SearchTeamResponse",
|
|
2907
|
+
}) as any as S.Schema<SearchTeamResponse>;
|
|
2908
|
+
|
|
2909
|
+
export interface UpdateOrgSecretRequest {
|
|
2910
|
+
/** name of organization */
|
|
2911
|
+
org: string;
|
|
2912
|
+
/** name of the secret */
|
|
2913
|
+
secretname: string;
|
|
2914
|
+
/** Data of the secret. Special characters will be retained. Line endings will be normalized to LF to match the behaviour of browsers. Encode the data with Base64 if line endings should be retained. */
|
|
2915
|
+
data: string;
|
|
2916
|
+
}
|
|
2917
|
+
export const UpdateOrgSecretRequest = /*@__PURE__*/ S.suspend(() =>
|
|
2918
|
+
S.Struct({
|
|
2919
|
+
org: S.String.pipe(T.Label()),
|
|
2920
|
+
secretname: S.String.pipe(T.Label()),
|
|
2921
|
+
data: S.String,
|
|
2922
|
+
}).pipe(
|
|
2923
|
+
T.Http({
|
|
2924
|
+
method: "PUT",
|
|
2925
|
+
uri: "/orgs/{org}/actions/secrets/{secretname}",
|
|
2926
|
+
code: 200,
|
|
2927
|
+
}),
|
|
2928
|
+
),
|
|
2929
|
+
).annotate({
|
|
2930
|
+
identifier: "UpdateOrgSecretRequest",
|
|
2931
|
+
}) as any as S.Schema<UpdateOrgSecretRequest>;
|
|
2932
|
+
|
|
2933
|
+
export interface UpdateOrgSecretResponse {}
|
|
2934
|
+
export const UpdateOrgSecretResponse = /*@__PURE__*/ S.suspend(() =>
|
|
2935
|
+
S.Struct({}),
|
|
2936
|
+
).annotate({
|
|
2937
|
+
identifier: "UpdateOrgSecretResponse",
|
|
2938
|
+
}) as any as S.Schema<UpdateOrgSecretResponse>;
|
|
2939
|
+
|
|
2940
|
+
export interface UpdateOrgVariableRequest {
|
|
2941
|
+
/** name of the organization */
|
|
2942
|
+
org: string;
|
|
2943
|
+
/** name of the variable */
|
|
2944
|
+
variablename: string;
|
|
2945
|
+
/** New name for the variable. If the field is empty, the variable name won't be updated. Forgejo will convert it to uppercase. */
|
|
2946
|
+
name?: string;
|
|
2947
|
+
/** Value of the variable to update. Special characters will be retained. Line endings will be normalized to LF to match the behaviour of browsers. Encode the data with Base64 if line endings should be retained. */
|
|
2948
|
+
value: string;
|
|
2949
|
+
}
|
|
2950
|
+
export const UpdateOrgVariableRequest = /*@__PURE__*/ S.suspend(() =>
|
|
2951
|
+
S.Struct({
|
|
2952
|
+
org: S.String.pipe(T.Label()),
|
|
2953
|
+
variablename: S.String.pipe(T.Label()),
|
|
2954
|
+
name: S.optional(S.String),
|
|
2955
|
+
value: S.String,
|
|
2956
|
+
}).pipe(
|
|
2957
|
+
T.Http({
|
|
2958
|
+
method: "PUT",
|
|
2959
|
+
uri: "/orgs/{org}/actions/variables/{variablename}",
|
|
2960
|
+
code: 200,
|
|
2961
|
+
}),
|
|
2962
|
+
),
|
|
2963
|
+
).annotate({
|
|
2964
|
+
identifier: "UpdateOrgVariableRequest",
|
|
2965
|
+
}) as any as S.Schema<UpdateOrgVariableRequest>;
|
|
2966
|
+
|
|
2967
|
+
export interface UpdateOrgVariableResponse {}
|
|
2968
|
+
export const UpdateOrgVariableResponse = /*@__PURE__*/ S.suspend(() =>
|
|
2969
|
+
S.Struct({}),
|
|
2970
|
+
).annotate({
|
|
2971
|
+
identifier: "UpdateOrgVariableResponse",
|
|
2972
|
+
}) as any as S.Schema<UpdateOrgVariableResponse>;
|
|
2973
|
+
|
|
2974
|
+
export type CreateOrgError = Forbidden | UnprocessableEntity | ForgejoOpError;
|
|
2975
|
+
/** Create an organization */
|
|
2976
|
+
export const createOrg: API.OperationMethod<
|
|
2977
|
+
CreateOrgRequest,
|
|
2978
|
+
Organization,
|
|
2979
|
+
CreateOrgError,
|
|
2980
|
+
ForgejoOpContext
|
|
2981
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
2982
|
+
input: CreateOrgRequest,
|
|
2983
|
+
output: Organization,
|
|
2984
|
+
errors: [Forbidden, UnprocessableEntity],
|
|
2985
|
+
protocol: ForgejoProtocol,
|
|
2986
|
+
retry: Retry.Retry,
|
|
2987
|
+
}));
|
|
2988
|
+
|
|
2989
|
+
export type CreateOrgRepoError =
|
|
2990
|
+
| BadRequest
|
|
2991
|
+
| Forbidden
|
|
2992
|
+
| NotFound
|
|
2993
|
+
| Conflict
|
|
2994
|
+
| ForgejoOpError;
|
|
2995
|
+
/** Create a repository in an organization */
|
|
2996
|
+
export const createOrgRepo: API.OperationMethod<
|
|
2997
|
+
CreateOrgRepoRequest,
|
|
2998
|
+
Repository,
|
|
2999
|
+
CreateOrgRepoError,
|
|
3000
|
+
ForgejoOpContext
|
|
3001
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
3002
|
+
input: CreateOrgRepoRequest,
|
|
3003
|
+
output: Repository,
|
|
3004
|
+
errors: [BadRequest, Forbidden, NotFound, Conflict],
|
|
3005
|
+
protocol: ForgejoProtocol,
|
|
3006
|
+
retry: Retry.Retry,
|
|
3007
|
+
}));
|
|
3008
|
+
|
|
3009
|
+
export type CreateOrgVariableError = BadRequest | NotFound | ForgejoOpError;
|
|
3010
|
+
/** Create a new variable in organization */
|
|
3011
|
+
export const createOrgVariable: API.OperationMethod<
|
|
3012
|
+
CreateOrgVariableRequest,
|
|
3013
|
+
CreateOrgVariableResponse,
|
|
3014
|
+
CreateOrgVariableError,
|
|
3015
|
+
ForgejoOpContext
|
|
3016
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
3017
|
+
input: CreateOrgVariableRequest,
|
|
3018
|
+
output: CreateOrgVariableResponse,
|
|
3019
|
+
errors: [BadRequest, NotFound],
|
|
3020
|
+
protocol: ForgejoProtocol,
|
|
3021
|
+
retry: Retry.Retry,
|
|
3022
|
+
}));
|
|
3023
|
+
|
|
3024
|
+
export type DeleteOrgError =
|
|
3025
|
+
| NotFound
|
|
3026
|
+
| OrganizationOwnsRepositories
|
|
3027
|
+
| ForgejoOpError;
|
|
3028
|
+
/** Delete an organization */
|
|
3029
|
+
export const deleteOrg: API.OperationMethod<
|
|
3030
|
+
DeleteOrgRequest,
|
|
3031
|
+
DeleteOrgResponse,
|
|
3032
|
+
DeleteOrgError,
|
|
3033
|
+
ForgejoOpContext
|
|
3034
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
3035
|
+
input: DeleteOrgRequest,
|
|
3036
|
+
output: DeleteOrgResponse,
|
|
3037
|
+
errors: [NotFound, OrganizationOwnsRepositories],
|
|
3038
|
+
protocol: ForgejoProtocol,
|
|
3039
|
+
retry: Retry.Retry,
|
|
3040
|
+
}));
|
|
3041
|
+
|
|
3042
|
+
export type DeleteOrgRunnerError = BadRequest | NotFound | ForgejoOpError;
|
|
3043
|
+
/** Delete a particular runner that belongs to the organization */
|
|
3044
|
+
export const deleteOrgRunner: API.OperationMethod<
|
|
3045
|
+
DeleteOrgRunnerRequest,
|
|
3046
|
+
DeleteOrgRunnerResponse,
|
|
3047
|
+
DeleteOrgRunnerError,
|
|
3048
|
+
ForgejoOpContext
|
|
3049
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
3050
|
+
input: DeleteOrgRunnerRequest,
|
|
3051
|
+
output: DeleteOrgRunnerResponse,
|
|
3052
|
+
errors: [BadRequest, NotFound],
|
|
3053
|
+
protocol: ForgejoProtocol,
|
|
3054
|
+
retry: Retry.Retry,
|
|
3055
|
+
}));
|
|
3056
|
+
|
|
3057
|
+
export type DeleteOrgSecretError = BadRequest | NotFound | ForgejoOpError;
|
|
3058
|
+
/** Delete a secret in an organization */
|
|
3059
|
+
export const deleteOrgSecret: API.OperationMethod<
|
|
3060
|
+
DeleteOrgSecretRequest,
|
|
3061
|
+
DeleteOrgSecretResponse,
|
|
3062
|
+
DeleteOrgSecretError,
|
|
3063
|
+
ForgejoOpContext
|
|
3064
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
3065
|
+
input: DeleteOrgSecretRequest,
|
|
3066
|
+
output: DeleteOrgSecretResponse,
|
|
3067
|
+
errors: [BadRequest, NotFound],
|
|
3068
|
+
protocol: ForgejoProtocol,
|
|
3069
|
+
retry: Retry.Retry,
|
|
3070
|
+
}));
|
|
3071
|
+
|
|
3072
|
+
export type DeleteOrgVariableError = BadRequest | NotFound | ForgejoOpError;
|
|
3073
|
+
/** Delete organization's variable by name */
|
|
3074
|
+
export const deleteOrgVariable: API.OperationMethod<
|
|
3075
|
+
DeleteOrgVariableRequest,
|
|
3076
|
+
DeleteOrgVariableResponse,
|
|
3077
|
+
DeleteOrgVariableError,
|
|
3078
|
+
ForgejoOpContext
|
|
3079
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
3080
|
+
input: DeleteOrgVariableRequest,
|
|
3081
|
+
output: DeleteOrgVariableResponse,
|
|
3082
|
+
errors: [BadRequest, NotFound],
|
|
3083
|
+
protocol: ForgejoProtocol,
|
|
3084
|
+
retry: Retry.Retry,
|
|
3085
|
+
}));
|
|
3086
|
+
|
|
3087
|
+
export type EditOrgError = NotFound | UnprocessableEntity | ForgejoOpError;
|
|
3088
|
+
/** Edit an organization */
|
|
3089
|
+
export const editOrg: API.OperationMethod<
|
|
3090
|
+
EditOrgRequest,
|
|
3091
|
+
Organization,
|
|
3092
|
+
EditOrgError,
|
|
3093
|
+
ForgejoOpContext
|
|
3094
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
3095
|
+
input: EditOrgRequest,
|
|
3096
|
+
output: Organization,
|
|
3097
|
+
errors: [NotFound, UnprocessableEntity],
|
|
3098
|
+
protocol: ForgejoProtocol,
|
|
3099
|
+
retry: Retry.Retry,
|
|
3100
|
+
}));
|
|
3101
|
+
|
|
3102
|
+
export type GetOrgError = NotFound | ForgejoOpError;
|
|
3103
|
+
/** Get an organization */
|
|
3104
|
+
export const getOrg: API.OperationMethod<
|
|
3105
|
+
GetOrgRequest,
|
|
3106
|
+
Organization,
|
|
3107
|
+
GetOrgError,
|
|
3108
|
+
ForgejoOpContext
|
|
3109
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
3110
|
+
input: GetOrgRequest,
|
|
3111
|
+
output: Organization,
|
|
3112
|
+
errors: [NotFound],
|
|
3113
|
+
protocol: ForgejoProtocol,
|
|
3114
|
+
retry: Retry.Retry,
|
|
3115
|
+
}));
|
|
3116
|
+
|
|
3117
|
+
export type GetOrgRunnerError = BadRequest | NotFound | ForgejoOpError;
|
|
3118
|
+
/** Get a particular runner that belongs to the organization */
|
|
3119
|
+
export const getOrgRunner: API.OperationMethod<
|
|
3120
|
+
GetOrgRunnerRequest,
|
|
3121
|
+
ActionRunner,
|
|
3122
|
+
GetOrgRunnerError,
|
|
3123
|
+
ForgejoOpContext
|
|
3124
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
3125
|
+
input: GetOrgRunnerRequest,
|
|
3126
|
+
output: ActionRunner,
|
|
3127
|
+
errors: [BadRequest, NotFound],
|
|
3128
|
+
protocol: ForgejoProtocol,
|
|
3129
|
+
retry: Retry.Retry,
|
|
3130
|
+
}));
|
|
3131
|
+
|
|
3132
|
+
export type GetOrgRunnersError = BadRequest | NotFound | ForgejoOpError;
|
|
3133
|
+
/** Get the organization's runners */
|
|
3134
|
+
export const getOrgRunners: API.OperationMethod<
|
|
3135
|
+
GetOrgRunnersRequest,
|
|
3136
|
+
GetOrgRunnersResponse,
|
|
3137
|
+
GetOrgRunnersError,
|
|
3138
|
+
ForgejoOpContext
|
|
3139
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
3140
|
+
input: GetOrgRunnersRequest,
|
|
3141
|
+
output: GetOrgRunnersResponse,
|
|
3142
|
+
errors: [BadRequest, NotFound],
|
|
3143
|
+
protocol: ForgejoProtocol,
|
|
3144
|
+
retry: Retry.Retry,
|
|
3145
|
+
}));
|
|
3146
|
+
|
|
3147
|
+
export type GetOrgVariableError = BadRequest | NotFound | ForgejoOpError;
|
|
3148
|
+
/** Get organization's variable by name */
|
|
3149
|
+
export const getOrgVariable: API.OperationMethod<
|
|
3150
|
+
GetOrgVariableRequest,
|
|
3151
|
+
ActionVariable,
|
|
3152
|
+
GetOrgVariableError,
|
|
3153
|
+
ForgejoOpContext
|
|
3154
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
3155
|
+
input: GetOrgVariableRequest,
|
|
3156
|
+
output: ActionVariable,
|
|
3157
|
+
errors: [BadRequest, NotFound],
|
|
3158
|
+
protocol: ForgejoProtocol,
|
|
3159
|
+
retry: Retry.Retry,
|
|
3160
|
+
}));
|
|
3161
|
+
|
|
3162
|
+
export type GetOrgVariablesListError =
|
|
3163
|
+
| BadRequest
|
|
3164
|
+
| Forbidden
|
|
3165
|
+
| NotFound
|
|
3166
|
+
| ForgejoOpError;
|
|
3167
|
+
/** List variables of an organization */
|
|
3168
|
+
export const getOrgVariablesList: API.OperationMethod<
|
|
3169
|
+
GetOrgVariablesListRequest,
|
|
3170
|
+
GetOrgVariablesListResponse,
|
|
3171
|
+
GetOrgVariablesListError,
|
|
3172
|
+
ForgejoOpContext
|
|
3173
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
3174
|
+
input: GetOrgVariablesListRequest,
|
|
3175
|
+
output: GetOrgVariablesListResponse,
|
|
3176
|
+
errors: [BadRequest, Forbidden, NotFound],
|
|
3177
|
+
protocol: ForgejoProtocol,
|
|
3178
|
+
retry: Retry.Retry,
|
|
3179
|
+
}));
|
|
3180
|
+
|
|
3181
|
+
export type OrgAddTeamMemberError = NotFound | ForgejoOpError;
|
|
3182
|
+
/** Add a team member */
|
|
3183
|
+
export const orgAddTeamMember: API.OperationMethod<
|
|
3184
|
+
OrgAddTeamMemberRequest,
|
|
3185
|
+
OrgAddTeamMemberResponse,
|
|
3186
|
+
OrgAddTeamMemberError,
|
|
3187
|
+
ForgejoOpContext
|
|
3188
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
3189
|
+
input: OrgAddTeamMemberRequest,
|
|
3190
|
+
output: OrgAddTeamMemberResponse,
|
|
3191
|
+
errors: [NotFound],
|
|
3192
|
+
protocol: ForgejoProtocol,
|
|
3193
|
+
retry: Retry.Retry,
|
|
3194
|
+
}));
|
|
3195
|
+
|
|
3196
|
+
export type OrgAddTeamRepositoryError = Forbidden | NotFound | ForgejoOpError;
|
|
3197
|
+
/** Add a repository to a team */
|
|
3198
|
+
export const orgAddTeamRepository: API.OperationMethod<
|
|
3199
|
+
OrgAddTeamRepositoryRequest,
|
|
3200
|
+
OrgAddTeamRepositoryResponse,
|
|
3201
|
+
OrgAddTeamRepositoryError,
|
|
3202
|
+
ForgejoOpContext
|
|
3203
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
3204
|
+
input: OrgAddTeamRepositoryRequest,
|
|
3205
|
+
output: OrgAddTeamRepositoryResponse,
|
|
3206
|
+
errors: [Forbidden, NotFound],
|
|
3207
|
+
protocol: ForgejoProtocol,
|
|
3208
|
+
retry: Retry.Retry,
|
|
3209
|
+
}));
|
|
3210
|
+
|
|
3211
|
+
export type OrgBlockUserError = NotFound | UnprocessableEntity | ForgejoOpError;
|
|
3212
|
+
/** Blocks a user from the organization */
|
|
3213
|
+
export const orgBlockUser: API.OperationMethod<
|
|
3214
|
+
OrgBlockUserRequest,
|
|
3215
|
+
OrgBlockUserResponse,
|
|
3216
|
+
OrgBlockUserError,
|
|
3217
|
+
ForgejoOpContext
|
|
3218
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
3219
|
+
input: OrgBlockUserRequest,
|
|
3220
|
+
output: OrgBlockUserResponse,
|
|
3221
|
+
errors: [NotFound, UnprocessableEntity],
|
|
3222
|
+
protocol: ForgejoProtocol,
|
|
3223
|
+
retry: Retry.Retry,
|
|
3224
|
+
}));
|
|
3225
|
+
|
|
3226
|
+
export type OrgCheckQuotaError =
|
|
3227
|
+
| Forbidden
|
|
3228
|
+
| NotFound
|
|
3229
|
+
| UnprocessableEntity
|
|
3230
|
+
| ForgejoOpError;
|
|
3231
|
+
/** Check if the organization is over quota for a given subject */
|
|
3232
|
+
export const orgCheckQuota: API.OperationMethod<
|
|
3233
|
+
OrgCheckQuotaRequest,
|
|
3234
|
+
OrgCheckQuotaResponse,
|
|
3235
|
+
OrgCheckQuotaError,
|
|
3236
|
+
ForgejoOpContext
|
|
3237
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
3238
|
+
input: OrgCheckQuotaRequest,
|
|
3239
|
+
output: OrgCheckQuotaResponse,
|
|
3240
|
+
errors: [Forbidden, NotFound, UnprocessableEntity],
|
|
3241
|
+
protocol: ForgejoProtocol,
|
|
3242
|
+
retry: Retry.Retry,
|
|
3243
|
+
}));
|
|
3244
|
+
|
|
3245
|
+
export type OrgConcealMemberError = Forbidden | NotFound | ForgejoOpError;
|
|
3246
|
+
/** Conceal a user's membership */
|
|
3247
|
+
export const orgConcealMember: API.OperationMethod<
|
|
3248
|
+
OrgConcealMemberRequest,
|
|
3249
|
+
OrgConcealMemberResponse,
|
|
3250
|
+
OrgConcealMemberError,
|
|
3251
|
+
ForgejoOpContext
|
|
3252
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
3253
|
+
input: OrgConcealMemberRequest,
|
|
3254
|
+
output: OrgConcealMemberResponse,
|
|
3255
|
+
errors: [Forbidden, NotFound],
|
|
3256
|
+
protocol: ForgejoProtocol,
|
|
3257
|
+
retry: Retry.Retry,
|
|
3258
|
+
}));
|
|
3259
|
+
|
|
3260
|
+
export type OrgCreateHookError = NotFound | ForgejoOpError;
|
|
3261
|
+
/** Create a hook */
|
|
3262
|
+
export const orgCreateHook: API.OperationMethod<
|
|
3263
|
+
OrgCreateHookRequest,
|
|
3264
|
+
Hook,
|
|
3265
|
+
OrgCreateHookError,
|
|
3266
|
+
ForgejoOpContext
|
|
3267
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
3268
|
+
input: OrgCreateHookRequest,
|
|
3269
|
+
output: Hook,
|
|
3270
|
+
errors: [NotFound],
|
|
3271
|
+
protocol: ForgejoProtocol,
|
|
3272
|
+
retry: Retry.Retry,
|
|
3273
|
+
}));
|
|
3274
|
+
|
|
3275
|
+
export type OrgCreateLabelError =
|
|
3276
|
+
| NotFound
|
|
3277
|
+
| UnprocessableEntity
|
|
3278
|
+
| ForgejoOpError;
|
|
3279
|
+
/** Create a label for an organization */
|
|
3280
|
+
export const orgCreateLabel: API.OperationMethod<
|
|
3281
|
+
OrgCreateLabelRequest,
|
|
3282
|
+
Label,
|
|
3283
|
+
OrgCreateLabelError,
|
|
3284
|
+
ForgejoOpContext
|
|
3285
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
3286
|
+
input: OrgCreateLabelRequest,
|
|
3287
|
+
output: Label,
|
|
3288
|
+
errors: [NotFound, UnprocessableEntity],
|
|
3289
|
+
protocol: ForgejoProtocol,
|
|
3290
|
+
retry: Retry.Retry,
|
|
3291
|
+
}));
|
|
3292
|
+
|
|
3293
|
+
export type OrgCreateTeamError =
|
|
3294
|
+
| NotFound
|
|
3295
|
+
| UnprocessableEntity
|
|
3296
|
+
| ForgejoOpError;
|
|
3297
|
+
/** Create a team */
|
|
3298
|
+
export const orgCreateTeam: API.OperationMethod<
|
|
3299
|
+
OrgCreateTeamRequest,
|
|
3300
|
+
Team,
|
|
3301
|
+
OrgCreateTeamError,
|
|
3302
|
+
ForgejoOpContext
|
|
3303
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
3304
|
+
input: OrgCreateTeamRequest,
|
|
3305
|
+
output: Team,
|
|
3306
|
+
errors: [NotFound, UnprocessableEntity],
|
|
3307
|
+
protocol: ForgejoProtocol,
|
|
3308
|
+
retry: Retry.Retry,
|
|
3309
|
+
}));
|
|
3310
|
+
|
|
3311
|
+
export type OrgDeleteAvatarError = NotFound | ForgejoOpError;
|
|
3312
|
+
/** Delete an organization's avatar. It will be replaced by a default one */
|
|
3313
|
+
export const orgDeleteAvatar: API.OperationMethod<
|
|
3314
|
+
OrgDeleteAvatarRequest,
|
|
3315
|
+
OrgDeleteAvatarResponse,
|
|
3316
|
+
OrgDeleteAvatarError,
|
|
3317
|
+
ForgejoOpContext
|
|
3318
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
3319
|
+
input: OrgDeleteAvatarRequest,
|
|
3320
|
+
output: OrgDeleteAvatarResponse,
|
|
3321
|
+
errors: [NotFound],
|
|
3322
|
+
protocol: ForgejoProtocol,
|
|
3323
|
+
retry: Retry.Retry,
|
|
3324
|
+
}));
|
|
3325
|
+
|
|
3326
|
+
export type OrgDeleteHookError = NotFound | ForgejoOpError;
|
|
3327
|
+
/** Delete a hook */
|
|
3328
|
+
export const orgDeleteHook: API.OperationMethod<
|
|
3329
|
+
OrgDeleteHookRequest,
|
|
3330
|
+
OrgDeleteHookResponse,
|
|
3331
|
+
OrgDeleteHookError,
|
|
3332
|
+
ForgejoOpContext
|
|
3333
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
3334
|
+
input: OrgDeleteHookRequest,
|
|
3335
|
+
output: OrgDeleteHookResponse,
|
|
3336
|
+
errors: [NotFound],
|
|
3337
|
+
protocol: ForgejoProtocol,
|
|
3338
|
+
retry: Retry.Retry,
|
|
3339
|
+
}));
|
|
3340
|
+
|
|
3341
|
+
export type OrgDeleteLabelError = NotFound | ForgejoOpError;
|
|
3342
|
+
/** Delete a label */
|
|
3343
|
+
export const orgDeleteLabel: API.OperationMethod<
|
|
3344
|
+
OrgDeleteLabelRequest,
|
|
3345
|
+
OrgDeleteLabelResponse,
|
|
3346
|
+
OrgDeleteLabelError,
|
|
3347
|
+
ForgejoOpContext
|
|
3348
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
3349
|
+
input: OrgDeleteLabelRequest,
|
|
3350
|
+
output: OrgDeleteLabelResponse,
|
|
3351
|
+
errors: [NotFound],
|
|
3352
|
+
protocol: ForgejoProtocol,
|
|
3353
|
+
retry: Retry.Retry,
|
|
3354
|
+
}));
|
|
3355
|
+
|
|
3356
|
+
export type OrgDeleteMemberError = NotFound | ForgejoOpError;
|
|
3357
|
+
/** Remove a member from an organization */
|
|
3358
|
+
export const orgDeleteMember: API.OperationMethod<
|
|
3359
|
+
OrgDeleteMemberRequest,
|
|
3360
|
+
OrgDeleteMemberResponse,
|
|
3361
|
+
OrgDeleteMemberError,
|
|
3362
|
+
ForgejoOpContext
|
|
3363
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
3364
|
+
input: OrgDeleteMemberRequest,
|
|
3365
|
+
output: OrgDeleteMemberResponse,
|
|
3366
|
+
errors: [NotFound],
|
|
3367
|
+
protocol: ForgejoProtocol,
|
|
3368
|
+
retry: Retry.Retry,
|
|
3369
|
+
}));
|
|
3370
|
+
|
|
3371
|
+
export type OrgDeleteTeamError = NotFound | ForgejoOpError;
|
|
3372
|
+
/** Delete a team */
|
|
3373
|
+
export const orgDeleteTeam: API.OperationMethod<
|
|
3374
|
+
OrgDeleteTeamRequest,
|
|
3375
|
+
OrgDeleteTeamResponse,
|
|
3376
|
+
OrgDeleteTeamError,
|
|
3377
|
+
ForgejoOpContext
|
|
3378
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
3379
|
+
input: OrgDeleteTeamRequest,
|
|
3380
|
+
output: OrgDeleteTeamResponse,
|
|
3381
|
+
errors: [NotFound],
|
|
3382
|
+
protocol: ForgejoProtocol,
|
|
3383
|
+
retry: Retry.Retry,
|
|
3384
|
+
}));
|
|
3385
|
+
|
|
3386
|
+
export type OrgEditHookError = NotFound | ForgejoOpError;
|
|
3387
|
+
/** Update a hook */
|
|
3388
|
+
export const orgEditHook: API.OperationMethod<
|
|
3389
|
+
OrgEditHookRequest,
|
|
3390
|
+
Hook,
|
|
3391
|
+
OrgEditHookError,
|
|
3392
|
+
ForgejoOpContext
|
|
3393
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
3394
|
+
input: OrgEditHookRequest,
|
|
3395
|
+
output: Hook,
|
|
3396
|
+
errors: [NotFound],
|
|
3397
|
+
protocol: ForgejoProtocol,
|
|
3398
|
+
retry: Retry.Retry,
|
|
3399
|
+
}));
|
|
3400
|
+
|
|
3401
|
+
export type OrgEditLabelError = NotFound | UnprocessableEntity | ForgejoOpError;
|
|
3402
|
+
/** Update a label */
|
|
3403
|
+
export const orgEditLabel: API.OperationMethod<
|
|
3404
|
+
OrgEditLabelRequest,
|
|
3405
|
+
Label,
|
|
3406
|
+
OrgEditLabelError,
|
|
3407
|
+
ForgejoOpContext
|
|
3408
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
3409
|
+
input: OrgEditLabelRequest,
|
|
3410
|
+
output: Label,
|
|
3411
|
+
errors: [NotFound, UnprocessableEntity],
|
|
3412
|
+
protocol: ForgejoProtocol,
|
|
3413
|
+
retry: Retry.Retry,
|
|
3414
|
+
}));
|
|
3415
|
+
|
|
3416
|
+
export type OrgEditTeamError = NotFound | ForgejoOpError;
|
|
3417
|
+
/** Edit a team */
|
|
3418
|
+
export const orgEditTeam: API.OperationMethod<
|
|
3419
|
+
OrgEditTeamRequest,
|
|
3420
|
+
Team,
|
|
3421
|
+
OrgEditTeamError,
|
|
3422
|
+
ForgejoOpContext
|
|
3423
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
3424
|
+
input: OrgEditTeamRequest,
|
|
3425
|
+
output: Team,
|
|
3426
|
+
errors: [NotFound],
|
|
3427
|
+
protocol: ForgejoProtocol,
|
|
3428
|
+
retry: Retry.Retry,
|
|
3429
|
+
}));
|
|
3430
|
+
|
|
3431
|
+
export type OrgGetAllError = ForgejoOpError;
|
|
3432
|
+
/** List all organizations */
|
|
3433
|
+
export const orgGetAll: API.OperationMethod<
|
|
3434
|
+
OrgGetAllRequest,
|
|
3435
|
+
OrgGetAllResponse,
|
|
3436
|
+
OrgGetAllError,
|
|
3437
|
+
ForgejoOpContext
|
|
3438
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
3439
|
+
input: OrgGetAllRequest,
|
|
3440
|
+
output: OrgGetAllResponse,
|
|
3441
|
+
errors: [],
|
|
3442
|
+
protocol: ForgejoProtocol,
|
|
3443
|
+
retry: Retry.Retry,
|
|
3444
|
+
}));
|
|
3445
|
+
|
|
3446
|
+
export type OrgGetHookError = NotFound | ForgejoOpError;
|
|
3447
|
+
/** Get a hook */
|
|
3448
|
+
export const orgGetHook: API.OperationMethod<
|
|
3449
|
+
OrgGetHookRequest,
|
|
3450
|
+
Hook,
|
|
3451
|
+
OrgGetHookError,
|
|
3452
|
+
ForgejoOpContext
|
|
3453
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
3454
|
+
input: OrgGetHookRequest,
|
|
3455
|
+
output: Hook,
|
|
3456
|
+
errors: [NotFound],
|
|
3457
|
+
protocol: ForgejoProtocol,
|
|
3458
|
+
retry: Retry.Retry,
|
|
3459
|
+
}));
|
|
3460
|
+
|
|
3461
|
+
export type OrgGetLabelError = NotFound | ForgejoOpError;
|
|
3462
|
+
/** Get a single label */
|
|
3463
|
+
export const orgGetLabel: API.OperationMethod<
|
|
3464
|
+
OrgGetLabelRequest,
|
|
3465
|
+
Label,
|
|
3466
|
+
OrgGetLabelError,
|
|
3467
|
+
ForgejoOpContext
|
|
3468
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
3469
|
+
input: OrgGetLabelRequest,
|
|
3470
|
+
output: Label,
|
|
3471
|
+
errors: [NotFound],
|
|
3472
|
+
protocol: ForgejoProtocol,
|
|
3473
|
+
retry: Retry.Retry,
|
|
3474
|
+
}));
|
|
3475
|
+
|
|
3476
|
+
export type OrgGetQuotaError = Forbidden | NotFound | ForgejoOpError;
|
|
3477
|
+
/** Get quota information for an organization */
|
|
3478
|
+
export const orgGetQuota: API.OperationMethod<
|
|
3479
|
+
OrgGetQuotaRequest,
|
|
3480
|
+
QuotaInfo,
|
|
3481
|
+
OrgGetQuotaError,
|
|
3482
|
+
ForgejoOpContext
|
|
3483
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
3484
|
+
input: OrgGetQuotaRequest,
|
|
3485
|
+
output: QuotaInfo,
|
|
3486
|
+
errors: [Forbidden, NotFound],
|
|
3487
|
+
protocol: ForgejoProtocol,
|
|
3488
|
+
retry: Retry.Retry,
|
|
3489
|
+
}));
|
|
3490
|
+
|
|
3491
|
+
export type OrgGetTeamError = NotFound | ForgejoOpError;
|
|
3492
|
+
/** Get a team */
|
|
3493
|
+
export const orgGetTeam: API.OperationMethod<
|
|
3494
|
+
OrgGetTeamRequest,
|
|
3495
|
+
Team,
|
|
3496
|
+
OrgGetTeamError,
|
|
3497
|
+
ForgejoOpContext
|
|
3498
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
3499
|
+
input: OrgGetTeamRequest,
|
|
3500
|
+
output: Team,
|
|
3501
|
+
errors: [NotFound],
|
|
3502
|
+
protocol: ForgejoProtocol,
|
|
3503
|
+
retry: Retry.Retry,
|
|
3504
|
+
}));
|
|
3505
|
+
|
|
3506
|
+
export type OrgGetUserPermissionsError = Forbidden | NotFound | ForgejoOpError;
|
|
3507
|
+
/** Get user permissions in organization */
|
|
3508
|
+
export const orgGetUserPermissions: API.OperationMethod<
|
|
3509
|
+
OrgGetUserPermissionsRequest,
|
|
3510
|
+
OrganizationPermissions,
|
|
3511
|
+
OrgGetUserPermissionsError,
|
|
3512
|
+
ForgejoOpContext
|
|
3513
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
3514
|
+
input: OrgGetUserPermissionsRequest,
|
|
3515
|
+
output: OrganizationPermissions,
|
|
3516
|
+
errors: [Forbidden, NotFound],
|
|
3517
|
+
protocol: ForgejoProtocol,
|
|
3518
|
+
retry: Retry.Retry,
|
|
3519
|
+
}));
|
|
3520
|
+
|
|
3521
|
+
export type OrgIsMemberError = NotFound | ForgejoOpError;
|
|
3522
|
+
/** Check if a user is a member of an organization */
|
|
3523
|
+
export const orgIsMember: API.OperationMethod<
|
|
3524
|
+
OrgIsMemberRequest,
|
|
3525
|
+
OrgIsMemberResponse,
|
|
3526
|
+
OrgIsMemberError,
|
|
3527
|
+
ForgejoOpContext
|
|
3528
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
3529
|
+
input: OrgIsMemberRequest,
|
|
3530
|
+
output: OrgIsMemberResponse,
|
|
3531
|
+
errors: [NotFound],
|
|
3532
|
+
protocol: ForgejoProtocol,
|
|
3533
|
+
retry: Retry.Retry,
|
|
3534
|
+
}));
|
|
3535
|
+
|
|
3536
|
+
export type OrgIsPublicMemberError = NotFound | ForgejoOpError;
|
|
3537
|
+
/** Check if a user is a public member of an organization */
|
|
3538
|
+
export const orgIsPublicMember: API.OperationMethod<
|
|
3539
|
+
OrgIsPublicMemberRequest,
|
|
3540
|
+
OrgIsPublicMemberResponse,
|
|
3541
|
+
OrgIsPublicMemberError,
|
|
3542
|
+
ForgejoOpContext
|
|
3543
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
3544
|
+
input: OrgIsPublicMemberRequest,
|
|
3545
|
+
output: OrgIsPublicMemberResponse,
|
|
3546
|
+
errors: [NotFound],
|
|
3547
|
+
protocol: ForgejoProtocol,
|
|
3548
|
+
retry: Retry.Retry,
|
|
3549
|
+
}));
|
|
3550
|
+
|
|
3551
|
+
export type OrgListActionsSecretsError = Forbidden | NotFound | ForgejoOpError;
|
|
3552
|
+
/** List actions secrets of an organization */
|
|
3553
|
+
export const orgListActionsSecrets: API.OperationMethod<
|
|
3554
|
+
OrgListActionsSecretsRequest,
|
|
3555
|
+
OrgListActionsSecretsResponse,
|
|
3556
|
+
OrgListActionsSecretsError,
|
|
3557
|
+
ForgejoOpContext
|
|
3558
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
3559
|
+
input: OrgListActionsSecretsRequest,
|
|
3560
|
+
output: OrgListActionsSecretsResponse,
|
|
3561
|
+
errors: [Forbidden, NotFound],
|
|
3562
|
+
protocol: ForgejoProtocol,
|
|
3563
|
+
retry: Retry.Retry,
|
|
3564
|
+
}));
|
|
3565
|
+
|
|
3566
|
+
export type OrgListActivityFeedsError = NotFound | ForgejoOpError;
|
|
3567
|
+
/** List an organization's activity feeds */
|
|
3568
|
+
export const orgListActivityFeeds: API.OperationMethod<
|
|
3569
|
+
OrgListActivityFeedsRequest,
|
|
3570
|
+
OrgListActivityFeedsResponse,
|
|
3571
|
+
OrgListActivityFeedsError,
|
|
3572
|
+
ForgejoOpContext
|
|
3573
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
3574
|
+
input: OrgListActivityFeedsRequest,
|
|
3575
|
+
output: OrgListActivityFeedsResponse,
|
|
3576
|
+
errors: [NotFound],
|
|
3577
|
+
protocol: ForgejoProtocol,
|
|
3578
|
+
retry: Retry.Retry,
|
|
3579
|
+
}));
|
|
3580
|
+
|
|
3581
|
+
export type OrgListBlockedUsersError = ForgejoOpError;
|
|
3582
|
+
/** List the organization's blocked users */
|
|
3583
|
+
export const orgListBlockedUsers: API.OperationMethod<
|
|
3584
|
+
OrgListBlockedUsersRequest,
|
|
3585
|
+
OrgListBlockedUsersResponse,
|
|
3586
|
+
OrgListBlockedUsersError,
|
|
3587
|
+
ForgejoOpContext
|
|
3588
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
3589
|
+
input: OrgListBlockedUsersRequest,
|
|
3590
|
+
output: OrgListBlockedUsersResponse,
|
|
3591
|
+
errors: [],
|
|
3592
|
+
protocol: ForgejoProtocol,
|
|
3593
|
+
retry: Retry.Retry,
|
|
3594
|
+
}));
|
|
3595
|
+
|
|
3596
|
+
export type OrgListCurrentUserOrgsError = Forbidden | NotFound | ForgejoOpError;
|
|
3597
|
+
/** List the current user's organizations */
|
|
3598
|
+
export const orgListCurrentUserOrgs: API.OperationMethod<
|
|
3599
|
+
OrgListCurrentUserOrgsRequest,
|
|
3600
|
+
OrgListCurrentUserOrgsResponse,
|
|
3601
|
+
OrgListCurrentUserOrgsError,
|
|
3602
|
+
ForgejoOpContext
|
|
3603
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
3604
|
+
input: OrgListCurrentUserOrgsRequest,
|
|
3605
|
+
output: OrgListCurrentUserOrgsResponse,
|
|
3606
|
+
errors: [Forbidden, NotFound],
|
|
3607
|
+
protocol: ForgejoProtocol,
|
|
3608
|
+
retry: Retry.Retry,
|
|
3609
|
+
}));
|
|
3610
|
+
|
|
3611
|
+
export type OrgListHooksError = NotFound | ForgejoOpError;
|
|
3612
|
+
/** List an organization's webhooks */
|
|
3613
|
+
export const orgListHooks: API.OperationMethod<
|
|
3614
|
+
OrgListHooksRequest,
|
|
3615
|
+
OrgListHooksResponse,
|
|
3616
|
+
OrgListHooksError,
|
|
3617
|
+
ForgejoOpContext
|
|
3618
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
3619
|
+
input: OrgListHooksRequest,
|
|
3620
|
+
output: OrgListHooksResponse,
|
|
3621
|
+
errors: [NotFound],
|
|
3622
|
+
protocol: ForgejoProtocol,
|
|
3623
|
+
retry: Retry.Retry,
|
|
3624
|
+
}));
|
|
3625
|
+
|
|
3626
|
+
export type OrgListLabelsError = NotFound | ForgejoOpError;
|
|
3627
|
+
/** List an organization's labels */
|
|
3628
|
+
export const orgListLabels: API.OperationMethod<
|
|
3629
|
+
OrgListLabelsRequest,
|
|
3630
|
+
OrgListLabelsResponse,
|
|
3631
|
+
OrgListLabelsError,
|
|
3632
|
+
ForgejoOpContext
|
|
3633
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
3634
|
+
input: OrgListLabelsRequest,
|
|
3635
|
+
output: OrgListLabelsResponse,
|
|
3636
|
+
errors: [NotFound],
|
|
3637
|
+
protocol: ForgejoProtocol,
|
|
3638
|
+
retry: Retry.Retry,
|
|
3639
|
+
}));
|
|
3640
|
+
|
|
3641
|
+
export type OrgListMembersError = NotFound | ForgejoOpError;
|
|
3642
|
+
/** List an organization's members */
|
|
3643
|
+
export const orgListMembers: API.OperationMethod<
|
|
3644
|
+
OrgListMembersRequest,
|
|
3645
|
+
OrgListMembersResponse,
|
|
3646
|
+
OrgListMembersError,
|
|
3647
|
+
ForgejoOpContext
|
|
3648
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
3649
|
+
input: OrgListMembersRequest,
|
|
3650
|
+
output: OrgListMembersResponse,
|
|
3651
|
+
errors: [NotFound],
|
|
3652
|
+
protocol: ForgejoProtocol,
|
|
3653
|
+
retry: Retry.Retry,
|
|
3654
|
+
}));
|
|
3655
|
+
|
|
3656
|
+
export type OrgListPublicMembersError = NotFound | ForgejoOpError;
|
|
3657
|
+
/** List an organization's public members */
|
|
3658
|
+
export const orgListPublicMembers: API.OperationMethod<
|
|
3659
|
+
OrgListPublicMembersRequest,
|
|
3660
|
+
OrgListPublicMembersResponse,
|
|
3661
|
+
OrgListPublicMembersError,
|
|
3662
|
+
ForgejoOpContext
|
|
3663
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
3664
|
+
input: OrgListPublicMembersRequest,
|
|
3665
|
+
output: OrgListPublicMembersResponse,
|
|
3666
|
+
errors: [NotFound],
|
|
3667
|
+
protocol: ForgejoProtocol,
|
|
3668
|
+
retry: Retry.Retry,
|
|
3669
|
+
}));
|
|
3670
|
+
|
|
3671
|
+
export type OrgListQuotaArtifactsError = Forbidden | NotFound | ForgejoOpError;
|
|
3672
|
+
/** List the artifacts affecting the organization's quota */
|
|
3673
|
+
export const orgListQuotaArtifacts: API.OperationMethod<
|
|
3674
|
+
OrgListQuotaArtifactsRequest,
|
|
3675
|
+
OrgListQuotaArtifactsResponse,
|
|
3676
|
+
OrgListQuotaArtifactsError,
|
|
3677
|
+
ForgejoOpContext
|
|
3678
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
3679
|
+
input: OrgListQuotaArtifactsRequest,
|
|
3680
|
+
output: OrgListQuotaArtifactsResponse,
|
|
3681
|
+
errors: [Forbidden, NotFound],
|
|
3682
|
+
protocol: ForgejoProtocol,
|
|
3683
|
+
retry: Retry.Retry,
|
|
3684
|
+
}));
|
|
3685
|
+
|
|
3686
|
+
export type OrgListQuotaAttachmentsError =
|
|
3687
|
+
| Forbidden
|
|
3688
|
+
| NotFound
|
|
3689
|
+
| ForgejoOpError;
|
|
3690
|
+
/** List the attachments affecting the organization's quota */
|
|
3691
|
+
export const orgListQuotaAttachments: API.OperationMethod<
|
|
3692
|
+
OrgListQuotaAttachmentsRequest,
|
|
3693
|
+
OrgListQuotaAttachmentsResponse,
|
|
3694
|
+
OrgListQuotaAttachmentsError,
|
|
3695
|
+
ForgejoOpContext
|
|
3696
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
3697
|
+
input: OrgListQuotaAttachmentsRequest,
|
|
3698
|
+
output: OrgListQuotaAttachmentsResponse,
|
|
3699
|
+
errors: [Forbidden, NotFound],
|
|
3700
|
+
protocol: ForgejoProtocol,
|
|
3701
|
+
retry: Retry.Retry,
|
|
3702
|
+
}));
|
|
3703
|
+
|
|
3704
|
+
export type OrgListQuotaPackagesError = Forbidden | NotFound | ForgejoOpError;
|
|
3705
|
+
/** List the packages affecting the organization's quota */
|
|
3706
|
+
export const orgListQuotaPackages: API.OperationMethod<
|
|
3707
|
+
OrgListQuotaPackagesRequest,
|
|
3708
|
+
OrgListQuotaPackagesResponse,
|
|
3709
|
+
OrgListQuotaPackagesError,
|
|
3710
|
+
ForgejoOpContext
|
|
3711
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
3712
|
+
input: OrgListQuotaPackagesRequest,
|
|
3713
|
+
output: OrgListQuotaPackagesResponse,
|
|
3714
|
+
errors: [Forbidden, NotFound],
|
|
3715
|
+
protocol: ForgejoProtocol,
|
|
3716
|
+
retry: Retry.Retry,
|
|
3717
|
+
}));
|
|
3718
|
+
|
|
3719
|
+
export type OrgListReposError = NotFound | ForgejoOpError;
|
|
3720
|
+
/** List an organization's repos */
|
|
3721
|
+
export const orgListRepos: API.OperationMethod<
|
|
3722
|
+
OrgListReposRequest,
|
|
3723
|
+
OrgListReposResponse,
|
|
3724
|
+
OrgListReposError,
|
|
3725
|
+
ForgejoOpContext
|
|
3726
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
3727
|
+
input: OrgListReposRequest,
|
|
3728
|
+
output: OrgListReposResponse,
|
|
3729
|
+
errors: [NotFound],
|
|
3730
|
+
protocol: ForgejoProtocol,
|
|
3731
|
+
retry: Retry.Retry,
|
|
3732
|
+
}));
|
|
3733
|
+
|
|
3734
|
+
export type OrgListTeamActivityFeedsError = NotFound | ForgejoOpError;
|
|
3735
|
+
/** List a team's activity feeds */
|
|
3736
|
+
export const orgListTeamActivityFeeds: API.OperationMethod<
|
|
3737
|
+
OrgListTeamActivityFeedsRequest,
|
|
3738
|
+
OrgListTeamActivityFeedsResponse,
|
|
3739
|
+
OrgListTeamActivityFeedsError,
|
|
3740
|
+
ForgejoOpContext
|
|
3741
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
3742
|
+
input: OrgListTeamActivityFeedsRequest,
|
|
3743
|
+
output: OrgListTeamActivityFeedsResponse,
|
|
3744
|
+
errors: [NotFound],
|
|
3745
|
+
protocol: ForgejoProtocol,
|
|
3746
|
+
retry: Retry.Retry,
|
|
3747
|
+
}));
|
|
3748
|
+
|
|
3749
|
+
export type OrgListTeamMemberError = NotFound | ForgejoOpError;
|
|
3750
|
+
/** List a particular member of team */
|
|
3751
|
+
export const orgListTeamMember: API.OperationMethod<
|
|
3752
|
+
OrgListTeamMemberRequest,
|
|
3753
|
+
User,
|
|
3754
|
+
OrgListTeamMemberError,
|
|
3755
|
+
ForgejoOpContext
|
|
3756
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
3757
|
+
input: OrgListTeamMemberRequest,
|
|
3758
|
+
output: User,
|
|
3759
|
+
errors: [NotFound],
|
|
3760
|
+
protocol: ForgejoProtocol,
|
|
3761
|
+
retry: Retry.Retry,
|
|
3762
|
+
}));
|
|
3763
|
+
|
|
3764
|
+
export type OrgListTeamMembersError = Forbidden | NotFound | ForgejoOpError;
|
|
3765
|
+
/** List a team's members */
|
|
3766
|
+
export const orgListTeamMembers: API.OperationMethod<
|
|
3767
|
+
OrgListTeamMembersRequest,
|
|
3768
|
+
OrgListTeamMembersResponse,
|
|
3769
|
+
OrgListTeamMembersError,
|
|
3770
|
+
ForgejoOpContext
|
|
3771
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
3772
|
+
input: OrgListTeamMembersRequest,
|
|
3773
|
+
output: OrgListTeamMembersResponse,
|
|
3774
|
+
errors: [Forbidden, NotFound],
|
|
3775
|
+
protocol: ForgejoProtocol,
|
|
3776
|
+
retry: Retry.Retry,
|
|
3777
|
+
}));
|
|
3778
|
+
|
|
3779
|
+
export type OrgListTeamRepoError = NotFound | ForgejoOpError;
|
|
3780
|
+
/** List a particular repo of team */
|
|
3781
|
+
export const orgListTeamRepo: API.OperationMethod<
|
|
3782
|
+
OrgListTeamRepoRequest,
|
|
3783
|
+
Repository,
|
|
3784
|
+
OrgListTeamRepoError,
|
|
3785
|
+
ForgejoOpContext
|
|
3786
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
3787
|
+
input: OrgListTeamRepoRequest,
|
|
3788
|
+
output: Repository,
|
|
3789
|
+
errors: [NotFound],
|
|
3790
|
+
protocol: ForgejoProtocol,
|
|
3791
|
+
retry: Retry.Retry,
|
|
3792
|
+
}));
|
|
3793
|
+
|
|
3794
|
+
export type OrgListTeamReposError = NotFound | ForgejoOpError;
|
|
3795
|
+
/** List a team's repos */
|
|
3796
|
+
export const orgListTeamRepos: API.OperationMethod<
|
|
3797
|
+
OrgListTeamReposRequest,
|
|
3798
|
+
OrgListTeamReposResponse,
|
|
3799
|
+
OrgListTeamReposError,
|
|
3800
|
+
ForgejoOpContext
|
|
3801
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
3802
|
+
input: OrgListTeamReposRequest,
|
|
3803
|
+
output: OrgListTeamReposResponse,
|
|
3804
|
+
errors: [NotFound],
|
|
3805
|
+
protocol: ForgejoProtocol,
|
|
3806
|
+
retry: Retry.Retry,
|
|
3807
|
+
}));
|
|
3808
|
+
|
|
3809
|
+
export type OrgListTeamsError = Forbidden | NotFound | ForgejoOpError;
|
|
3810
|
+
/** List an organization's teams */
|
|
3811
|
+
export const orgListTeams: API.OperationMethod<
|
|
3812
|
+
OrgListTeamsRequest,
|
|
3813
|
+
OrgListTeamsResponse,
|
|
3814
|
+
OrgListTeamsError,
|
|
3815
|
+
ForgejoOpContext
|
|
3816
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
3817
|
+
input: OrgListTeamsRequest,
|
|
3818
|
+
output: OrgListTeamsResponse,
|
|
3819
|
+
errors: [Forbidden, NotFound],
|
|
3820
|
+
protocol: ForgejoProtocol,
|
|
3821
|
+
retry: Retry.Retry,
|
|
3822
|
+
}));
|
|
3823
|
+
|
|
3824
|
+
export type OrgListUserOrgsError = NotFound | ForgejoOpError;
|
|
3825
|
+
/** List a user's organizations */
|
|
3826
|
+
export const orgListUserOrgs: API.OperationMethod<
|
|
3827
|
+
OrgListUserOrgsRequest,
|
|
3828
|
+
OrgListUserOrgsResponse,
|
|
3829
|
+
OrgListUserOrgsError,
|
|
3830
|
+
ForgejoOpContext
|
|
3831
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
3832
|
+
input: OrgListUserOrgsRequest,
|
|
3833
|
+
output: OrgListUserOrgsResponse,
|
|
3834
|
+
errors: [NotFound],
|
|
3835
|
+
protocol: ForgejoProtocol,
|
|
3836
|
+
retry: Retry.Retry,
|
|
3837
|
+
}));
|
|
3838
|
+
|
|
3839
|
+
export type OrgPublicizeMemberError = Forbidden | NotFound | ForgejoOpError;
|
|
3840
|
+
/** Publicize a user's membership */
|
|
3841
|
+
export const orgPublicizeMember: API.OperationMethod<
|
|
3842
|
+
OrgPublicizeMemberRequest,
|
|
3843
|
+
OrgPublicizeMemberResponse,
|
|
3844
|
+
OrgPublicizeMemberError,
|
|
3845
|
+
ForgejoOpContext
|
|
3846
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
3847
|
+
input: OrgPublicizeMemberRequest,
|
|
3848
|
+
output: OrgPublicizeMemberResponse,
|
|
3849
|
+
errors: [Forbidden, NotFound],
|
|
3850
|
+
protocol: ForgejoProtocol,
|
|
3851
|
+
retry: Retry.Retry,
|
|
3852
|
+
}));
|
|
3853
|
+
|
|
3854
|
+
export type OrgRemoveTeamMemberError = NotFound | ForgejoOpError;
|
|
3855
|
+
/** Remove a team member */
|
|
3856
|
+
export const orgRemoveTeamMember: API.OperationMethod<
|
|
3857
|
+
OrgRemoveTeamMemberRequest,
|
|
3858
|
+
OrgRemoveTeamMemberResponse,
|
|
3859
|
+
OrgRemoveTeamMemberError,
|
|
3860
|
+
ForgejoOpContext
|
|
3861
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
3862
|
+
input: OrgRemoveTeamMemberRequest,
|
|
3863
|
+
output: OrgRemoveTeamMemberResponse,
|
|
3864
|
+
errors: [NotFound],
|
|
3865
|
+
protocol: ForgejoProtocol,
|
|
3866
|
+
retry: Retry.Retry,
|
|
3867
|
+
}));
|
|
3868
|
+
|
|
3869
|
+
export type OrgRemoveTeamRepositoryError =
|
|
3870
|
+
| Forbidden
|
|
3871
|
+
| NotFound
|
|
3872
|
+
| ForgejoOpError;
|
|
3873
|
+
/** Remove a repository from a team This does not delete the repository, it only removes the repository from the team. */
|
|
3874
|
+
export const orgRemoveTeamRepository: API.OperationMethod<
|
|
3875
|
+
OrgRemoveTeamRepositoryRequest,
|
|
3876
|
+
OrgRemoveTeamRepositoryResponse,
|
|
3877
|
+
OrgRemoveTeamRepositoryError,
|
|
3878
|
+
ForgejoOpContext
|
|
3879
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
3880
|
+
input: OrgRemoveTeamRepositoryRequest,
|
|
3881
|
+
output: OrgRemoveTeamRepositoryResponse,
|
|
3882
|
+
errors: [Forbidden, NotFound],
|
|
3883
|
+
protocol: ForgejoProtocol,
|
|
3884
|
+
retry: Retry.Retry,
|
|
3885
|
+
}));
|
|
3886
|
+
|
|
3887
|
+
export type OrgSearchRunJobsError = Forbidden | ForgejoOpError;
|
|
3888
|
+
/** Search for organization's action jobs according filter conditions */
|
|
3889
|
+
export const orgSearchRunJobs: API.OperationMethod<
|
|
3890
|
+
OrgSearchRunJobsRequest,
|
|
3891
|
+
OrgSearchRunJobsResponse,
|
|
3892
|
+
OrgSearchRunJobsError,
|
|
3893
|
+
ForgejoOpContext
|
|
3894
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
3895
|
+
input: OrgSearchRunJobsRequest,
|
|
3896
|
+
output: OrgSearchRunJobsResponse,
|
|
3897
|
+
errors: [Forbidden],
|
|
3898
|
+
protocol: ForgejoProtocol,
|
|
3899
|
+
retry: Retry.Retry,
|
|
3900
|
+
}));
|
|
3901
|
+
|
|
3902
|
+
export type OrgUnblockUserError =
|
|
3903
|
+
| NotFound
|
|
3904
|
+
| UnprocessableEntity
|
|
3905
|
+
| ForgejoOpError;
|
|
3906
|
+
/** Unblock a user from the organization */
|
|
3907
|
+
export const orgUnblockUser: API.OperationMethod<
|
|
3908
|
+
OrgUnblockUserRequest,
|
|
3909
|
+
OrgUnblockUserResponse,
|
|
3910
|
+
OrgUnblockUserError,
|
|
3911
|
+
ForgejoOpContext
|
|
3912
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
3913
|
+
input: OrgUnblockUserRequest,
|
|
3914
|
+
output: OrgUnblockUserResponse,
|
|
3915
|
+
errors: [NotFound, UnprocessableEntity],
|
|
3916
|
+
protocol: ForgejoProtocol,
|
|
3917
|
+
retry: Retry.Retry,
|
|
3918
|
+
}));
|
|
3919
|
+
|
|
3920
|
+
export type OrgUpdateAvatarError = NotFound | ForgejoOpError;
|
|
3921
|
+
/** Update an organization's avatar */
|
|
3922
|
+
export const orgUpdateAvatar: API.OperationMethod<
|
|
3923
|
+
OrgUpdateAvatarRequest,
|
|
3924
|
+
OrgUpdateAvatarResponse,
|
|
3925
|
+
OrgUpdateAvatarError,
|
|
3926
|
+
ForgejoOpContext
|
|
3927
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
3928
|
+
input: OrgUpdateAvatarRequest,
|
|
3929
|
+
output: OrgUpdateAvatarResponse,
|
|
3930
|
+
errors: [NotFound],
|
|
3931
|
+
protocol: ForgejoProtocol,
|
|
3932
|
+
retry: Retry.Retry,
|
|
3933
|
+
}));
|
|
3934
|
+
|
|
3935
|
+
export type RegisterOrgRunnerError = BadRequest | NotFound | ForgejoOpError;
|
|
3936
|
+
/** Register a new organization-level runner */
|
|
3937
|
+
export const registerOrgRunner: API.OperationMethod<
|
|
3938
|
+
RegisterOrgRunnerRequest,
|
|
3939
|
+
RegisterRunnerResponse,
|
|
3940
|
+
RegisterOrgRunnerError,
|
|
3941
|
+
ForgejoOpContext
|
|
3942
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
3943
|
+
input: RegisterOrgRunnerRequest,
|
|
3944
|
+
output: RegisterRunnerResponse,
|
|
3945
|
+
errors: [BadRequest, NotFound],
|
|
3946
|
+
protocol: ForgejoProtocol,
|
|
3947
|
+
retry: Retry.Retry,
|
|
3948
|
+
}));
|
|
3949
|
+
|
|
3950
|
+
export type RenameOrgError = Forbidden | UnprocessableEntity | ForgejoOpError;
|
|
3951
|
+
/** Rename an organization */
|
|
3952
|
+
export const renameOrg: API.OperationMethod<
|
|
3953
|
+
RenameOrgRequest,
|
|
3954
|
+
RenameOrgResponse,
|
|
3955
|
+
RenameOrgError,
|
|
3956
|
+
ForgejoOpContext
|
|
3957
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
3958
|
+
input: RenameOrgRequest,
|
|
3959
|
+
output: RenameOrgResponse,
|
|
3960
|
+
errors: [Forbidden, UnprocessableEntity],
|
|
3961
|
+
protocol: ForgejoProtocol,
|
|
3962
|
+
retry: Retry.Retry,
|
|
3963
|
+
}));
|
|
3964
|
+
|
|
3965
|
+
export type SearchTeamError = NotFound | ForgejoOpError;
|
|
3966
|
+
/** Search for teams within an organization */
|
|
3967
|
+
export const searchTeam: API.OperationMethod<
|
|
3968
|
+
SearchTeamRequest,
|
|
3969
|
+
SearchTeamResponse,
|
|
3970
|
+
SearchTeamError,
|
|
3971
|
+
ForgejoOpContext
|
|
3972
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
3973
|
+
input: SearchTeamRequest,
|
|
3974
|
+
output: SearchTeamResponse,
|
|
3975
|
+
errors: [NotFound],
|
|
3976
|
+
protocol: ForgejoProtocol,
|
|
3977
|
+
retry: Retry.Retry,
|
|
3978
|
+
}));
|
|
3979
|
+
|
|
3980
|
+
export type UpdateOrgSecretError = BadRequest | NotFound | ForgejoOpError;
|
|
3981
|
+
/** Create or Update a secret value in an organization */
|
|
3982
|
+
export const updateOrgSecret: API.OperationMethod<
|
|
3983
|
+
UpdateOrgSecretRequest,
|
|
3984
|
+
UpdateOrgSecretResponse,
|
|
3985
|
+
UpdateOrgSecretError,
|
|
3986
|
+
ForgejoOpContext
|
|
3987
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
3988
|
+
input: UpdateOrgSecretRequest,
|
|
3989
|
+
output: UpdateOrgSecretResponse,
|
|
3990
|
+
errors: [BadRequest, NotFound],
|
|
3991
|
+
protocol: ForgejoProtocol,
|
|
3992
|
+
retry: Retry.Retry,
|
|
3993
|
+
}));
|
|
3994
|
+
|
|
3995
|
+
export type UpdateOrgVariableError = BadRequest | NotFound | ForgejoOpError;
|
|
3996
|
+
/** Update variable in organization */
|
|
3997
|
+
export const updateOrgVariable: API.OperationMethod<
|
|
3998
|
+
UpdateOrgVariableRequest,
|
|
3999
|
+
UpdateOrgVariableResponse,
|
|
4000
|
+
UpdateOrgVariableError,
|
|
4001
|
+
ForgejoOpContext
|
|
4002
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
4003
|
+
input: UpdateOrgVariableRequest,
|
|
4004
|
+
output: UpdateOrgVariableResponse,
|
|
4005
|
+
errors: [BadRequest, NotFound],
|
|
4006
|
+
protocol: ForgejoProtocol,
|
|
4007
|
+
retry: Retry.Retry,
|
|
4008
|
+
}));
|