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