@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.
Files changed (88) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +71 -0
  3. package/lib/credentials.d.ts +35 -0
  4. package/lib/credentials.d.ts.map +1 -0
  5. package/lib/credentials.js +57 -0
  6. package/lib/credentials.js.map +1 -0
  7. package/lib/errors.d.ts +56 -0
  8. package/lib/errors.d.ts.map +1 -0
  9. package/lib/errors.js +36 -0
  10. package/lib/errors.js.map +1 -0
  11. package/lib/index.d.ts +28 -0
  12. package/lib/index.d.ts.map +1 -0
  13. package/lib/index.js +28 -0
  14. package/lib/index.js.map +1 -0
  15. package/lib/protocol.d.ts +18 -0
  16. package/lib/protocol.d.ts.map +1 -0
  17. package/lib/protocol.js +61 -0
  18. package/lib/protocol.js.map +1 -0
  19. package/lib/retry.d.ts +50 -0
  20. package/lib/retry.d.ts.map +1 -0
  21. package/lib/retry.js +43 -0
  22. package/lib/retry.js.map +1 -0
  23. package/lib/services/activitypub.d.ts +121 -0
  24. package/lib/services/activitypub.d.ts.map +1 -0
  25. package/lib/services/activitypub.js +202 -0
  26. package/lib/services/activitypub.js.map +1 -0
  27. package/lib/services/admin.d.ts +1196 -0
  28. package/lib/services/admin.d.ts.map +1 -0
  29. package/lib/services/admin.js +1276 -0
  30. package/lib/services/admin.js.map +1 -0
  31. package/lib/services/index.d.ts +11 -0
  32. package/lib/services/index.d.ts.map +1 -0
  33. package/lib/services/index.js +12 -0
  34. package/lib/services/index.js.map +1 -0
  35. package/lib/services/issue.d.ts +1479 -0
  36. package/lib/services/issue.d.ts.map +1 -0
  37. package/lib/services/issue.js +1732 -0
  38. package/lib/services/issue.js.map +1 -0
  39. package/lib/services/miscellaneous.d.ts +494 -0
  40. package/lib/services/miscellaneous.d.ts.map +1 -0
  41. package/lib/services/miscellaneous.js +471 -0
  42. package/lib/services/miscellaneous.js.map +1 -0
  43. package/lib/services/notification.d.ts +390 -0
  44. package/lib/services/notification.d.ts.map +1 -0
  45. package/lib/services/notification.js +344 -0
  46. package/lib/services/notification.js.map +1 -0
  47. package/lib/services/organization.d.ts +1593 -0
  48. package/lib/services/organization.d.ts.map +1 -0
  49. package/lib/services/organization.js +1672 -0
  50. package/lib/services/organization.js.map +1 -0
  51. package/lib/services/package.d.ts +347 -0
  52. package/lib/services/package.d.ts.map +1 -0
  53. package/lib/services/package.js +320 -0
  54. package/lib/services/package.js.map +1 -0
  55. package/lib/services/repository.d.ts +4770 -0
  56. package/lib/services/repository.d.ts.map +1 -0
  57. package/lib/services/repository.js +5449 -0
  58. package/lib/services/repository.js.map +1 -0
  59. package/lib/services/settings.d.ts +67 -0
  60. package/lib/services/settings.d.ts.map +1 -0
  61. package/lib/services/settings.js +87 -0
  62. package/lib/services/settings.js.map +1 -0
  63. package/lib/services/user.d.ts +1764 -0
  64. package/lib/services/user.d.ts.map +1 -0
  65. package/lib/services/user.js +1921 -0
  66. package/lib/services/user.js.map +1 -0
  67. package/lib/traits.d.ts +10 -0
  68. package/lib/traits.d.ts.map +1 -0
  69. package/lib/traits.js +11 -0
  70. package/lib/traits.js.map +1 -0
  71. package/package.json +78 -6
  72. package/src/credentials.ts +89 -0
  73. package/src/errors.ts +72 -0
  74. package/src/index.ts +31 -0
  75. package/src/protocol.ts +86 -0
  76. package/src/retry.ts +74 -0
  77. package/src/services/activitypub.ts +415 -0
  78. package/src/services/admin.ts +3103 -0
  79. package/src/services/index.ts +11 -0
  80. package/src/services/issue.ts +3949 -0
  81. package/src/services/miscellaneous.ts +1118 -0
  82. package/src/services/notification.ts +847 -0
  83. package/src/services/organization.ts +4008 -0
  84. package/src/services/package.ts +767 -0
  85. package/src/services/repository.ts +12839 -0
  86. package/src/services/settings.ts +190 -0
  87. package/src/services/user.ts +4669 -0
  88. package/src/traits.ts +44 -0
