@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,1921 @@
1
+ // AUTO-GENERATED by scripts/generate.ts from .generated-specs (specs/spec-mirror-forgejo). Do not edit.
2
+ import * as S from "@distilled.cloud/core/schema";
3
+ import * as Redacted from "effect/Redacted";
4
+ import * as API from "@distilled.cloud/core/api";
5
+ import * as C from "@distilled.cloud/core/category";
6
+ import * as T from "../traits.js";
7
+ import { ForgejoProtocol, } from "../protocol.js";
8
+ import * as Retry from "../retry.js";
9
+ export class BadRequest extends /*@__PURE__*/ /*@__PURE__*/ T.applyErrorMatchers(
10
+ /*@__PURE__*/ S.TaggedError()("BadRequest", {
11
+ code: S.Number,
12
+ message: S.String,
13
+ }).pipe(C.withBadRequestError), [{ status: 400 }]) {
14
+ }
15
+ export class Forbidden extends /*@__PURE__*/ /*@__PURE__*/ T.applyErrorMatchers(
16
+ /*@__PURE__*/ S.TaggedError()("Forbidden", {
17
+ code: S.Number,
18
+ message: S.String,
19
+ }).pipe(C.withAuthError), [{ status: 403 }]) {
20
+ }
21
+ export class NotFound extends /*@__PURE__*/ /*@__PURE__*/ T.applyErrorMatchers(
22
+ /*@__PURE__*/ S.TaggedError()("NotFound", {
23
+ code: S.Number,
24
+ message: S.String,
25
+ }).pipe(C.withBadRequestError), [{ status: 404 }]) {
26
+ }
27
+ export class UnprocessableEntity extends /*@__PURE__*/ /*@__PURE__*/ T.applyErrorMatchers(
28
+ /*@__PURE__*/ S.TaggedError()("UnprocessableEntity", {
29
+ code: S.Number,
30
+ message: S.String,
31
+ }).pipe(C.withBadRequestError), [{ status: 422 }]) {
32
+ }
33
+ export const CreateUserVariableRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
34
+ variablename: S.String.pipe(T.Label()),
35
+ value: S.String,
36
+ }).pipe(T.Http({
37
+ method: "POST",
38
+ uri: "/user/actions/variables/{variablename}",
39
+ code: 200,
40
+ }))).annotate({
41
+ identifier: "CreateUserVariableRequest",
42
+ });
43
+ export const CreateUserVariableResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
44
+ identifier: "CreateUserVariableResponse",
45
+ });
46
+ export const DeleteUserRunnerRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
47
+ runner_id: S.String.pipe(T.Label()),
48
+ }).pipe(T.Http({
49
+ method: "DELETE",
50
+ uri: "/user/actions/runners/{runner_id}",
51
+ code: 200,
52
+ }))).annotate({
53
+ identifier: "DeleteUserRunnerRequest",
54
+ });
55
+ export const DeleteUserRunnerResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
56
+ identifier: "DeleteUserRunnerResponse",
57
+ });
58
+ export const DeleteUserSecretRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
59
+ secretname: S.String.pipe(T.Label()),
60
+ }).pipe(T.Http({
61
+ method: "DELETE",
62
+ uri: "/user/actions/secrets/{secretname}",
63
+ code: 200,
64
+ }))).annotate({
65
+ identifier: "DeleteUserSecretRequest",
66
+ });
67
+ export const DeleteUserSecretResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
68
+ identifier: "DeleteUserSecretResponse",
69
+ });
70
+ export const DeleteUserVariableRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
71
+ variablename: S.String.pipe(T.Label()),
72
+ }).pipe(T.Http({
73
+ method: "DELETE",
74
+ uri: "/user/actions/variables/{variablename}",
75
+ code: 200,
76
+ }))).annotate({
77
+ identifier: "DeleteUserVariableRequest",
78
+ });
79
+ export const DeleteUserVariableResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
80
+ identifier: "DeleteUserVariableResponse",
81
+ });
82
+ export const FollowUserCurrentActivityPubRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
83
+ target: S.optional(S.String),
84
+ }).pipe(T.Http({ method: "POST", uri: "/user/activitypub/follow", code: 200 }))).annotate({
85
+ identifier: "FollowUserCurrentActivityPubRequest",
86
+ });
87
+ export const FollowUserCurrentActivityPubResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
88
+ identifier: "FollowUserCurrentActivityPubResponse",
89
+ });
90
+ export const GetUserRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
91
+ username: S.String.pipe(T.Label()),
92
+ }).pipe(T.Http({ method: "GET", uri: "/users/{username}", code: 200 }))).annotate({ identifier: "GetUserRequest" });
93
+ export const User = /*@__PURE__*/ S.suspend(() => S.Struct({
94
+ active: S.optional(S.Boolean),
95
+ avatar_url: S.optional(S.String),
96
+ created: S.optional(S.String),
97
+ description: S.optional(S.String),
98
+ email: S.optional(S.String),
99
+ followers_count: S.optional(S.Number),
100
+ following_count: S.optional(S.Number),
101
+ full_name: S.optional(S.String),
102
+ html_url: S.optional(S.String),
103
+ id: S.Number,
104
+ is_admin: S.optional(S.Boolean),
105
+ language: S.optional(S.String),
106
+ last_login: S.optional(S.String),
107
+ location: S.optional(S.String),
108
+ login: S.String,
109
+ login_name: S.optional(S.String),
110
+ prohibit_login: S.optional(S.Boolean),
111
+ pronouns: S.optional(S.String),
112
+ restricted: S.optional(S.Boolean),
113
+ source_id: S.optional(S.Number),
114
+ starred_repos_count: S.optional(S.Number),
115
+ visibility: S.optional(S.String),
116
+ website: S.optional(S.String),
117
+ })).annotate({ identifier: "User" });
118
+ export const GetUserRunnerRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
119
+ runner_id: S.String.pipe(T.Label()),
120
+ }).pipe(T.Http({
121
+ method: "GET",
122
+ uri: "/user/actions/runners/{runner_id}",
123
+ code: 200,
124
+ }))).annotate({
125
+ identifier: "GetUserRunnerRequest",
126
+ });
127
+ export const ActionRunnerLabelsList = /*@__PURE__*/ S.Array(S.String);
128
+ export const ActionRunnerStatus = /*@__PURE__*/ S.String;
129
+ export const ActionRunner = /*@__PURE__*/ S.suspend(() => S.Struct({
130
+ description: S.optional(S.String),
131
+ ephemeral: S.optional(S.Boolean),
132
+ id: S.optional(S.Number),
133
+ labels: S.optional(ActionRunnerLabelsList),
134
+ name: S.optional(S.String),
135
+ owner_id: S.optional(S.Number),
136
+ repo_id: S.optional(S.Number),
137
+ status: S.optional(ActionRunnerStatus),
138
+ uuid: S.optional(S.String),
139
+ version: S.optional(S.String),
140
+ })).annotate({ identifier: "ActionRunner" });
141
+ export const GetUserRunnersRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
142
+ visible: S.optional(S.Boolean.pipe(T.Query())),
143
+ page: S.optional(S.Number.pipe(T.Query())),
144
+ limit: S.optional(S.Number.pipe(T.Query())),
145
+ }).pipe(T.Http({ method: "GET", uri: "/user/actions/runners", code: 200 }))).annotate({
146
+ identifier: "GetUserRunnersRequest",
147
+ });
148
+ export const GetUserRunnersResponseBodyList = /*@__PURE__*/ S.Array(ActionRunner);
149
+ export const GetUserRunnersResponse = /*@__PURE__*/ S.suspend(() => GetUserRunnersResponseBodyList.pipe(T.RawResponseRoot())).annotate({
150
+ identifier: "GetUserRunnersResponse",
151
+ });
152
+ export const GetUserSettingsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(T.Http({ method: "GET", uri: "/user/settings", code: 200 }))).annotate({
153
+ identifier: "GetUserSettingsRequest",
154
+ });
155
+ export const UserSettings = /*@__PURE__*/ S.suspend(() => S.Struct({
156
+ description: S.optional(S.String),
157
+ diff_view_style: S.optional(S.String),
158
+ enable_repo_unit_hints: S.optional(S.Boolean),
159
+ full_name: S.optional(S.String),
160
+ hide_activity: S.optional(S.Boolean),
161
+ hide_email: S.optional(S.Boolean),
162
+ hide_pronouns: S.optional(S.Boolean),
163
+ language: S.optional(S.String),
164
+ location: S.optional(S.String),
165
+ pronouns: S.optional(S.String),
166
+ theme: S.optional(S.String),
167
+ website: S.optional(S.String),
168
+ })).annotate({ identifier: "UserSettings" });
169
+ export const GetUserVariableRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
170
+ variablename: S.String.pipe(T.Label()),
171
+ }).pipe(T.Http({
172
+ method: "GET",
173
+ uri: "/user/actions/variables/{variablename}",
174
+ code: 200,
175
+ }))).annotate({
176
+ identifier: "GetUserVariableRequest",
177
+ });
178
+ export const ActionVariable = /*@__PURE__*/ S.suspend(() => S.Struct({
179
+ data: S.String,
180
+ name: S.String,
181
+ owner_id: S.optional(S.Number),
182
+ repo_id: S.optional(S.Number),
183
+ })).annotate({ identifier: "ActionVariable" });
184
+ export const GetUserVariablesListRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
185
+ page: S.optional(S.Number.pipe(T.Query())),
186
+ limit: S.optional(S.Number.pipe(T.Query())),
187
+ }).pipe(T.Http({ method: "GET", uri: "/user/actions/variables", code: 200 }))).annotate({
188
+ identifier: "GetUserVariablesListRequest",
189
+ });
190
+ export const GetUserVariablesListResponseBodyList = /*@__PURE__*/ S.Array(ActionVariable);
191
+ export const GetUserVariablesListResponse = /*@__PURE__*/ S.suspend(() => GetUserVariablesListResponseBodyList.pipe(T.RawResponseRoot())).annotate({
192
+ identifier: "GetUserVariablesListResponse",
193
+ });
194
+ export const GetVerificationTokenRequest = /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(T.Http({ method: "GET", uri: "/user/gpg_key_token", code: 200 }))).annotate({
195
+ identifier: "GetVerificationTokenRequest",
196
+ });
197
+ export const GetVerificationTokenResponse = /*@__PURE__*/ S.suspend(() => S.String.pipe(T.RawResponseRoot())).annotate({
198
+ identifier: "GetVerificationTokenResponse",
199
+ });
200
+ export const RegisterUserRunnerRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
201
+ description: S.optional(S.String),
202
+ ephemeral: S.optional(S.Boolean),
203
+ name: S.String,
204
+ }).pipe(T.Http({ method: "POST", uri: "/user/actions/runners", code: 200 }))).annotate({
205
+ identifier: "RegisterUserRunnerRequest",
206
+ });
207
+ export const RegisterRunnerResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
208
+ id: S.optional(S.Number),
209
+ token: S.optional(S.String),
210
+ uuid: S.optional(S.String),
211
+ })).annotate({
212
+ identifier: "RegisterRunnerResponse",
213
+ });
214
+ export const SearchUserRequestSort = /*@__PURE__*/ S.String;
215
+ export const SearchUserRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
216
+ q: S.optional(S.String.pipe(T.Query())),
217
+ uid: S.optional(S.Number.pipe(T.Query())),
218
+ sort: S.optional(SearchUserRequestSort.pipe(T.Query())),
219
+ page: S.optional(S.Number.pipe(T.Query())),
220
+ limit: S.optional(S.Number.pipe(T.Query())),
221
+ }).pipe(T.Http({ method: "GET", uri: "/users/search", code: 200 }))).annotate({
222
+ identifier: "SearchUserRequest",
223
+ });
224
+ export const SearchUserResponseDataList = /*@__PURE__*/ S.Array(User);
225
+ export const SearchUserResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
226
+ data: S.optional(SearchUserResponseDataList),
227
+ ok: S.optional(S.Boolean),
228
+ })).annotate({
229
+ identifier: "SearchUserResponse",
230
+ });
231
+ export const UnblockUserRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
232
+ username: S.String.pipe(T.Label()),
233
+ }).pipe(T.Http({ method: "PUT", uri: "/user/unblock/{username}", code: 200 }))).annotate({
234
+ identifier: "UnblockUserRequest",
235
+ });
236
+ export const UnblockUserResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
237
+ identifier: "UnblockUserResponse",
238
+ });
239
+ export const UpdateUserSecretRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
240
+ secretname: S.String.pipe(T.Label()),
241
+ data: S.String,
242
+ }).pipe(T.Http({
243
+ method: "PUT",
244
+ uri: "/user/actions/secrets/{secretname}",
245
+ code: 200,
246
+ }))).annotate({
247
+ identifier: "UpdateUserSecretRequest",
248
+ });
249
+ export const UpdateUserSecretResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
250
+ identifier: "UpdateUserSecretResponse",
251
+ });
252
+ export const UpdateUserSettingsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
253
+ description: S.optional(S.String),
254
+ diff_view_style: S.optional(S.String),
255
+ enable_repo_unit_hints: S.optional(S.Boolean),
256
+ full_name: S.optional(S.String),
257
+ hide_activity: S.optional(S.Boolean),
258
+ hide_email: S.optional(S.Boolean),
259
+ hide_pronouns: S.optional(S.Boolean),
260
+ language: S.optional(S.String),
261
+ location: S.optional(S.String),
262
+ pronouns: S.optional(S.String),
263
+ theme: S.optional(S.String),
264
+ website: S.optional(S.String),
265
+ }).pipe(T.Http({ method: "PATCH", uri: "/user/settings", code: 200 }))).annotate({
266
+ identifier: "UpdateUserSettingsRequest",
267
+ });
268
+ export const UpdateUserVariableRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
269
+ variablename: S.String.pipe(T.Label()),
270
+ name: S.optional(S.String),
271
+ value: S.String,
272
+ }).pipe(T.Http({
273
+ method: "PUT",
274
+ uri: "/user/actions/variables/{variablename}",
275
+ code: 200,
276
+ }))).annotate({
277
+ identifier: "UpdateUserVariableRequest",
278
+ });
279
+ export const UpdateUserVariableResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
280
+ identifier: "UpdateUserVariableResponse",
281
+ });
282
+ export const UserAddEmailRequestEmailsList = /*@__PURE__*/ S.Array(S.String);
283
+ export const UserAddEmailRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
284
+ emails: S.optional(UserAddEmailRequestEmailsList),
285
+ }).pipe(T.Http({ method: "POST", uri: "/user/emails", code: 200 }))).annotate({
286
+ identifier: "UserAddEmailRequest",
287
+ });
288
+ export const Email = /*@__PURE__*/ S.suspend(() => S.Struct({
289
+ email: S.optional(S.String),
290
+ primary: S.optional(S.Boolean),
291
+ user_id: S.optional(S.Number),
292
+ username: S.optional(S.String),
293
+ verified: S.optional(S.Boolean),
294
+ })).annotate({ identifier: "Email" });
295
+ export const UserAddEmailResponseBodyList = /*@__PURE__*/ S.Array(Email);
296
+ export const UserAddEmailResponse = /*@__PURE__*/ S.suspend(() => UserAddEmailResponseBodyList.pipe(T.RawResponseRoot())).annotate({
297
+ identifier: "UserAddEmailResponse",
298
+ });
299
+ export const UserBlockUserRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
300
+ username: S.String.pipe(T.Label()),
301
+ }).pipe(T.Http({ method: "PUT", uri: "/user/block/{username}", code: 200 }))).annotate({
302
+ identifier: "UserBlockUserRequest",
303
+ });
304
+ export const UserBlockUserResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
305
+ identifier: "UserBlockUserResponse",
306
+ });
307
+ export const UserCheckFollowingRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
308
+ username: S.String.pipe(T.Label()),
309
+ target: S.String.pipe(T.Label()),
310
+ }).pipe(T.Http({
311
+ method: "GET",
312
+ uri: "/users/{username}/following/{target}",
313
+ code: 200,
314
+ }))).annotate({
315
+ identifier: "UserCheckFollowingRequest",
316
+ });
317
+ export const UserCheckFollowingResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
318
+ identifier: "UserCheckFollowingResponse",
319
+ });
320
+ export const UserCheckQuotaRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
321
+ subject: S.String.pipe(T.Query()),
322
+ }).pipe(T.Http({ method: "GET", uri: "/user/quota/check", code: 200 }))).annotate({
323
+ identifier: "UserCheckQuotaRequest",
324
+ });
325
+ export const UserCheckQuotaResponse = /*@__PURE__*/ S.suspend(() => S.Boolean.pipe(T.RawResponseRoot())).annotate({
326
+ identifier: "UserCheckQuotaResponse",
327
+ });
328
+ export const CreateHookOptionConfig = /*@__PURE__*/ S.Record(S.String, S.String);
329
+ export const UserCreateHookRequestEventsList = /*@__PURE__*/ S.Array(S.String);
330
+ export const UserCreateHookRequestType = /*@__PURE__*/ S.String;
331
+ export const UserCreateHookRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
332
+ active: S.optional(S.Boolean),
333
+ authorization_header: S.optional(S.String),
334
+ branch_filter: S.optional(S.String),
335
+ config: CreateHookOptionConfig,
336
+ events: S.optional(UserCreateHookRequestEventsList),
337
+ type: UserCreateHookRequestType,
338
+ }).pipe(T.Http({ method: "POST", uri: "/user/hooks", code: 200 }))).annotate({
339
+ identifier: "UserCreateHookRequest",
340
+ });
341
+ export const HookConfigMap = /*@__PURE__*/ S.Record(S.String, S.String);
342
+ export const HookEventsList = /*@__PURE__*/ S.Array(S.String);
343
+ export const Hook = /*@__PURE__*/ S.suspend(() => S.Struct({
344
+ active: S.Boolean,
345
+ authorization_header: S.optional(S.String),
346
+ branch_filter: S.optional(S.String),
347
+ config: S.optional(HookConfigMap),
348
+ content_type: S.optional(S.String),
349
+ created_at: S.String,
350
+ events: S.optional(HookEventsList),
351
+ id: S.Number,
352
+ metadata: S.optional(S.Unknown),
353
+ type: S.String,
354
+ updated_at: S.String,
355
+ url: S.String,
356
+ })).annotate({ identifier: "Hook" });
357
+ export const UserCreateOAuth2ApplicationRequestRedirectUrisList =
358
+ /*@__PURE__*/ S.Array(S.String);
359
+ export const UserCreateOAuth2ApplicationRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
360
+ confidential_client: S.optional(S.Boolean),
361
+ name: S.optional(S.String),
362
+ redirect_uris: S.optional(UserCreateOAuth2ApplicationRequestRedirectUrisList),
363
+ }).pipe(T.Http({ method: "POST", uri: "/user/applications/oauth2", code: 200 }))).annotate({
364
+ identifier: "UserCreateOAuth2ApplicationRequest",
365
+ });
366
+ export const OAuth2ApplicationRedirectUrisList = /*@__PURE__*/ S.Array(S.String);
367
+ export const OAuth2Application = /*@__PURE__*/ S.suspend(() => S.Struct({
368
+ client_id: S.optional(S.String),
369
+ client_secret: S.optional(S.String.pipe(T.SensitiveValue({}))),
370
+ confidential_client: S.optional(S.Boolean),
371
+ created: S.optional(S.String),
372
+ id: S.optional(S.Number),
373
+ name: S.optional(S.String),
374
+ redirect_uris: S.optional(OAuth2ApplicationRedirectUrisList),
375
+ })).annotate({
376
+ identifier: "OAuth2Application",
377
+ });
378
+ export const RepoTargetOption = /*@__PURE__*/ S.suspend(() => S.Struct({
379
+ name: S.String,
380
+ owner: S.String,
381
+ })).annotate({
382
+ identifier: "RepoTargetOption",
383
+ });
384
+ export const UserCreateTokenRequestRepositoriesList = /*@__PURE__*/ S.Array(RepoTargetOption);
385
+ export const UserCreateTokenRequestScopesList = /*@__PURE__*/ S.Array(S.String);
386
+ export const UserCreateTokenRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
387
+ username: S.String.pipe(T.Label()),
388
+ name: S.String,
389
+ repositories: S.optional(UserCreateTokenRequestRepositoriesList),
390
+ scopes: S.optional(UserCreateTokenRequestScopesList),
391
+ }).pipe(T.Http({ method: "POST", uri: "/users/{username}/tokens", code: 200 }))).annotate({
392
+ identifier: "UserCreateTokenRequest",
393
+ });
394
+ export const RepositoryMeta = /*@__PURE__*/ S.suspend(() => S.Struct({
395
+ full_name: S.optional(S.String),
396
+ id: S.optional(S.Number),
397
+ name: S.optional(S.String),
398
+ owner: S.optional(S.String),
399
+ })).annotate({ identifier: "RepositoryMeta" });
400
+ export const AccessTokenRepositoriesList = /*@__PURE__*/ S.Array(RepositoryMeta);
401
+ export const AccessTokenScopesList = /*@__PURE__*/ S.Array(S.String);
402
+ export const AccessToken = /*@__PURE__*/ S.suspend(() => S.Struct({
403
+ created_at: S.String,
404
+ id: S.Number,
405
+ name: S.String,
406
+ repositories: S.optional(AccessTokenRepositoriesList),
407
+ scopes: S.optional(AccessTokenScopesList),
408
+ sha1: S.optional(S.String.pipe(T.SensitiveValue({}))),
409
+ token_last_eight: S.String,
410
+ })).annotate({ identifier: "AccessToken" });
411
+ export const UserCurrentCheckFollowingRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
412
+ username: S.String.pipe(T.Label()),
413
+ }).pipe(T.Http({ method: "GET", uri: "/user/following/{username}", code: 200 }))).annotate({
414
+ identifier: "UserCurrentCheckFollowingRequest",
415
+ });
416
+ export const UserCurrentCheckFollowingResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
417
+ identifier: "UserCurrentCheckFollowingResponse",
418
+ });
419
+ export const UserCurrentCheckStarringRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
420
+ owner: S.String.pipe(T.Label()),
421
+ repo: S.String.pipe(T.Label()),
422
+ }).pipe(T.Http({ method: "GET", uri: "/user/starred/{owner}/{repo}", code: 200 }))).annotate({
423
+ identifier: "UserCurrentCheckStarringRequest",
424
+ });
425
+ export const UserCurrentCheckStarringResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
426
+ identifier: "UserCurrentCheckStarringResponse",
427
+ });
428
+ export const UserCurrentDeleteFollowRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
429
+ username: S.String.pipe(T.Label()),
430
+ }).pipe(T.Http({ method: "DELETE", uri: "/user/following/{username}", code: 200 }))).annotate({
431
+ identifier: "UserCurrentDeleteFollowRequest",
432
+ });
433
+ export const UserCurrentDeleteFollowResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
434
+ identifier: "UserCurrentDeleteFollowResponse",
435
+ });
436
+ export const UserCurrentDeleteGPGKeyRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
437
+ id: S.Number.pipe(T.Label()),
438
+ }).pipe(T.Http({ method: "DELETE", uri: "/user/gpg_keys/{id}", code: 200 }))).annotate({
439
+ identifier: "UserCurrentDeleteGPGKeyRequest",
440
+ });
441
+ export const UserCurrentDeleteGPGKeyResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
442
+ identifier: "UserCurrentDeleteGPGKeyResponse",
443
+ });
444
+ export const UserCurrentDeleteKeyRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
445
+ id: S.Number.pipe(T.Label()),
446
+ }).pipe(T.Http({ method: "DELETE", uri: "/user/keys/{id}", code: 200 }))).annotate({
447
+ identifier: "UserCurrentDeleteKeyRequest",
448
+ });
449
+ export const UserCurrentDeleteKeyResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
450
+ identifier: "UserCurrentDeleteKeyResponse",
451
+ });
452
+ export const UserCurrentDeleteStarRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
453
+ owner: S.String.pipe(T.Label()),
454
+ repo: S.String.pipe(T.Label()),
455
+ }).pipe(T.Http({
456
+ method: "DELETE",
457
+ uri: "/user/starred/{owner}/{repo}",
458
+ code: 200,
459
+ }))).annotate({
460
+ identifier: "UserCurrentDeleteStarRequest",
461
+ });
462
+ export const UserCurrentDeleteStarResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
463
+ identifier: "UserCurrentDeleteStarResponse",
464
+ });
465
+ export const UserCurrentGetGPGKeyRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
466
+ id: S.Number.pipe(T.Label()),
467
+ }).pipe(T.Http({ method: "GET", uri: "/user/gpg_keys/{id}", code: 200 }))).annotate({
468
+ identifier: "UserCurrentGetGPGKeyRequest",
469
+ });
470
+ export const GPGKeyEmail = /*@__PURE__*/ S.suspend(() => S.Struct({
471
+ email: S.optional(S.String),
472
+ verified: S.optional(S.Boolean),
473
+ })).annotate({ identifier: "GPGKeyEmail" });
474
+ export const GPGKeyEmailsList = /*@__PURE__*/ S.Array(GPGKeyEmail);
475
+ export const GPGKeySubkeysList = /*@__PURE__*/ S.Array(S.suspend(() => GPGKey));
476
+ export const GPGKey = /*@__PURE__*/ S.suspend(() => S.Struct({
477
+ can_certify: S.optional(S.Boolean),
478
+ can_encrypt_comms: S.optional(S.Boolean),
479
+ can_encrypt_storage: S.optional(S.Boolean),
480
+ can_sign: S.optional(S.Boolean),
481
+ created_at: S.optional(S.String),
482
+ emails: S.optional(GPGKeyEmailsList),
483
+ expires_at: S.optional(S.String),
484
+ id: S.optional(S.Number),
485
+ key_id: S.optional(S.String),
486
+ primary_key_id: S.optional(S.String),
487
+ public_key: S.optional(S.String),
488
+ subkeys: S.optional(GPGKeySubkeysList),
489
+ verified: S.optional(S.Boolean),
490
+ })).annotate({ identifier: "GPGKey" });
491
+ export const UserCurrentGetKeyRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
492
+ id: S.Number.pipe(T.Label()),
493
+ }).pipe(T.Http({ method: "GET", uri: "/user/keys/{id}", code: 200 }))).annotate({
494
+ identifier: "UserCurrentGetKeyRequest",
495
+ });
496
+ export const PublicKey = /*@__PURE__*/ S.suspend(() => S.Struct({
497
+ created_at: S.optional(S.String),
498
+ fingerprint: S.optional(S.String),
499
+ id: S.optional(S.Number),
500
+ key: S.optional(S.String),
501
+ key_type: S.optional(S.String),
502
+ read_only: S.optional(S.Boolean),
503
+ title: S.optional(S.String),
504
+ updated_at: S.optional(S.String),
505
+ url: S.optional(S.String),
506
+ user: S.optional(User),
507
+ verified: S.optional(S.Boolean),
508
+ })).annotate({ identifier: "PublicKey" });
509
+ export const UserCurrentListFollowersRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
510
+ page: S.optional(S.Number.pipe(T.Query())),
511
+ limit: S.optional(S.Number.pipe(T.Query())),
512
+ }).pipe(T.Http({ method: "GET", uri: "/user/followers", code: 200 }))).annotate({
513
+ identifier: "UserCurrentListFollowersRequest",
514
+ });
515
+ export const UserCurrentListFollowersResponseBodyList = /*@__PURE__*/ S.Array(User);
516
+ export const UserCurrentListFollowersResponse = /*@__PURE__*/ S.suspend(() => UserCurrentListFollowersResponseBodyList.pipe(T.RawResponseRoot())).annotate({
517
+ identifier: "UserCurrentListFollowersResponse",
518
+ });
519
+ export const UserCurrentListFollowingRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
520
+ page: S.optional(S.Number.pipe(T.Query())),
521
+ limit: S.optional(S.Number.pipe(T.Query())),
522
+ }).pipe(T.Http({ method: "GET", uri: "/user/following", code: 200 }))).annotate({
523
+ identifier: "UserCurrentListFollowingRequest",
524
+ });
525
+ export const UserCurrentListFollowingResponseBodyList = /*@__PURE__*/ S.Array(User);
526
+ export const UserCurrentListFollowingResponse = /*@__PURE__*/ S.suspend(() => UserCurrentListFollowingResponseBodyList.pipe(T.RawResponseRoot())).annotate({
527
+ identifier: "UserCurrentListFollowingResponse",
528
+ });
529
+ export const UserCurrentListGPGKeysRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
530
+ page: S.optional(S.Number.pipe(T.Query())),
531
+ limit: S.optional(S.Number.pipe(T.Query())),
532
+ }).pipe(T.Http({ method: "GET", uri: "/user/gpg_keys", code: 200 }))).annotate({
533
+ identifier: "UserCurrentListGPGKeysRequest",
534
+ });
535
+ export const UserCurrentListGPGKeysResponseBodyList = /*@__PURE__*/ S.Array(GPGKey);
536
+ export const UserCurrentListGPGKeysResponse = /*@__PURE__*/ S.suspend(() => UserCurrentListGPGKeysResponseBodyList.pipe(T.RawResponseRoot())).annotate({
537
+ identifier: "UserCurrentListGPGKeysResponse",
538
+ });
539
+ export const UserCurrentListKeysRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
540
+ fingerprint: S.optional(S.String.pipe(T.Query())),
541
+ page: S.optional(S.Number.pipe(T.Query())),
542
+ limit: S.optional(S.Number.pipe(T.Query())),
543
+ }).pipe(T.Http({ method: "GET", uri: "/user/keys", code: 200 }))).annotate({
544
+ identifier: "UserCurrentListKeysRequest",
545
+ });
546
+ export const UserCurrentListKeysResponseBodyList = /*@__PURE__*/ S.Array(PublicKey);
547
+ export const UserCurrentListKeysResponse = /*@__PURE__*/ S.suspend(() => UserCurrentListKeysResponseBodyList.pipe(T.RawResponseRoot())).annotate({
548
+ identifier: "UserCurrentListKeysResponse",
549
+ });
550
+ export const UserCurrentListReposRequestOrderBy = /*@__PURE__*/ S.String;
551
+ export const UserCurrentListReposRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
552
+ page: S.optional(S.Number.pipe(T.Query())),
553
+ limit: S.optional(S.Number.pipe(T.Query())),
554
+ order_by: S.optional(UserCurrentListReposRequestOrderBy.pipe(T.Query())),
555
+ }).pipe(T.Http({ method: "GET", uri: "/user/repos", code: 200 }))).annotate({
556
+ identifier: "UserCurrentListReposRequest",
557
+ });
558
+ export const ExternalTracker = /*@__PURE__*/ S.suspend(() => S.Struct({
559
+ external_tracker_format: S.optional(S.String),
560
+ external_tracker_regexp_pattern: S.optional(S.String),
561
+ external_tracker_style: S.optional(S.String),
562
+ external_tracker_url: S.optional(S.String),
563
+ })).annotate({
564
+ identifier: "ExternalTracker",
565
+ });
566
+ export const ExternalWiki = /*@__PURE__*/ S.suspend(() => S.Struct({
567
+ external_wiki_url: S.optional(S.String),
568
+ })).annotate({ identifier: "ExternalWiki" });
569
+ export const InternalTracker = /*@__PURE__*/ S.suspend(() => S.Struct({
570
+ allow_only_contributors_to_track_time: S.optional(S.Boolean),
571
+ enable_issue_dependencies: S.optional(S.Boolean),
572
+ enable_time_tracker: S.optional(S.Boolean),
573
+ })).annotate({
574
+ identifier: "InternalTracker",
575
+ });
576
+ export const RepositoryObjectFormatName = /*@__PURE__*/ S.String;
577
+ export const Permission = /*@__PURE__*/ S.suspend(() => S.Struct({
578
+ admin: S.optional(S.Boolean),
579
+ pull: S.optional(S.Boolean),
580
+ push: S.optional(S.Boolean),
581
+ })).annotate({ identifier: "Permission" });
582
+ export const Organization = /*@__PURE__*/ S.suspend(() => S.Struct({
583
+ avatar_url: S.optional(S.String),
584
+ created: S.optional(S.String),
585
+ description: S.optional(S.String),
586
+ email: S.optional(S.String),
587
+ full_name: S.optional(S.String),
588
+ id: S.Number,
589
+ location: S.optional(S.String),
590
+ name: S.optional(S.String),
591
+ repo_admin_change_team_access: S.optional(S.Boolean),
592
+ username: S.String,
593
+ visibility: S.optional(S.String),
594
+ website: S.optional(S.String),
595
+ })).annotate({ identifier: "Organization" });
596
+ export const TeamPermission = /*@__PURE__*/ S.String;
597
+ export const TeamUnitsList = /*@__PURE__*/ S.Array(S.String);
598
+ export const TeamUnitsMapMap = /*@__PURE__*/ S.Record(S.String, S.String);
599
+ export const Team = /*@__PURE__*/ S.suspend(() => S.Struct({
600
+ can_create_org_repo: S.optional(S.Boolean),
601
+ description: S.optional(S.String),
602
+ id: S.Number,
603
+ includes_all_repositories: S.optional(S.Boolean),
604
+ name: S.String,
605
+ organization: S.optional(Organization),
606
+ permission: S.optional(TeamPermission),
607
+ units: S.optional(TeamUnitsList),
608
+ units_map: S.optional(TeamUnitsMapMap),
609
+ })).annotate({ identifier: "Team" });
610
+ export const RepoTransferTeamsList = /*@__PURE__*/ S.Array(Team);
611
+ export const RepoTransfer = /*@__PURE__*/ S.suspend(() => S.Struct({
612
+ doer: S.optional(User),
613
+ recipient: S.optional(User),
614
+ teams: S.optional(RepoTransferTeamsList),
615
+ })).annotate({ identifier: "RepoTransfer" });
616
+ export const RepositoryTopicsList = /*@__PURE__*/ S.Array(S.String);
617
+ export const Repository = /*@__PURE__*/ S.suspend(() => S.Struct({
618
+ allow_fast_forward_only_merge: S.optional(S.Boolean),
619
+ allow_merge_commits: S.optional(S.Boolean),
620
+ allow_rebase: S.optional(S.Boolean),
621
+ allow_rebase_explicit: S.optional(S.Boolean),
622
+ allow_rebase_update: S.optional(S.Boolean),
623
+ allow_squash_merge: S.optional(S.Boolean),
624
+ archived: S.optional(S.Boolean),
625
+ archived_at: S.optional(S.String),
626
+ avatar_url: S.optional(S.String),
627
+ clone_url: S.String,
628
+ created_at: S.String,
629
+ default_allow_maintainer_edit: S.optional(S.Boolean),
630
+ default_branch: S.String,
631
+ default_delete_branch_after_merge: S.optional(S.Boolean),
632
+ default_merge_style: S.optional(S.String),
633
+ default_update_style: S.optional(S.String),
634
+ description: S.optional(S.String),
635
+ empty: S.optional(S.Boolean),
636
+ external_tracker: S.optional(ExternalTracker),
637
+ external_wiki: S.optional(ExternalWiki),
638
+ fork: S.optional(S.Boolean),
639
+ forks_count: S.optional(S.Number),
640
+ full_name: S.String,
641
+ globally_editable_wiki: S.optional(S.Boolean),
642
+ has_actions: S.optional(S.Boolean),
643
+ has_issues: S.optional(S.Boolean),
644
+ has_packages: S.optional(S.Boolean),
645
+ has_projects: S.optional(S.Boolean),
646
+ has_pull_requests: S.optional(S.Boolean),
647
+ has_releases: S.optional(S.Boolean),
648
+ has_wiki: S.optional(S.Boolean),
649
+ has_wiki_contents: S.optional(S.Boolean),
650
+ html_url: S.String,
651
+ id: S.Number,
652
+ ignore_whitespace_conflicts: S.optional(S.Boolean),
653
+ internal: S.optional(S.Boolean),
654
+ internal_tracker: S.optional(InternalTracker),
655
+ language: S.optional(S.String),
656
+ languages_url: S.optional(S.String),
657
+ link: S.optional(S.String),
658
+ mirror: S.optional(S.Boolean),
659
+ mirror_interval: S.optional(S.String),
660
+ mirror_updated: S.optional(S.String),
661
+ name: S.String,
662
+ object_format_name: S.optional(RepositoryObjectFormatName),
663
+ open_issues_count: S.optional(S.Number),
664
+ open_pr_counter: S.optional(S.Number),
665
+ original_url: S.optional(S.String),
666
+ owner: User,
667
+ parent: S.optional(Repository),
668
+ permissions: S.optional(Permission),
669
+ private: S.optional(S.Boolean),
670
+ release_counter: S.optional(S.Number),
671
+ repo_transfer: S.optional(RepoTransfer),
672
+ size: S.optional(S.Number),
673
+ ssh_url: S.String,
674
+ stars_count: S.optional(S.Number),
675
+ template: S.optional(S.Boolean),
676
+ topics: S.optional(RepositoryTopicsList),
677
+ updated_at: S.String,
678
+ url: S.optional(S.String),
679
+ watchers_count: S.optional(S.Number),
680
+ website: S.optional(S.String),
681
+ wiki_branch: S.optional(S.String),
682
+ wiki_clone_url: S.optional(S.String),
683
+ wiki_ssh_url: S.optional(S.String),
684
+ })).annotate({ identifier: "Repository" });
685
+ export const UserCurrentListReposResponseBodyList = /*@__PURE__*/ S.Array(Repository);
686
+ export const UserCurrentListReposResponse = /*@__PURE__*/ S.suspend(() => UserCurrentListReposResponseBodyList.pipe(T.RawResponseRoot())).annotate({
687
+ identifier: "UserCurrentListReposResponse",
688
+ });
689
+ export const UserCurrentListStarredRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
690
+ page: S.optional(S.Number.pipe(T.Query())),
691
+ limit: S.optional(S.Number.pipe(T.Query())),
692
+ }).pipe(T.Http({ method: "GET", uri: "/user/starred", code: 200 }))).annotate({
693
+ identifier: "UserCurrentListStarredRequest",
694
+ });
695
+ export const UserCurrentListStarredResponseBodyList = /*@__PURE__*/ S.Array(Repository);
696
+ export const UserCurrentListStarredResponse = /*@__PURE__*/ S.suspend(() => UserCurrentListStarredResponseBodyList.pipe(T.RawResponseRoot())).annotate({
697
+ identifier: "UserCurrentListStarredResponse",
698
+ });
699
+ export const UserCurrentListSubscriptionsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
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: "/user/subscriptions", code: 200 }))).annotate({
703
+ identifier: "UserCurrentListSubscriptionsRequest",
704
+ });
705
+ export const UserCurrentListSubscriptionsResponseBodyList =
706
+ /*@__PURE__*/ S.Array(Repository);
707
+ export const UserCurrentListSubscriptionsResponse = /*@__PURE__*/ S.suspend(() => UserCurrentListSubscriptionsResponseBodyList.pipe(T.RawResponseRoot())).annotate({
708
+ identifier: "UserCurrentListSubscriptionsResponse",
709
+ });
710
+ export const UserCurrentPostGPGKeyRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
711
+ armored_public_key: S.String,
712
+ armored_signature: S.optional(S.String),
713
+ }).pipe(T.Http({ method: "POST", uri: "/user/gpg_keys", code: 200 }))).annotate({
714
+ identifier: "UserCurrentPostGPGKeyRequest",
715
+ });
716
+ export const UserCurrentPostKeyRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
717
+ key: S.String,
718
+ read_only: S.optional(S.Boolean),
719
+ title: S.String,
720
+ }).pipe(T.Http({ method: "POST", uri: "/user/keys", code: 200 }))).annotate({
721
+ identifier: "UserCurrentPostKeyRequest",
722
+ });
723
+ export const UserCurrentPutFollowRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
724
+ username: S.String.pipe(T.Label()),
725
+ }).pipe(T.Http({ method: "PUT", uri: "/user/following/{username}", code: 200 }))).annotate({
726
+ identifier: "UserCurrentPutFollowRequest",
727
+ });
728
+ export const UserCurrentPutFollowResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
729
+ identifier: "UserCurrentPutFollowResponse",
730
+ });
731
+ export const UserCurrentPutStarRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
732
+ owner: S.String.pipe(T.Label()),
733
+ repo: S.String.pipe(T.Label()),
734
+ }).pipe(T.Http({ method: "PUT", uri: "/user/starred/{owner}/{repo}", code: 200 }))).annotate({
735
+ identifier: "UserCurrentPutStarRequest",
736
+ });
737
+ export const UserCurrentPutStarResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
738
+ identifier: "UserCurrentPutStarResponse",
739
+ });
740
+ export const UserCurrentTrackedTimesRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
741
+ page: S.optional(S.Number.pipe(T.Query())),
742
+ limit: S.optional(S.Number.pipe(T.Query())),
743
+ since: S.optional(S.String.pipe(T.Query())),
744
+ before: S.optional(S.String.pipe(T.Query())),
745
+ }).pipe(T.Http({ method: "GET", uri: "/user/times", code: 200 }))).annotate({
746
+ identifier: "UserCurrentTrackedTimesRequest",
747
+ });
748
+ export const AttachmentType = /*@__PURE__*/ S.String;
749
+ export const Attachment = /*@__PURE__*/ S.suspend(() => S.Struct({
750
+ browser_download_url: S.optional(S.String),
751
+ created_at: S.optional(S.String),
752
+ download_count: S.optional(S.Number),
753
+ id: S.optional(S.Number),
754
+ name: S.optional(S.String),
755
+ size: S.optional(S.Number),
756
+ type: S.optional(AttachmentType),
757
+ uuid: S.optional(S.String),
758
+ })).annotate({ identifier: "Attachment" });
759
+ export const IssueAssetsList = /*@__PURE__*/ S.Array(Attachment);
760
+ export const IssueAssigneesList = /*@__PURE__*/ S.Array(User);
761
+ export const Label = /*@__PURE__*/ S.suspend(() => S.Struct({
762
+ color: S.String,
763
+ description: S.optional(S.String),
764
+ exclusive: S.optional(S.Boolean),
765
+ id: S.Number,
766
+ is_archived: S.optional(S.Boolean),
767
+ name: S.String,
768
+ url: S.optional(S.String),
769
+ })).annotate({ identifier: "Label" });
770
+ export const IssueLabelsList = /*@__PURE__*/ S.Array(Label);
771
+ export const Milestone = /*@__PURE__*/ S.suspend(() => S.Struct({
772
+ closed_at: S.optional(S.String),
773
+ closed_issues: S.optional(S.Number),
774
+ created_at: S.optional(S.String),
775
+ description: S.optional(S.String),
776
+ due_on: S.optional(S.String),
777
+ id: S.optional(S.Number),
778
+ open_issues: S.optional(S.Number),
779
+ state: S.optional(S.String),
780
+ title: S.optional(S.String),
781
+ updated_at: S.optional(S.String),
782
+ })).annotate({ identifier: "Milestone" });
783
+ export const PullRequestMeta = /*@__PURE__*/ S.suspend(() => S.Struct({
784
+ draft: S.optional(S.Boolean),
785
+ html_url: S.optional(S.String),
786
+ merged: S.optional(S.Boolean),
787
+ merged_at: S.optional(S.String),
788
+ })).annotate({
789
+ identifier: "PullRequestMeta",
790
+ });
791
+ export const Issue = /*@__PURE__*/ S.suspend(() => S.Struct({
792
+ assets: S.optional(IssueAssetsList),
793
+ assignee: S.optional(User),
794
+ assignees: S.optional(IssueAssigneesList),
795
+ body: S.optional(S.String),
796
+ closed_at: S.optional(S.String),
797
+ comments: S.optional(S.Number),
798
+ created_at: S.optional(S.String),
799
+ due_date: S.optional(S.String),
800
+ html_url: S.optional(S.String),
801
+ id: S.optional(S.Number),
802
+ is_locked: S.optional(S.Boolean),
803
+ labels: S.optional(IssueLabelsList),
804
+ milestone: S.optional(Milestone),
805
+ number: S.optional(S.Number),
806
+ original_author: S.optional(S.String),
807
+ original_author_id: S.optional(S.Number),
808
+ pin_order: S.optional(S.Number),
809
+ pull_request: S.optional(PullRequestMeta),
810
+ ref: S.optional(S.String),
811
+ repository: S.optional(RepositoryMeta),
812
+ state: S.optional(S.String),
813
+ title: S.optional(S.String),
814
+ updated_at: S.optional(S.String),
815
+ url: S.optional(S.String),
816
+ user: S.optional(User),
817
+ })).annotate({ identifier: "Issue" });
818
+ export const TrackedTime = /*@__PURE__*/ S.suspend(() => S.Struct({
819
+ created: S.optional(S.String),
820
+ id: S.optional(S.Number),
821
+ issue: S.optional(Issue),
822
+ issue_id: S.optional(S.Number),
823
+ time: S.optional(S.Number),
824
+ user_id: S.optional(S.Number),
825
+ user_name: S.optional(S.String),
826
+ })).annotate({ identifier: "TrackedTime" });
827
+ export const UserCurrentTrackedTimesResponseBodyList = /*@__PURE__*/ S.Array(TrackedTime);
828
+ export const UserCurrentTrackedTimesResponse = /*@__PURE__*/ S.suspend(() => UserCurrentTrackedTimesResponseBodyList.pipe(T.RawResponseRoot())).annotate({
829
+ identifier: "UserCurrentTrackedTimesResponse",
830
+ });
831
+ export const UserDeleteAccessTokenRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
832
+ username: S.String.pipe(T.Label()),
833
+ token: S.String.pipe(T.Label()),
834
+ }).pipe(T.Http({
835
+ method: "DELETE",
836
+ uri: "/users/{username}/tokens/{token}",
837
+ code: 200,
838
+ }))).annotate({
839
+ identifier: "UserDeleteAccessTokenRequest",
840
+ });
841
+ export const UserDeleteAccessTokenResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
842
+ identifier: "UserDeleteAccessTokenResponse",
843
+ });
844
+ export const UserDeleteAvatarRequest = /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(T.Http({ method: "DELETE", uri: "/user/avatar", code: 200 }))).annotate({
845
+ identifier: "UserDeleteAvatarRequest",
846
+ });
847
+ export const UserDeleteAvatarResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
848
+ identifier: "UserDeleteAvatarResponse",
849
+ });
850
+ export const UserDeleteEmailRequestEmailsList = /*@__PURE__*/ S.Array(S.String);
851
+ export const UserDeleteEmailRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
852
+ emails: S.optional(UserDeleteEmailRequestEmailsList),
853
+ }).pipe(T.Http({ method: "DELETE", uri: "/user/emails", code: 200 }))).annotate({
854
+ identifier: "UserDeleteEmailRequest",
855
+ });
856
+ export const UserDeleteEmailResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
857
+ identifier: "UserDeleteEmailResponse",
858
+ });
859
+ export const UserDeleteHookRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
860
+ id: S.Number.pipe(T.Label()),
861
+ }).pipe(T.Http({ method: "DELETE", uri: "/user/hooks/{id}", code: 200 }))).annotate({
862
+ identifier: "UserDeleteHookRequest",
863
+ });
864
+ export const UserDeleteHookResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
865
+ identifier: "UserDeleteHookResponse",
866
+ });
867
+ export const UserDeleteOAuth2ApplicationRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
868
+ id: S.Number.pipe(T.Label()),
869
+ }).pipe(T.Http({
870
+ method: "DELETE",
871
+ uri: "/user/applications/oauth2/{id}",
872
+ code: 200,
873
+ }))).annotate({
874
+ identifier: "UserDeleteOAuth2ApplicationRequest",
875
+ });
876
+ export const UserDeleteOAuth2ApplicationResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
877
+ identifier: "UserDeleteOAuth2ApplicationResponse",
878
+ });
879
+ export const UserEditHookRequestConfigMap = /*@__PURE__*/ S.Record(S.String, S.String);
880
+ export const UserEditHookRequestEventsList = /*@__PURE__*/ S.Array(S.String);
881
+ export const UserEditHookRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
882
+ id: S.Number.pipe(T.Label()),
883
+ active: S.optional(S.Boolean),
884
+ authorization_header: S.optional(S.String),
885
+ branch_filter: S.optional(S.String),
886
+ config: S.optional(UserEditHookRequestConfigMap),
887
+ events: S.optional(UserEditHookRequestEventsList),
888
+ }).pipe(T.Http({ method: "PATCH", uri: "/user/hooks/{id}", code: 200 }))).annotate({
889
+ identifier: "UserEditHookRequest",
890
+ });
891
+ export const UserGetCurrentRequest = /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(T.Http({ method: "GET", uri: "/user", code: 200 }))).annotate({
892
+ identifier: "UserGetCurrentRequest",
893
+ });
894
+ export const UserGetHeatmapDataRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
895
+ username: S.String.pipe(T.Label()),
896
+ }).pipe(T.Http({ method: "GET", uri: "/users/{username}/heatmap", code: 200 }))).annotate({
897
+ identifier: "UserGetHeatmapDataRequest",
898
+ });
899
+ export const UserHeatmapData = /*@__PURE__*/ S.suspend(() => S.Struct({
900
+ contributions: S.optional(S.Number),
901
+ timestamp: S.optional(S.Number),
902
+ })).annotate({
903
+ identifier: "UserHeatmapData",
904
+ });
905
+ export const UserGetHeatmapDataResponseBodyList = /*@__PURE__*/ S.Array(UserHeatmapData);
906
+ export const UserGetHeatmapDataResponse = /*@__PURE__*/ S.suspend(() => UserGetHeatmapDataResponseBodyList.pipe(T.RawResponseRoot())).annotate({
907
+ identifier: "UserGetHeatmapDataResponse",
908
+ });
909
+ export const UserGetHookRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
910
+ id: S.Number.pipe(T.Label()),
911
+ }).pipe(T.Http({ method: "GET", uri: "/user/hooks/{id}", code: 200 }))).annotate({
912
+ identifier: "UserGetHookRequest",
913
+ });
914
+ export const UserGetOAuth2ApplicationRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
915
+ id: S.Number.pipe(T.Label()),
916
+ }).pipe(T.Http({ method: "GET", uri: "/user/applications/oauth2/{id}", code: 200 }))).annotate({
917
+ identifier: "UserGetOAuth2ApplicationRequest",
918
+ });
919
+ export const UserGetOAuth2ApplicationsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
920
+ page: S.optional(S.Number.pipe(T.Query())),
921
+ limit: S.optional(S.Number.pipe(T.Query())),
922
+ }).pipe(T.Http({ method: "GET", uri: "/user/applications/oauth2", code: 200 }))).annotate({
923
+ identifier: "UserGetOAuth2ApplicationsRequest",
924
+ });
925
+ export const UserGetOAuth2ApplicationsResponseBodyList = /*@__PURE__*/ S.Array(OAuth2Application);
926
+ export const UserGetOAuth2ApplicationsResponse = /*@__PURE__*/ S.suspend(() => UserGetOAuth2ApplicationsResponseBodyList.pipe(T.RawResponseRoot())).annotate({
927
+ identifier: "UserGetOAuth2ApplicationsResponse",
928
+ });
929
+ export const UserGetQuotaRequest = /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(T.Http({ method: "GET", uri: "/user/quota", code: 200 }))).annotate({
930
+ identifier: "UserGetQuotaRequest",
931
+ });
932
+ export const QuotaRuleInfoSubjectsList = /*@__PURE__*/ S.Array(S.String);
933
+ export const QuotaRuleInfo = /*@__PURE__*/ S.suspend(() => S.Struct({
934
+ limit: S.optional(S.Number),
935
+ name: S.optional(S.String),
936
+ subjects: S.optional(QuotaRuleInfoSubjectsList),
937
+ })).annotate({ identifier: "QuotaRuleInfo" });
938
+ export const QuotaGroupRulesList = /*@__PURE__*/ S.Array(QuotaRuleInfo);
939
+ export const QuotaGroup = /*@__PURE__*/ S.suspend(() => S.Struct({
940
+ name: S.optional(S.String),
941
+ rules: S.optional(QuotaGroupRulesList),
942
+ })).annotate({ identifier: "QuotaGroup" });
943
+ export const QuotaGroupList = /*@__PURE__*/ S.Array(QuotaGroup);
944
+ export const QuotaUsedSizeAssetsAttachments = /*@__PURE__*/ S.suspend(() => S.Struct({
945
+ issues: S.optional(S.Number),
946
+ releases: S.optional(S.Number),
947
+ })).annotate({
948
+ identifier: "QuotaUsedSizeAssetsAttachments",
949
+ });
950
+ export const QuotaUsedSizeAssetsPackages = /*@__PURE__*/ S.suspend(() => S.Struct({
951
+ all: S.optional(S.Number),
952
+ })).annotate({
953
+ identifier: "QuotaUsedSizeAssetsPackages",
954
+ });
955
+ export const QuotaUsedSizeAssets = /*@__PURE__*/ S.suspend(() => S.Struct({
956
+ artifacts: S.optional(S.Number),
957
+ attachments: S.optional(QuotaUsedSizeAssetsAttachments),
958
+ packages: S.optional(QuotaUsedSizeAssetsPackages),
959
+ })).annotate({
960
+ identifier: "QuotaUsedSizeAssets",
961
+ });
962
+ export const QuotaUsedSizeGit = /*@__PURE__*/ S.suspend(() => S.Struct({
963
+ LFS: S.optional(S.Number),
964
+ })).annotate({
965
+ identifier: "QuotaUsedSizeGit",
966
+ });
967
+ export const QuotaUsedSizeRepos = /*@__PURE__*/ S.suspend(() => S.Struct({
968
+ private: S.optional(S.Number),
969
+ public: S.optional(S.Number),
970
+ })).annotate({
971
+ identifier: "QuotaUsedSizeRepos",
972
+ });
973
+ export const QuotaUsedSize = /*@__PURE__*/ S.suspend(() => S.Struct({
974
+ assets: S.optional(QuotaUsedSizeAssets),
975
+ git: S.optional(QuotaUsedSizeGit),
976
+ repos: S.optional(QuotaUsedSizeRepos),
977
+ })).annotate({ identifier: "QuotaUsedSize" });
978
+ export const QuotaUsed = /*@__PURE__*/ S.suspend(() => S.Struct({
979
+ size: S.optional(QuotaUsedSize),
980
+ })).annotate({ identifier: "QuotaUsed" });
981
+ export const QuotaInfo = /*@__PURE__*/ S.suspend(() => S.Struct({
982
+ groups: S.optional(QuotaGroupList),
983
+ used: S.optional(QuotaUsed),
984
+ })).annotate({ identifier: "QuotaInfo" });
985
+ export const UserGetStopWatchesRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
986
+ page: S.optional(S.Number.pipe(T.Query())),
987
+ limit: S.optional(S.Number.pipe(T.Query())),
988
+ }).pipe(T.Http({ method: "GET", uri: "/user/stopwatches", code: 200 }))).annotate({
989
+ identifier: "UserGetStopWatchesRequest",
990
+ });
991
+ export const StopWatch = /*@__PURE__*/ S.suspend(() => S.Struct({
992
+ created: S.optional(S.String),
993
+ duration: S.optional(S.String),
994
+ issue_index: S.optional(S.Number),
995
+ issue_title: S.optional(S.String),
996
+ repo_name: S.optional(S.String),
997
+ repo_owner_name: S.optional(S.String),
998
+ seconds: S.optional(S.Number),
999
+ })).annotate({ identifier: "StopWatch" });
1000
+ export const UserGetStopWatchesResponseBodyList = /*@__PURE__*/ S.Array(StopWatch);
1001
+ export const UserGetStopWatchesResponse = /*@__PURE__*/ S.suspend(() => UserGetStopWatchesResponseBodyList.pipe(T.RawResponseRoot())).annotate({
1002
+ identifier: "UserGetStopWatchesResponse",
1003
+ });
1004
+ export const UserGetTokensRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1005
+ username: S.String.pipe(T.Label()),
1006
+ page: S.optional(S.Number.pipe(T.Query())),
1007
+ limit: S.optional(S.Number.pipe(T.Query())),
1008
+ }).pipe(T.Http({ method: "GET", uri: "/users/{username}/tokens", code: 200 }))).annotate({
1009
+ identifier: "UserGetTokensRequest",
1010
+ });
1011
+ export const UserGetTokensResponseBodyList = /*@__PURE__*/ S.Array(AccessToken);
1012
+ export const UserGetTokensResponse = /*@__PURE__*/ S.suspend(() => UserGetTokensResponseBodyList.pipe(T.RawResponseRoot())).annotate({
1013
+ identifier: "UserGetTokensResponse",
1014
+ });
1015
+ export const UserListActivityFeedsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1016
+ username: S.String.pipe(T.Label()),
1017
+ only_performed_by: S.optional(S.Boolean.pipe(T.Query("only-performed-by"))),
1018
+ date: S.optional(S.String.pipe(T.Query())),
1019
+ page: S.optional(S.Number.pipe(T.Query())),
1020
+ limit: S.optional(S.Number.pipe(T.Query())),
1021
+ }).pipe(T.Http({
1022
+ method: "GET",
1023
+ uri: "/users/{username}/activities/feeds",
1024
+ code: 200,
1025
+ }))).annotate({
1026
+ identifier: "UserListActivityFeedsRequest",
1027
+ });
1028
+ export const CommentAssetsList = /*@__PURE__*/ S.Array(Attachment);
1029
+ export const Comment = /*@__PURE__*/ S.suspend(() => S.Struct({
1030
+ assets: S.optional(CommentAssetsList),
1031
+ body: S.optional(S.String),
1032
+ created_at: S.optional(S.String),
1033
+ html_url: S.optional(S.String),
1034
+ id: S.optional(S.Number),
1035
+ issue_url: S.optional(S.String),
1036
+ original_author: S.optional(S.String),
1037
+ original_author_id: S.optional(S.Number),
1038
+ pull_request_url: S.optional(S.String),
1039
+ updated_at: S.optional(S.String),
1040
+ user: S.optional(User),
1041
+ })).annotate({ identifier: "Comment" });
1042
+ export const ActivityOpType = /*@__PURE__*/ S.String;
1043
+ export const Activity = /*@__PURE__*/ S.suspend(() => S.Struct({
1044
+ act_user: S.optional(User),
1045
+ act_user_id: S.optional(S.Number),
1046
+ comment: S.optional(Comment),
1047
+ comment_id: S.optional(S.Number),
1048
+ content: S.optional(S.String),
1049
+ created: S.optional(S.String),
1050
+ id: S.optional(S.Number),
1051
+ is_private: S.optional(S.Boolean),
1052
+ op_type: S.optional(ActivityOpType),
1053
+ ref_name: S.optional(S.String),
1054
+ repo: S.optional(Repository),
1055
+ repo_id: S.optional(S.Number),
1056
+ user_id: S.optional(S.Number),
1057
+ })).annotate({ identifier: "Activity" });
1058
+ export const UserListActivityFeedsResponseBodyList = /*@__PURE__*/ S.Array(Activity);
1059
+ export const UserListActivityFeedsResponse = /*@__PURE__*/ S.suspend(() => UserListActivityFeedsResponseBodyList.pipe(T.RawResponseRoot())).annotate({
1060
+ identifier: "UserListActivityFeedsResponse",
1061
+ });
1062
+ export const UserListBlockedUsersRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1063
+ page: S.optional(S.Number.pipe(T.Query())),
1064
+ limit: S.optional(S.Number.pipe(T.Query())),
1065
+ }).pipe(T.Http({ method: "GET", uri: "/user/list_blocked", code: 200 }))).annotate({
1066
+ identifier: "UserListBlockedUsersRequest",
1067
+ });
1068
+ export const BlockedUser = /*@__PURE__*/ S.suspend(() => S.Struct({
1069
+ block_id: S.optional(S.Number),
1070
+ created_at: S.optional(S.String),
1071
+ })).annotate({ identifier: "BlockedUser" });
1072
+ export const UserListBlockedUsersResponseBodyList = /*@__PURE__*/ S.Array(BlockedUser);
1073
+ export const UserListBlockedUsersResponse = /*@__PURE__*/ S.suspend(() => UserListBlockedUsersResponseBodyList.pipe(T.RawResponseRoot())).annotate({
1074
+ identifier: "UserListBlockedUsersResponse",
1075
+ });
1076
+ export const UserListEmailsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(T.Http({ method: "GET", uri: "/user/emails", code: 200 }))).annotate({
1077
+ identifier: "UserListEmailsRequest",
1078
+ });
1079
+ export const UserListEmailsResponseBodyList = /*@__PURE__*/ S.Array(Email);
1080
+ export const UserListEmailsResponse = /*@__PURE__*/ S.suspend(() => UserListEmailsResponseBodyList.pipe(T.RawResponseRoot())).annotate({
1081
+ identifier: "UserListEmailsResponse",
1082
+ });
1083
+ export const UserListFollowersRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1084
+ username: S.String.pipe(T.Label()),
1085
+ page: S.optional(S.Number.pipe(T.Query())),
1086
+ limit: S.optional(S.Number.pipe(T.Query())),
1087
+ }).pipe(T.Http({ method: "GET", uri: "/users/{username}/followers", code: 200 }))).annotate({
1088
+ identifier: "UserListFollowersRequest",
1089
+ });
1090
+ export const UserListFollowersResponseBodyList = /*@__PURE__*/ S.Array(User);
1091
+ export const UserListFollowersResponse = /*@__PURE__*/ S.suspend(() => UserListFollowersResponseBodyList.pipe(T.RawResponseRoot())).annotate({
1092
+ identifier: "UserListFollowersResponse",
1093
+ });
1094
+ export const UserListFollowingRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1095
+ username: S.String.pipe(T.Label()),
1096
+ page: S.optional(S.Number.pipe(T.Query())),
1097
+ limit: S.optional(S.Number.pipe(T.Query())),
1098
+ }).pipe(T.Http({ method: "GET", uri: "/users/{username}/following", code: 200 }))).annotate({
1099
+ identifier: "UserListFollowingRequest",
1100
+ });
1101
+ export const UserListFollowingResponseBodyList = /*@__PURE__*/ S.Array(User);
1102
+ export const UserListFollowingResponse = /*@__PURE__*/ S.suspend(() => UserListFollowingResponseBodyList.pipe(T.RawResponseRoot())).annotate({
1103
+ identifier: "UserListFollowingResponse",
1104
+ });
1105
+ export const UserListGPGKeysRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1106
+ username: S.String.pipe(T.Label()),
1107
+ page: S.optional(S.Number.pipe(T.Query())),
1108
+ limit: S.optional(S.Number.pipe(T.Query())),
1109
+ }).pipe(T.Http({ method: "GET", uri: "/users/{username}/gpg_keys", code: 200 }))).annotate({
1110
+ identifier: "UserListGPGKeysRequest",
1111
+ });
1112
+ export const UserListGPGKeysResponseBodyList = /*@__PURE__*/ S.Array(GPGKey);
1113
+ export const UserListGPGKeysResponse = /*@__PURE__*/ S.suspend(() => UserListGPGKeysResponseBodyList.pipe(T.RawResponseRoot())).annotate({
1114
+ identifier: "UserListGPGKeysResponse",
1115
+ });
1116
+ export const UserListHooksRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1117
+ page: S.optional(S.Number.pipe(T.Query())),
1118
+ limit: S.optional(S.Number.pipe(T.Query())),
1119
+ }).pipe(T.Http({ method: "GET", uri: "/user/hooks", code: 200 }))).annotate({
1120
+ identifier: "UserListHooksRequest",
1121
+ });
1122
+ export const UserListHooksResponseBodyList = /*@__PURE__*/ S.Array(Hook);
1123
+ export const UserListHooksResponse = /*@__PURE__*/ S.suspend(() => UserListHooksResponseBodyList.pipe(T.RawResponseRoot())).annotate({
1124
+ identifier: "UserListHooksResponse",
1125
+ });
1126
+ export const UserListKeysRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1127
+ username: S.String.pipe(T.Label()),
1128
+ fingerprint: S.optional(S.String.pipe(T.Query())),
1129
+ page: S.optional(S.Number.pipe(T.Query())),
1130
+ limit: S.optional(S.Number.pipe(T.Query())),
1131
+ }).pipe(T.Http({ method: "GET", uri: "/users/{username}/keys", code: 200 }))).annotate({
1132
+ identifier: "UserListKeysRequest",
1133
+ });
1134
+ export const UserListKeysResponseBodyList = /*@__PURE__*/ S.Array(PublicKey);
1135
+ export const UserListKeysResponse = /*@__PURE__*/ S.suspend(() => UserListKeysResponseBodyList.pipe(T.RawResponseRoot())).annotate({
1136
+ identifier: "UserListKeysResponse",
1137
+ });
1138
+ export const UserListQuotaArtifactsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1139
+ page: S.optional(S.Number.pipe(T.Query())),
1140
+ limit: S.optional(S.Number.pipe(T.Query())),
1141
+ }).pipe(T.Http({ method: "GET", uri: "/user/quota/artifacts", code: 200 }))).annotate({
1142
+ identifier: "UserListQuotaArtifactsRequest",
1143
+ });
1144
+ export const QuotaUsedArtifact = /*@__PURE__*/ S.suspend(() => S.Struct({
1145
+ html_url: S.optional(S.String),
1146
+ name: S.optional(S.String),
1147
+ size: S.optional(S.Number),
1148
+ })).annotate({
1149
+ identifier: "QuotaUsedArtifact",
1150
+ });
1151
+ export const QuotaUsedArtifactList = /*@__PURE__*/ S.Array(QuotaUsedArtifact);
1152
+ export const UserListQuotaArtifactsResponse = /*@__PURE__*/ S.suspend(() => QuotaUsedArtifactList.pipe(T.RawResponseRoot())).annotate({
1153
+ identifier: "UserListQuotaArtifactsResponse",
1154
+ });
1155
+ export const UserListQuotaAttachmentsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1156
+ page: S.optional(S.Number.pipe(T.Query())),
1157
+ limit: S.optional(S.Number.pipe(T.Query())),
1158
+ }).pipe(T.Http({ method: "GET", uri: "/user/quota/attachments", code: 200 }))).annotate({
1159
+ identifier: "UserListQuotaAttachmentsRequest",
1160
+ });
1161
+ export const QuotaUsedAttachmentContainedIn = /*@__PURE__*/ S.suspend(() => S.Struct({
1162
+ api_url: S.optional(S.String),
1163
+ html_url: S.optional(S.String),
1164
+ })).annotate({
1165
+ identifier: "QuotaUsedAttachmentContainedIn",
1166
+ });
1167
+ export const QuotaUsedAttachment = /*@__PURE__*/ S.suspend(() => S.Struct({
1168
+ api_url: S.optional(S.String),
1169
+ contained_in: S.optional(QuotaUsedAttachmentContainedIn),
1170
+ name: S.optional(S.String),
1171
+ size: S.optional(S.Number),
1172
+ })).annotate({
1173
+ identifier: "QuotaUsedAttachment",
1174
+ });
1175
+ export const QuotaUsedAttachmentList = /*@__PURE__*/ S.Array(QuotaUsedAttachment);
1176
+ export const UserListQuotaAttachmentsResponse = /*@__PURE__*/ S.suspend(() => QuotaUsedAttachmentList.pipe(T.RawResponseRoot())).annotate({
1177
+ identifier: "UserListQuotaAttachmentsResponse",
1178
+ });
1179
+ export const UserListQuotaPackagesRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1180
+ page: S.optional(S.Number.pipe(T.Query())),
1181
+ limit: S.optional(S.Number.pipe(T.Query())),
1182
+ }).pipe(T.Http({ method: "GET", uri: "/user/quota/packages", code: 200 }))).annotate({
1183
+ identifier: "UserListQuotaPackagesRequest",
1184
+ });
1185
+ export const QuotaUsedPackage = /*@__PURE__*/ S.suspend(() => S.Struct({
1186
+ html_url: S.optional(S.String),
1187
+ name: S.optional(S.String),
1188
+ size: S.optional(S.Number),
1189
+ type: S.optional(S.String),
1190
+ version: S.optional(S.String),
1191
+ })).annotate({
1192
+ identifier: "QuotaUsedPackage",
1193
+ });
1194
+ export const QuotaUsedPackageList = /*@__PURE__*/ S.Array(QuotaUsedPackage);
1195
+ export const UserListQuotaPackagesResponse = /*@__PURE__*/ S.suspend(() => QuotaUsedPackageList.pipe(T.RawResponseRoot())).annotate({
1196
+ identifier: "UserListQuotaPackagesResponse",
1197
+ });
1198
+ export const UserListReposRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1199
+ username: S.String.pipe(T.Label()),
1200
+ page: S.optional(S.Number.pipe(T.Query())),
1201
+ limit: S.optional(S.Number.pipe(T.Query())),
1202
+ }).pipe(T.Http({ method: "GET", uri: "/users/{username}/repos", code: 200 }))).annotate({
1203
+ identifier: "UserListReposRequest",
1204
+ });
1205
+ export const UserListReposResponseBodyList = /*@__PURE__*/ S.Array(Repository);
1206
+ export const UserListReposResponse = /*@__PURE__*/ S.suspend(() => UserListReposResponseBodyList.pipe(T.RawResponseRoot())).annotate({
1207
+ identifier: "UserListReposResponse",
1208
+ });
1209
+ export const UserListStarredRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1210
+ username: S.String.pipe(T.Label()),
1211
+ page: S.optional(S.Number.pipe(T.Query())),
1212
+ limit: S.optional(S.Number.pipe(T.Query())),
1213
+ }).pipe(T.Http({ method: "GET", uri: "/users/{username}/starred", code: 200 }))).annotate({
1214
+ identifier: "UserListStarredRequest",
1215
+ });
1216
+ export const UserListStarredResponseBodyList = /*@__PURE__*/ S.Array(Repository);
1217
+ export const UserListStarredResponse = /*@__PURE__*/ S.suspend(() => UserListStarredResponseBodyList.pipe(T.RawResponseRoot())).annotate({
1218
+ identifier: "UserListStarredResponse",
1219
+ });
1220
+ export const UserListSubscriptionsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1221
+ username: S.String.pipe(T.Label()),
1222
+ page: S.optional(S.Number.pipe(T.Query())),
1223
+ limit: S.optional(S.Number.pipe(T.Query())),
1224
+ }).pipe(T.Http({
1225
+ method: "GET",
1226
+ uri: "/users/{username}/subscriptions",
1227
+ code: 200,
1228
+ }))).annotate({
1229
+ identifier: "UserListSubscriptionsRequest",
1230
+ });
1231
+ export const UserListSubscriptionsResponseBodyList = /*@__PURE__*/ S.Array(Repository);
1232
+ export const UserListSubscriptionsResponse = /*@__PURE__*/ S.suspend(() => UserListSubscriptionsResponseBodyList.pipe(T.RawResponseRoot())).annotate({
1233
+ identifier: "UserListSubscriptionsResponse",
1234
+ });
1235
+ export const UserListTeamsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1236
+ page: S.optional(S.Number.pipe(T.Query())),
1237
+ limit: S.optional(S.Number.pipe(T.Query())),
1238
+ }).pipe(T.Http({ method: "GET", uri: "/user/teams", code: 200 }))).annotate({
1239
+ identifier: "UserListTeamsRequest",
1240
+ });
1241
+ export const UserListTeamsResponseBodyList = /*@__PURE__*/ S.Array(Team);
1242
+ export const UserListTeamsResponse = /*@__PURE__*/ S.suspend(() => UserListTeamsResponseBodyList.pipe(T.RawResponseRoot())).annotate({
1243
+ identifier: "UserListTeamsResponse",
1244
+ });
1245
+ export const UserSearchRunJobsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1246
+ labels: S.optional(S.String.pipe(T.Query())),
1247
+ }).pipe(T.Http({ method: "GET", uri: "/user/actions/runners/jobs", code: 200 }))).annotate({
1248
+ identifier: "UserSearchRunJobsRequest",
1249
+ });
1250
+ export const ActionRunJobNeedsList = /*@__PURE__*/ S.Array(S.String);
1251
+ export const ActionRunJobRunsOnList = /*@__PURE__*/ S.Array(S.String);
1252
+ export const ActionRunJob = /*@__PURE__*/ S.suspend(() => S.Struct({
1253
+ attempt: S.optional(S.Number),
1254
+ handle: S.optional(S.String),
1255
+ id: S.optional(S.Number),
1256
+ name: S.optional(S.String),
1257
+ needs: S.optional(ActionRunJobNeedsList),
1258
+ owner_id: S.optional(S.Number),
1259
+ repo_id: S.optional(S.Number),
1260
+ run_id: S.optional(S.Number),
1261
+ runs_on: S.optional(ActionRunJobRunsOnList),
1262
+ status: S.optional(S.String),
1263
+ task_id: S.optional(S.Number),
1264
+ })).annotate({ identifier: "ActionRunJob" });
1265
+ export const UserSearchRunJobsResponseBodyList = /*@__PURE__*/ S.Array(ActionRunJob);
1266
+ export const UserSearchRunJobsResponse = /*@__PURE__*/ S.suspend(() => UserSearchRunJobsResponseBodyList.pipe(T.RawResponseRoot())).annotate({
1267
+ identifier: "UserSearchRunJobsResponse",
1268
+ });
1269
+ export const UserUpdateAvatarRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1270
+ image: S.optional(S.String),
1271
+ }).pipe(T.Http({ method: "POST", uri: "/user/avatar", code: 200 }))).annotate({
1272
+ identifier: "UserUpdateAvatarRequest",
1273
+ });
1274
+ export const UserUpdateAvatarResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
1275
+ identifier: "UserUpdateAvatarResponse",
1276
+ });
1277
+ export const UserUpdateOAuth2ApplicationRequestRedirectUrisList =
1278
+ /*@__PURE__*/ S.Array(S.String);
1279
+ export const UserUpdateOAuth2ApplicationRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1280
+ id: S.Number.pipe(T.Label()),
1281
+ confidential_client: S.optional(S.Boolean),
1282
+ name: S.optional(S.String),
1283
+ redirect_uris: S.optional(UserUpdateOAuth2ApplicationRequestRedirectUrisList),
1284
+ }).pipe(T.Http({
1285
+ method: "PATCH",
1286
+ uri: "/user/applications/oauth2/{id}",
1287
+ code: 200,
1288
+ }))).annotate({
1289
+ identifier: "UserUpdateOAuth2ApplicationRequest",
1290
+ });
1291
+ export const UserVerifyGPGKeyRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1292
+ armored_signature: S.optional(S.String),
1293
+ key_id: S.String,
1294
+ }).pipe(T.Http({ method: "POST", uri: "/user/gpg_key_verify", code: 200 }))).annotate({
1295
+ identifier: "UserVerifyGPGKeyRequest",
1296
+ });
1297
+ /** Create a user-level variable */
1298
+ export const createUserVariable = /*@__PURE__*/ API.make(() => ({
1299
+ input: CreateUserVariableRequest,
1300
+ output: CreateUserVariableResponse,
1301
+ errors: [BadRequest, Forbidden, NotFound],
1302
+ protocol: ForgejoProtocol,
1303
+ retry: Retry.Retry,
1304
+ }));
1305
+ /** Delete a particular user-level runner */
1306
+ export const deleteUserRunner = /*@__PURE__*/ API.make(() => ({
1307
+ input: DeleteUserRunnerRequest,
1308
+ output: DeleteUserRunnerResponse,
1309
+ errors: [BadRequest, NotFound],
1310
+ protocol: ForgejoProtocol,
1311
+ retry: Retry.Retry,
1312
+ }));
1313
+ /** Delete a secret in a user scope */
1314
+ export const deleteUserSecret = /*@__PURE__*/ API.make(() => ({
1315
+ input: DeleteUserSecretRequest,
1316
+ output: DeleteUserSecretResponse,
1317
+ errors: [BadRequest, Forbidden, NotFound],
1318
+ protocol: ForgejoProtocol,
1319
+ retry: Retry.Retry,
1320
+ }));
1321
+ /** Delete a user-level variable which is created by current doer */
1322
+ export const deleteUserVariable = /*@__PURE__*/ API.make(() => ({
1323
+ input: DeleteUserVariableRequest,
1324
+ output: DeleteUserVariableResponse,
1325
+ errors: [BadRequest, Forbidden, NotFound],
1326
+ protocol: ForgejoProtocol,
1327
+ retry: Retry.Retry,
1328
+ }));
1329
+ /** Follow a remote activitypub account */
1330
+ export const followUserCurrentActivityPub = /*@__PURE__*/ API.make(() => ({
1331
+ input: FollowUserCurrentActivityPubRequest,
1332
+ output: FollowUserCurrentActivityPubResponse,
1333
+ errors: [Forbidden, NotFound],
1334
+ protocol: ForgejoProtocol,
1335
+ retry: Retry.Retry,
1336
+ }));
1337
+ /** Get a user */
1338
+ export const getUser = /*@__PURE__*/ API.make(() => ({
1339
+ input: GetUserRequest,
1340
+ output: User,
1341
+ errors: [NotFound],
1342
+ protocol: ForgejoProtocol,
1343
+ retry: Retry.Retry,
1344
+ }));
1345
+ /** Get a particular runner that belongs to the user */
1346
+ export const getUserRunner = /*@__PURE__*/ API.make(() => ({
1347
+ input: GetUserRunnerRequest,
1348
+ output: ActionRunner,
1349
+ errors: [BadRequest, NotFound],
1350
+ protocol: ForgejoProtocol,
1351
+ retry: Retry.Retry,
1352
+ }));
1353
+ /** Get the user's runners */
1354
+ export const getUserRunners = /*@__PURE__*/ API.make(() => ({
1355
+ input: GetUserRunnersRequest,
1356
+ output: GetUserRunnersResponse,
1357
+ errors: [BadRequest, NotFound],
1358
+ protocol: ForgejoProtocol,
1359
+ retry: Retry.Retry,
1360
+ }));
1361
+ /** Get current user's account settings */
1362
+ export const getUserSettings = /*@__PURE__*/ API.make(() => ({
1363
+ input: GetUserSettingsRequest,
1364
+ output: UserSettings,
1365
+ errors: [Forbidden],
1366
+ protocol: ForgejoProtocol,
1367
+ retry: Retry.Retry,
1368
+ }));
1369
+ /** Get a user-level variable which is created by current doer */
1370
+ export const getUserVariable = /*@__PURE__*/ API.make(() => ({
1371
+ input: GetUserVariableRequest,
1372
+ output: ActionVariable,
1373
+ errors: [BadRequest, Forbidden, NotFound],
1374
+ protocol: ForgejoProtocol,
1375
+ retry: Retry.Retry,
1376
+ }));
1377
+ /** Get the user-level list of variables which is created by current doer */
1378
+ export const getUserVariablesList = /*@__PURE__*/ API.make(() => ({
1379
+ input: GetUserVariablesListRequest,
1380
+ output: GetUserVariablesListResponse,
1381
+ errors: [BadRequest, Forbidden, NotFound],
1382
+ protocol: ForgejoProtocol,
1383
+ retry: Retry.Retry,
1384
+ }));
1385
+ /** Get a Token to verify */
1386
+ export const getVerificationToken = /*@__PURE__*/ API.make(() => ({
1387
+ input: GetVerificationTokenRequest,
1388
+ output: GetVerificationTokenResponse,
1389
+ errors: [Forbidden, NotFound],
1390
+ protocol: ForgejoProtocol,
1391
+ retry: Retry.Retry,
1392
+ }));
1393
+ /** Register a new user-level runner */
1394
+ export const registerUserRunner = /*@__PURE__*/ API.make(() => ({
1395
+ input: RegisterUserRunnerRequest,
1396
+ output: RegisterRunnerResponse,
1397
+ errors: [BadRequest, NotFound],
1398
+ protocol: ForgejoProtocol,
1399
+ retry: Retry.Retry,
1400
+ }));
1401
+ /** Search for users */
1402
+ export const searchUser = /*@__PURE__*/ API.make(() => ({
1403
+ input: SearchUserRequest,
1404
+ output: SearchUserResponse,
1405
+ errors: [],
1406
+ protocol: ForgejoProtocol,
1407
+ retry: Retry.Retry,
1408
+ }));
1409
+ /** Unblocks a user from the doer */
1410
+ export const unblockUser = /*@__PURE__*/ API.make(() => ({
1411
+ input: UnblockUserRequest,
1412
+ output: UnblockUserResponse,
1413
+ errors: [Forbidden, NotFound, UnprocessableEntity],
1414
+ protocol: ForgejoProtocol,
1415
+ retry: Retry.Retry,
1416
+ }));
1417
+ /** Create or Update a secret value in a user scope */
1418
+ export const updateUserSecret = /*@__PURE__*/ API.make(() => ({
1419
+ input: UpdateUserSecretRequest,
1420
+ output: UpdateUserSecretResponse,
1421
+ errors: [BadRequest, Forbidden, NotFound],
1422
+ protocol: ForgejoProtocol,
1423
+ retry: Retry.Retry,
1424
+ }));
1425
+ /** Update settings in current user's account */
1426
+ export const updateUserSettings = /*@__PURE__*/ API.make(() => ({
1427
+ input: UpdateUserSettingsRequest,
1428
+ output: UserSettings,
1429
+ errors: [Forbidden],
1430
+ protocol: ForgejoProtocol,
1431
+ retry: Retry.Retry,
1432
+ }));
1433
+ /** Update a user-level variable which is created by current doer */
1434
+ export const updateUserVariable = /*@__PURE__*/ API.make(() => ({
1435
+ input: UpdateUserVariableRequest,
1436
+ output: UpdateUserVariableResponse,
1437
+ errors: [BadRequest, Forbidden, NotFound],
1438
+ protocol: ForgejoProtocol,
1439
+ retry: Retry.Retry,
1440
+ }));
1441
+ /** Add an email addresses to the current user's account */
1442
+ export const userAddEmail = /*@__PURE__*/ API.make(() => ({
1443
+ input: UserAddEmailRequest,
1444
+ output: UserAddEmailResponse,
1445
+ errors: [Forbidden, UnprocessableEntity],
1446
+ protocol: ForgejoProtocol,
1447
+ retry: Retry.Retry,
1448
+ }));
1449
+ /** Blocks a user from the doer */
1450
+ export const userBlockUser = /*@__PURE__*/ API.make(() => ({
1451
+ input: UserBlockUserRequest,
1452
+ output: UserBlockUserResponse,
1453
+ errors: [Forbidden, NotFound, UnprocessableEntity],
1454
+ protocol: ForgejoProtocol,
1455
+ retry: Retry.Retry,
1456
+ }));
1457
+ /** Check if one user is following another user */
1458
+ export const userCheckFollowing = /*@__PURE__*/ API.make(() => ({
1459
+ input: UserCheckFollowingRequest,
1460
+ output: UserCheckFollowingResponse,
1461
+ errors: [NotFound],
1462
+ protocol: ForgejoProtocol,
1463
+ retry: Retry.Retry,
1464
+ }));
1465
+ /** Check if the authenticated user is over quota for a given subject */
1466
+ export const userCheckQuota = /*@__PURE__*/ API.make(() => ({
1467
+ input: UserCheckQuotaRequest,
1468
+ output: UserCheckQuotaResponse,
1469
+ errors: [Forbidden, UnprocessableEntity],
1470
+ protocol: ForgejoProtocol,
1471
+ retry: Retry.Retry,
1472
+ }));
1473
+ /** Create a hook */
1474
+ export const userCreateHook = /*@__PURE__*/ API.make(() => ({
1475
+ input: UserCreateHookRequest,
1476
+ output: Hook,
1477
+ errors: [Forbidden],
1478
+ protocol: ForgejoProtocol,
1479
+ retry: Retry.Retry,
1480
+ }));
1481
+ /** Creates a new OAuth2 application */
1482
+ export const userCreateOAuth2Application = /*@__PURE__*/ API.make(() => ({
1483
+ input: UserCreateOAuth2ApplicationRequest,
1484
+ output: OAuth2Application,
1485
+ errors: [BadRequest, Forbidden],
1486
+ protocol: ForgejoProtocol,
1487
+ retry: Retry.Retry,
1488
+ }));
1489
+ /** Generate an access token for the specified user */
1490
+ export const userCreateToken = /*@__PURE__*/ API.make(() => ({
1491
+ input: UserCreateTokenRequest,
1492
+ output: AccessToken,
1493
+ errors: [BadRequest, Forbidden, NotFound],
1494
+ protocol: ForgejoProtocol,
1495
+ retry: Retry.Retry,
1496
+ }));
1497
+ /** Check whether a user is followed by the authenticated user */
1498
+ export const userCurrentCheckFollowing = /*@__PURE__*/ API.make(() => ({
1499
+ input: UserCurrentCheckFollowingRequest,
1500
+ output: UserCurrentCheckFollowingResponse,
1501
+ errors: [Forbidden, NotFound],
1502
+ protocol: ForgejoProtocol,
1503
+ retry: Retry.Retry,
1504
+ }));
1505
+ /** Whether the authenticated is starring the repo */
1506
+ export const userCurrentCheckStarring = /*@__PURE__*/ API.make(() => ({
1507
+ input: UserCurrentCheckStarringRequest,
1508
+ output: UserCurrentCheckStarringResponse,
1509
+ errors: [Forbidden, NotFound],
1510
+ protocol: ForgejoProtocol,
1511
+ retry: Retry.Retry,
1512
+ }));
1513
+ /** Unfollow a user */
1514
+ export const userCurrentDeleteFollow = /*@__PURE__*/ API.make(() => ({
1515
+ input: UserCurrentDeleteFollowRequest,
1516
+ output: UserCurrentDeleteFollowResponse,
1517
+ errors: [Forbidden, NotFound],
1518
+ protocol: ForgejoProtocol,
1519
+ retry: Retry.Retry,
1520
+ }));
1521
+ /** Remove a GPG public key from current user's account */
1522
+ export const userCurrentDeleteGPGKey = /*@__PURE__*/ API.make(() => ({
1523
+ input: UserCurrentDeleteGPGKeyRequest,
1524
+ output: UserCurrentDeleteGPGKeyResponse,
1525
+ errors: [Forbidden, NotFound],
1526
+ protocol: ForgejoProtocol,
1527
+ retry: Retry.Retry,
1528
+ }));
1529
+ /** Delete a public key */
1530
+ export const userCurrentDeleteKey = /*@__PURE__*/ API.make(() => ({
1531
+ input: UserCurrentDeleteKeyRequest,
1532
+ output: UserCurrentDeleteKeyResponse,
1533
+ errors: [Forbidden, NotFound],
1534
+ protocol: ForgejoProtocol,
1535
+ retry: Retry.Retry,
1536
+ }));
1537
+ /** Unstar the given repo */
1538
+ export const userCurrentDeleteStar = /*@__PURE__*/ API.make(() => ({
1539
+ input: UserCurrentDeleteStarRequest,
1540
+ output: UserCurrentDeleteStarResponse,
1541
+ errors: [Forbidden, NotFound],
1542
+ protocol: ForgejoProtocol,
1543
+ retry: Retry.Retry,
1544
+ }));
1545
+ /** Get a GPG key */
1546
+ export const userCurrentGetGPGKey = /*@__PURE__*/ API.make(() => ({
1547
+ input: UserCurrentGetGPGKeyRequest,
1548
+ output: GPGKey,
1549
+ errors: [Forbidden, NotFound],
1550
+ protocol: ForgejoProtocol,
1551
+ retry: Retry.Retry,
1552
+ }));
1553
+ /** Get a public key */
1554
+ export const userCurrentGetKey = /*@__PURE__*/ API.make(() => ({
1555
+ input: UserCurrentGetKeyRequest,
1556
+ output: PublicKey,
1557
+ errors: [Forbidden, NotFound],
1558
+ protocol: ForgejoProtocol,
1559
+ retry: Retry.Retry,
1560
+ }));
1561
+ /** List the authenticated user's followers */
1562
+ export const userCurrentListFollowers = /*@__PURE__*/ API.make(() => ({
1563
+ input: UserCurrentListFollowersRequest,
1564
+ output: UserCurrentListFollowersResponse,
1565
+ errors: [Forbidden],
1566
+ protocol: ForgejoProtocol,
1567
+ retry: Retry.Retry,
1568
+ }));
1569
+ /** List the users that the authenticated user is following */
1570
+ export const userCurrentListFollowing = /*@__PURE__*/ API.make(() => ({
1571
+ input: UserCurrentListFollowingRequest,
1572
+ output: UserCurrentListFollowingResponse,
1573
+ errors: [Forbidden],
1574
+ protocol: ForgejoProtocol,
1575
+ retry: Retry.Retry,
1576
+ }));
1577
+ /** List the authenticated user's GPG keys */
1578
+ export const userCurrentListGPGKeys = /*@__PURE__*/ API.make(() => ({
1579
+ input: UserCurrentListGPGKeysRequest,
1580
+ output: UserCurrentListGPGKeysResponse,
1581
+ errors: [Forbidden],
1582
+ protocol: ForgejoProtocol,
1583
+ retry: Retry.Retry,
1584
+ }));
1585
+ /** List the authenticated user's public keys */
1586
+ export const userCurrentListKeys = /*@__PURE__*/ API.make(() => ({
1587
+ input: UserCurrentListKeysRequest,
1588
+ output: UserCurrentListKeysResponse,
1589
+ errors: [Forbidden],
1590
+ protocol: ForgejoProtocol,
1591
+ retry: Retry.Retry,
1592
+ }));
1593
+ /** List the repos that the authenticated user owns */
1594
+ export const userCurrentListRepos = /*@__PURE__*/ API.make(() => ({
1595
+ input: UserCurrentListReposRequest,
1596
+ output: UserCurrentListReposResponse,
1597
+ errors: [Forbidden, UnprocessableEntity],
1598
+ protocol: ForgejoProtocol,
1599
+ retry: Retry.Retry,
1600
+ }));
1601
+ /** The repos that the authenticated user has starred */
1602
+ export const userCurrentListStarred = /*@__PURE__*/ API.make(() => ({
1603
+ input: UserCurrentListStarredRequest,
1604
+ output: UserCurrentListStarredResponse,
1605
+ errors: [Forbidden],
1606
+ protocol: ForgejoProtocol,
1607
+ retry: Retry.Retry,
1608
+ }));
1609
+ /** List repositories watched by the authenticated user */
1610
+ export const userCurrentListSubscriptions = /*@__PURE__*/ API.make(() => ({
1611
+ input: UserCurrentListSubscriptionsRequest,
1612
+ output: UserCurrentListSubscriptionsResponse,
1613
+ errors: [Forbidden],
1614
+ protocol: ForgejoProtocol,
1615
+ retry: Retry.Retry,
1616
+ }));
1617
+ /** Add a GPG public key to current user's account */
1618
+ export const userCurrentPostGPGKey = /*@__PURE__*/ API.make(() => ({
1619
+ input: UserCurrentPostGPGKeyRequest,
1620
+ output: GPGKey,
1621
+ errors: [Forbidden, NotFound, UnprocessableEntity],
1622
+ protocol: ForgejoProtocol,
1623
+ retry: Retry.Retry,
1624
+ }));
1625
+ /** Create a public key */
1626
+ export const userCurrentPostKey = /*@__PURE__*/ API.make(() => ({
1627
+ input: UserCurrentPostKeyRequest,
1628
+ output: PublicKey,
1629
+ errors: [Forbidden, UnprocessableEntity],
1630
+ protocol: ForgejoProtocol,
1631
+ retry: Retry.Retry,
1632
+ }));
1633
+ /** Follow a user */
1634
+ export const userCurrentPutFollow = /*@__PURE__*/ API.make(() => ({
1635
+ input: UserCurrentPutFollowRequest,
1636
+ output: UserCurrentPutFollowResponse,
1637
+ errors: [Forbidden, NotFound],
1638
+ protocol: ForgejoProtocol,
1639
+ retry: Retry.Retry,
1640
+ }));
1641
+ /** Star the given repo */
1642
+ export const userCurrentPutStar = /*@__PURE__*/ API.make(() => ({
1643
+ input: UserCurrentPutStarRequest,
1644
+ output: UserCurrentPutStarResponse,
1645
+ errors: [Forbidden, NotFound],
1646
+ protocol: ForgejoProtocol,
1647
+ retry: Retry.Retry,
1648
+ }));
1649
+ /** List the current user's tracked times */
1650
+ export const userCurrentTrackedTimes = /*@__PURE__*/ API.make(() => ({
1651
+ input: UserCurrentTrackedTimesRequest,
1652
+ output: UserCurrentTrackedTimesResponse,
1653
+ errors: [Forbidden],
1654
+ protocol: ForgejoProtocol,
1655
+ retry: Retry.Retry,
1656
+ }));
1657
+ /** Delete an access token from the specified user's account */
1658
+ export const userDeleteAccessToken = /*@__PURE__*/ API.make(() => ({
1659
+ input: UserDeleteAccessTokenRequest,
1660
+ output: UserDeleteAccessTokenResponse,
1661
+ errors: [Forbidden, NotFound, UnprocessableEntity],
1662
+ protocol: ForgejoProtocol,
1663
+ retry: Retry.Retry,
1664
+ }));
1665
+ /** Delete avatar of the current user. It will be replaced by a default one */
1666
+ export const userDeleteAvatar = /*@__PURE__*/ API.make(() => ({
1667
+ input: UserDeleteAvatarRequest,
1668
+ output: UserDeleteAvatarResponse,
1669
+ errors: [Forbidden],
1670
+ protocol: ForgejoProtocol,
1671
+ retry: Retry.Retry,
1672
+ }));
1673
+ /** Delete email addresses from the current user's account */
1674
+ export const userDeleteEmail = /*@__PURE__*/ API.make(() => ({
1675
+ input: UserDeleteEmailRequest,
1676
+ output: UserDeleteEmailResponse,
1677
+ errors: [Forbidden, NotFound],
1678
+ protocol: ForgejoProtocol,
1679
+ retry: Retry.Retry,
1680
+ }));
1681
+ /** Delete a hook */
1682
+ export const userDeleteHook = /*@__PURE__*/ API.make(() => ({
1683
+ input: UserDeleteHookRequest,
1684
+ output: UserDeleteHookResponse,
1685
+ errors: [Forbidden],
1686
+ protocol: ForgejoProtocol,
1687
+ retry: Retry.Retry,
1688
+ }));
1689
+ /** Delete an OAuth2 application */
1690
+ export const userDeleteOAuth2Application = /*@__PURE__*/ API.make(() => ({
1691
+ input: UserDeleteOAuth2ApplicationRequest,
1692
+ output: UserDeleteOAuth2ApplicationResponse,
1693
+ errors: [Forbidden, NotFound],
1694
+ protocol: ForgejoProtocol,
1695
+ retry: Retry.Retry,
1696
+ }));
1697
+ /** Update a hook */
1698
+ export const userEditHook = /*@__PURE__*/ API.make(() => ({
1699
+ input: UserEditHookRequest,
1700
+ output: Hook,
1701
+ errors: [Forbidden],
1702
+ protocol: ForgejoProtocol,
1703
+ retry: Retry.Retry,
1704
+ }));
1705
+ /** Get the authenticated user */
1706
+ export const userGetCurrent = /*@__PURE__*/ API.make(() => ({
1707
+ input: UserGetCurrentRequest,
1708
+ output: User,
1709
+ errors: [Forbidden],
1710
+ protocol: ForgejoProtocol,
1711
+ retry: Retry.Retry,
1712
+ }));
1713
+ /** Get a user's heatmap */
1714
+ export const userGetHeatmapData = /*@__PURE__*/ API.make(() => ({
1715
+ input: UserGetHeatmapDataRequest,
1716
+ output: UserGetHeatmapDataResponse,
1717
+ errors: [NotFound],
1718
+ protocol: ForgejoProtocol,
1719
+ retry: Retry.Retry,
1720
+ }));
1721
+ /** Get a hook */
1722
+ export const userGetHook = /*@__PURE__*/ API.make(() => ({
1723
+ input: UserGetHookRequest,
1724
+ output: Hook,
1725
+ errors: [Forbidden],
1726
+ protocol: ForgejoProtocol,
1727
+ retry: Retry.Retry,
1728
+ }));
1729
+ /** Get an OAuth2 application */
1730
+ export const userGetOAuth2Application = /*@__PURE__*/ API.make(() => ({
1731
+ input: UserGetOAuth2ApplicationRequest,
1732
+ output: OAuth2Application,
1733
+ errors: [Forbidden, NotFound],
1734
+ protocol: ForgejoProtocol,
1735
+ retry: Retry.Retry,
1736
+ }));
1737
+ /** List the authenticated user's oauth2 applications */
1738
+ export const userGetOAuth2Applications = /*@__PURE__*/ API.make(() => ({
1739
+ input: UserGetOAuth2ApplicationsRequest,
1740
+ output: UserGetOAuth2ApplicationsResponse,
1741
+ errors: [Forbidden],
1742
+ protocol: ForgejoProtocol,
1743
+ retry: Retry.Retry,
1744
+ }));
1745
+ /** Get quota information for the authenticated user */
1746
+ export const userGetQuota = /*@__PURE__*/ API.make(() => ({
1747
+ input: UserGetQuotaRequest,
1748
+ output: QuotaInfo,
1749
+ errors: [Forbidden],
1750
+ protocol: ForgejoProtocol,
1751
+ retry: Retry.Retry,
1752
+ }));
1753
+ /** Get list of all existing stopwatches */
1754
+ export const userGetStopWatches = /*@__PURE__*/ API.make(() => ({
1755
+ input: UserGetStopWatchesRequest,
1756
+ output: UserGetStopWatchesResponse,
1757
+ errors: [Forbidden],
1758
+ protocol: ForgejoProtocol,
1759
+ retry: Retry.Retry,
1760
+ }));
1761
+ /** List the specified user's access tokens */
1762
+ export const userGetTokens = /*@__PURE__*/ API.make(() => ({
1763
+ input: UserGetTokensRequest,
1764
+ output: UserGetTokensResponse,
1765
+ errors: [Forbidden, NotFound],
1766
+ protocol: ForgejoProtocol,
1767
+ retry: Retry.Retry,
1768
+ }));
1769
+ /** List a user's activity feeds */
1770
+ export const userListActivityFeeds = /*@__PURE__*/ API.make(() => ({
1771
+ input: UserListActivityFeedsRequest,
1772
+ output: UserListActivityFeedsResponse,
1773
+ errors: [NotFound],
1774
+ protocol: ForgejoProtocol,
1775
+ retry: Retry.Retry,
1776
+ }));
1777
+ /** List the authenticated user's blocked users */
1778
+ export const userListBlockedUsers = /*@__PURE__*/ API.make(() => ({
1779
+ input: UserListBlockedUsersRequest,
1780
+ output: UserListBlockedUsersResponse,
1781
+ errors: [Forbidden],
1782
+ protocol: ForgejoProtocol,
1783
+ retry: Retry.Retry,
1784
+ }));
1785
+ /** List all email addresses of the current user */
1786
+ export const userListEmails = /*@__PURE__*/ API.make(() => ({
1787
+ input: UserListEmailsRequest,
1788
+ output: UserListEmailsResponse,
1789
+ errors: [Forbidden],
1790
+ protocol: ForgejoProtocol,
1791
+ retry: Retry.Retry,
1792
+ }));
1793
+ /** List the given user's followers */
1794
+ export const userListFollowers = /*@__PURE__*/ API.make(() => ({
1795
+ input: UserListFollowersRequest,
1796
+ output: UserListFollowersResponse,
1797
+ errors: [NotFound],
1798
+ protocol: ForgejoProtocol,
1799
+ retry: Retry.Retry,
1800
+ }));
1801
+ /** List the users that the given user is following */
1802
+ export const userListFollowing = /*@__PURE__*/ API.make(() => ({
1803
+ input: UserListFollowingRequest,
1804
+ output: UserListFollowingResponse,
1805
+ errors: [NotFound],
1806
+ protocol: ForgejoProtocol,
1807
+ retry: Retry.Retry,
1808
+ }));
1809
+ /** List the given user's GPG keys */
1810
+ export const userListGPGKeys = /*@__PURE__*/ API.make(() => ({
1811
+ input: UserListGPGKeysRequest,
1812
+ output: UserListGPGKeysResponse,
1813
+ errors: [NotFound],
1814
+ protocol: ForgejoProtocol,
1815
+ retry: Retry.Retry,
1816
+ }));
1817
+ /** List the authenticated user's webhooks */
1818
+ export const userListHooks = /*@__PURE__*/ API.make(() => ({
1819
+ input: UserListHooksRequest,
1820
+ output: UserListHooksResponse,
1821
+ errors: [Forbidden],
1822
+ protocol: ForgejoProtocol,
1823
+ retry: Retry.Retry,
1824
+ }));
1825
+ /** List the given user's public keys */
1826
+ export const userListKeys = /*@__PURE__*/ API.make(() => ({
1827
+ input: UserListKeysRequest,
1828
+ output: UserListKeysResponse,
1829
+ errors: [NotFound],
1830
+ protocol: ForgejoProtocol,
1831
+ retry: Retry.Retry,
1832
+ }));
1833
+ /** List the artifacts affecting the authenticated user's quota */
1834
+ export const userListQuotaArtifacts = /*@__PURE__*/ API.make(() => ({
1835
+ input: UserListQuotaArtifactsRequest,
1836
+ output: UserListQuotaArtifactsResponse,
1837
+ errors: [Forbidden],
1838
+ protocol: ForgejoProtocol,
1839
+ retry: Retry.Retry,
1840
+ }));
1841
+ /** List the attachments affecting the authenticated user's quota */
1842
+ export const userListQuotaAttachments = /*@__PURE__*/ API.make(() => ({
1843
+ input: UserListQuotaAttachmentsRequest,
1844
+ output: UserListQuotaAttachmentsResponse,
1845
+ errors: [Forbidden],
1846
+ protocol: ForgejoProtocol,
1847
+ retry: Retry.Retry,
1848
+ }));
1849
+ /** List the packages affecting the authenticated user's quota */
1850
+ export const userListQuotaPackages = /*@__PURE__*/ API.make(() => ({
1851
+ input: UserListQuotaPackagesRequest,
1852
+ output: UserListQuotaPackagesResponse,
1853
+ errors: [Forbidden],
1854
+ protocol: ForgejoProtocol,
1855
+ retry: Retry.Retry,
1856
+ }));
1857
+ /** List the repos owned by the given user */
1858
+ export const userListRepos = /*@__PURE__*/ API.make(() => ({
1859
+ input: UserListReposRequest,
1860
+ output: UserListReposResponse,
1861
+ errors: [NotFound],
1862
+ protocol: ForgejoProtocol,
1863
+ retry: Retry.Retry,
1864
+ }));
1865
+ /** The repos that the given user has starred */
1866
+ export const userListStarred = /*@__PURE__*/ API.make(() => ({
1867
+ input: UserListStarredRequest,
1868
+ output: UserListStarredResponse,
1869
+ errors: [NotFound],
1870
+ protocol: ForgejoProtocol,
1871
+ retry: Retry.Retry,
1872
+ }));
1873
+ /** List the repositories watched by a user */
1874
+ export const userListSubscriptions = /*@__PURE__*/ API.make(() => ({
1875
+ input: UserListSubscriptionsRequest,
1876
+ output: UserListSubscriptionsResponse,
1877
+ errors: [NotFound],
1878
+ protocol: ForgejoProtocol,
1879
+ retry: Retry.Retry,
1880
+ }));
1881
+ /** List all the teams a user belongs to */
1882
+ export const userListTeams = /*@__PURE__*/ API.make(() => ({
1883
+ input: UserListTeamsRequest,
1884
+ output: UserListTeamsResponse,
1885
+ errors: [Forbidden],
1886
+ protocol: ForgejoProtocol,
1887
+ retry: Retry.Retry,
1888
+ }));
1889
+ /** Search for user's action jobs according filter conditions */
1890
+ export const userSearchRunJobs = /*@__PURE__*/ API.make(() => ({
1891
+ input: UserSearchRunJobsRequest,
1892
+ output: UserSearchRunJobsResponse,
1893
+ errors: [Forbidden],
1894
+ protocol: ForgejoProtocol,
1895
+ retry: Retry.Retry,
1896
+ }));
1897
+ /** Update avatar of the current user */
1898
+ export const userUpdateAvatar = /*@__PURE__*/ API.make(() => ({
1899
+ input: UserUpdateAvatarRequest,
1900
+ output: UserUpdateAvatarResponse,
1901
+ errors: [Forbidden],
1902
+ protocol: ForgejoProtocol,
1903
+ retry: Retry.Retry,
1904
+ }));
1905
+ /** Update an OAuth2 application, this includes regenerating the client secret */
1906
+ export const userUpdateOAuth2Application = /*@__PURE__*/ API.make(() => ({
1907
+ input: UserUpdateOAuth2ApplicationRequest,
1908
+ output: OAuth2Application,
1909
+ errors: [Forbidden, NotFound],
1910
+ protocol: ForgejoProtocol,
1911
+ retry: Retry.Retry,
1912
+ }));
1913
+ /** Verify a GPG key */
1914
+ export const userVerifyGPGKey = /*@__PURE__*/ API.make(() => ({
1915
+ input: UserVerifyGPGKeyRequest,
1916
+ output: GPGKey,
1917
+ errors: [Forbidden, NotFound, UnprocessableEntity],
1918
+ protocol: ForgejoProtocol,
1919
+ retry: Retry.Retry,
1920
+ }));
1921
+ //# sourceMappingURL=user.js.map