@@ -0,0 +1,1672 @@
1
+ // AUTO-GENERATED by scripts/generate.ts from .generated-specs (specs/spec-mirror-forgejo). Do not edit.
2
+ import * as S from "@distilled.cloud/core/schema";
3
+ import * as API from "@distilled.cloud/core/api";
4
+ import * as C from "@distilled.cloud/core/category";
5
+ import * as T from "../traits.js";
6
+ import { ForgejoProtocol, } from "../protocol.js";
7
+ import * as Retry from "../retry.js";
8
+ export class BadRequest extends /*@__PURE__*/ /*@__PURE__*/ T.applyErrorMatchers(
9
+ /*@__PURE__*/ S.TaggedError()("BadRequest", {
10
+ code: S.Number,
11
+ message: S.String,
12
+ }).pipe(C.withBadRequestError), [{ status: 400 }]) {
13
+ }
14
+ export class Conflict extends /*@__PURE__*/ /*@__PURE__*/ T.applyErrorMatchers(
15
+ /*@__PURE__*/ S.TaggedError()("Conflict", {
16
+ code: S.Number,
17
+ message: S.String,
18
+ }).pipe(C.withConflictError), [{ status: 409 }]) {
19
+ }
20
+ export class Forbidden extends /*@__PURE__*/ /*@__PURE__*/ T.applyErrorMatchers(
21
+ /*@__PURE__*/ S.TaggedError()("Forbidden", {
22
+ code: S.Number,
23
+ message: S.String,
24
+ }).pipe(C.withAuthError), [{ status: 403 }]) {
25
+ }
26
+ export class NotFound extends /*@__PURE__*/ /*@__PURE__*/ T.applyErrorMatchers(
27
+ /*@__PURE__*/ S.TaggedError()("NotFound", {
28
+ code: S.Number,
29
+ message: S.String,
30
+ }).pipe(C.withBadRequestError), [{ status: 404 }]) {
31
+ }
32
+ /** 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. */
33
+ export class OrganizationOwnsRepositories extends /*@__PURE__*/ /*@__PURE__*/ T.applyErrorMatchers(
34
+ /*@__PURE__*/ S.TaggedError()("OrganizationOwnsRepositories", {
35
+ code: S.Number,
36
+ message: S.String,
37
+ }).pipe(C.withConflictError), [
38
+ {
39
+ status: 500,
40
+ message: { includes: "still has ownership of repositories" },
41
+ },
42
+ ]) {
43
+ }
44
+ export class UnprocessableEntity extends /*@__PURE__*/ /*@__PURE__*/ T.applyErrorMatchers(
45
+ /*@__PURE__*/ S.TaggedError()("UnprocessableEntity", {
46
+ code: S.Number,
47
+ message: S.String,
48
+ }).pipe(C.withBadRequestError), [{ status: 422 }]) {
49
+ }
50
+ export const CreateOrgRequestVisibility = /*@__PURE__*/ S.String;
51
+ export const CreateOrgRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
52
+ description: S.optional(S.String),
53
+ email: S.optional(S.String),
54
+ full_name: S.optional(S.String),
55
+ location: S.optional(S.String),
56
+ repo_admin_change_team_access: S.optional(S.Boolean),
57
+ username: S.String,
58
+ visibility: S.optional(CreateOrgRequestVisibility),
59
+ website: S.optional(S.String),
60
+ }).pipe(T.Http({ method: "POST", uri: "/orgs", code: 200 }))).annotate({
61
+ identifier: "CreateOrgRequest",
62
+ });
63
+ export const Organization = /*@__PURE__*/ S.suspend(() => S.Struct({
64
+ avatar_url: S.optional(S.String),
65
+ created: S.optional(S.String),
66
+ description: S.optional(S.String),
67
+ email: S.optional(S.String),
68
+ full_name: S.optional(S.String),
69
+ id: S.Number,
70
+ location: S.optional(S.String),
71
+ name: S.optional(S.String),
72
+ repo_admin_change_team_access: S.optional(S.Boolean),
73
+ username: S.String,
74
+ visibility: S.optional(S.String),
75
+ website: S.optional(S.String),
76
+ })).annotate({ identifier: "Organization" });
77
+ export const CreateOrgRepoRequestObjectFormatName = /*@__PURE__*/ S.String;
78
+ export const CreateOrgRepoRequestTrustModel = /*@__PURE__*/ S.String;
79
+ export const CreateOrgRepoRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
80
+ org: S.String.pipe(T.Label()),
81
+ auto_init: S.optional(S.Boolean),
82
+ default_branch: S.optional(S.String),
83
+ description: S.optional(S.String),
84
+ gitignores: S.optional(S.String),
85
+ issue_labels: S.optional(S.String),
86
+ license: S.optional(S.String),
87
+ name: S.String,
88
+ object_format_name: S.optional(CreateOrgRepoRequestObjectFormatName),
89
+ private: S.optional(S.Boolean),
90
+ readme: S.optional(S.String),
91
+ template: S.optional(S.Boolean),
92
+ trust_model: S.optional(CreateOrgRepoRequestTrustModel),
93
+ }).pipe(T.Http({ method: "POST", uri: "/orgs/{org}/repos", code: 200 }))).annotate({
94
+ identifier: "CreateOrgRepoRequest",
95
+ });
96
+ export const ExternalTracker = /*@__PURE__*/ S.suspend(() => S.Struct({
97
+ external_tracker_format: S.optional(S.String),
98
+ external_tracker_regexp_pattern: S.optional(S.String),
99
+ external_tracker_style: S.optional(S.String),
100
+ external_tracker_url: S.optional(S.String),
101
+ })).annotate({
102
+ identifier: "ExternalTracker",
103
+ });
104
+ export const ExternalWiki = /*@__PURE__*/ S.suspend(() => S.Struct({
105
+ external_wiki_url: S.optional(S.String),
106
+ })).annotate({ identifier: "ExternalWiki" });
107
+ export const InternalTracker = /*@__PURE__*/ S.suspend(() => S.Struct({
108
+ allow_only_contributors_to_track_time: S.optional(S.Boolean),
109
+ enable_issue_dependencies: S.optional(S.Boolean),
110
+ enable_time_tracker: S.optional(S.Boolean),
111
+ })).annotate({
112
+ identifier: "InternalTracker",
113
+ });
114
+ export const RepositoryObjectFormatName = /*@__PURE__*/ S.String;
115
+ export const User = /*@__PURE__*/ S.suspend(() => S.Struct({
116
+ active: S.optional(S.Boolean),
117
+ avatar_url: S.optional(S.String),
118
+ created: S.optional(S.String),
119
+ description: S.optional(S.String),
120
+ email: S.optional(S.String),
121
+ followers_count: S.optional(S.Number),
122
+ following_count: S.optional(S.Number),
123
+ full_name: S.optional(S.String),
124
+ html_url: S.optional(S.String),
125
+ id: S.Number,
126
+ is_admin: S.optional(S.Boolean),
127
+ language: S.optional(S.String),
128
+ last_login: S.optional(S.String),
129
+ location: S.optional(S.String),
130
+ login: S.String,
131
+ login_name: S.optional(S.String),
132
+ prohibit_login: S.optional(S.Boolean),
133
+ pronouns: S.optional(S.String),
134
+ restricted: S.optional(S.Boolean),
135
+ source_id: S.optional(S.Number),
136
+ starred_repos_count: S.optional(S.Number),
137
+ visibility: S.optional(S.String),
138
+ website: S.optional(S.String),
139
+ })).annotate({ identifier: "User" });
140
+ export const Permission = /*@__PURE__*/ S.suspend(() => S.Struct({
141
+ admin: S.optional(S.Boolean),
142
+ pull: S.optional(S.Boolean),
143
+ push: S.optional(S.Boolean),
144
+ })).annotate({ identifier: "Permission" });
145
+ export const TeamPermission = /*@__PURE__*/ S.String;
146
+ export const TeamUnitsList = /*@__PURE__*/ S.Array(S.String);
147
+ export const TeamUnitsMapMap = /*@__PURE__*/ S.Record(S.String, S.String);
148
+ export const Team = /*@__PURE__*/ S.suspend(() => S.Struct({
149
+ can_create_org_repo: S.optional(S.Boolean),
150
+ description: S.optional(S.String),
151
+ id: S.Number,
152
+ includes_all_repositories: S.optional(S.Boolean),
153
+ name: S.String,
154
+ organization: S.optional(Organization),
155
+ permission: S.optional(TeamPermission),
156
+ units: S.optional(TeamUnitsList),
157
+ units_map: S.optional(TeamUnitsMapMap),
158
+ })).annotate({ identifier: "Team" });
159
+ export const RepoTransferTeamsList = /*@__PURE__*/ S.Array(Team);
160
+ export const RepoTransfer = /*@__PURE__*/ S.suspend(() => S.Struct({
161
+ doer: S.optional(User),
162
+ recipient: S.optional(User),
163
+ teams: S.optional(RepoTransferTeamsList),
164
+ })).annotate({ identifier: "RepoTransfer" });
165
+ export const RepositoryTopicsList = /*@__PURE__*/ S.Array(S.String);
166
+ export const Repository = /*@__PURE__*/ S.suspend(() => S.Struct({
167
+ allow_fast_forward_only_merge: S.optional(S.Boolean),
168
+ allow_merge_commits: S.optional(S.Boolean),
169
+ allow_rebase: S.optional(S.Boolean),
170
+ allow_rebase_explicit: S.optional(S.Boolean),
171
+ allow_rebase_update: S.optional(S.Boolean),
172
+ allow_squash_merge: S.optional(S.Boolean),
173
+ archived: S.optional(S.Boolean),
174
+ archived_at: S.optional(S.String),
175
+ avatar_url: S.optional(S.String),
176
+ clone_url: S.String,
177
+ created_at: S.String,
178
+ default_allow_maintainer_edit: S.optional(S.Boolean),
179
+ default_branch: S.String,
180
+ default_delete_branch_after_merge: S.optional(S.Boolean),
181
+ default_merge_style: S.optional(S.String),
182
+ default_update_style: S.optional(S.String),
183
+ description: S.optional(S.String),
184
+ empty: S.optional(S.Boolean),
185
+ external_tracker: S.optional(ExternalTracker),
186
+ external_wiki: S.optional(ExternalWiki),
187
+ fork: S.optional(S.Boolean),
188
+ forks_count: S.optional(S.Number),
189
+ full_name: S.String,
190
+ globally_editable_wiki: S.optional(S.Boolean),
191
+ has_actions: S.optional(S.Boolean),
192
+ has_issues: S.optional(S.Boolean),
193
+ has_packages: S.optional(S.Boolean),
194
+ has_projects: S.optional(S.Boolean),
195
+ has_pull_requests: S.optional(S.Boolean),
196
+ has_releases: S.optional(S.Boolean),
197
+ has_wiki: S.optional(S.Boolean),
198
+ has_wiki_contents: S.optional(S.Boolean),
199
+ html_url: S.String,
200
+ id: S.Number,
201
+ ignore_whitespace_conflicts: S.optional(S.Boolean),
202
+ internal: S.optional(S.Boolean),
203
+ internal_tracker: S.optional(InternalTracker),
204
+ language: S.optional(S.String),
205
+ languages_url: S.optional(S.String),
206
+ link: S.optional(S.String),
207
+ mirror: S.optional(S.Boolean),
208
+ mirror_interval: S.optional(S.String),
209
+ mirror_updated: S.optional(S.String),
210
+ name: S.String,
211
+ object_format_name: S.optional(RepositoryObjectFormatName),
212
+ open_issues_count: S.optional(S.Number),
213
+ open_pr_counter: S.optional(S.Number),
214
+ original_url: S.optional(S.String),
215
+ owner: User,
216
+ parent: S.optional(Repository),
217
+ permissions: S.optional(Permission),
218
+ private: S.optional(S.Boolean),
219
+ release_counter: S.optional(S.Number),
220
+ repo_transfer: S.optional(RepoTransfer),
221
+ size: S.optional(S.Number),
222
+ ssh_url: S.String,
223
+ stars_count: S.optional(S.Number),
224
+ template: S.optional(S.Boolean),
225
+ topics: S.optional(RepositoryTopicsList),
226
+ updated_at: S.String,
227
+ url: S.optional(S.String),
228
+ watchers_count: S.optional(S.Number),
229
+ website: S.optional(S.String),
230
+ wiki_branch: S.optional(S.String),
231
+ wiki_clone_url: S.optional(S.String),
232
+ wiki_ssh_url: S.optional(S.String),
233
+ })).annotate({ identifier: "Repository" });
234
+ export const CreateOrgVariableRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
235
+ org: S.String.pipe(T.Label()),
236
+ variablename: S.String.pipe(T.Label()),
237
+ value: S.String,
238
+ }).pipe(T.Http({
239
+ method: "POST",
240
+ uri: "/orgs/{org}/actions/variables/{variablename}",
241
+ code: 200,
242
+ }))).annotate({
243
+ identifier: "CreateOrgVariableRequest",
244
+ });
245
+ export const CreateOrgVariableResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
246
+ identifier: "CreateOrgVariableResponse",
247
+ });
248
+ export const DeleteOrgRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
249
+ org: S.String.pipe(T.Label()),
250
+ }).pipe(T.Http({ method: "DELETE", uri: "/orgs/{org}", code: 200 }))).annotate({
251
+ identifier: "DeleteOrgRequest",
252
+ });
253
+ export const DeleteOrgResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
254
+ identifier: "DeleteOrgResponse",
255
+ });
256
+ export const DeleteOrgRunnerRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
257
+ org: S.String.pipe(T.Label()),
258
+ runner_id: S.String.pipe(T.Label()),
259
+ }).pipe(T.Http({
260
+ method: "DELETE",
261
+ uri: "/orgs/{org}/actions/runners/{runner_id}",
262
+ code: 200,
263
+ }))).annotate({
264
+ identifier: "DeleteOrgRunnerRequest",
265
+ });
266
+ export const DeleteOrgRunnerResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
267
+ identifier: "DeleteOrgRunnerResponse",
268
+ });
269
+ export const DeleteOrgSecretRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
270
+ org: S.String.pipe(T.Label()),
271
+ secretname: S.String.pipe(T.Label()),
272
+ }).pipe(T.Http({
273
+ method: "DELETE",
274
+ uri: "/orgs/{org}/actions/secrets/{secretname}",
275
+ code: 200,
276
+ }))).annotate({
277
+ identifier: "DeleteOrgSecretRequest",
278
+ });
279
+ export const DeleteOrgSecretResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
280
+ identifier: "DeleteOrgSecretResponse",
281
+ });
282
+ export const DeleteOrgVariableRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
283
+ org: S.String.pipe(T.Label()),
284
+ variablename: S.String.pipe(T.Label()),
285
+ }).pipe(T.Http({
286
+ method: "DELETE",
287
+ uri: "/orgs/{org}/actions/variables/{variablename}",
288
+ code: 200,
289
+ }))).annotate({
290
+ identifier: "DeleteOrgVariableRequest",
291
+ });
292
+ export const DeleteOrgVariableResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
293
+ identifier: "DeleteOrgVariableResponse",
294
+ });
295
+ export const EditOrgRequestVisibility = /*@__PURE__*/ S.String;
296
+ export const EditOrgRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
297
+ org: S.String.pipe(T.Label()),
298
+ description: S.optional(S.String),
299
+ email: S.optional(S.String),
300
+ full_name: S.optional(S.String),
301
+ location: S.optional(S.String),
302
+ repo_admin_change_team_access: S.optional(S.Boolean),
303
+ visibility: S.optional(EditOrgRequestVisibility),
304
+ website: S.optional(S.String),
305
+ }).pipe(T.Http({ method: "PATCH", uri: "/orgs/{org}", code: 200 }))).annotate({ identifier: "EditOrgRequest" });
306
+ export const GetOrgRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
307
+ org: S.String.pipe(T.Label()),
308
+ }).pipe(T.Http({ method: "GET", uri: "/orgs/{org}", code: 200 }))).annotate({ identifier: "GetOrgRequest" });
309
+ export const GetOrgRunnerRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
310
+ org: S.String.pipe(T.Label()),
311
+ runner_id: S.String.pipe(T.Label()),
312
+ }).pipe(T.Http({
313
+ method: "GET",
314
+ uri: "/orgs/{org}/actions/runners/{runner_id}",
315
+ code: 200,
316
+ }))).annotate({
317
+ identifier: "GetOrgRunnerRequest",
318
+ });
319
+ export const ActionRunnerLabelsList = /*@__PURE__*/ S.Array(S.String);
320
+ export const ActionRunnerStatus = /*@__PURE__*/ S.String;
321
+ export const ActionRunner = /*@__PURE__*/ S.suspend(() => S.Struct({
322
+ description: S.optional(S.String),
323
+ ephemeral: S.optional(S.Boolean),
324
+ id: S.optional(S.Number),
325
+ labels: S.optional(ActionRunnerLabelsList),
326
+ name: S.optional(S.String),
327
+ owner_id: S.optional(S.Number),
328
+ repo_id: S.optional(S.Number),
329
+ status: S.optional(ActionRunnerStatus),
330
+ uuid: S.optional(S.String),
331
+ version: S.optional(S.String),
332
+ })).annotate({ identifier: "ActionRunner" });
333
+ export const GetOrgRunnersRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
334
+ org: S.String.pipe(T.Label()),
335
+ visible: S.optional(S.Boolean.pipe(T.Query())),
336
+ page: S.optional(S.Number.pipe(T.Query())),
337
+ limit: S.optional(S.Number.pipe(T.Query())),
338
+ }).pipe(T.Http({ method: "GET", uri: "/orgs/{org}/actions/runners", code: 200 }))).annotate({
339
+ identifier: "GetOrgRunnersRequest",
340
+ });
341
+ export const GetOrgRunnersResponseBodyList = /*@__PURE__*/ S.Array(ActionRunner);
342
+ export const GetOrgRunnersResponse = /*@__PURE__*/ S.suspend(() => GetOrgRunnersResponseBodyList.pipe(T.RawResponseRoot())).annotate({
343
+ identifier: "GetOrgRunnersResponse",
344
+ });
345
+ export const GetOrgVariableRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
346
+ org: S.String.pipe(T.Label()),
347
+ variablename: S.String.pipe(T.Label()),
348
+ }).pipe(T.Http({
349
+ method: "GET",
350
+ uri: "/orgs/{org}/actions/variables/{variablename}",
351
+ code: 200,
352
+ }))).annotate({
353
+ identifier: "GetOrgVariableRequest",
354
+ });
355
+ export const ActionVariable = /*@__PURE__*/ S.suspend(() => S.Struct({
356
+ data: S.String,
357
+ name: S.String,
358
+ owner_id: S.optional(S.Number),
359
+ repo_id: S.optional(S.Number),
360
+ })).annotate({ identifier: "ActionVariable" });
361
+ export const GetOrgVariablesListRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
362
+ org: S.String.pipe(T.Label()),
363
+ page: S.optional(S.Number.pipe(T.Query())),
364
+ limit: S.optional(S.Number.pipe(T.Query())),
365
+ }).pipe(T.Http({ method: "GET", uri: "/orgs/{org}/actions/variables", code: 200 }))).annotate({
366
+ identifier: "GetOrgVariablesListRequest",
367
+ });
368
+ export const GetOrgVariablesListResponseBodyList = /*@__PURE__*/ S.Array(ActionVariable);
369
+ export const GetOrgVariablesListResponse = /*@__PURE__*/ S.suspend(() => GetOrgVariablesListResponseBodyList.pipe(T.RawResponseRoot())).annotate({
370
+ identifier: "GetOrgVariablesListResponse",
371
+ });
372
+ export const OrgAddTeamMemberRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
373
+ id: S.Number.pipe(T.Label()),
374
+ username: S.String.pipe(T.Label()),
375
+ }).pipe(T.Http({ method: "PUT", uri: "/teams/{id}/members/{username}", code: 200 }))).annotate({
376
+ identifier: "OrgAddTeamMemberRequest",
377
+ });
378
+ export const OrgAddTeamMemberResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
379
+ identifier: "OrgAddTeamMemberResponse",
380
+ });
381
+ export const OrgAddTeamRepositoryRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
382
+ id: S.Number.pipe(T.Label()),
383
+ org: S.String.pipe(T.Label()),
384
+ repo: S.String.pipe(T.Label()),
385
+ }).pipe(T.Http({ method: "PUT", uri: "/teams/{id}/repos/{org}/{repo}", code: 200 }))).annotate({
386
+ identifier: "OrgAddTeamRepositoryRequest",
387
+ });
388
+ export const OrgAddTeamRepositoryResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
389
+ identifier: "OrgAddTeamRepositoryResponse",
390
+ });
391
+ export const OrgBlockUserRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
392
+ org: S.String.pipe(T.Label()),
393
+ username: S.String.pipe(T.Label()),
394
+ }).pipe(T.Http({ method: "PUT", uri: "/orgs/{org}/block/{username}", code: 200 }))).annotate({
395
+ identifier: "OrgBlockUserRequest",
396
+ });
397
+ export const OrgBlockUserResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
398
+ identifier: "OrgBlockUserResponse",
399
+ });
400
+ export const OrgCheckQuotaRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
401
+ org: S.String.pipe(T.Label()),
402
+ subject: S.String.pipe(T.Query()),
403
+ }).pipe(T.Http({ method: "GET", uri: "/orgs/{org}/quota/check", code: 200 }))).annotate({
404
+ identifier: "OrgCheckQuotaRequest",
405
+ });
406
+ export const OrgCheckQuotaResponse = /*@__PURE__*/ S.suspend(() => S.Boolean.pipe(T.RawResponseRoot())).annotate({
407
+ identifier: "OrgCheckQuotaResponse",
408
+ });
409
+ export const OrgConcealMemberRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
410
+ org: S.String.pipe(T.Label()),
411
+ username: S.String.pipe(T.Label()),
412
+ }).pipe(T.Http({
413
+ method: "DELETE",
414
+ uri: "/orgs/{org}/public_members/{username}",
415
+ code: 200,
416
+ }))).annotate({
417
+ identifier: "OrgConcealMemberRequest",
418
+ });
419
+ export const OrgConcealMemberResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
420
+ identifier: "OrgConcealMemberResponse",
421
+ });
422
+ export const CreateHookOptionConfig = /*@__PURE__*/ S.Record(S.String, S.String);
423
+ export const OrgCreateHookRequestEventsList = /*@__PURE__*/ S.Array(S.String);
424
+ export const OrgCreateHookRequestType = /*@__PURE__*/ S.String;
425
+ export const OrgCreateHookRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
426
+ org: S.String.pipe(T.Label()),
427
+ active: S.optional(S.Boolean),
428
+ authorization_header: S.optional(S.String),
429
+ branch_filter: S.optional(S.String),
430
+ config: CreateHookOptionConfig,
431
+ events: S.optional(OrgCreateHookRequestEventsList),
432
+ type: OrgCreateHookRequestType,
433
+ }).pipe(T.Http({ method: "POST", uri: "/orgs/{org}/hooks", code: 200 }))).annotate({
434
+ identifier: "OrgCreateHookRequest",
435
+ });
436
+ export const HookConfigMap = /*@__PURE__*/ S.Record(S.String, S.String);
437
+ export const HookEventsList = /*@__PURE__*/ S.Array(S.String);
438
+ export const Hook = /*@__PURE__*/ S.suspend(() => S.Struct({
439
+ active: S.Boolean,
440
+ authorization_header: S.optional(S.String),
441
+ branch_filter: S.optional(S.String),
442
+ config: S.optional(HookConfigMap),
443
+ content_type: S.optional(S.String),
444
+ created_at: S.String,
445
+ events: S.optional(HookEventsList),
446
+ id: S.Number,
447
+ metadata: S.optional(S.Unknown),
448
+ type: S.String,
449
+ updated_at: S.String,
450
+ url: S.String,
451
+ })).annotate({ identifier: "Hook" });
452
+ export const OrgCreateLabelRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
453
+ org: S.String.pipe(T.Label()),
454
+ color: S.String,
455
+ description: S.optional(S.String),
456
+ exclusive: S.optional(S.Boolean),
457
+ is_archived: S.optional(S.Boolean),
458
+ name: S.String,
459
+ }).pipe(T.Http({ method: "POST", uri: "/orgs/{org}/labels", code: 200 }))).annotate({
460
+ identifier: "OrgCreateLabelRequest",
461
+ });
462
+ export const Label = /*@__PURE__*/ S.suspend(() => S.Struct({
463
+ color: S.String,
464
+ description: S.optional(S.String),
465
+ exclusive: S.optional(S.Boolean),
466
+ id: S.Number,
467
+ is_archived: S.optional(S.Boolean),
468
+ name: S.String,
469
+ url: S.optional(S.String),
470
+ })).annotate({ identifier: "Label" });
471
+ export const OrgCreateTeamRequestPermission = /*@__PURE__*/ S.String;
472
+ export const OrgCreateTeamRequestUnitsList = /*@__PURE__*/ S.Array(S.String);
473
+ export const OrgCreateTeamRequestUnitsMapMap = /*@__PURE__*/ S.Record(S.String, S.String);
474
+ export const OrgCreateTeamRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
475
+ org: S.String.pipe(T.Label()),
476
+ can_create_org_repo: S.optional(S.Boolean),
477
+ description: S.optional(S.String),
478
+ includes_all_repositories: S.optional(S.Boolean),
479
+ name: S.String,
480
+ permission: S.optional(OrgCreateTeamRequestPermission),
481
+ units: S.optional(OrgCreateTeamRequestUnitsList),
482
+ units_map: S.optional(OrgCreateTeamRequestUnitsMapMap),
483
+ }).pipe(T.Http({ method: "POST", uri: "/orgs/{org}/teams", code: 200 }))).annotate({
484
+ identifier: "OrgCreateTeamRequest",
485
+ });
486
+ export const OrgDeleteAvatarRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
487
+ org: S.String.pipe(T.Label()),
488
+ }).pipe(T.Http({ method: "DELETE", uri: "/orgs/{org}/avatar", code: 200 }))).annotate({
489
+ identifier: "OrgDeleteAvatarRequest",
490
+ });
491
+ export const OrgDeleteAvatarResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
492
+ identifier: "OrgDeleteAvatarResponse",
493
+ });
494
+ export const OrgDeleteHookRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
495
+ org: S.String.pipe(T.Label()),
496
+ id: S.Number.pipe(T.Label()),
497
+ }).pipe(T.Http({ method: "DELETE", uri: "/orgs/{org}/hooks/{id}", code: 200 }))).annotate({
498
+ identifier: "OrgDeleteHookRequest",
499
+ });
500
+ export const OrgDeleteHookResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
501
+ identifier: "OrgDeleteHookResponse",
502
+ });
503
+ export const OrgDeleteLabelRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
504
+ org: S.String.pipe(T.Label()),
505
+ id: S.Number.pipe(T.Label()),
506
+ }).pipe(T.Http({ method: "DELETE", uri: "/orgs/{org}/labels/{id}", code: 200 }))).annotate({
507
+ identifier: "OrgDeleteLabelRequest",
508
+ });
509
+ export const OrgDeleteLabelResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
510
+ identifier: "OrgDeleteLabelResponse",
511
+ });
512
+ export const OrgDeleteMemberRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
513
+ org: S.String.pipe(T.Label()),
514
+ username: S.String.pipe(T.Label()),
515
+ }).pipe(T.Http({
516
+ method: "DELETE",
517
+ uri: "/orgs/{org}/members/{username}",
518
+ code: 200,
519
+ }))).annotate({
520
+ identifier: "OrgDeleteMemberRequest",
521
+ });
522
+ export const OrgDeleteMemberResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
523
+ identifier: "OrgDeleteMemberResponse",
524
+ });
525
+ export const OrgDeleteTeamRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
526
+ id: S.Number.pipe(T.Label()),
527
+ }).pipe(T.Http({ method: "DELETE", uri: "/teams/{id}", code: 200 }))).annotate({
528
+ identifier: "OrgDeleteTeamRequest",
529
+ });
530
+ export const OrgDeleteTeamResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
531
+ identifier: "OrgDeleteTeamResponse",
532
+ });
533
+ export const OrgEditHookRequestConfigMap = /*@__PURE__*/ S.Record(S.String, S.String);
534
+ export const OrgEditHookRequestEventsList = /*@__PURE__*/ S.Array(S.String);
535
+ export const OrgEditHookRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
536
+ org: S.String.pipe(T.Label()),
537
+ id: S.Number.pipe(T.Label()),
538
+ active: S.optional(S.Boolean),
539
+ authorization_header: S.optional(S.String),
540
+ branch_filter: S.optional(S.String),
541
+ config: S.optional(OrgEditHookRequestConfigMap),
542
+ events: S.optional(OrgEditHookRequestEventsList),
543
+ }).pipe(T.Http({ method: "PATCH", uri: "/orgs/{org}/hooks/{id}", code: 200 }))).annotate({
544
+ identifier: "OrgEditHookRequest",
545
+ });
546
+ export const OrgEditLabelRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
547
+ org: S.String.pipe(T.Label()),
548
+ id: S.Number.pipe(T.Label()),
549
+ color: S.optional(S.String),
550
+ description: S.optional(S.String),
551
+ exclusive: S.optional(S.Boolean),
552
+ is_archived: S.optional(S.Boolean),
553
+ name: S.optional(S.String),
554
+ }).pipe(T.Http({ method: "PATCH", uri: "/orgs/{org}/labels/{id}", code: 200 }))).annotate({
555
+ identifier: "OrgEditLabelRequest",
556
+ });
557
+ export const OrgEditTeamRequestPermission = /*@__PURE__*/ S.String;
558
+ export const OrgEditTeamRequestUnitsList = /*@__PURE__*/ S.Array(S.String);
559
+ export const OrgEditTeamRequestUnitsMapMap = /*@__PURE__*/ S.Record(S.String, S.String);
560
+ export const OrgEditTeamRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
561
+ id: S.Number.pipe(T.Label()),
562
+ can_create_org_repo: S.optional(S.Boolean),
563
+ description: S.optional(S.String),
564
+ includes_all_repositories: S.optional(S.Boolean),
565
+ name: S.String,
566
+ permission: S.optional(OrgEditTeamRequestPermission),
567
+ units: S.optional(OrgEditTeamRequestUnitsList),
568
+ units_map: S.optional(OrgEditTeamRequestUnitsMapMap),
569
+ }).pipe(T.Http({ method: "PATCH", uri: "/teams/{id}", code: 200 }))).annotate({
570
+ identifier: "OrgEditTeamRequest",
571
+ });
572
+ export const OrgGetAllRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
573
+ page: S.optional(S.Number.pipe(T.Query())),
574
+ limit: S.optional(S.Number.pipe(T.Query())),
575
+ }).pipe(T.Http({ method: "GET", uri: "/orgs", code: 200 }))).annotate({
576
+ identifier: "OrgGetAllRequest",
577
+ });
578
+ export const OrgGetAllResponseBodyList = /*@__PURE__*/ S.Array(Organization);
579
+ export const OrgGetAllResponse = /*@__PURE__*/ S.suspend(() => OrgGetAllResponseBodyList.pipe(T.RawResponseRoot())).annotate({
580
+ identifier: "OrgGetAllResponse",
581
+ });
582
+ export const OrgGetHookRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
583
+ org: S.String.pipe(T.Label()),
584
+ id: S.Number.pipe(T.Label()),
585
+ }).pipe(T.Http({ method: "GET", uri: "/orgs/{org}/hooks/{id}", code: 200 }))).annotate({
586
+ identifier: "OrgGetHookRequest",
587
+ });
588
+ export const OrgGetLabelRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
589
+ org: S.String.pipe(T.Label()),
590
+ id: S.Number.pipe(T.Label()),
591
+ }).pipe(T.Http({ method: "GET", uri: "/orgs/{org}/labels/{id}", code: 200 }))).annotate({
592
+ identifier: "OrgGetLabelRequest",
593
+ });
594
+ export const OrgGetQuotaRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
595
+ org: S.String.pipe(T.Label()),
596
+ }).pipe(T.Http({ method: "GET", uri: "/orgs/{org}/quota", code: 200 }))).annotate({
597
+ identifier: "OrgGetQuotaRequest",
598
+ });
599
+ export const QuotaRuleInfoSubjectsList = /*@__PURE__*/ S.Array(S.String);
600
+ export const QuotaRuleInfo = /*@__PURE__*/ S.suspend(() => S.Struct({
601
+ limit: S.optional(S.Number),
602
+ name: S.optional(S.String),
603
+ subjects: S.optional(QuotaRuleInfoSubjectsList),
604
+ })).annotate({ identifier: "QuotaRuleInfo" });
605
+ export const QuotaGroupRulesList = /*@__PURE__*/ S.Array(QuotaRuleInfo);
606
+ export const QuotaGroup = /*@__PURE__*/ S.suspend(() => S.Struct({
607
+ name: S.optional(S.String),
608
+ rules: S.optional(QuotaGroupRulesList),
609
+ })).annotate({ identifier: "QuotaGroup" });
610
+ export const QuotaGroupList = /*@__PURE__*/ S.Array(QuotaGroup);
611
+ export const QuotaUsedSizeAssetsAttachments = /*@__PURE__*/ S.suspend(() => S.Struct({
612
+ issues: S.optional(S.Number),
613
+ releases: S.optional(S.Number),
614
+ })).annotate({
615
+ identifier: "QuotaUsedSizeAssetsAttachments",
616
+ });
617
+ export const QuotaUsedSizeAssetsPackages = /*@__PURE__*/ S.suspend(() => S.Struct({
618
+ all: S.optional(S.Number),
619
+ })).annotate({
620
+ identifier: "QuotaUsedSizeAssetsPackages",
621
+ });
622
+ export const QuotaUsedSizeAssets = /*@__PURE__*/ S.suspend(() => S.Struct({
623
+ artifacts: S.optional(S.Number),
624
+ attachments: S.optional(QuotaUsedSizeAssetsAttachments),
625
+ packages: S.optional(QuotaUsedSizeAssetsPackages),
626
+ })).annotate({
627
+ identifier: "QuotaUsedSizeAssets",
628
+ });
629
+ export const QuotaUsedSizeGit = /*@__PURE__*/ S.suspend(() => S.Struct({
630
+ LFS: S.optional(S.Number),
631
+ })).annotate({
632
+ identifier: "QuotaUsedSizeGit",
633
+ });
634
+ export const QuotaUsedSizeRepos = /*@__PURE__*/ S.suspend(() => S.Struct({
635
+ private: S.optional(S.Number),
636
+ public: S.optional(S.Number),
637
+ })).annotate({
638
+ identifier: "QuotaUsedSizeRepos",
639
+ });
640
+ export const QuotaUsedSize = /*@__PURE__*/ S.suspend(() => S.Struct({
641
+ assets: S.optional(QuotaUsedSizeAssets),
642
+ git: S.optional(QuotaUsedSizeGit),
643
+ repos: S.optional(QuotaUsedSizeRepos),
644
+ })).annotate({ identifier: "QuotaUsedSize" });
645
+ export const QuotaUsed = /*@__PURE__*/ S.suspend(() => S.Struct({
646
+ size: S.optional(QuotaUsedSize),
647
+ })).annotate({ identifier: "QuotaUsed" });
648
+ export const QuotaInfo = /*@__PURE__*/ S.suspend(() => S.Struct({
649
+ groups: S.optional(QuotaGroupList),
650
+ used: S.optional(QuotaUsed),
651
+ })).annotate({ identifier: "QuotaInfo" });
652
+ export const OrgGetTeamRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
653
+ id: S.Number.pipe(T.Label()),
654
+ }).pipe(T.Http({ method: "GET", uri: "/teams/{id}", code: 200 }))).annotate({
655
+ identifier: "OrgGetTeamRequest",
656
+ });
657
+ export const OrgGetUserPermissionsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
658
+ username: S.String.pipe(T.Label()),
659
+ org: S.String.pipe(T.Label()),
660
+ }).pipe(T.Http({
661
+ method: "GET",
662
+ uri: "/users/{username}/orgs/{org}/permissions",
663
+ code: 200,
664
+ }))).annotate({
665
+ identifier: "OrgGetUserPermissionsRequest",
666
+ });
667
+ export const OrganizationPermissions = /*@__PURE__*/ S.suspend(() => S.Struct({
668
+ can_create_repository: S.optional(S.Boolean),
669
+ can_read: S.optional(S.Boolean),
670
+ can_write: S.optional(S.Boolean),
671
+ is_admin: S.optional(S.Boolean),
672
+ is_owner: S.optional(S.Boolean),
673
+ })).annotate({
674
+ identifier: "OrganizationPermissions",
675
+ });
676
+ export const OrgIsMemberRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
677
+ org: S.String.pipe(T.Label()),
678
+ username: S.String.pipe(T.Label()),
679
+ }).pipe(T.Http({ method: "GET", uri: "/orgs/{org}/members/{username}", code: 200 }))).annotate({
680
+ identifier: "OrgIsMemberRequest",
681
+ });
682
+ export const OrgIsMemberResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
683
+ identifier: "OrgIsMemberResponse",
684
+ });
685
+ export const OrgIsPublicMemberRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
686
+ org: S.String.pipe(T.Label()),
687
+ username: S.String.pipe(T.Label()),
688
+ }).pipe(T.Http({
689
+ method: "GET",
690
+ uri: "/orgs/{org}/public_members/{username}",
691
+ code: 200,
692
+ }))).annotate({
693
+ identifier: "OrgIsPublicMemberRequest",
694
+ });
695
+ export const OrgIsPublicMemberResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
696
+ identifier: "OrgIsPublicMemberResponse",
697
+ });
698
+ export const OrgListActionsSecretsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
699
+ org: S.String.pipe(T.Label()),
700
+ page: S.optional(S.Number.pipe(T.Query())),
701
+ limit: S.optional(S.Number.pipe(T.Query())),
702
+ }).pipe(T.Http({ method: "GET", uri: "/orgs/{org}/actions/secrets", code: 200 }))).annotate({
703
+ identifier: "OrgListActionsSecretsRequest",
704
+ });
705
+ export const Secret = /*@__PURE__*/ S.suspend(() => S.Struct({
706
+ created_at: S.String,
707
+ name: S.String,
708
+ })).annotate({ identifier: "Secret" });
709
+ export const OrgListActionsSecretsResponseBodyList = /*@__PURE__*/ S.Array(Secret);
710
+ export const OrgListActionsSecretsResponse = /*@__PURE__*/ S.suspend(() => OrgListActionsSecretsResponseBodyList.pipe(T.RawResponseRoot())).annotate({
711
+ identifier: "OrgListActionsSecretsResponse",
712
+ });
713
+ export const OrgListActivityFeedsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
714
+ org: S.String.pipe(T.Label()),
715
+ date: S.optional(S.String.pipe(T.Query())),
716
+ page: S.optional(S.Number.pipe(T.Query())),
717
+ limit: S.optional(S.Number.pipe(T.Query())),
718
+ }).pipe(T.Http({ method: "GET", uri: "/orgs/{org}/activities/feeds", code: 200 }))).annotate({
719
+ identifier: "OrgListActivityFeedsRequest",
720
+ });
721
+ export const AttachmentType = /*@__PURE__*/ S.String;
722
+ export const Attachment = /*@__PURE__*/ S.suspend(() => S.Struct({
723
+ browser_download_url: S.optional(S.String),
724
+ created_at: S.optional(S.String),
725
+ download_count: S.optional(S.Number),
726
+ id: S.optional(S.Number),
727
+ name: S.optional(S.String),
728
+ size: S.optional(S.Number),
729
+ type: S.optional(AttachmentType),
730
+ uuid: S.optional(S.String),
731
+ })).annotate({ identifier: "Attachment" });
732
+ export const CommentAssetsList = /*@__PURE__*/ S.Array(Attachment);
733
+ export const Comment = /*@__PURE__*/ S.suspend(() => S.Struct({
734
+ assets: S.optional(CommentAssetsList),
735
+ body: S.optional(S.String),
736
+ created_at: S.optional(S.String),
737
+ html_url: S.optional(S.String),
738
+ id: S.optional(S.Number),
739
+ issue_url: S.optional(S.String),
740
+ original_author: S.optional(S.String),
741
+ original_author_id: S.optional(S.Number),
742
+ pull_request_url: S.optional(S.String),
743
+ updated_at: S.optional(S.String),
744
+ user: S.optional(User),
745
+ })).annotate({ identifier: "Comment" });
746
+ export const ActivityOpType = /*@__PURE__*/ S.String;
747
+ export const Activity = /*@__PURE__*/ S.suspend(() => S.Struct({
748
+ act_user: S.optional(User),
749
+ act_user_id: S.optional(S.Number),
750
+ comment: S.optional(Comment),
751
+ comment_id: S.optional(S.Number),
752
+ content: S.optional(S.String),
753
+ created: S.optional(S.String),
754
+ id: S.optional(S.Number),
755
+ is_private: S.optional(S.Boolean),
756
+ op_type: S.optional(ActivityOpType),
757
+ ref_name: S.optional(S.String),
758
+ repo: S.optional(Repository),
759
+ repo_id: S.optional(S.Number),
760
+ user_id: S.optional(S.Number),
761
+ })).annotate({ identifier: "Activity" });
762
+ export const OrgListActivityFeedsResponseBodyList = /*@__PURE__*/ S.Array(Activity);
763
+ export const OrgListActivityFeedsResponse = /*@__PURE__*/ S.suspend(() => OrgListActivityFeedsResponseBodyList.pipe(T.RawResponseRoot())).annotate({
764
+ identifier: "OrgListActivityFeedsResponse",
765
+ });
766
+ export const OrgListBlockedUsersRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
767
+ org: S.String.pipe(T.Label()),
768
+ page: S.optional(S.Number.pipe(T.Query())),
769
+ limit: S.optional(S.Number.pipe(T.Query())),
770
+ }).pipe(T.Http({ method: "GET", uri: "/orgs/{org}/list_blocked", code: 200 }))).annotate({
771
+ identifier: "OrgListBlockedUsersRequest",
772
+ });
773
+ export const BlockedUser = /*@__PURE__*/ S.suspend(() => S.Struct({
774
+ block_id: S.optional(S.Number),
775
+ created_at: S.optional(S.String),
776
+ })).annotate({ identifier: "BlockedUser" });
777
+ export const OrgListBlockedUsersResponseBodyList = /*@__PURE__*/ S.Array(BlockedUser);
778
+ export const OrgListBlockedUsersResponse = /*@__PURE__*/ S.suspend(() => OrgListBlockedUsersResponseBodyList.pipe(T.RawResponseRoot())).annotate({
779
+ identifier: "OrgListBlockedUsersResponse",
780
+ });
781
+ export const OrgListCurrentUserOrgsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
782
+ page: S.optional(S.Number.pipe(T.Query())),
783
+ limit: S.optional(S.Number.pipe(T.Query())),
784
+ }).pipe(T.Http({ method: "GET", uri: "/user/orgs", code: 200 }))).annotate({
785
+ identifier: "OrgListCurrentUserOrgsRequest",
786
+ });
787
+ export const OrgListCurrentUserOrgsResponseBodyList = /*@__PURE__*/ S.Array(Organization);
788
+ export const OrgListCurrentUserOrgsResponse = /*@__PURE__*/ S.suspend(() => OrgListCurrentUserOrgsResponseBodyList.pipe(T.RawResponseRoot())).annotate({
789
+ identifier: "OrgListCurrentUserOrgsResponse",
790
+ });
791
+ export const OrgListHooksRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
792
+ org: S.String.pipe(T.Label()),
793
+ page: S.optional(S.Number.pipe(T.Query())),
794
+ limit: S.optional(S.Number.pipe(T.Query())),
795
+ }).pipe(T.Http({ method: "GET", uri: "/orgs/{org}/hooks", code: 200 }))).annotate({
796
+ identifier: "OrgListHooksRequest",
797
+ });
798
+ export const OrgListHooksResponseBodyList = /*@__PURE__*/ S.Array(Hook);
799
+ export const OrgListHooksResponse = /*@__PURE__*/ S.suspend(() => OrgListHooksResponseBodyList.pipe(T.RawResponseRoot())).annotate({
800
+ identifier: "OrgListHooksResponse",
801
+ });
802
+ export const OrgListLabelsRequestSort = /*@__PURE__*/ S.String;
803
+ export const OrgListLabelsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
804
+ org: S.String.pipe(T.Label()),
805
+ sort: S.optional(OrgListLabelsRequestSort.pipe(T.Query())),
806
+ page: S.optional(S.Number.pipe(T.Query())),
807
+ limit: S.optional(S.Number.pipe(T.Query())),
808
+ }).pipe(T.Http({ method: "GET", uri: "/orgs/{org}/labels", code: 200 }))).annotate({
809
+ identifier: "OrgListLabelsRequest",
810
+ });
811
+ export const OrgListLabelsResponseBodyList = /*@__PURE__*/ S.Array(Label);
812
+ export const OrgListLabelsResponse = /*@__PURE__*/ S.suspend(() => OrgListLabelsResponseBodyList.pipe(T.RawResponseRoot())).annotate({
813
+ identifier: "OrgListLabelsResponse",
814
+ });
815
+ export const OrgListMembersRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
816
+ org: S.String.pipe(T.Label()),
817
+ page: S.optional(S.Number.pipe(T.Query())),
818
+ limit: S.optional(S.Number.pipe(T.Query())),
819
+ }).pipe(T.Http({ method: "GET", uri: "/orgs/{org}/members", code: 200 }))).annotate({
820
+ identifier: "OrgListMembersRequest",
821
+ });
822
+ export const OrgListMembersResponseBodyList = /*@__PURE__*/ S.Array(User);
823
+ export const OrgListMembersResponse = /*@__PURE__*/ S.suspend(() => OrgListMembersResponseBodyList.pipe(T.RawResponseRoot())).annotate({
824
+ identifier: "OrgListMembersResponse",
825
+ });
826
+ export const OrgListPublicMembersRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
827
+ org: S.String.pipe(T.Label()),
828
+ page: S.optional(S.Number.pipe(T.Query())),
829
+ limit: S.optional(S.Number.pipe(T.Query())),
830
+ }).pipe(T.Http({ method: "GET", uri: "/orgs/{org}/public_members", code: 200 }))).annotate({
831
+ identifier: "OrgListPublicMembersRequest",
832
+ });
833
+ export const OrgListPublicMembersResponseBodyList = /*@__PURE__*/ S.Array(User);
834
+ export const OrgListPublicMembersResponse = /*@__PURE__*/ S.suspend(() => OrgListPublicMembersResponseBodyList.pipe(T.RawResponseRoot())).annotate({
835
+ identifier: "OrgListPublicMembersResponse",
836
+ });
837
+ export const OrgListQuotaArtifactsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
838
+ org: S.String.pipe(T.Label()),
839
+ page: S.optional(S.Number.pipe(T.Query())),
840
+ limit: S.optional(S.Number.pipe(T.Query())),
841
+ }).pipe(T.Http({ method: "GET", uri: "/orgs/{org}/quota/artifacts", code: 200 }))).annotate({
842
+ identifier: "OrgListQuotaArtifactsRequest",
843
+ });
844
+ export const QuotaUsedArtifact = /*@__PURE__*/ S.suspend(() => S.Struct({
845
+ html_url: S.optional(S.String),
846
+ name: S.optional(S.String),
847
+ size: S.optional(S.Number),
848
+ })).annotate({
849
+ identifier: "QuotaUsedArtifact",
850
+ });
851
+ export const QuotaUsedArtifactList = /*@__PURE__*/ S.Array(QuotaUsedArtifact);
852
+ export const OrgListQuotaArtifactsResponse = /*@__PURE__*/ S.suspend(() => QuotaUsedArtifactList.pipe(T.RawResponseRoot())).annotate({
853
+ identifier: "OrgListQuotaArtifactsResponse",
854
+ });
855
+ export const OrgListQuotaAttachmentsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
856
+ org: S.String.pipe(T.Label()),
857
+ page: S.optional(S.Number.pipe(T.Query())),
858
+ limit: S.optional(S.Number.pipe(T.Query())),
859
+ }).pipe(T.Http({ method: "GET", uri: "/orgs/{org}/quota/attachments", code: 200 }))).annotate({
860
+ identifier: "OrgListQuotaAttachmentsRequest",
861
+ });
862
+ export const QuotaUsedAttachmentContainedIn = /*@__PURE__*/ S.suspend(() => S.Struct({
863
+ api_url: S.optional(S.String),
864
+ html_url: S.optional(S.String),
865
+ })).annotate({
866
+ identifier: "QuotaUsedAttachmentContainedIn",
867
+ });
868
+ export const QuotaUsedAttachment = /*@__PURE__*/ S.suspend(() => S.Struct({
869
+ api_url: S.optional(S.String),
870
+ contained_in: S.optional(QuotaUsedAttachmentContainedIn),
871
+ name: S.optional(S.String),
872
+ size: S.optional(S.Number),
873
+ })).annotate({
874
+ identifier: "QuotaUsedAttachment",
875
+ });
876
+ export const QuotaUsedAttachmentList = /*@__PURE__*/ S.Array(QuotaUsedAttachment);
877
+ export const OrgListQuotaAttachmentsResponse = /*@__PURE__*/ S.suspend(() => QuotaUsedAttachmentList.pipe(T.RawResponseRoot())).annotate({
878
+ identifier: "OrgListQuotaAttachmentsResponse",
879
+ });
880
+ export const OrgListQuotaPackagesRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
881
+ org: S.String.pipe(T.Label()),
882
+ page: S.optional(S.Number.pipe(T.Query())),
883
+ limit: S.optional(S.Number.pipe(T.Query())),
884
+ }).pipe(T.Http({ method: "GET", uri: "/orgs/{org}/quota/packages", code: 200 }))).annotate({
885
+ identifier: "OrgListQuotaPackagesRequest",
886
+ });
887
+ export const QuotaUsedPackage = /*@__PURE__*/ S.suspend(() => S.Struct({
888
+ html_url: S.optional(S.String),
889
+ name: S.optional(S.String),
890
+ size: S.optional(S.Number),
891
+ type: S.optional(S.String),
892
+ version: S.optional(S.String),
893
+ })).annotate({
894
+ identifier: "QuotaUsedPackage",
895
+ });
896
+ export const QuotaUsedPackageList = /*@__PURE__*/ S.Array(QuotaUsedPackage);
897
+ export const OrgListQuotaPackagesResponse = /*@__PURE__*/ S.suspend(() => QuotaUsedPackageList.pipe(T.RawResponseRoot())).annotate({
898
+ identifier: "OrgListQuotaPackagesResponse",
899
+ });
900
+ export const OrgListReposRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
901
+ org: S.String.pipe(T.Label()),
902
+ page: S.optional(S.Number.pipe(T.Query())),
903
+ limit: S.optional(S.Number.pipe(T.Query())),
904
+ }).pipe(T.Http({ method: "GET", uri: "/orgs/{org}/repos", code: 200 }))).annotate({
905
+ identifier: "OrgListReposRequest",
906
+ });
907
+ export const OrgListReposResponseBodyList = /*@__PURE__*/ S.Array(Repository);
908
+ export const OrgListReposResponse = /*@__PURE__*/ S.suspend(() => OrgListReposResponseBodyList.pipe(T.RawResponseRoot())).annotate({
909
+ identifier: "OrgListReposResponse",
910
+ });
911
+ export const OrgListTeamActivityFeedsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
912
+ id: S.Number.pipe(T.Label()),
913
+ date: S.optional(S.String.pipe(T.Query())),
914
+ page: S.optional(S.Number.pipe(T.Query())),
915
+ limit: S.optional(S.Number.pipe(T.Query())),
916
+ }).pipe(T.Http({ method: "GET", uri: "/teams/{id}/activities/feeds", code: 200 }))).annotate({
917
+ identifier: "OrgListTeamActivityFeedsRequest",
918
+ });
919
+ export const OrgListTeamActivityFeedsResponseBodyList = /*@__PURE__*/ S.Array(Activity);
920
+ export const OrgListTeamActivityFeedsResponse = /*@__PURE__*/ S.suspend(() => OrgListTeamActivityFeedsResponseBodyList.pipe(T.RawResponseRoot())).annotate({
921
+ identifier: "OrgListTeamActivityFeedsResponse",
922
+ });
923
+ export const OrgListTeamMemberRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
924
+ id: S.Number.pipe(T.Label()),
925
+ username: S.String.pipe(T.Label()),
926
+ }).pipe(T.Http({ method: "GET", uri: "/teams/{id}/members/{username}", code: 200 }))).annotate({
927
+ identifier: "OrgListTeamMemberRequest",
928
+ });
929
+ export const OrgListTeamMembersRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
930
+ id: S.Number.pipe(T.Label()),
931
+ page: S.optional(S.Number.pipe(T.Query())),
932
+ limit: S.optional(S.Number.pipe(T.Query())),
933
+ }).pipe(T.Http({ method: "GET", uri: "/teams/{id}/members", code: 200 }))).annotate({
934
+ identifier: "OrgListTeamMembersRequest",
935
+ });
936
+ export const OrgListTeamMembersResponseBodyList = /*@__PURE__*/ S.Array(User);
937
+ export const OrgListTeamMembersResponse = /*@__PURE__*/ S.suspend(() => OrgListTeamMembersResponseBodyList.pipe(T.RawResponseRoot())).annotate({
938
+ identifier: "OrgListTeamMembersResponse",
939
+ });
940
+ export const OrgListTeamRepoRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
941
+ id: S.Number.pipe(T.Label()),
942
+ org: S.String.pipe(T.Label()),
943
+ repo: S.String.pipe(T.Label()),
944
+ }).pipe(T.Http({ method: "GET", uri: "/teams/{id}/repos/{org}/{repo}", code: 200 }))).annotate({
945
+ identifier: "OrgListTeamRepoRequest",
946
+ });
947
+ export const OrgListTeamReposRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
948
+ id: S.Number.pipe(T.Label()),
949
+ page: S.optional(S.Number.pipe(T.Query())),
950
+ limit: S.optional(S.Number.pipe(T.Query())),
951
+ }).pipe(T.Http({ method: "GET", uri: "/teams/{id}/repos", code: 200 }))).annotate({
952
+ identifier: "OrgListTeamReposRequest",
953
+ });
954
+ export const OrgListTeamReposResponseBodyList = /*@__PURE__*/ S.Array(Repository);
955
+ export const OrgListTeamReposResponse = /*@__PURE__*/ S.suspend(() => OrgListTeamReposResponseBodyList.pipe(T.RawResponseRoot())).annotate({
956
+ identifier: "OrgListTeamReposResponse",
957
+ });
958
+ export const OrgListTeamsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
959
+ org: S.String.pipe(T.Label()),
960
+ page: S.optional(S.Number.pipe(T.Query())),
961
+ limit: S.optional(S.Number.pipe(T.Query())),
962
+ }).pipe(T.Http({ method: "GET", uri: "/orgs/{org}/teams", code: 200 }))).annotate({
963
+ identifier: "OrgListTeamsRequest",
964
+ });
965
+ export const OrgListTeamsResponseBodyList = /*@__PURE__*/ S.Array(Team);
966
+ export const OrgListTeamsResponse = /*@__PURE__*/ S.suspend(() => OrgListTeamsResponseBodyList.pipe(T.RawResponseRoot())).annotate({
967
+ identifier: "OrgListTeamsResponse",
968
+ });
969
+ export const OrgListUserOrgsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
970
+ username: S.String.pipe(T.Label()),
971
+ page: S.optional(S.Number.pipe(T.Query())),
972
+ limit: S.optional(S.Number.pipe(T.Query())),
973
+ }).pipe(T.Http({ method: "GET", uri: "/users/{username}/orgs", code: 200 }))).annotate({
974
+ identifier: "OrgListUserOrgsRequest",
975
+ });
976
+ export const OrgListUserOrgsResponseBodyList = /*@__PURE__*/ S.Array(Organization);
977
+ export const OrgListUserOrgsResponse = /*@__PURE__*/ S.suspend(() => OrgListUserOrgsResponseBodyList.pipe(T.RawResponseRoot())).annotate({
978
+ identifier: "OrgListUserOrgsResponse",
979
+ });
980
+ export const OrgPublicizeMemberRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
981
+ org: S.String.pipe(T.Label()),
982
+ username: S.String.pipe(T.Label()),
983
+ }).pipe(T.Http({
984
+ method: "PUT",
985
+ uri: "/orgs/{org}/public_members/{username}",
986
+ code: 200,
987
+ }))).annotate({
988
+ identifier: "OrgPublicizeMemberRequest",
989
+ });
990
+ export const OrgPublicizeMemberResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
991
+ identifier: "OrgPublicizeMemberResponse",
992
+ });
993
+ export const OrgRemoveTeamMemberRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
994
+ id: S.Number.pipe(T.Label()),
995
+ username: S.String.pipe(T.Label()),
996
+ }).pipe(T.Http({
997
+ method: "DELETE",
998
+ uri: "/teams/{id}/members/{username}",
999
+ code: 200,
1000
+ }))).annotate({
1001
+ identifier: "OrgRemoveTeamMemberRequest",
1002
+ });
1003
+ export const OrgRemoveTeamMemberResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
1004
+ identifier: "OrgRemoveTeamMemberResponse",
1005
+ });
1006
+ export const OrgRemoveTeamRepositoryRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1007
+ id: S.Number.pipe(T.Label()),
1008
+ org: S.String.pipe(T.Label()),
1009
+ repo: S.String.pipe(T.Label()),
1010
+ }).pipe(T.Http({
1011
+ method: "DELETE",
1012
+ uri: "/teams/{id}/repos/{org}/{repo}",
1013
+ code: 200,
1014
+ }))).annotate({
1015
+ identifier: "OrgRemoveTeamRepositoryRequest",
1016
+ });
1017
+ export const OrgRemoveTeamRepositoryResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
1018
+ identifier: "OrgRemoveTeamRepositoryResponse",
1019
+ });
1020
+ export const OrgSearchRunJobsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1021
+ org: S.String.pipe(T.Label()),
1022
+ labels: S.optional(S.String.pipe(T.Query())),
1023
+ }).pipe(T.Http({
1024
+ method: "GET",
1025
+ uri: "/orgs/{org}/actions/runners/jobs",
1026
+ code: 200,
1027
+ }))).annotate({
1028
+ identifier: "OrgSearchRunJobsRequest",
1029
+ });
1030
+ export const ActionRunJobNeedsList = /*@__PURE__*/ S.Array(S.String);
1031
+ export const ActionRunJobRunsOnList = /*@__PURE__*/ S.Array(S.String);
1032
+ export const ActionRunJob = /*@__PURE__*/ S.suspend(() => S.Struct({
1033
+ attempt: S.optional(S.Number),
1034
+ handle: S.optional(S.String),
1035
+ id: S.optional(S.Number),
1036
+ name: S.optional(S.String),
1037
+ needs: S.optional(ActionRunJobNeedsList),
1038
+ owner_id: S.optional(S.Number),
1039
+ repo_id: S.optional(S.Number),
1040
+ run_id: S.optional(S.Number),
1041
+ runs_on: S.optional(ActionRunJobRunsOnList),
1042
+ status: S.optional(S.String),
1043
+ task_id: S.optional(S.Number),
1044
+ })).annotate({ identifier: "ActionRunJob" });
1045
+ export const OrgSearchRunJobsResponseBodyList = /*@__PURE__*/ S.Array(ActionRunJob);
1046
+ export const OrgSearchRunJobsResponse = /*@__PURE__*/ S.suspend(() => OrgSearchRunJobsResponseBodyList.pipe(T.RawResponseRoot())).annotate({
1047
+ identifier: "OrgSearchRunJobsResponse",
1048
+ });
1049
+ export const OrgUnblockUserRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1050
+ org: S.String.pipe(T.Label()),
1051
+ username: S.String.pipe(T.Label()),
1052
+ }).pipe(T.Http({ method: "PUT", uri: "/orgs/{org}/unblock/{username}", code: 200 }))).annotate({
1053
+ identifier: "OrgUnblockUserRequest",
1054
+ });
1055
+ export const OrgUnblockUserResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
1056
+ identifier: "OrgUnblockUserResponse",
1057
+ });
1058
+ export const OrgUpdateAvatarRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1059
+ org: S.String.pipe(T.Label()),
1060
+ image: S.optional(S.String),
1061
+ }).pipe(T.Http({ method: "POST", uri: "/orgs/{org}/avatar", code: 200 }))).annotate({
1062
+ identifier: "OrgUpdateAvatarRequest",
1063
+ });
1064
+ export const OrgUpdateAvatarResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
1065
+ identifier: "OrgUpdateAvatarResponse",
1066
+ });
1067
+ export const RegisterOrgRunnerRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1068
+ org: S.String.pipe(T.Label()),
1069
+ description: S.optional(S.String),
1070
+ ephemeral: S.optional(S.Boolean),
1071
+ name: S.String,
1072
+ }).pipe(T.Http({ method: "POST", uri: "/orgs/{org}/actions/runners", code: 200 }))).annotate({
1073
+ identifier: "RegisterOrgRunnerRequest",
1074
+ });
1075
+ export const RegisterRunnerResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
1076
+ id: S.optional(S.Number),
1077
+ token: S.optional(S.String),
1078
+ uuid: S.optional(S.String),
1079
+ })).annotate({
1080
+ identifier: "RegisterRunnerResponse",
1081
+ });
1082
+ export const RenameOrgRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1083
+ org: S.String.pipe(T.Label()),
1084
+ new_name: S.String,
1085
+ }).pipe(T.Http({ method: "POST", uri: "/orgs/{org}/rename", code: 200 }))).annotate({
1086
+ identifier: "RenameOrgRequest",
1087
+ });
1088
+ export const RenameOrgResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
1089
+ identifier: "RenameOrgResponse",
1090
+ });
1091
+ export const SearchTeamRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1092
+ org: S.String.pipe(T.Label()),
1093
+ q: S.optional(S.String.pipe(T.Query())),
1094
+ include_desc: S.optional(S.Boolean.pipe(T.Query())),
1095
+ page: S.optional(S.Number.pipe(T.Query())),
1096
+ limit: S.optional(S.Number.pipe(T.Query())),
1097
+ }).pipe(T.Http({ method: "GET", uri: "/orgs/{org}/teams/search", code: 200 }))).annotate({
1098
+ identifier: "SearchTeamRequest",
1099
+ });
1100
+ export const SearchTeamResponseDataList = /*@__PURE__*/ S.Array(Team);
1101
+ export const SearchTeamResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
1102
+ data: S.optional(SearchTeamResponseDataList),
1103
+ ok: S.optional(S.Boolean),
1104
+ })).annotate({
1105
+ identifier: "SearchTeamResponse",
1106
+ });
1107
+ export const UpdateOrgSecretRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1108
+ org: S.String.pipe(T.Label()),
1109
+ secretname: S.String.pipe(T.Label()),
1110
+ data: S.String,
1111
+ }).pipe(T.Http({
1112
+ method: "PUT",
1113
+ uri: "/orgs/{org}/actions/secrets/{secretname}",
1114
+ code: 200,
1115
+ }))).annotate({
1116
+ identifier: "UpdateOrgSecretRequest",
1117
+ });
1118
+ export const UpdateOrgSecretResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
1119
+ identifier: "UpdateOrgSecretResponse",
1120
+ });
1121
+ export const UpdateOrgVariableRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1122
+ org: S.String.pipe(T.Label()),
1123
+ variablename: S.String.pipe(T.Label()),
1124
+ name: S.optional(S.String),
1125
+ value: S.String,
1126
+ }).pipe(T.Http({
1127
+ method: "PUT",
1128
+ uri: "/orgs/{org}/actions/variables/{variablename}",
1129
+ code: 200,
1130
+ }))).annotate({
1131
+ identifier: "UpdateOrgVariableRequest",
1132
+ });
1133
+ export const UpdateOrgVariableResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
1134
+ identifier: "UpdateOrgVariableResponse",
1135
+ });
1136
+ /** Create an organization */
1137
+ export const createOrg = /*@__PURE__*/ API.make(() => ({
1138
+ input: CreateOrgRequest,
1139
+ output: Organization,
1140
+ errors: [Forbidden, UnprocessableEntity],
1141
+ protocol: ForgejoProtocol,
1142
+ retry: Retry.Retry,
1143
+ }));
1144
+ /** Create a repository in an organization */
1145
+ export const createOrgRepo = /*@__PURE__*/ API.make(() => ({
1146
+ input: CreateOrgRepoRequest,
1147
+ output: Repository,
1148
+ errors: [BadRequest, Forbidden, NotFound, Conflict],
1149
+ protocol: ForgejoProtocol,
1150
+ retry: Retry.Retry,
1151
+ }));
1152
+ /** Create a new variable in organization */
1153
+ export const createOrgVariable = /*@__PURE__*/ API.make(() => ({
1154
+ input: CreateOrgVariableRequest,
1155
+ output: CreateOrgVariableResponse,
1156
+ errors: [BadRequest, NotFound],
1157
+ protocol: ForgejoProtocol,
1158
+ retry: Retry.Retry,
1159
+ }));
1160
+ /** Delete an organization */
1161
+ export const deleteOrg = /*@__PURE__*/ API.make(() => ({
1162
+ input: DeleteOrgRequest,
1163
+ output: DeleteOrgResponse,
1164
+ errors: [NotFound, OrganizationOwnsRepositories],
1165
+ protocol: ForgejoProtocol,
1166
+ retry: Retry.Retry,
1167
+ }));
1168
+ /** Delete a particular runner that belongs to the organization */
1169
+ export const deleteOrgRunner = /*@__PURE__*/ API.make(() => ({
1170
+ input: DeleteOrgRunnerRequest,
1171
+ output: DeleteOrgRunnerResponse,
1172
+ errors: [BadRequest, NotFound],
1173
+ protocol: ForgejoProtocol,
1174
+ retry: Retry.Retry,
1175
+ }));
1176
+ /** Delete a secret in an organization */
1177
+ export const deleteOrgSecret = /*@__PURE__*/ API.make(() => ({
1178
+ input: DeleteOrgSecretRequest,
1179
+ output: DeleteOrgSecretResponse,
1180
+ errors: [BadRequest, NotFound],
1181
+ protocol: ForgejoProtocol,
1182
+ retry: Retry.Retry,
1183
+ }));
1184
+ /** Delete organization's variable by name */
1185
+ export const deleteOrgVariable = /*@__PURE__*/ API.make(() => ({
1186
+ input: DeleteOrgVariableRequest,
1187
+ output: DeleteOrgVariableResponse,
1188
+ errors: [BadRequest, NotFound],
1189
+ protocol: ForgejoProtocol,
1190
+ retry: Retry.Retry,
1191
+ }));
1192
+ /** Edit an organization */
1193
+ export const editOrg = /*@__PURE__*/ API.make(() => ({
1194
+ input: EditOrgRequest,
1195
+ output: Organization,
1196
+ errors: [NotFound, UnprocessableEntity],
1197
+ protocol: ForgejoProtocol,
1198
+ retry: Retry.Retry,
1199
+ }));
1200
+ /** Get an organization */
1201
+ export const getOrg = /*@__PURE__*/ API.make(() => ({
1202
+ input: GetOrgRequest,
1203
+ output: Organization,
1204
+ errors: [NotFound],
1205
+ protocol: ForgejoProtocol,
1206
+ retry: Retry.Retry,
1207
+ }));
1208
+ /** Get a particular runner that belongs to the organization */
1209
+ export const getOrgRunner = /*@__PURE__*/ API.make(() => ({
1210
+ input: GetOrgRunnerRequest,
1211
+ output: ActionRunner,
1212
+ errors: [BadRequest, NotFound],
1213
+ protocol: ForgejoProtocol,
1214
+ retry: Retry.Retry,
1215
+ }));
1216
+ /** Get the organization's runners */
1217
+ export const getOrgRunners = /*@__PURE__*/ API.make(() => ({
1218
+ input: GetOrgRunnersRequest,
1219
+ output: GetOrgRunnersResponse,
1220
+ errors: [BadRequest, NotFound],
1221
+ protocol: ForgejoProtocol,
1222
+ retry: Retry.Retry,
1223
+ }));
1224
+ /** Get organization's variable by name */
1225
+ export const getOrgVariable = /*@__PURE__*/ API.make(() => ({
1226
+ input: GetOrgVariableRequest,
1227
+ output: ActionVariable,
1228
+ errors: [BadRequest, NotFound],
1229
+ protocol: ForgejoProtocol,
1230
+ retry: Retry.Retry,
1231
+ }));
1232
+ /** List variables of an organization */
1233
+ export const getOrgVariablesList = /*@__PURE__*/ API.make(() => ({
1234
+ input: GetOrgVariablesListRequest,
1235
+ output: GetOrgVariablesListResponse,
1236
+ errors: [BadRequest, Forbidden, NotFound],
1237
+ protocol: ForgejoProtocol,
1238
+ retry: Retry.Retry,
1239
+ }));
1240
+ /** Add a team member */
1241
+ export const orgAddTeamMember = /*@__PURE__*/ API.make(() => ({
1242
+ input: OrgAddTeamMemberRequest,
1243
+ output: OrgAddTeamMemberResponse,
1244
+ errors: [NotFound],
1245
+ protocol: ForgejoProtocol,
1246
+ retry: Retry.Retry,
1247
+ }));
1248
+ /** Add a repository to a team */
1249
+ export const orgAddTeamRepository = /*@__PURE__*/ API.make(() => ({
1250
+ input: OrgAddTeamRepositoryRequest,
1251
+ output: OrgAddTeamRepositoryResponse,
1252
+ errors: [Forbidden, NotFound],
1253
+ protocol: ForgejoProtocol,
1254
+ retry: Retry.Retry,
1255
+ }));
1256
+ /** Blocks a user from the organization */
1257
+ export const orgBlockUser = /*@__PURE__*/ API.make(() => ({
1258
+ input: OrgBlockUserRequest,
1259
+ output: OrgBlockUserResponse,
1260
+ errors: [NotFound, UnprocessableEntity],
1261
+ protocol: ForgejoProtocol,
1262
+ retry: Retry.Retry,
1263
+ }));
1264
+ /** Check if the organization is over quota for a given subject */
1265
+ export const orgCheckQuota = /*@__PURE__*/ API.make(() => ({
1266
+ input: OrgCheckQuotaRequest,
1267
+ output: OrgCheckQuotaResponse,
1268
+ errors: [Forbidden, NotFound, UnprocessableEntity],
1269
+ protocol: ForgejoProtocol,
1270
+ retry: Retry.Retry,
1271
+ }));
1272
+ /** Conceal a user's membership */
1273
+ export const orgConcealMember = /*@__PURE__*/ API.make(() => ({
1274
+ input: OrgConcealMemberRequest,
1275
+ output: OrgConcealMemberResponse,
1276
+ errors: [Forbidden, NotFound],
1277
+ protocol: ForgejoProtocol,
1278
+ retry: Retry.Retry,
1279
+ }));
1280
+ /** Create a hook */
1281
+ export const orgCreateHook = /*@__PURE__*/ API.make(() => ({
1282
+ input: OrgCreateHookRequest,
1283
+ output: Hook,
1284
+ errors: [NotFound],
1285
+ protocol: ForgejoProtocol,
1286
+ retry: Retry.Retry,
1287
+ }));
1288
+ /** Create a label for an organization */
1289
+ export const orgCreateLabel = /*@__PURE__*/ API.make(() => ({
1290
+ input: OrgCreateLabelRequest,
1291
+ output: Label,
1292
+ errors: [NotFound, UnprocessableEntity],
1293
+ protocol: ForgejoProtocol,
1294
+ retry: Retry.Retry,
1295
+ }));
1296
+ /** Create a team */
1297
+ export const orgCreateTeam = /*@__PURE__*/ API.make(() => ({
1298
+ input: OrgCreateTeamRequest,
1299
+ output: Team,
1300
+ errors: [NotFound, UnprocessableEntity],
1301
+ protocol: ForgejoProtocol,
1302
+ retry: Retry.Retry,
1303
+ }));
1304
+ /** Delete an organization's avatar. It will be replaced by a default one */
1305
+ export const orgDeleteAvatar = /*@__PURE__*/ API.make(() => ({
1306
+ input: OrgDeleteAvatarRequest,
1307
+ output: OrgDeleteAvatarResponse,
1308
+ errors: [NotFound],
1309
+ protocol: ForgejoProtocol,
1310
+ retry: Retry.Retry,
1311
+ }));
1312
+ /** Delete a hook */
1313
+ export const orgDeleteHook = /*@__PURE__*/ API.make(() => ({
1314
+ input: OrgDeleteHookRequest,
1315
+ output: OrgDeleteHookResponse,
1316
+ errors: [NotFound],
1317
+ protocol: ForgejoProtocol,
1318
+ retry: Retry.Retry,
1319
+ }));
1320
+ /** Delete a label */
1321
+ export const orgDeleteLabel = /*@__PURE__*/ API.make(() => ({
1322
+ input: OrgDeleteLabelRequest,
1323
+ output: OrgDeleteLabelResponse,
1324
+ errors: [NotFound],
1325
+ protocol: ForgejoProtocol,
1326
+ retry: Retry.Retry,
1327
+ }));
1328
+ /** Remove a member from an organization */
1329
+ export const orgDeleteMember = /*@__PURE__*/ API.make(() => ({
1330
+ input: OrgDeleteMemberRequest,
1331
+ output: OrgDeleteMemberResponse,
1332
+ errors: [NotFound],
1333
+ protocol: ForgejoProtocol,
1334
+ retry: Retry.Retry,
1335
+ }));
1336
+ /** Delete a team */
1337
+ export const orgDeleteTeam = /*@__PURE__*/ API.make(() => ({
1338
+ input: OrgDeleteTeamRequest,
1339
+ output: OrgDeleteTeamResponse,
1340
+ errors: [NotFound],
1341
+ protocol: ForgejoProtocol,
1342
+ retry: Retry.Retry,
1343
+ }));
1344
+ /** Update a hook */
1345
+ export const orgEditHook = /*@__PURE__*/ API.make(() => ({
1346
+ input: OrgEditHookRequest,
1347
+ output: Hook,
1348
+ errors: [NotFound],
1349
+ protocol: ForgejoProtocol,
1350
+ retry: Retry.Retry,
1351
+ }));
1352
+ /** Update a label */
1353
+ export const orgEditLabel = /*@__PURE__*/ API.make(() => ({
1354
+ input: OrgEditLabelRequest,
1355
+ output: Label,
1356
+ errors: [NotFound, UnprocessableEntity],
1357
+ protocol: ForgejoProtocol,
1358
+ retry: Retry.Retry,
1359
+ }));
1360
+ /** Edit a team */
1361
+ export const orgEditTeam = /*@__PURE__*/ API.make(() => ({
1362
+ input: OrgEditTeamRequest,
1363
+ output: Team,
1364
+ errors: [NotFound],
1365
+ protocol: ForgejoProtocol,
1366
+ retry: Retry.Retry,
1367
+ }));
1368
+ /** List all organizations */
1369
+ export const orgGetAll = /*@__PURE__*/ API.make(() => ({
1370
+ input: OrgGetAllRequest,
1371
+ output: OrgGetAllResponse,
1372
+ errors: [],
1373
+ protocol: ForgejoProtocol,
1374
+ retry: Retry.Retry,
1375
+ }));
1376
+ /** Get a hook */
1377
+ export const orgGetHook = /*@__PURE__*/ API.make(() => ({
1378
+ input: OrgGetHookRequest,
1379
+ output: Hook,
1380
+ errors: [NotFound],
1381
+ protocol: ForgejoProtocol,
1382
+ retry: Retry.Retry,
1383
+ }));
1384
+ /** Get a single label */
1385
+ export const orgGetLabel = /*@__PURE__*/ API.make(() => ({
1386
+ input: OrgGetLabelRequest,
1387
+ output: Label,
1388
+ errors: [NotFound],
1389
+ protocol: ForgejoProtocol,
1390
+ retry: Retry.Retry,
1391
+ }));
1392
+ /** Get quota information for an organization */
1393
+ export const orgGetQuota = /*@__PURE__*/ API.make(() => ({
1394
+ input: OrgGetQuotaRequest,
1395
+ output: QuotaInfo,
1396
+ errors: [Forbidden, NotFound],
1397
+ protocol: ForgejoProtocol,
1398
+ retry: Retry.Retry,
1399
+ }));
1400
+ /** Get a team */
1401
+ export const orgGetTeam = /*@__PURE__*/ API.make(() => ({
1402
+ input: OrgGetTeamRequest,
1403
+ output: Team,
1404
+ errors: [NotFound],
1405
+ protocol: ForgejoProtocol,
1406
+ retry: Retry.Retry,
1407
+ }));
1408
+ /** Get user permissions in organization */
1409
+ export const orgGetUserPermissions = /*@__PURE__*/ API.make(() => ({
1410
+ input: OrgGetUserPermissionsRequest,
1411
+ output: OrganizationPermissions,
1412
+ errors: [Forbidden, NotFound],
1413
+ protocol: ForgejoProtocol,
1414
+ retry: Retry.Retry,
1415
+ }));
1416
+ /** Check if a user is a member of an organization */
1417
+ export const orgIsMember = /*@__PURE__*/ API.make(() => ({
1418
+ input: OrgIsMemberRequest,
1419
+ output: OrgIsMemberResponse,
1420
+ errors: [NotFound],
1421
+ protocol: ForgejoProtocol,
1422
+ retry: Retry.Retry,
1423
+ }));
1424
+ /** Check if a user is a public member of an organization */
1425
+ export const orgIsPublicMember = /*@__PURE__*/ API.make(() => ({
1426
+ input: OrgIsPublicMemberRequest,
1427
+ output: OrgIsPublicMemberResponse,
1428
+ errors: [NotFound],
1429
+ protocol: ForgejoProtocol,
1430
+ retry: Retry.Retry,
1431
+ }));
1432
+ /** List actions secrets of an organization */
1433
+ export const orgListActionsSecrets = /*@__PURE__*/ API.make(() => ({
1434
+ input: OrgListActionsSecretsRequest,
1435
+ output: OrgListActionsSecretsResponse,
1436
+ errors: [Forbidden, NotFound],
1437
+ protocol: ForgejoProtocol,
1438
+ retry: Retry.Retry,
1439
+ }));
1440
+ /** List an organization's activity feeds */
1441
+ export const orgListActivityFeeds = /*@__PURE__*/ API.make(() => ({
1442
+ input: OrgListActivityFeedsRequest,
1443
+ output: OrgListActivityFeedsResponse,
1444
+ errors: [NotFound],
1445
+ protocol: ForgejoProtocol,
1446
+ retry: Retry.Retry,
1447
+ }));
1448
+ /** List the organization's blocked users */
1449
+ export const orgListBlockedUsers = /*@__PURE__*/ API.make(() => ({
1450
+ input: OrgListBlockedUsersRequest,
1451
+ output: OrgListBlockedUsersResponse,
1452
+ errors: [],
1453
+ protocol: ForgejoProtocol,
1454
+ retry: Retry.Retry,
1455
+ }));
1456
+ /** List the current user's organizations */
1457
+ export const orgListCurrentUserOrgs = /*@__PURE__*/ API.make(() => ({
1458
+ input: OrgListCurrentUserOrgsRequest,
1459
+ output: OrgListCurrentUserOrgsResponse,
1460
+ errors: [Forbidden, NotFound],
1461
+ protocol: ForgejoProtocol,
1462
+ retry: Retry.Retry,
1463
+ }));
1464
+ /** List an organization's webhooks */
1465
+ export const orgListHooks = /*@__PURE__*/ API.make(() => ({
1466
+ input: OrgListHooksRequest,
1467
+ output: OrgListHooksResponse,
1468
+ errors: [NotFound],
1469
+ protocol: ForgejoProtocol,
1470
+ retry: Retry.Retry,
1471
+ }));
1472
+ /** List an organization's labels */
1473
+ export const orgListLabels = /*@__PURE__*/ API.make(() => ({
1474
+ input: OrgListLabelsRequest,
1475
+ output: OrgListLabelsResponse,
1476
+ errors: [NotFound],
1477
+ protocol: ForgejoProtocol,
1478
+ retry: Retry.Retry,
1479
+ }));
1480
+ /** List an organization's members */
1481
+ export const orgListMembers = /*@__PURE__*/ API.make(() => ({
1482
+ input: OrgListMembersRequest,
1483
+ output: OrgListMembersResponse,
1484
+ errors: [NotFound],
1485
+ protocol: ForgejoProtocol,
1486
+ retry: Retry.Retry,
1487
+ }));
1488
+ /** List an organization's public members */
1489
+ export const orgListPublicMembers = /*@__PURE__*/ API.make(() => ({
1490
+ input: OrgListPublicMembersRequest,
1491
+ output: OrgListPublicMembersResponse,
1492
+ errors: [NotFound],
1493
+ protocol: ForgejoProtocol,
1494
+ retry: Retry.Retry,
1495
+ }));
1496
+ /** List the artifacts affecting the organization's quota */
1497
+ export const orgListQuotaArtifacts = /*@__PURE__*/ API.make(() => ({
1498
+ input: OrgListQuotaArtifactsRequest,
1499
+ output: OrgListQuotaArtifactsResponse,
1500
+ errors: [Forbidden, NotFound],
1501
+ protocol: ForgejoProtocol,
1502
+ retry: Retry.Retry,
1503
+ }));
1504
+ /** List the attachments affecting the organization's quota */
1505
+ export const orgListQuotaAttachments = /*@__PURE__*/ API.make(() => ({
1506
+ input: OrgListQuotaAttachmentsRequest,
1507
+ output: OrgListQuotaAttachmentsResponse,
1508
+ errors: [Forbidden, NotFound],
1509
+ protocol: ForgejoProtocol,
1510
+ retry: Retry.Retry,
1511
+ }));
1512
+ /** List the packages affecting the organization's quota */
1513
+ export const orgListQuotaPackages = /*@__PURE__*/ API.make(() => ({
1514
+ input: OrgListQuotaPackagesRequest,
1515
+ output: OrgListQuotaPackagesResponse,
1516
+ errors: [Forbidden, NotFound],
1517
+ protocol: ForgejoProtocol,
1518
+ retry: Retry.Retry,
1519
+ }));
1520
+ /** List an organization's repos */
1521
+ export const orgListRepos = /*@__PURE__*/ API.make(() => ({
1522
+ input: OrgListReposRequest,
1523
+ output: OrgListReposResponse,
1524
+ errors: [NotFound],
1525
+ protocol: ForgejoProtocol,
1526
+ retry: Retry.Retry,
1527
+ }));
1528
+ /** List a team's activity feeds */
1529
+ export const orgListTeamActivityFeeds = /*@__PURE__*/ API.make(() => ({
1530
+ input: OrgListTeamActivityFeedsRequest,
1531
+ output: OrgListTeamActivityFeedsResponse,
1532
+ errors: [NotFound],
1533
+ protocol: ForgejoProtocol,
1534
+ retry: Retry.Retry,
1535
+ }));
1536
+ /** List a particular member of team */
1537
+ export const orgListTeamMember = /*@__PURE__*/ API.make(() => ({
1538
+ input: OrgListTeamMemberRequest,
1539
+ output: User,
1540
+ errors: [NotFound],
1541
+ protocol: ForgejoProtocol,
1542
+ retry: Retry.Retry,
1543
+ }));
1544
+ /** List a team's members */
1545
+ export const orgListTeamMembers = /*@__PURE__*/ API.make(() => ({
1546
+ input: OrgListTeamMembersRequest,
1547
+ output: OrgListTeamMembersResponse,
1548
+ errors: [Forbidden, NotFound],
1549
+ protocol: ForgejoProtocol,
1550
+ retry: Retry.Retry,
1551
+ }));
1552
+ /** List a particular repo of team */
1553
+ export const orgListTeamRepo = /*@__PURE__*/ API.make(() => ({
1554
+ input: OrgListTeamRepoRequest,
1555
+ output: Repository,
1556
+ errors: [NotFound],
1557
+ protocol: ForgejoProtocol,
1558
+ retry: Retry.Retry,
1559
+ }));
1560
+ /** List a team's repos */
1561
+ export const orgListTeamRepos = /*@__PURE__*/ API.make(() => ({
1562
+ input: OrgListTeamReposRequest,
1563
+ output: OrgListTeamReposResponse,
1564
+ errors: [NotFound],
1565
+ protocol: ForgejoProtocol,
1566
+ retry: Retry.Retry,
1567
+ }));
1568
+ /** List an organization's teams */
1569
+ export const orgListTeams = /*@__PURE__*/ API.make(() => ({
1570
+ input: OrgListTeamsRequest,
1571
+ output: OrgListTeamsResponse,
1572
+ errors: [Forbidden, NotFound],
1573
+ protocol: ForgejoProtocol,
1574
+ retry: Retry.Retry,
1575
+ }));
1576
+ /** List a user's organizations */
1577
+ export const orgListUserOrgs = /*@__PURE__*/ API.make(() => ({
1578
+ input: OrgListUserOrgsRequest,
1579
+ output: OrgListUserOrgsResponse,
1580
+ errors: [NotFound],
1581
+ protocol: ForgejoProtocol,
1582
+ retry: Retry.Retry,
1583
+ }));
1584
+ /** Publicize a user's membership */
1585
+ export const orgPublicizeMember = /*@__PURE__*/ API.make(() => ({
1586
+ input: OrgPublicizeMemberRequest,
1587
+ output: OrgPublicizeMemberResponse,
1588
+ errors: [Forbidden, NotFound],
1589
+ protocol: ForgejoProtocol,
1590
+ retry: Retry.Retry,
1591
+ }));
1592
+ /** Remove a team member */
1593
+ export const orgRemoveTeamMember = /*@__PURE__*/ API.make(() => ({
1594
+ input: OrgRemoveTeamMemberRequest,
1595
+ output: OrgRemoveTeamMemberResponse,
1596
+ errors: [NotFound],
1597
+ protocol: ForgejoProtocol,
1598
+ retry: Retry.Retry,
1599
+ }));
1600
+ /** Remove a repository from a team This does not delete the repository, it only removes the repository from the team. */
1601
+ export const orgRemoveTeamRepository = /*@__PURE__*/ API.make(() => ({
1602
+ input: OrgRemoveTeamRepositoryRequest,
1603
+ output: OrgRemoveTeamRepositoryResponse,
1604
+ errors: [Forbidden, NotFound],
1605
+ protocol: ForgejoProtocol,
1606
+ retry: Retry.Retry,
1607
+ }));
1608
+ /** Search for organization's action jobs according filter conditions */
1609
+ export const orgSearchRunJobs = /*@__PURE__*/ API.make(() => ({
1610
+ input: OrgSearchRunJobsRequest,
1611
+ output: OrgSearchRunJobsResponse,
1612
+ errors: [Forbidden],
1613
+ protocol: ForgejoProtocol,
1614
+ retry: Retry.Retry,
1615
+ }));
1616
+ /** Unblock a user from the organization */
1617
+ export const orgUnblockUser = /*@__PURE__*/ API.make(() => ({
1618
+ input: OrgUnblockUserRequest,
1619
+ output: OrgUnblockUserResponse,
1620
+ errors: [NotFound, UnprocessableEntity],
1621
+ protocol: ForgejoProtocol,
1622
+ retry: Retry.Retry,
1623
+ }));
1624
+ /** Update an organization's avatar */
1625
+ export const orgUpdateAvatar = /*@__PURE__*/ API.make(() => ({
1626
+ input: OrgUpdateAvatarRequest,
1627
+ output: OrgUpdateAvatarResponse,
1628
+ errors: [NotFound],
1629
+ protocol: ForgejoProtocol,
1630
+ retry: Retry.Retry,
1631
+ }));
1632
+ /** Register a new organization-level runner */
1633
+ export const registerOrgRunner = /*@__PURE__*/ API.make(() => ({
1634
+ input: RegisterOrgRunnerRequest,
1635
+ output: RegisterRunnerResponse,
1636
+ errors: [BadRequest, NotFound],
1637
+ protocol: ForgejoProtocol,
1638
+ retry: Retry.Retry,
1639
+ }));
1640
+ /** Rename an organization */
1641
+ export const renameOrg = /*@__PURE__*/ API.make(() => ({
1642
+ input: RenameOrgRequest,
1643
+ output: RenameOrgResponse,
1644
+ errors: [Forbidden, UnprocessableEntity],
1645
+ protocol: ForgejoProtocol,
1646
+ retry: Retry.Retry,
1647
+ }));
1648
+ /** Search for teams within an organization */
1649
+ export const searchTeam = /*@__PURE__*/ API.make(() => ({
1650
+ input: SearchTeamRequest,
1651
+ output: SearchTeamResponse,
1652
+ errors: [NotFound],
1653
+ protocol: ForgejoProtocol,
1654
+ retry: Retry.Retry,
1655
+ }));
1656
+ /** Create or Update a secret value in an organization */
1657
+ export const updateOrgSecret = /*@__PURE__*/ API.make(() => ({
1658
+ input: UpdateOrgSecretRequest,
1659
+ output: UpdateOrgSecretResponse,
1660
+ errors: [BadRequest, NotFound],
1661
+ protocol: ForgejoProtocol,
1662
+ retry: Retry.Retry,
1663
+ }));
1664
+ /** Update variable in organization */
1665
+ export const updateOrgVariable = /*@__PURE__*/ API.make(() => ({
1666
+ input: UpdateOrgVariableRequest,
1667
+ output: UpdateOrgVariableResponse,
1668
+ errors: [BadRequest, NotFound],
1669
+ protocol: ForgejoProtocol,
1670
+ retry: Retry.Retry,
1671
+ }));
1672
+ //# sourceMappingURL=organization.js.map