@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,4770 @@
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 Conflict_base: S.Class<Conflict, S.TaggedStruct<"Conflict", {
17
+ readonly code: any;
18
+ readonly message: any;
19
+ }>, import("effect/Cause").YieldableError> & (new (...args: any[]) => {
20
+ "@distilled.cloud/error/categories": {
21
+ ConflictError: true;
22
+ };
23
+ });
24
+ export declare class Conflict extends /*@__PURE__*/ Conflict_base {
25
+ }
26
+ declare const Forbidden_base: S.Class<Forbidden, S.TaggedStruct<"Forbidden", {
27
+ readonly code: any;
28
+ readonly message: any;
29
+ }>, import("effect/Cause").YieldableError> & (new (...args: any[]) => {
30
+ "@distilled.cloud/error/categories": {
31
+ AuthError: true;
32
+ };
33
+ });
34
+ export declare class Forbidden extends /*@__PURE__*/ Forbidden_base {
35
+ }
36
+ declare const Locked_base: S.Class<Locked, S.TaggedStruct<"Locked", {
37
+ readonly code: any;
38
+ readonly message: any;
39
+ }>, import("effect/Cause").YieldableError>;
40
+ export declare class Locked extends /*@__PURE__*/ Locked_base {
41
+ }
42
+ declare const NotFound_base: S.Class<NotFound, S.TaggedStruct<"NotFound", {
43
+ readonly code: any;
44
+ readonly message: any;
45
+ }>, import("effect/Cause").YieldableError> & (new (...args: any[]) => {
46
+ "@distilled.cloud/error/categories": {
47
+ BadRequestError: true;
48
+ };
49
+ });
50
+ export declare class NotFound extends /*@__PURE__*/ NotFound_base {
51
+ }
52
+ declare const UnprocessableEntity_base: S.Class<UnprocessableEntity, S.TaggedStruct<"UnprocessableEntity", {
53
+ readonly code: any;
54
+ readonly message: any;
55
+ }>, import("effect/Cause").YieldableError> & (new (...args: any[]) => {
56
+ "@distilled.cloud/error/categories": {
57
+ BadRequestError: true;
58
+ };
59
+ });
60
+ export declare class UnprocessableEntity extends /*@__PURE__*/ UnprocessableEntity_base {
61
+ }
62
+ export interface AcceptRepoTransferRequest {
63
+ /** owner of the repo to transfer */
64
+ owner: string;
65
+ /** name of the repo to transfer */
66
+ repo: string;
67
+ }
68
+ export declare const AcceptRepoTransferRequest: S.Schema<AcceptRepoTransferRequest>;
69
+ export interface AcceptRepoTransferResponse {
70
+ }
71
+ export declare const AcceptRepoTransferResponse: S.Schema<AcceptRepoTransferResponse>;
72
+ export interface ActionRunRequest {
73
+ /** owner of the repo */
74
+ owner: string;
75
+ /** name of the repo */
76
+ repo: string;
77
+ /** id of the action run */
78
+ run_id: number;
79
+ }
80
+ export declare const ActionRunRequest: S.Schema<ActionRunRequest>;
81
+ /** ExternalTracker represents settings for external tracker */
82
+ export interface ExternalTracker {
83
+ /** External Issue Tracker URL Format. Use the placeholders {user}, {repo} and {index} for the username, repository name and issue index. */
84
+ external_tracker_format?: string;
85
+ /** External Issue Tracker issue regular expression */
86
+ external_tracker_regexp_pattern?: string;
87
+ /** External Issue Tracker Number Format, either `numeric`, `alphanumeric`, or `regexp` */
88
+ external_tracker_style?: string;
89
+ /** URL of external issue tracker. */
90
+ external_tracker_url?: string;
91
+ }
92
+ export declare const ExternalTracker: S.Schema<ExternalTracker>;
93
+ /** ExternalWiki represents setting for external wiki */
94
+ export interface ExternalWiki {
95
+ /** URL of external wiki. */
96
+ external_wiki_url?: string;
97
+ }
98
+ export declare const ExternalWiki: S.Schema<ExternalWiki>;
99
+ /** InternalTracker represents settings for internal tracker */
100
+ export interface InternalTracker {
101
+ /** Let only contributors track time (Built-in issue tracker) */
102
+ allow_only_contributors_to_track_time?: boolean;
103
+ /** Enable dependencies for issues and pull requests (Built-in issue tracker) */
104
+ enable_issue_dependencies?: boolean;
105
+ /** Enable time tracking (Built-in issue tracker) */
106
+ enable_time_tracker?: boolean;
107
+ }
108
+ export declare const InternalTracker: S.Schema<InternalTracker>;
109
+ /** ObjectFormatName of the underlying git repository */
110
+ export type RepositoryObjectFormatName = "sha1" | "sha256";
111
+ export declare const RepositoryObjectFormatName: any;
112
+ /** User represents a user */
113
+ export interface User {
114
+ /** Is user active */
115
+ active?: boolean;
116
+ /** URL to the user's avatar */
117
+ avatar_url?: string;
118
+ created?: string;
119
+ /** the user's description */
120
+ description?: string;
121
+ email?: string;
122
+ /** user counts */
123
+ followers_count?: number;
124
+ following_count?: number;
125
+ /** the user's full name */
126
+ full_name?: string;
127
+ /** URL to the user's profile page */
128
+ html_url?: string;
129
+ /** the user's id */
130
+ id: number;
131
+ /** Is the user an administrator */
132
+ is_admin?: boolean;
133
+ /** User locale */
134
+ language?: string;
135
+ last_login?: string;
136
+ /** the user's location */
137
+ location?: string;
138
+ /** the user's username */
139
+ login: string;
140
+ /** the user's authentication sign-in name. */
141
+ login_name?: string;
142
+ /** Is user login prohibited */
143
+ prohibit_login?: boolean;
144
+ /** the user's pronouns */
145
+ pronouns?: string;
146
+ /** Is user restricted */
147
+ restricted?: boolean;
148
+ /** The ID of the user's Authentication Source */
149
+ source_id?: number;
150
+ starred_repos_count?: number;
151
+ /** User visibility level option: public, limited, private */
152
+ visibility?: string;
153
+ /** the user's website */
154
+ website?: string;
155
+ }
156
+ export declare const User: S.Schema<User>;
157
+ /** Permission represents a set of permissions */
158
+ export interface Permission {
159
+ admin?: boolean;
160
+ pull?: boolean;
161
+ push?: boolean;
162
+ }
163
+ export declare const Permission: S.Schema<Permission>;
164
+ /** Organization represents an organization */
165
+ export interface Organization {
166
+ avatar_url?: string;
167
+ created?: string;
168
+ description?: string;
169
+ email?: string;
170
+ full_name?: string;
171
+ id: number;
172
+ location?: string;
173
+ name?: string;
174
+ repo_admin_change_team_access?: boolean;
175
+ /** deprecated */
176
+ username: string;
177
+ visibility?: string;
178
+ website?: string;
179
+ }
180
+ export declare const Organization: S.Schema<Organization>;
181
+ export type TeamPermission = "none" | "read" | "write" | "admin" | "owner";
182
+ export declare const TeamPermission: any;
183
+ export type TeamUnitsList = Array<string>;
184
+ export declare const TeamUnitsList: S.Schema<TeamUnitsList>;
185
+ export type TeamUnitsMapMap = {
186
+ [key: string]: string | undefined;
187
+ };
188
+ export declare const TeamUnitsMapMap: S.Schema<TeamUnitsMapMap>;
189
+ /** Team represents a team in an organization */
190
+ export interface Team {
191
+ can_create_org_repo?: boolean;
192
+ description?: string;
193
+ id: number;
194
+ includes_all_repositories?: boolean;
195
+ name: string;
196
+ organization?: Organization;
197
+ permission?: TeamPermission;
198
+ units?: TeamUnitsList;
199
+ units_map?: TeamUnitsMapMap;
200
+ }
201
+ export declare const Team: S.Schema<Team>;
202
+ export type RepoTransferTeamsList = Array<Team>;
203
+ export declare const RepoTransferTeamsList: S.Schema<RepoTransferTeamsList>;
204
+ /** RepoTransfer represents a pending repo transfer */
205
+ export interface RepoTransfer {
206
+ doer?: User;
207
+ recipient?: User;
208
+ teams?: RepoTransferTeamsList;
209
+ }
210
+ export declare const RepoTransfer: S.Schema<RepoTransfer>;
211
+ export type RepositoryTopicsList = Array<string>;
212
+ export declare const RepositoryTopicsList: S.Schema<RepositoryTopicsList>;
213
+ /** Repository represents a repository */
214
+ export interface Repository {
215
+ allow_fast_forward_only_merge?: boolean;
216
+ allow_merge_commits?: boolean;
217
+ allow_rebase?: boolean;
218
+ allow_rebase_explicit?: boolean;
219
+ allow_rebase_update?: boolean;
220
+ allow_squash_merge?: boolean;
221
+ archived?: boolean;
222
+ archived_at?: string;
223
+ avatar_url?: string;
224
+ clone_url: string;
225
+ created_at: string;
226
+ default_allow_maintainer_edit?: boolean;
227
+ default_branch: string;
228
+ default_delete_branch_after_merge?: boolean;
229
+ default_merge_style?: string;
230
+ default_update_style?: string;
231
+ description?: string;
232
+ empty?: boolean;
233
+ external_tracker?: ExternalTracker;
234
+ external_wiki?: ExternalWiki;
235
+ fork?: boolean;
236
+ forks_count?: number;
237
+ full_name: string;
238
+ globally_editable_wiki?: boolean;
239
+ has_actions?: boolean;
240
+ has_issues?: boolean;
241
+ has_packages?: boolean;
242
+ has_projects?: boolean;
243
+ has_pull_requests?: boolean;
244
+ has_releases?: boolean;
245
+ /** is the wiki enabled */
246
+ has_wiki?: boolean;
247
+ /** have wiki pages ever been created */
248
+ has_wiki_contents?: boolean;
249
+ html_url: string;
250
+ id: number;
251
+ ignore_whitespace_conflicts?: boolean;
252
+ internal?: boolean;
253
+ internal_tracker?: InternalTracker;
254
+ language?: string;
255
+ languages_url?: string;
256
+ link?: string;
257
+ mirror?: boolean;
258
+ mirror_interval?: string;
259
+ mirror_updated?: string;
260
+ name: string;
261
+ /** ObjectFormatName of the underlying git repository */
262
+ object_format_name?: RepositoryObjectFormatName;
263
+ open_issues_count?: number;
264
+ open_pr_counter?: number;
265
+ original_url?: string;
266
+ owner: User;
267
+ parent?: Repository;
268
+ permissions?: Permission;
269
+ private?: boolean;
270
+ release_counter?: number;
271
+ repo_transfer?: RepoTransfer;
272
+ size?: number;
273
+ ssh_url: string;
274
+ stars_count?: number;
275
+ template?: boolean;
276
+ topics?: RepositoryTopicsList;
277
+ updated_at: string;
278
+ url?: string;
279
+ watchers_count?: number;
280
+ website?: string;
281
+ wiki_branch?: string;
282
+ wiki_clone_url?: string;
283
+ wiki_ssh_url?: string;
284
+ }
285
+ export declare const Repository: S.Schema<Repository>;
286
+ /** ActionRun represents an action run */
287
+ export interface ActionRun {
288
+ /** the cron id for the schedule trigger */
289
+ ScheduleID?: number;
290
+ /** who approved this action run */
291
+ approved_by?: number;
292
+ /** the commit sha the action run ran on */
293
+ commit_sha?: string;
294
+ /** when the action run was created */
295
+ created?: string;
296
+ duration?: number;
297
+ /** the webhook event that causes the workflow to run */
298
+ event?: string;
299
+ /** the payload of the webhook event that causes the workflow to run */
300
+ event_payload?: string;
301
+ /** the url of this action run */
302
+ html_url?: string;
303
+ /** the action run id */
304
+ id?: number;
305
+ /** a unique number for each run of a repository */
306
+ index_in_repo?: number;
307
+ /** If this is triggered by a PR from a forked repository or an untrusted user, we need to check if it is approved and limit permissions when running the workflow. */
308
+ is_fork_pull_request?: boolean;
309
+ /** has the commit/tag/… the action run ran on been deleted */
310
+ is_ref_deleted?: boolean;
311
+ /** may need approval if it's a fork pull request */
312
+ need_approval?: boolean;
313
+ /** the commit/tag/… the action run ran on */
314
+ prettyref?: string;
315
+ repository?: Repository;
316
+ /** when the action run was started */
317
+ started?: string;
318
+ /** the current status of this run */
319
+ status?: string;
320
+ /** when the action run was stopped */
321
+ stopped?: string;
322
+ /** the action run's title */
323
+ title?: string;
324
+ /** the trigger event defined in the `on` configuration of the triggered workflow */
325
+ trigger_event?: string;
326
+ trigger_user?: User;
327
+ /** when the action run was last updated */
328
+ updated?: string;
329
+ /** the name of workflow file */
330
+ workflow_id?: string;
331
+ }
332
+ export declare const ActionRun: S.Schema<ActionRun>;
333
+ export interface CancelActionRunRequest {
334
+ /** owner of the repo */
335
+ owner: string;
336
+ /** name of the repo */
337
+ repo: string;
338
+ /** ID of the workflow run */
339
+ run_id: number;
340
+ }
341
+ export declare const CancelActionRunRequest: S.Schema<CancelActionRunRequest>;
342
+ export interface CancelActionRunResponse {
343
+ }
344
+ export declare const CancelActionRunResponse: S.Schema<CancelActionRunResponse>;
345
+ export interface ConvertRepoRequest {
346
+ /** owner of the repo to convert */
347
+ owner: string;
348
+ /** name of the repo to convert */
349
+ repo: string;
350
+ }
351
+ export declare const ConvertRepoRequest: S.Schema<ConvertRepoRequest>;
352
+ /** ObjectFormatName of the underlying git repository */
353
+ export type CreateCurrentUserRepoRequestObjectFormatName = "sha1" | "sha256";
354
+ export declare const CreateCurrentUserRepoRequestObjectFormatName: any;
355
+ /** TrustModel of the repository */
356
+ export type CreateCurrentUserRepoRequestTrustModel = "default" | "collaborator" | "committer" | "collaboratorcommitter";
357
+ export declare const CreateCurrentUserRepoRequestTrustModel: any;
358
+ export interface CreateCurrentUserRepoRequest {
359
+ /** Whether the repository should be auto-initialized? */
360
+ auto_init?: boolean;
361
+ /** DefaultBranch of the repository (used when initializes and in template) */
362
+ default_branch?: string;
363
+ /** Description of the repository to create */
364
+ description?: string;
365
+ /** Gitignores to use, separated by commas */
366
+ gitignores?: string;
367
+ /** Label-Set to use */
368
+ issue_labels?: string;
369
+ /** License to use */
370
+ license?: string;
371
+ /** Name of the repository to create */
372
+ name: string;
373
+ /** ObjectFormatName of the underlying git repository */
374
+ object_format_name?: CreateCurrentUserRepoRequestObjectFormatName | (string & {});
375
+ /** Whether the repository is private */
376
+ private?: boolean;
377
+ /** Readme of the repository to create */
378
+ readme?: string;
379
+ /** Whether the repository is template */
380
+ template?: boolean;
381
+ /** TrustModel of the repository */
382
+ trust_model?: CreateCurrentUserRepoRequestTrustModel | (string & {});
383
+ }
384
+ export declare const CreateCurrentUserRepoRequest: S.Schema<CreateCurrentUserRepoRequest>;
385
+ export interface CreateForkRequest {
386
+ /** owner of the repo to fork */
387
+ owner: string;
388
+ /** name of the repo to fork */
389
+ repo: string;
390
+ /** name of the forked repository */
391
+ name?: string;
392
+ /** organization name, if forking into an organization */
393
+ organization?: string;
394
+ }
395
+ export declare const CreateForkRequest: S.Schema<CreateForkRequest>;
396
+ export interface CreateForkResponse {
397
+ }
398
+ export declare const CreateForkResponse: S.Schema<CreateForkResponse>;
399
+ export interface CreateRepoVariableRequest {
400
+ /** name of the owner */
401
+ owner: string;
402
+ /** name of the repository */
403
+ repo: string;
404
+ /** name of the variable */
405
+ variablename: string;
406
+ /** 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. */
407
+ value: string;
408
+ }
409
+ export declare const CreateRepoVariableRequest: S.Schema<CreateRepoVariableRequest>;
410
+ export interface CreateRepoVariableResponse {
411
+ }
412
+ export declare const CreateRepoVariableResponse: S.Schema<CreateRepoVariableResponse>;
413
+ export interface DeleteActionArtifactRequest {
414
+ /** owner of the repo */
415
+ owner: string;
416
+ /** name of the repo */
417
+ repo: string;
418
+ /** ID of the artifact */
419
+ artifact_id: number;
420
+ }
421
+ export declare const DeleteActionArtifactRequest: S.Schema<DeleteActionArtifactRequest>;
422
+ export interface DeleteActionArtifactResponse {
423
+ }
424
+ export declare const DeleteActionArtifactResponse: S.Schema<DeleteActionArtifactResponse>;
425
+ export interface DeleteActionRunRequest {
426
+ /** owner of the repo */
427
+ owner: string;
428
+ /** name of the repo */
429
+ repo: string;
430
+ /** id of the action run */
431
+ run_id: number;
432
+ }
433
+ export declare const DeleteActionRunRequest: S.Schema<DeleteActionRunRequest>;
434
+ export interface DeleteActionRunResponse {
435
+ }
436
+ export declare const DeleteActionRunResponse: S.Schema<DeleteActionRunResponse>;
437
+ export interface DeleteRepoRequest {
438
+ /** owner of the repo to delete */
439
+ owner: string;
440
+ /** name of the repo to delete */
441
+ repo: string;
442
+ }
443
+ export declare const DeleteRepoRequest: S.Schema<DeleteRepoRequest>;
444
+ export interface DeleteRepoResponse {
445
+ }
446
+ export declare const DeleteRepoResponse: S.Schema<DeleteRepoResponse>;
447
+ export interface DeleteRepoRunnerRequest {
448
+ /** owner of the repo */
449
+ owner: string;
450
+ /** name of the repo */
451
+ repo: string;
452
+ /** ID of the runner */
453
+ runner_id: string;
454
+ }
455
+ export declare const DeleteRepoRunnerRequest: S.Schema<DeleteRepoRunnerRequest>;
456
+ export interface DeleteRepoRunnerResponse {
457
+ }
458
+ export declare const DeleteRepoRunnerResponse: S.Schema<DeleteRepoRunnerResponse>;
459
+ export interface DeleteRepoSecretRequest {
460
+ /** owner of the repository */
461
+ owner: string;
462
+ /** name of the repository */
463
+ repo: string;
464
+ /** name of the secret */
465
+ secretname: string;
466
+ }
467
+ export declare const DeleteRepoSecretRequest: S.Schema<DeleteRepoSecretRequest>;
468
+ export interface DeleteRepoSecretResponse {
469
+ }
470
+ export declare const DeleteRepoSecretResponse: S.Schema<DeleteRepoSecretResponse>;
471
+ export interface DeleteRepoVariableRequest {
472
+ /** name of the owner */
473
+ owner: string;
474
+ /** name of the repository */
475
+ repo: string;
476
+ /** name of the variable */
477
+ variablename: string;
478
+ }
479
+ export declare const DeleteRepoVariableRequest: S.Schema<DeleteRepoVariableRequest>;
480
+ export interface DeleteRepoVariableResponse {
481
+ }
482
+ export declare const DeleteRepoVariableResponse: S.Schema<DeleteRepoVariableResponse>;
483
+ /** Input keys and values configured in the workflow file. */
484
+ export type DispatchWorkflowRequestInputsMap = {
485
+ [key: string]: string | undefined;
486
+ };
487
+ export declare const DispatchWorkflowRequestInputsMap: S.Schema<DispatchWorkflowRequestInputsMap>;
488
+ export interface DispatchWorkflowRequest {
489
+ /** owner of the repo */
490
+ owner: string;
491
+ /** name of the repo */
492
+ repo: string;
493
+ /** name of the workflow */
494
+ workflowfilename: string;
495
+ /** Input keys and values configured in the workflow file. */
496
+ inputs?: DispatchWorkflowRequestInputsMap;
497
+ /** Git reference for the workflow */
498
+ ref: string;
499
+ /** Flag to return the run info */
500
+ return_run_info?: boolean;
501
+ }
502
+ export declare const DispatchWorkflowRequest: S.Schema<DispatchWorkflowRequest>;
503
+ /** the jobs name */
504
+ export type DispatchWorkflowRunJobsList = Array<string>;
505
+ export declare const DispatchWorkflowRunJobsList: S.Schema<DispatchWorkflowRunJobsList>;
506
+ /** DispatchWorkflowRun represents a workflow run */
507
+ export interface DispatchWorkflowRun {
508
+ /** the workflow run id */
509
+ id?: number;
510
+ /** the jobs name */
511
+ jobs?: DispatchWorkflowRunJobsList;
512
+ /** a unique number for each run of a repository */
513
+ run_number?: number;
514
+ }
515
+ export declare const DispatchWorkflowRun: S.Schema<DispatchWorkflowRun>;
516
+ export interface DownloadActionArtifactRequest {
517
+ /** owner of the repo */
518
+ owner: string;
519
+ /** name of the repo */
520
+ repo: string;
521
+ /** ID of the artifact */
522
+ artifact_id: number;
523
+ }
524
+ export declare const DownloadActionArtifactRequest: S.Schema<DownloadActionArtifactRequest>;
525
+ export interface DownloadActionArtifactResponse {
526
+ }
527
+ export declare const DownloadActionArtifactResponse: S.Schema<DownloadActionArtifactResponse>;
528
+ export interface EditRepoRequest {
529
+ /** owner of the repo to edit */
530
+ owner: string;
531
+ /** name of the repo to edit */
532
+ repo: string;
533
+ /** either `true` to allow fast-forward-only merging pull requests, or `false` to prevent fast-forward-only merging. */
534
+ allow_fast_forward_only_merge?: boolean;
535
+ /** either `true` to allow mark pr as merged manually, or `false` to prevent it. */
536
+ allow_manual_merge?: boolean;
537
+ /** either `true` to allow merging pull requests with a merge commit, or `false` to prevent merging pull requests with merge commits. */
538
+ allow_merge_commits?: boolean;
539
+ /** either `true` to allow rebase-merging pull requests, or `false` to prevent rebase-merging. */
540
+ allow_rebase?: boolean;
541
+ /** either `true` to allow rebase with explicit merge commits (--no-ff), or `false` to prevent rebase with explicit merge commits. */
542
+ allow_rebase_explicit?: boolean;
543
+ /** either `true` to allow updating pull request branch by rebase, or `false` to prevent it. */
544
+ allow_rebase_update?: boolean;
545
+ /** either `true` to allow squash-merging pull requests, or `false` to prevent squash-merging. */
546
+ allow_squash_merge?: boolean;
547
+ /** set to `true` to archive this repository. */
548
+ archived?: boolean;
549
+ /** either `true` to enable AutodetectManualMerge, or `false` to prevent it. Note: In some special cases, misjudgments can occur. */
550
+ autodetect_manual_merge?: boolean;
551
+ /** set to `true` to allow edits from maintainers by default */
552
+ default_allow_maintainer_edit?: boolean;
553
+ /** sets the default branch for this repository. */
554
+ default_branch?: string;
555
+ /** set to `true` to delete pr branch after merge by default */
556
+ default_delete_branch_after_merge?: boolean;
557
+ /** set to a merge style to be used by this repository: "merge", "rebase", "rebase-merge", "squash", "fast-forward-only", "manually-merged", or "rebase-update-only". */
558
+ default_merge_style?: string;
559
+ /** set to a update style to be used by this repository: "rebase" or "merge" */
560
+ default_update_style?: string;
561
+ /** a short description of the repository. */
562
+ description?: string;
563
+ /** enable prune - remove obsolete remote-tracking references when mirroring */
564
+ enable_prune?: boolean;
565
+ external_tracker?: ExternalTracker;
566
+ external_wiki?: ExternalWiki;
567
+ /** set the globally editable state of the wiki */
568
+ globally_editable_wiki?: boolean;
569
+ /** either `true` to enable actions unit, or `false` to disable them. */
570
+ has_actions?: boolean;
571
+ /** either `true` to enable issues for this repository or `false` to disable them. */
572
+ has_issues?: boolean;
573
+ /** either `true` to enable packages unit, or `false` to disable them. */
574
+ has_packages?: boolean;
575
+ /** either `true` to enable project unit, or `false` to disable them. */
576
+ has_projects?: boolean;
577
+ /** either `true` to allow pull requests, or `false` to prevent pull request. */
578
+ has_pull_requests?: boolean;
579
+ /** either `true` to enable releases unit, or `false` to disable them. */
580
+ has_releases?: boolean;
581
+ /** either `true` to enable the wiki for this repository or `false` to disable it. */
582
+ has_wiki?: boolean;
583
+ /** either `true` to ignore whitespace for conflicts, or `false` to not ignore whitespace. */
584
+ ignore_whitespace_conflicts?: boolean;
585
+ internal_tracker?: InternalTracker;
586
+ /** set to a string like `8h30m0s` to set the mirror interval time */
587
+ mirror_interval?: string;
588
+ /** name of the repository */
589
+ name?: string;
590
+ /** either `true` to make the repository private or `false` to make it public. Note: you will get a 422 error if the organization restricts changing repository visibility to organization owners and a non-owner tries to change the value of private. */
591
+ private?: boolean;
592
+ /** either `true` to make this repository a template or `false` to make it a normal repository */
593
+ template?: boolean;
594
+ /** a URL with more information about the repository. */
595
+ website?: string;
596
+ /** sets the branch used for this repository's wiki. */
597
+ wiki_branch?: string;
598
+ }
599
+ export declare const EditRepoRequest: S.Schema<EditRepoRequest>;
600
+ export interface GenerateRepoRequest {
601
+ /** name of the template repository owner */
602
+ template_owner: string;
603
+ /** name of the template repository */
604
+ template_repo: string;
605
+ /** include avatar of the template repo */
606
+ avatar?: boolean;
607
+ /** Default branch of the new repository */
608
+ default_branch?: string;
609
+ /** Description of the repository to create */
610
+ description?: string;
611
+ /** include git content of default branch in template repo */
612
+ git_content?: boolean;
613
+ /** include git hooks in template repo */
614
+ git_hooks?: boolean;
615
+ /** include labels in template repo */
616
+ labels?: boolean;
617
+ /** Name of the repository to create */
618
+ name: string;
619
+ /** The organization or person who will own the new repository */
620
+ owner: string;
621
+ /** Whether the repository is private */
622
+ private?: boolean;
623
+ /** include protected branches in template repo */
624
+ protected_branch?: boolean;
625
+ /** include topics in template repo */
626
+ topics?: boolean;
627
+ /** include webhooks in template repo */
628
+ webhooks?: boolean;
629
+ }
630
+ export declare const GenerateRepoRequest: S.Schema<GenerateRepoRequest>;
631
+ export interface GetActionArtifactRequest {
632
+ /** owner of the repo */
633
+ owner: string;
634
+ /** name of the repo */
635
+ repo: string;
636
+ /** ID of the artifact */
637
+ artifact_id: number;
638
+ }
639
+ export declare const GetActionArtifactRequest: S.Schema<GetActionArtifactRequest>;
640
+ /** ActionArtifact represents an artifact of a workflow run */
641
+ export interface ActionArtifact {
642
+ /** the URL to download the artifact zip archive */
643
+ archive_download_url?: string;
644
+ created_at?: string;
645
+ /** whether the artifact has expired */
646
+ expired?: boolean;
647
+ expires_at?: string;
648
+ /** the artifact's ID */
649
+ id?: number;
650
+ /** the artifact's name */
651
+ name?: string;
652
+ /** the ID of the workflow run that produced this artifact */
653
+ run_id?: number;
654
+ /** the total size of the artifact in bytes */
655
+ size_in_bytes?: number;
656
+ updated_at?: string;
657
+ }
658
+ export declare const ActionArtifact: S.Schema<ActionArtifact>;
659
+ export interface GetAnnotatedTagRequest {
660
+ /** owner of the repo */
661
+ owner: string;
662
+ /** name of the repo */
663
+ repo: string;
664
+ /** sha of the tag. The Git tags API only supports annotated tag objects, not lightweight tags. */
665
+ sha: string;
666
+ }
667
+ export declare const GetAnnotatedTagRequest: S.Schema<GetAnnotatedTagRequest>;
668
+ /** TagArchiveDownloadCount counts how many times a archive was downloaded */
669
+ export interface TagArchiveDownloadCount {
670
+ tar_gz?: number;
671
+ zip?: number;
672
+ }
673
+ export declare const TagArchiveDownloadCount: S.Schema<TagArchiveDownloadCount>;
674
+ /** AnnotatedTagObject contains meta information of the tag object */
675
+ export interface AnnotatedTagObject {
676
+ sha?: string;
677
+ type?: string;
678
+ url?: string;
679
+ }
680
+ export declare const AnnotatedTagObject: S.Schema<AnnotatedTagObject>;
681
+ export interface CommitUser {
682
+ date?: string;
683
+ email?: string;
684
+ name?: string;
685
+ }
686
+ export declare const CommitUser: S.Schema<CommitUser>;
687
+ /** PayloadUser represents the author or committer of a commit */
688
+ export interface PayloadUser {
689
+ email?: string;
690
+ /** Full name of the commit author */
691
+ name?: string;
692
+ username?: string;
693
+ }
694
+ export declare const PayloadUser: S.Schema<PayloadUser>;
695
+ /** PayloadCommitVerification represents the GPG verification of a commit */
696
+ export interface PayloadCommitVerification {
697
+ payload?: string;
698
+ reason?: string;
699
+ signature?: string;
700
+ signer?: PayloadUser;
701
+ verified?: boolean;
702
+ }
703
+ export declare const PayloadCommitVerification: S.Schema<PayloadCommitVerification>;
704
+ /** AnnotatedTag represents an annotated tag */
705
+ export interface AnnotatedTag {
706
+ archive_download_count?: TagArchiveDownloadCount;
707
+ message?: string;
708
+ object?: AnnotatedTagObject;
709
+ sha?: string;
710
+ tag?: string;
711
+ tagger?: CommitUser;
712
+ url?: string;
713
+ verification?: PayloadCommitVerification;
714
+ }
715
+ export declare const AnnotatedTag: S.Schema<AnnotatedTag>;
716
+ export interface GetBlobRequest {
717
+ /** owner of the repo */
718
+ owner: string;
719
+ /** name of the repo */
720
+ repo: string;
721
+ /** sha of the blob to retrieve */
722
+ sha: string;
723
+ }
724
+ export declare const GetBlobRequest: S.Schema<GetBlobRequest>;
725
+ /** GitBlob represents a git blob */
726
+ export interface GitBlob {
727
+ content?: string;
728
+ encoding?: string;
729
+ sha?: string;
730
+ size?: number;
731
+ url?: string;
732
+ }
733
+ export declare const GitBlob: S.Schema<GitBlob>;
734
+ export interface GetBlobsRequest {
735
+ /** owner of the repo */
736
+ owner: string;
737
+ /** name of the repo */
738
+ repo: string;
739
+ /** a comma separated list of blob-sha (mind the overall URL-length limit of ~2,083 chars) */
740
+ shas: string;
741
+ }
742
+ export declare const GetBlobsRequest: S.Schema<GetBlobsRequest>;
743
+ export type GetBlobsResponseBodyList = Array<GitBlob>;
744
+ export declare const GetBlobsResponseBodyList: S.Schema<GetBlobsResponseBodyList>;
745
+ export type GetBlobsResponse = GetBlobsResponseBodyList;
746
+ export declare const GetBlobsResponse: S.Schema<GetBlobsResponse>;
747
+ export interface GetRepoRequest {
748
+ /** owner of the repo */
749
+ owner: string;
750
+ /** name of the repo */
751
+ repo: string;
752
+ }
753
+ export declare const GetRepoRequest: S.Schema<GetRepoRequest>;
754
+ export interface GetRepoPermissionsRequest {
755
+ /** owner of the repo */
756
+ owner: string;
757
+ /** name of the repo */
758
+ repo: string;
759
+ /** username of the collaborator */
760
+ collaborator: string;
761
+ }
762
+ export declare const GetRepoPermissionsRequest: S.Schema<GetRepoPermissionsRequest>;
763
+ /** RepoCollaboratorPermission to get repository permission for a collaborator */
764
+ export interface RepoCollaboratorPermission {
765
+ permission?: string;
766
+ role_name?: string;
767
+ user?: User;
768
+ }
769
+ export declare const RepoCollaboratorPermission: S.Schema<RepoCollaboratorPermission>;
770
+ export interface GetRepoRunnerRequest {
771
+ /** owner of the repo */
772
+ owner: string;
773
+ /** name of the repo */
774
+ repo: string;
775
+ /** ID of the runner */
776
+ runner_id: string;
777
+ }
778
+ export declare const GetRepoRunnerRequest: S.Schema<GetRepoRunnerRequest>;
779
+ /** Labels is a list of labels attached to this runner. */
780
+ export type ActionRunnerLabelsList = Array<string>;
781
+ export declare const ActionRunnerLabelsList: S.Schema<ActionRunnerLabelsList>;
782
+ /** Status indicates whether this runner is offline, or active, for example. */
783
+ export type ActionRunnerStatus = "offline" | "idle" | "active";
784
+ export declare const ActionRunnerStatus: any;
785
+ /** ActionRunner represents a runner */
786
+ export interface ActionRunner {
787
+ /** Description provides optional details about this runner. */
788
+ description?: string;
789
+ /** Indicates if runner is ephemeral runner */
790
+ ephemeral?: boolean;
791
+ /** ID uniquely identifies this runner. */
792
+ id?: number;
793
+ /** Labels is a list of labels attached to this runner. */
794
+ labels?: ActionRunnerLabelsList;
795
+ /** Name of the runner; not unique. */
796
+ name?: string;
797
+ /** OwnerID is the identifier of the user or organization this runner belongs to. O if the runner is owned by a repository. */
798
+ owner_id?: number;
799
+ /** RepoID is the identifier of the repository this runner belongs to. 0 if the runner belongs to a user or organization. */
800
+ repo_id?: number;
801
+ /** Status indicates whether this runner is offline, or active, for example. */
802
+ status?: ActionRunnerStatus;
803
+ /** UUID uniquely identifies this runner. */
804
+ uuid?: string;
805
+ /** Version is the self-reported version string of Forgejo Runner. */
806
+ version?: string;
807
+ }
808
+ export declare const ActionRunner: S.Schema<ActionRunner>;
809
+ export interface GetRepoRunnersRequest {
810
+ /** owner of the repo */
811
+ owner: string;
812
+ /** name of the repo */
813
+ repo: string;
814
+ /** whether to include all visible runners (true) or only those that are directly owned by the repository (false) */
815
+ visible?: boolean;
816
+ /** page number of results to return (1-based) */
817
+ page?: number;
818
+ /** page size of results */
819
+ limit?: number;
820
+ }
821
+ export declare const GetRepoRunnersRequest: S.Schema<GetRepoRunnersRequest>;
822
+ export type GetRepoRunnersResponseBodyList = Array<ActionRunner>;
823
+ export declare const GetRepoRunnersResponseBodyList: S.Schema<GetRepoRunnersResponseBodyList>;
824
+ export type GetRepoRunnersResponse = GetRepoRunnersResponseBodyList;
825
+ export declare const GetRepoRunnersResponse: S.Schema<GetRepoRunnersResponse>;
826
+ export interface GetRepoVariableRequest {
827
+ /** name of the owner */
828
+ owner: string;
829
+ /** name of the repository */
830
+ repo: string;
831
+ /** name of the variable */
832
+ variablename: string;
833
+ }
834
+ export declare const GetRepoVariableRequest: S.Schema<GetRepoVariableRequest>;
835
+ /** ActionVariable return value of the query API */
836
+ export interface ActionVariable {
837
+ /** the value of the variable */
838
+ data: string;
839
+ /** the name of the variable */
840
+ name: string;
841
+ /** the owner to which the variable belongs */
842
+ owner_id?: number;
843
+ /** the repository to which the variable belongs */
844
+ repo_id?: number;
845
+ }
846
+ export declare const ActionVariable: S.Schema<ActionVariable>;
847
+ export interface GetRepoVariablesListRequest {
848
+ /** name of the owner */
849
+ owner: string;
850
+ /** name of the repository */
851
+ repo: string;
852
+ /** page number of results to return (1-based) */
853
+ page?: number;
854
+ /** page size of results */
855
+ limit?: number;
856
+ }
857
+ export declare const GetRepoVariablesListRequest: S.Schema<GetRepoVariablesListRequest>;
858
+ export type GetRepoVariablesListResponseBodyList = Array<ActionVariable>;
859
+ export declare const GetRepoVariablesListResponseBodyList: S.Schema<GetRepoVariablesListResponseBodyList>;
860
+ export type GetRepoVariablesListResponse = GetRepoVariablesListResponseBodyList;
861
+ export declare const GetRepoVariablesListResponse: S.Schema<GetRepoVariablesListResponse>;
862
+ export interface GetTreeRequest {
863
+ /** owner of the repo */
864
+ owner: string;
865
+ /** name of the repo */
866
+ repo: string;
867
+ /** sha of the commit */
868
+ sha: string;
869
+ /** show all directories and files */
870
+ recursive?: boolean;
871
+ /** page number; the 'truncated' field in the response will be true if there are still more items after this page, false if the last page */
872
+ page?: number;
873
+ /** number of items per page */
874
+ per_page?: number;
875
+ }
876
+ export declare const GetTreeRequest: S.Schema<GetTreeRequest>;
877
+ /** GitEntry represents a git tree */
878
+ export interface GitEntry {
879
+ mode?: string;
880
+ path?: string;
881
+ sha?: string;
882
+ size?: number;
883
+ type?: string;
884
+ url?: string;
885
+ }
886
+ export declare const GitEntry: S.Schema<GitEntry>;
887
+ export type GitTreeResponseTreeList = Array<GitEntry>;
888
+ export declare const GitTreeResponseTreeList: S.Schema<GitTreeResponseTreeList>;
889
+ /** GitTreeResponse returns a git tree */
890
+ export interface GitTreeResponse {
891
+ page?: number;
892
+ sha?: string;
893
+ total_count?: number;
894
+ tree?: GitTreeResponseTreeList;
895
+ truncated?: boolean;
896
+ url?: string;
897
+ }
898
+ export declare const GitTreeResponse: S.Schema<GitTreeResponse>;
899
+ export interface ListActionArtifactsRequest {
900
+ /** owner of the repo */
901
+ owner: string;
902
+ /** name of the repo */
903
+ repo: string;
904
+ /** filter by artifact name */
905
+ name?: string;
906
+ /** page number of results to return (1-based) */
907
+ page?: number;
908
+ /** page size of results, default maximum page size is 50 */
909
+ limit?: number;
910
+ }
911
+ export declare const ListActionArtifactsRequest: S.Schema<ListActionArtifactsRequest>;
912
+ export type ListActionArtifactsResponseBodyList = Array<ActionArtifact>;
913
+ export declare const ListActionArtifactsResponseBodyList: S.Schema<ListActionArtifactsResponseBodyList>;
914
+ export type ListActionArtifactsResponse = ListActionArtifactsResponseBodyList;
915
+ export declare const ListActionArtifactsResponse: S.Schema<ListActionArtifactsResponse>;
916
+ export interface ListActionRunArtifactsRequest {
917
+ /** owner of the repo */
918
+ owner: string;
919
+ /** name of the repo */
920
+ repo: string;
921
+ /** ID of the workflow run */
922
+ run_id: number;
923
+ /** filter by artifact name */
924
+ name?: string;
925
+ /** page number of results to return (1-based) */
926
+ page?: number;
927
+ /** page size of results, default maximum page size is 50 */
928
+ limit?: number;
929
+ }
930
+ export declare const ListActionRunArtifactsRequest: S.Schema<ListActionRunArtifactsRequest>;
931
+ export type ListActionRunArtifactsResponseBodyList = Array<ActionArtifact>;
932
+ export declare const ListActionRunArtifactsResponseBodyList: S.Schema<ListActionRunArtifactsResponseBodyList>;
933
+ export type ListActionRunArtifactsResponse = ListActionRunArtifactsResponseBodyList;
934
+ export declare const ListActionRunArtifactsResponse: S.Schema<ListActionRunArtifactsResponse>;
935
+ export interface ListActionRunJobsRequest {
936
+ /** owner of the repo */
937
+ owner: string;
938
+ /** name of the repo */
939
+ repo: string;
940
+ /** ID of the workflow run */
941
+ run_id: number;
942
+ }
943
+ export declare const ListActionRunJobsRequest: S.Schema<ListActionRunJobsRequest>;
944
+ /** the action run job needed ids */
945
+ export type ActionRunJobNeedsList = Array<string>;
946
+ export declare const ActionRunJobNeedsList: S.Schema<ActionRunJobNeedsList>;
947
+ /** the action run job labels to run on */
948
+ export type ActionRunJobRunsOnList = Array<string>;
949
+ export declare const ActionRunJobRunsOnList: S.Schema<ActionRunJobRunsOnList>;
950
+ /** ActionRunJob represents a job of a run */
951
+ export interface ActionRunJob {
952
+ /** How many times the job has been attempted including the current attempt. */
953
+ attempt?: number;
954
+ /** Opaque identifier that uniquely identifies a single attempt of a job. */
955
+ handle?: string;
956
+ /** Identifier of this job. */
957
+ id?: number;
958
+ /** the action run job name */
959
+ name?: string;
960
+ /** the action run job needed ids */
961
+ needs?: ActionRunJobNeedsList;
962
+ /** the owner id */
963
+ owner_id?: number;
964
+ /** the repository id */
965
+ repo_id?: number;
966
+ /** Identifier of the workflow run this job belongs to. */
967
+ run_id?: number;
968
+ /** the action run job labels to run on */
969
+ runs_on?: ActionRunJobRunsOnList;
970
+ /** the action run job status */
971
+ status?: string;
972
+ /** the action run job latest task id */
973
+ task_id?: number;
974
+ }
975
+ export declare const ActionRunJob: S.Schema<ActionRunJob>;
976
+ export type ListActionRunJobsResponseBodyList = Array<ActionRunJob>;
977
+ export declare const ListActionRunJobsResponseBodyList: S.Schema<ListActionRunJobsResponseBodyList>;
978
+ export type ListActionRunJobsResponse = ListActionRunJobsResponseBodyList;
979
+ export declare const ListActionRunJobsResponse: S.Schema<ListActionRunJobsResponse>;
980
+ export type ListActionRunsRequestEventList = Array<string>;
981
+ export declare const ListActionRunsRequestEventList: S.Schema<ListActionRunsRequestEventList>;
982
+ export type ListActionRunsRequestStatusItem = "unknown" | "waiting" | "running" | "success" | "failure" | "cancelled" | "skipped" | "blocked";
983
+ export declare const ListActionRunsRequestStatusItem: any;
984
+ export type ListActionRunsRequestStatusList = Array<ListActionRunsRequestStatusItem | (string & {})>;
985
+ export declare const ListActionRunsRequestStatusList: S.Schema<ListActionRunsRequestStatusList>;
986
+ export interface ListActionRunsRequest {
987
+ /** owner of the repo */
988
+ owner: string;
989
+ /** name of the repo */
990
+ repo: string;
991
+ /** page number of results to return (1-based) */
992
+ page?: number;
993
+ /** page size of results, default maximum page size is 50 */
994
+ limit?: number;
995
+ /** Returns workflow run triggered by the specified events. For example, `push`, `pull_request` or `workflow_dispatch`. */
996
+ event?: ListActionRunsRequestEventList;
997
+ /** Returns workflow runs with the check run status or conclusion that is specified. For example, a conclusion can be success or a status can be in_progress. Only Forgejo Actions can set a status of waiting, pending, or requested. */
998
+ status?: ListActionRunsRequestStatusList;
999
+ /** Returns the workflow run associated with the run number. */
1000
+ run_number?: number;
1001
+ /** Only returns workflow runs that are associated with the specified head_sha. */
1002
+ head_sha?: string;
1003
+ /** Only return workflow runs that involve the given Git reference, for example, `refs/heads/main`. */
1004
+ ref?: string;
1005
+ /** Only return workflow runs that involve the given workflow ID. */
1006
+ workflow_id?: string;
1007
+ }
1008
+ export declare const ListActionRunsRequest: S.Schema<ListActionRunsRequest>;
1009
+ export type ListActionRunResponseWorkflowRunsList = Array<ActionRun>;
1010
+ export declare const ListActionRunResponseWorkflowRunsList: S.Schema<ListActionRunResponseWorkflowRunsList>;
1011
+ /** ListActionRunResponse return a list of ActionRun */
1012
+ export interface ListActionRunResponse {
1013
+ total_count?: number;
1014
+ workflow_runs?: ListActionRunResponseWorkflowRunsList;
1015
+ }
1016
+ export declare const ListActionRunResponse: S.Schema<ListActionRunResponse>;
1017
+ export type ListActionTasksRequestStatusItem = "unknown" | "waiting" | "running" | "success" | "failure" | "cancelled" | "skipped" | "blocked";
1018
+ export declare const ListActionTasksRequestStatusItem: any;
1019
+ export type ListActionTasksRequestStatusList = Array<ListActionTasksRequestStatusItem | (string & {})>;
1020
+ export declare const ListActionTasksRequestStatusList: S.Schema<ListActionTasksRequestStatusList>;
1021
+ export interface ListActionTasksRequest {
1022
+ /** owner of the repo */
1023
+ owner: string;
1024
+ /** name of the repo */
1025
+ repo: string;
1026
+ /** page number of results to return (1-based) */
1027
+ page?: number;
1028
+ /** page size of results, default maximum page size is 50 */
1029
+ limit?: number;
1030
+ /** Returns workflow tasks with the check run status or conclusion that is specified. For example, a conclusion can be success or a status can be in_progress. */
1031
+ status?: ListActionTasksRequestStatusList;
1032
+ }
1033
+ export declare const ListActionTasksRequest: S.Schema<ListActionTasksRequest>;
1034
+ /** ActionTask represents a ActionTask */
1035
+ export interface ActionTask {
1036
+ created_at?: string;
1037
+ display_title?: string;
1038
+ event?: string;
1039
+ head_branch?: string;
1040
+ head_sha?: string;
1041
+ id?: number;
1042
+ name?: string;
1043
+ run_number?: number;
1044
+ run_started_at?: string;
1045
+ status?: string;
1046
+ updated_at?: string;
1047
+ url?: string;
1048
+ workflow_id?: string;
1049
+ }
1050
+ export declare const ActionTask: S.Schema<ActionTask>;
1051
+ export type ActionTaskResponseWorkflowRunsList = Array<ActionTask>;
1052
+ export declare const ActionTaskResponseWorkflowRunsList: S.Schema<ActionTaskResponseWorkflowRunsList>;
1053
+ /** ActionTaskResponse returns a ActionTask */
1054
+ export interface ActionTaskResponse {
1055
+ total_count?: number;
1056
+ workflow_runs?: ActionTaskResponseWorkflowRunsList;
1057
+ }
1058
+ export declare const ActionTaskResponse: S.Schema<ActionTaskResponse>;
1059
+ export interface ListForksRequest {
1060
+ /** owner of the repo */
1061
+ owner: string;
1062
+ /** name of the repo */
1063
+ repo: string;
1064
+ /** page number of results to return (1-based) */
1065
+ page?: number;
1066
+ /** page size of results */
1067
+ limit?: number;
1068
+ }
1069
+ export declare const ListForksRequest: S.Schema<ListForksRequest>;
1070
+ export type ListForksResponseBodyList = Array<Repository>;
1071
+ export declare const ListForksResponseBodyList: S.Schema<ListForksResponseBodyList>;
1072
+ export type ListForksResponse = ListForksResponseBodyList;
1073
+ export declare const ListForksResponse: S.Schema<ListForksResponse>;
1074
+ export type MigrateRepoRequestService = "git" | "github" | "gitea" | "gitlab" | "gogs" | "onedev" | "gitbucket" | "codebase" | "forgejo" | "pagure";
1075
+ export declare const MigrateRepoRequestService: any;
1076
+ export interface MigrateRepoRequest {
1077
+ auth_password?: string | Redacted.Redacted<string>;
1078
+ auth_token?: string;
1079
+ auth_username?: string;
1080
+ clone_addr: string;
1081
+ description?: string;
1082
+ issues?: boolean;
1083
+ labels?: boolean;
1084
+ lfs?: boolean;
1085
+ lfs_endpoint?: string;
1086
+ milestones?: boolean;
1087
+ mirror?: boolean;
1088
+ mirror_interval?: string;
1089
+ private?: boolean;
1090
+ pull_requests?: boolean;
1091
+ releases?: boolean;
1092
+ repo_name: string;
1093
+ /** Name of User or Organisation who will own Repo after migration */
1094
+ repo_owner?: string;
1095
+ service?: MigrateRepoRequestService | (string & {});
1096
+ /** deprecated (only for backwards compatibility) */
1097
+ uid?: number;
1098
+ wiki?: boolean;
1099
+ }
1100
+ export declare const MigrateRepoRequest: S.Schema<MigrateRepoRequest>;
1101
+ export interface RegisterRepoRunnerRequest {
1102
+ /** owner of the repo */
1103
+ owner: string;
1104
+ /** name of the repo */
1105
+ repo: string;
1106
+ /** Description of the runner to register. */
1107
+ description?: string;
1108
+ /** Register as ephemeral runner https://forgejo.org/docs/latest/admin/actions/security/#ephemeral-runner */
1109
+ ephemeral?: boolean;
1110
+ /** Name of the runner to register. The name of the runner does not have to be unique. */
1111
+ name: string;
1112
+ }
1113
+ export declare const RegisterRepoRunnerRequest: S.Schema<RegisterRepoRunnerRequest>;
1114
+ export interface RegisterRunnerResponse {
1115
+ id?: number;
1116
+ token?: string;
1117
+ uuid?: string;
1118
+ }
1119
+ export declare const RegisterRunnerResponse: S.Schema<RegisterRunnerResponse>;
1120
+ export interface RejectRepoTransferRequest {
1121
+ /** owner of the repo to transfer */
1122
+ owner: string;
1123
+ /** name of the repo to transfer */
1124
+ repo: string;
1125
+ }
1126
+ export declare const RejectRepoTransferRequest: S.Schema<RejectRepoTransferRequest>;
1127
+ export type RepoAddCollaboratorRequestPermission = "read" | "write" | "admin";
1128
+ export declare const RepoAddCollaboratorRequestPermission: any;
1129
+ export interface RepoAddCollaboratorRequest {
1130
+ /** owner of the repo */
1131
+ owner: string;
1132
+ /** name of the repo */
1133
+ repo: string;
1134
+ /** username of the collaborator to add */
1135
+ collaborator: string;
1136
+ permission?: RepoAddCollaboratorRequestPermission | (string & {});
1137
+ }
1138
+ export declare const RepoAddCollaboratorRequest: S.Schema<RepoAddCollaboratorRequest>;
1139
+ export interface RepoAddCollaboratorResponse {
1140
+ }
1141
+ export declare const RepoAddCollaboratorResponse: S.Schema<RepoAddCollaboratorResponse>;
1142
+ export interface RepoAddFlagRequest {
1143
+ /** owner of the repo */
1144
+ owner: string;
1145
+ /** name of the repo */
1146
+ repo: string;
1147
+ /** name of the flag */
1148
+ flag: string;
1149
+ }
1150
+ export declare const RepoAddFlagRequest: S.Schema<RepoAddFlagRequest>;
1151
+ export interface RepoAddFlagResponse {
1152
+ }
1153
+ export declare const RepoAddFlagResponse: S.Schema<RepoAddFlagResponse>;
1154
+ export interface RepoAddPushMirrorRequest {
1155
+ /** owner of the repo */
1156
+ owner: string;
1157
+ /** name of the repo */
1158
+ repo: string;
1159
+ branch_filter?: string;
1160
+ interval?: string;
1161
+ remote_address?: string;
1162
+ remote_password?: string | Redacted.Redacted<string>;
1163
+ remote_username?: string;
1164
+ sync_on_commit?: boolean;
1165
+ use_ssh?: boolean;
1166
+ }
1167
+ export declare const RepoAddPushMirrorRequest: S.Schema<RepoAddPushMirrorRequest>;
1168
+ /** PushMirror represents information of a push mirror */
1169
+ export interface PushMirror {
1170
+ branch_filter?: string;
1171
+ created?: string;
1172
+ interval?: string;
1173
+ last_error?: string;
1174
+ last_update?: string;
1175
+ public_key?: string;
1176
+ remote_address?: string;
1177
+ remote_name?: string;
1178
+ repo_name?: string;
1179
+ sync_on_commit?: boolean;
1180
+ }
1181
+ export declare const PushMirror: S.Schema<PushMirror>;
1182
+ export interface RepoAddTeamRequest {
1183
+ /** owner of the repo */
1184
+ owner: string;
1185
+ /** name of the repo */
1186
+ repo: string;
1187
+ /** team name */
1188
+ team: string;
1189
+ }
1190
+ export declare const RepoAddTeamRequest: S.Schema<RepoAddTeamRequest>;
1191
+ export interface RepoAddTeamResponse {
1192
+ }
1193
+ export declare const RepoAddTeamResponse: S.Schema<RepoAddTeamResponse>;
1194
+ export interface RepoAddTopicRequest {
1195
+ /** owner of the repo */
1196
+ owner: string;
1197
+ /** name of the repo */
1198
+ repo: string;
1199
+ /** name of the topic to add */
1200
+ topic: string;
1201
+ }
1202
+ export declare const RepoAddTopicRequest: S.Schema<RepoAddTopicRequest>;
1203
+ export interface RepoAddTopicResponse {
1204
+ }
1205
+ export declare const RepoAddTopicResponse: S.Schema<RepoAddTopicResponse>;
1206
+ /** Identity for a person's identity like an author or committer */
1207
+ export interface Identity {
1208
+ email?: string;
1209
+ name?: string;
1210
+ }
1211
+ export declare const Identity: S.Schema<Identity>;
1212
+ /** CommitDateOptions store dates for GIT_AUTHOR_DATE and GIT_COMMITTER_DATE */
1213
+ export interface CommitDateOptions {
1214
+ author?: string;
1215
+ committer?: string;
1216
+ }
1217
+ export declare const CommitDateOptions: S.Schema<CommitDateOptions>;
1218
+ export interface RepoApplyDiffPatchRequest {
1219
+ /** owner of the repo */
1220
+ owner: string;
1221
+ /** name of the repo */
1222
+ repo: string;
1223
+ author?: Identity;
1224
+ /** branch (optional) to base this file from. if not given, the default branch is used */
1225
+ branch?: string;
1226
+ committer?: Identity;
1227
+ /** content must be base64 encoded */
1228
+ content: string;
1229
+ dates?: CommitDateOptions;
1230
+ /** (optional) will do a force-push if the new branch already exists */
1231
+ force_overwrite_new_branch?: boolean;
1232
+ /** from_path (optional) is the path of the original file which will be moved/renamed to the path in the URL */
1233
+ from_path?: string;
1234
+ /** message (optional) for the commit of this file. if not supplied, a default message will be used */
1235
+ message?: string;
1236
+ /** new_branch (optional) will make a new branch from `branch` before creating the file */
1237
+ new_branch?: string;
1238
+ /** sha is the SHA for the file that already exists */
1239
+ sha: string;
1240
+ /** Add a Signed-off-by trailer by the committer at the end of the commit log message. */
1241
+ signoff?: boolean;
1242
+ }
1243
+ export declare const RepoApplyDiffPatchRequest: S.Schema<RepoApplyDiffPatchRequest>;
1244
+ export interface CommitMeta {
1245
+ created?: string;
1246
+ sha?: string;
1247
+ url?: string;
1248
+ }
1249
+ export declare const CommitMeta: S.Schema<CommitMeta>;
1250
+ export type FileCommitResponseParentsList = Array<CommitMeta>;
1251
+ export declare const FileCommitResponseParentsList: S.Schema<FileCommitResponseParentsList>;
1252
+ export interface FileCommitResponse {
1253
+ author?: CommitUser;
1254
+ committer?: CommitUser;
1255
+ created?: string;
1256
+ html_url?: string;
1257
+ message?: string;
1258
+ parents?: FileCommitResponseParentsList;
1259
+ sha?: string;
1260
+ tree?: CommitMeta;
1261
+ url?: string;
1262
+ }
1263
+ export declare const FileCommitResponse: S.Schema<FileCommitResponse>;
1264
+ /** FileLinksResponse contains the links for a repo's file */
1265
+ export interface FileLinksResponse {
1266
+ git?: string;
1267
+ html?: string;
1268
+ self?: string;
1269
+ }
1270
+ export declare const FileLinksResponse: S.Schema<FileLinksResponse>;
1271
+ /** ContentsResponse contains information about a repo's entry's (dir, file, symlink, submodule) metadata and content */
1272
+ export interface ContentsResponse {
1273
+ _links?: FileLinksResponse;
1274
+ /** `content` is populated when `type` is `file`, otherwise null */
1275
+ content?: string;
1276
+ download_url?: string;
1277
+ /** `encoding` is populated when `type` is `file`, otherwise null */
1278
+ encoding?: string;
1279
+ git_url?: string;
1280
+ html_url?: string;
1281
+ last_commit_sha?: string;
1282
+ last_commit_when?: string;
1283
+ name?: string;
1284
+ path?: string;
1285
+ sha?: string;
1286
+ size?: number;
1287
+ /** `submodule_git_url` is populated when `type` is `submodule`, otherwise null */
1288
+ submodule_git_url?: string;
1289
+ /** `target` is populated when `type` is `symlink`, otherwise null */
1290
+ target?: string;
1291
+ /** `type` will be `file`, `dir`, `symlink`, or `submodule` */
1292
+ type?: string;
1293
+ url?: string;
1294
+ }
1295
+ export declare const ContentsResponse: S.Schema<ContentsResponse>;
1296
+ /** FileResponse contains information about a repo's file */
1297
+ export interface FileResponse {
1298
+ commit?: FileCommitResponse;
1299
+ content?: ContentsResponse;
1300
+ verification?: PayloadCommitVerification;
1301
+ }
1302
+ export declare const FileResponse: S.Schema<FileResponse>;
1303
+ export interface RepoCancelScheduledAutoMergeRequest {
1304
+ /** owner of the repo */
1305
+ owner: string;
1306
+ /** name of the repo */
1307
+ repo: string;
1308
+ /** index of the pull request to merge */
1309
+ index: number;
1310
+ }
1311
+ export declare const RepoCancelScheduledAutoMergeRequest: S.Schema<RepoCancelScheduledAutoMergeRequest>;
1312
+ export interface RepoCancelScheduledAutoMergeResponse {
1313
+ }
1314
+ export declare const RepoCancelScheduledAutoMergeResponse: S.Schema<RepoCancelScheduledAutoMergeResponse>;
1315
+ /** indicates what to do with the file */
1316
+ export type ChangeFileOperationOperation = "create" | "update" | "delete";
1317
+ export declare const ChangeFileOperationOperation: any;
1318
+ /** ChangeFileOperation for creating, updating or deleting a file */
1319
+ export interface ChangeFileOperation {
1320
+ /** new or updated file content, must be base64 encoded */
1321
+ content?: string;
1322
+ /** old path of the file to move */
1323
+ from_path?: string;
1324
+ /** indicates what to do with the file */
1325
+ operation: ChangeFileOperationOperation | (string & {});
1326
+ /** path to the existing or new file */
1327
+ path: string;
1328
+ /** sha is the SHA for the file that already exists, required for update or delete */
1329
+ sha?: string;
1330
+ }
1331
+ export declare const ChangeFileOperation: S.Schema<ChangeFileOperation>;
1332
+ /** list of file operations */
1333
+ export type RepoChangeFilesRequestFilesList = Array<ChangeFileOperation>;
1334
+ export declare const RepoChangeFilesRequestFilesList: S.Schema<RepoChangeFilesRequestFilesList>;
1335
+ export interface RepoChangeFilesRequest {
1336
+ /** owner of the repo */
1337
+ owner: string;
1338
+ /** name of the repo */
1339
+ repo: string;
1340
+ author?: Identity;
1341
+ /** branch (optional) to base this file from. if not given, the default branch is used */
1342
+ branch?: string;
1343
+ committer?: Identity;
1344
+ dates?: CommitDateOptions;
1345
+ /** list of file operations */
1346
+ files: RepoChangeFilesRequestFilesList;
1347
+ /** (optional) will do a force-push if the new branch already exists */
1348
+ force_overwrite_new_branch?: boolean;
1349
+ /** message (optional) for the commit of this file. if not supplied, a default message will be used */
1350
+ message?: string;
1351
+ /** new_branch (optional) will make a new branch from `branch` before creating the file */
1352
+ new_branch?: string;
1353
+ /** Add a Signed-off-by trailer by the committer at the end of the commit log message. */
1354
+ signoff?: boolean;
1355
+ }
1356
+ export declare const RepoChangeFilesRequest: S.Schema<RepoChangeFilesRequest>;
1357
+ export type FilesResponseFilesList = Array<ContentsResponse>;
1358
+ export declare const FilesResponseFilesList: S.Schema<FilesResponseFilesList>;
1359
+ /** FilesResponse contains information about multiple files from a repo */
1360
+ export interface FilesResponse {
1361
+ commit?: FileCommitResponse;
1362
+ files?: FilesResponseFilesList;
1363
+ verification?: PayloadCommitVerification;
1364
+ }
1365
+ export declare const FilesResponse: S.Schema<FilesResponse>;
1366
+ export interface RepoCheckCollaboratorRequest {
1367
+ /** owner of the repo */
1368
+ owner: string;
1369
+ /** name of the repo */
1370
+ repo: string;
1371
+ /** username of the collaborator */
1372
+ collaborator: string;
1373
+ }
1374
+ export declare const RepoCheckCollaboratorRequest: S.Schema<RepoCheckCollaboratorRequest>;
1375
+ export interface RepoCheckCollaboratorResponse {
1376
+ }
1377
+ export declare const RepoCheckCollaboratorResponse: S.Schema<RepoCheckCollaboratorResponse>;
1378
+ export interface RepoCheckFlagRequest {
1379
+ /** owner of the repo */
1380
+ owner: string;
1381
+ /** name of the repo */
1382
+ repo: string;
1383
+ /** name of the flag */
1384
+ flag: string;
1385
+ }
1386
+ export declare const RepoCheckFlagRequest: S.Schema<RepoCheckFlagRequest>;
1387
+ export interface RepoCheckFlagResponse {
1388
+ }
1389
+ export declare const RepoCheckFlagResponse: S.Schema<RepoCheckFlagResponse>;
1390
+ export interface RepoCheckTeamRequest {
1391
+ /** owner of the repo */
1392
+ owner: string;
1393
+ /** name of the repo */
1394
+ repo: string;
1395
+ /** team name */
1396
+ team: string;
1397
+ }
1398
+ export declare const RepoCheckTeamRequest: S.Schema<RepoCheckTeamRequest>;
1399
+ export interface RepoCompareDiffRequest {
1400
+ /** owner of the repo */
1401
+ owner: string;
1402
+ /** name of the repo */
1403
+ repo: string;
1404
+ /** compare two branches or commits */
1405
+ basehead: string;
1406
+ }
1407
+ export declare const RepoCompareDiffRequest: S.Schema<RepoCompareDiffRequest>;
1408
+ export interface RepoCommit {
1409
+ author?: CommitUser;
1410
+ committer?: CommitUser;
1411
+ message?: string;
1412
+ tree?: CommitMeta;
1413
+ url?: string;
1414
+ verification?: PayloadCommitVerification;
1415
+ }
1416
+ export declare const RepoCommit: S.Schema<RepoCommit>;
1417
+ /** CommitAffectedFiles store information about files affected by the commit */
1418
+ export interface CommitAffectedFiles {
1419
+ filename?: string;
1420
+ status?: string;
1421
+ }
1422
+ export declare const CommitAffectedFiles: S.Schema<CommitAffectedFiles>;
1423
+ export type CommitFilesList = Array<CommitAffectedFiles>;
1424
+ export declare const CommitFilesList: S.Schema<CommitFilesList>;
1425
+ export type CommitParentsList = Array<CommitMeta>;
1426
+ export declare const CommitParentsList: S.Schema<CommitParentsList>;
1427
+ /** CommitStats is statistics for a RepoCommit */
1428
+ export interface CommitStats {
1429
+ additions?: number;
1430
+ deletions?: number;
1431
+ total?: number;
1432
+ }
1433
+ export declare const CommitStats: S.Schema<CommitStats>;
1434
+ export interface Commit {
1435
+ author?: User;
1436
+ commit?: RepoCommit;
1437
+ committer?: User;
1438
+ created?: string;
1439
+ files?: CommitFilesList;
1440
+ html_url?: string;
1441
+ parents?: CommitParentsList;
1442
+ sha?: string;
1443
+ stats?: CommitStats;
1444
+ url?: string;
1445
+ }
1446
+ export declare const Commit: S.Schema<Commit>;
1447
+ export type CompareCommitsList = Array<Commit>;
1448
+ export declare const CompareCommitsList: S.Schema<CompareCommitsList>;
1449
+ export type CompareFilesList = Array<CommitAffectedFiles>;
1450
+ export declare const CompareFilesList: S.Schema<CompareFilesList>;
1451
+ export interface Compare {
1452
+ commits?: CompareCommitsList;
1453
+ files?: CompareFilesList;
1454
+ total_commits?: number;
1455
+ }
1456
+ export declare const Compare: S.Schema<Compare>;
1457
+ export interface RepoCreateBranchRequest {
1458
+ /** owner of the repo */
1459
+ owner: string;
1460
+ /** name of the repo */
1461
+ repo: string;
1462
+ /** Name of the branch to create */
1463
+ new_branch_name: string;
1464
+ /** Deprecated: true Name of the old branch to create from */
1465
+ old_branch_name?: string;
1466
+ /** Name of the old branch/tag/commit to create from */
1467
+ old_ref_name?: string;
1468
+ }
1469
+ export declare const RepoCreateBranchRequest: S.Schema<RepoCreateBranchRequest>;
1470
+ export type PayloadCommitAddedList = Array<string>;
1471
+ export declare const PayloadCommitAddedList: S.Schema<PayloadCommitAddedList>;
1472
+ export type PayloadCommitModifiedList = Array<string>;
1473
+ export declare const PayloadCommitModifiedList: S.Schema<PayloadCommitModifiedList>;
1474
+ export type PayloadCommitRemovedList = Array<string>;
1475
+ export declare const PayloadCommitRemovedList: S.Schema<PayloadCommitRemovedList>;
1476
+ /** PayloadCommit represents a commit */
1477
+ export interface PayloadCommit {
1478
+ added?: PayloadCommitAddedList;
1479
+ author?: PayloadUser;
1480
+ committer?: PayloadUser;
1481
+ /** sha1 hash of the commit */
1482
+ id?: string;
1483
+ message?: string;
1484
+ modified?: PayloadCommitModifiedList;
1485
+ removed?: PayloadCommitRemovedList;
1486
+ timestamp?: string;
1487
+ url?: string;
1488
+ verification?: PayloadCommitVerification;
1489
+ }
1490
+ export declare const PayloadCommit: S.Schema<PayloadCommit>;
1491
+ export type BranchStatusCheckContextsList = Array<string>;
1492
+ export declare const BranchStatusCheckContextsList: S.Schema<BranchStatusCheckContextsList>;
1493
+ /** Branch represents a repository branch */
1494
+ export interface Branch {
1495
+ commit?: PayloadCommit;
1496
+ effective_branch_protection_name?: string;
1497
+ enable_status_check?: boolean;
1498
+ name?: string;
1499
+ protected?: boolean;
1500
+ required_approvals?: number;
1501
+ status_check_contexts?: BranchStatusCheckContextsList;
1502
+ user_can_merge?: boolean;
1503
+ user_can_push?: boolean;
1504
+ }
1505
+ export declare const Branch: S.Schema<Branch>;
1506
+ export type RepoCreateBranchProtectionRequestApprovalsWhitelistTeamsList = Array<string>;
1507
+ export declare const RepoCreateBranchProtectionRequestApprovalsWhitelistTeamsList: S.Schema<RepoCreateBranchProtectionRequestApprovalsWhitelistTeamsList>;
1508
+ export type RepoCreateBranchProtectionRequestApprovalsWhitelistUsernameList = Array<string>;
1509
+ export declare const RepoCreateBranchProtectionRequestApprovalsWhitelistUsernameList: S.Schema<RepoCreateBranchProtectionRequestApprovalsWhitelistUsernameList>;
1510
+ export type RepoCreateBranchProtectionRequestMergeWhitelistTeamsList = Array<string>;
1511
+ export declare const RepoCreateBranchProtectionRequestMergeWhitelistTeamsList: S.Schema<RepoCreateBranchProtectionRequestMergeWhitelistTeamsList>;
1512
+ export type RepoCreateBranchProtectionRequestMergeWhitelistUsernamesList = Array<string>;
1513
+ export declare const RepoCreateBranchProtectionRequestMergeWhitelistUsernamesList: S.Schema<RepoCreateBranchProtectionRequestMergeWhitelistUsernamesList>;
1514
+ export type RepoCreateBranchProtectionRequestPushWhitelistTeamsList = Array<string>;
1515
+ export declare const RepoCreateBranchProtectionRequestPushWhitelistTeamsList: S.Schema<RepoCreateBranchProtectionRequestPushWhitelistTeamsList>;
1516
+ export type RepoCreateBranchProtectionRequestPushWhitelistUsernamesList = Array<string>;
1517
+ export declare const RepoCreateBranchProtectionRequestPushWhitelistUsernamesList: S.Schema<RepoCreateBranchProtectionRequestPushWhitelistUsernamesList>;
1518
+ export type RepoCreateBranchProtectionRequestStatusCheckContextsList = Array<string>;
1519
+ export declare const RepoCreateBranchProtectionRequestStatusCheckContextsList: S.Schema<RepoCreateBranchProtectionRequestStatusCheckContextsList>;
1520
+ export interface RepoCreateBranchProtectionRequest {
1521
+ /** owner of the repo */
1522
+ owner: string;
1523
+ /** name of the repo */
1524
+ repo: string;
1525
+ apply_to_admins?: boolean;
1526
+ approvals_whitelist_teams?: RepoCreateBranchProtectionRequestApprovalsWhitelistTeamsList;
1527
+ approvals_whitelist_username?: RepoCreateBranchProtectionRequestApprovalsWhitelistUsernameList;
1528
+ block_on_official_review_requests?: boolean;
1529
+ block_on_outdated_branch?: boolean;
1530
+ block_on_rejected_reviews?: boolean;
1531
+ /** Deprecated: true */
1532
+ branch_name?: string;
1533
+ dismiss_stale_approvals?: boolean;
1534
+ enable_approvals_whitelist?: boolean;
1535
+ enable_merge_whitelist?: boolean;
1536
+ enable_push?: boolean;
1537
+ enable_push_whitelist?: boolean;
1538
+ enable_status_check?: boolean;
1539
+ ignore_stale_approvals?: boolean;
1540
+ merge_whitelist_teams?: RepoCreateBranchProtectionRequestMergeWhitelistTeamsList;
1541
+ merge_whitelist_usernames?: RepoCreateBranchProtectionRequestMergeWhitelistUsernamesList;
1542
+ protected_file_patterns?: string;
1543
+ push_whitelist_deploy_keys?: boolean;
1544
+ push_whitelist_teams?: RepoCreateBranchProtectionRequestPushWhitelistTeamsList;
1545
+ push_whitelist_usernames?: RepoCreateBranchProtectionRequestPushWhitelistUsernamesList;
1546
+ require_signed_commits?: boolean;
1547
+ required_approvals?: number;
1548
+ rule_name?: string;
1549
+ status_check_contexts?: RepoCreateBranchProtectionRequestStatusCheckContextsList;
1550
+ unprotected_file_patterns?: string;
1551
+ }
1552
+ export declare const RepoCreateBranchProtectionRequest: S.Schema<RepoCreateBranchProtectionRequest>;
1553
+ export type BranchProtectionApprovalsWhitelistTeamsList = Array<string>;
1554
+ export declare const BranchProtectionApprovalsWhitelistTeamsList: S.Schema<BranchProtectionApprovalsWhitelistTeamsList>;
1555
+ export type BranchProtectionApprovalsWhitelistUsernameList = Array<string>;
1556
+ export declare const BranchProtectionApprovalsWhitelistUsernameList: S.Schema<BranchProtectionApprovalsWhitelistUsernameList>;
1557
+ export type BranchProtectionMergeWhitelistTeamsList = Array<string>;
1558
+ export declare const BranchProtectionMergeWhitelistTeamsList: S.Schema<BranchProtectionMergeWhitelistTeamsList>;
1559
+ export type BranchProtectionMergeWhitelistUsernamesList = Array<string>;
1560
+ export declare const BranchProtectionMergeWhitelistUsernamesList: S.Schema<BranchProtectionMergeWhitelistUsernamesList>;
1561
+ export type BranchProtectionPushWhitelistTeamsList = Array<string>;
1562
+ export declare const BranchProtectionPushWhitelistTeamsList: S.Schema<BranchProtectionPushWhitelistTeamsList>;
1563
+ export type BranchProtectionPushWhitelistUsernamesList = Array<string>;
1564
+ export declare const BranchProtectionPushWhitelistUsernamesList: S.Schema<BranchProtectionPushWhitelistUsernamesList>;
1565
+ export type BranchProtectionStatusCheckContextsList = Array<string>;
1566
+ export declare const BranchProtectionStatusCheckContextsList: S.Schema<BranchProtectionStatusCheckContextsList>;
1567
+ /** BranchProtection represents a branch protection for a repository */
1568
+ export interface BranchProtection {
1569
+ apply_to_admins?: boolean;
1570
+ approvals_whitelist_teams?: BranchProtectionApprovalsWhitelistTeamsList;
1571
+ approvals_whitelist_username?: BranchProtectionApprovalsWhitelistUsernameList;
1572
+ block_on_official_review_requests?: boolean;
1573
+ block_on_outdated_branch?: boolean;
1574
+ block_on_rejected_reviews?: boolean;
1575
+ /** Deprecated: true */
1576
+ branch_name?: string;
1577
+ created_at: string;
1578
+ dismiss_stale_approvals?: boolean;
1579
+ enable_approvals_whitelist?: boolean;
1580
+ enable_merge_whitelist?: boolean;
1581
+ enable_push?: boolean;
1582
+ enable_push_whitelist?: boolean;
1583
+ enable_status_check?: boolean;
1584
+ ignore_stale_approvals?: boolean;
1585
+ merge_whitelist_teams?: BranchProtectionMergeWhitelistTeamsList;
1586
+ merge_whitelist_usernames?: BranchProtectionMergeWhitelistUsernamesList;
1587
+ protected_file_patterns?: string;
1588
+ push_whitelist_deploy_keys?: boolean;
1589
+ push_whitelist_teams?: BranchProtectionPushWhitelistTeamsList;
1590
+ push_whitelist_usernames?: BranchProtectionPushWhitelistUsernamesList;
1591
+ require_signed_commits?: boolean;
1592
+ required_approvals?: number;
1593
+ rule_name: string;
1594
+ status_check_contexts?: BranchProtectionStatusCheckContextsList;
1595
+ unprotected_file_patterns?: string;
1596
+ updated_at: string;
1597
+ }
1598
+ export declare const BranchProtection: S.Schema<BranchProtection>;
1599
+ export interface RepoCreateFileRequest {
1600
+ /** owner of the repo */
1601
+ owner: string;
1602
+ /** name of the repo */
1603
+ repo: string;
1604
+ /** path of the file to create */
1605
+ filepath: string;
1606
+ author?: Identity;
1607
+ /** branch (optional) to base this file from. if not given, the default branch is used */
1608
+ branch?: string;
1609
+ committer?: Identity;
1610
+ /** content must be base64 encoded */
1611
+ content: string;
1612
+ dates?: CommitDateOptions;
1613
+ /** (optional) will do a force-push if the new branch already exists */
1614
+ force_overwrite_new_branch?: boolean;
1615
+ /** message (optional) for the commit of this file. if not supplied, a default message will be used */
1616
+ message?: string;
1617
+ /** new_branch (optional) will make a new branch from `branch` before creating the file */
1618
+ new_branch?: string;
1619
+ /** Add a Signed-off-by trailer by the committer at the end of the commit log message. */
1620
+ signoff?: boolean;
1621
+ }
1622
+ export declare const RepoCreateFileRequest: S.Schema<RepoCreateFileRequest>;
1623
+ /** CreateHookOptionConfig has all config options in it required are "content_type" and "url" Required */
1624
+ export type CreateHookOptionConfig = {
1625
+ [key: string]: string | undefined;
1626
+ };
1627
+ export declare const CreateHookOptionConfig: S.Schema<CreateHookOptionConfig>;
1628
+ export type RepoCreateHookRequestEventsList = Array<string>;
1629
+ export declare const RepoCreateHookRequestEventsList: S.Schema<RepoCreateHookRequestEventsList>;
1630
+ export type RepoCreateHookRequestType = "forgejo" | "dingtalk" | "discord" | "gitea" | "gogs" | "msteams" | "slack" | "telegram" | "feishu" | "wechatwork" | "packagist";
1631
+ export declare const RepoCreateHookRequestType: any;
1632
+ export interface RepoCreateHookRequest {
1633
+ /** owner of the repo */
1634
+ owner: string;
1635
+ /** name of the repo */
1636
+ repo: string;
1637
+ active?: boolean;
1638
+ authorization_header?: string;
1639
+ branch_filter?: string;
1640
+ config: CreateHookOptionConfig;
1641
+ events?: RepoCreateHookRequestEventsList;
1642
+ type: RepoCreateHookRequestType | (string & {});
1643
+ }
1644
+ export declare const RepoCreateHookRequest: S.Schema<RepoCreateHookRequest>;
1645
+ /** Deprecated: use Metadata instead */
1646
+ export type HookConfigMap = {
1647
+ [key: string]: string | undefined;
1648
+ };
1649
+ export declare const HookConfigMap: S.Schema<HookConfigMap>;
1650
+ export type HookEventsList = Array<string>;
1651
+ export declare const HookEventsList: S.Schema<HookEventsList>;
1652
+ /** Hook a hook is a web hook when one repository changed */
1653
+ export interface Hook {
1654
+ active: boolean;
1655
+ authorization_header?: string;
1656
+ branch_filter?: string;
1657
+ /** Deprecated: use Metadata instead */
1658
+ config?: HookConfigMap;
1659
+ content_type?: string;
1660
+ created_at: string;
1661
+ events?: HookEventsList;
1662
+ id: number;
1663
+ metadata?: unknown;
1664
+ type: string;
1665
+ updated_at: string;
1666
+ url: string;
1667
+ }
1668
+ export declare const Hook: S.Schema<Hook>;
1669
+ export interface RepoCreateKeyRequest {
1670
+ /** owner of the repo */
1671
+ owner: string;
1672
+ /** name of the repo */
1673
+ repo: string;
1674
+ /** An armored SSH key to add */
1675
+ key: string;
1676
+ /** Describe if the key has only read access or read/write */
1677
+ read_only?: boolean;
1678
+ /** Title of the key to add */
1679
+ title: string;
1680
+ }
1681
+ export declare const RepoCreateKeyRequest: S.Schema<RepoCreateKeyRequest>;
1682
+ /** DeployKey a deploy key */
1683
+ export interface DeployKey {
1684
+ created_at?: string;
1685
+ fingerprint?: string;
1686
+ id?: number;
1687
+ key?: string;
1688
+ key_id?: number;
1689
+ read_only?: boolean;
1690
+ repository?: Repository;
1691
+ title?: string;
1692
+ url?: string;
1693
+ }
1694
+ export declare const DeployKey: S.Schema<DeployKey>;
1695
+ export type RepoCreatePullRequestRequestAssigneesList = Array<string>;
1696
+ export declare const RepoCreatePullRequestRequestAssigneesList: S.Schema<RepoCreatePullRequestRequestAssigneesList>;
1697
+ export type RepoCreatePullRequestRequestLabelsList = Array<number>;
1698
+ export declare const RepoCreatePullRequestRequestLabelsList: S.Schema<RepoCreatePullRequestRequestLabelsList>;
1699
+ export interface RepoCreatePullRequestRequest {
1700
+ /** owner of the repo */
1701
+ owner: string;
1702
+ /** name of the repo */
1703
+ repo: string;
1704
+ assignee?: string;
1705
+ assignees?: RepoCreatePullRequestRequestAssigneesList;
1706
+ base?: string;
1707
+ body?: string;
1708
+ due_date?: string;
1709
+ head?: string;
1710
+ labels?: RepoCreatePullRequestRequestLabelsList;
1711
+ milestone?: number;
1712
+ title?: string;
1713
+ }
1714
+ export declare const RepoCreatePullRequestRequest: S.Schema<RepoCreatePullRequestRequest>;
1715
+ export type PullRequestAssigneesList = Array<User>;
1716
+ export declare const PullRequestAssigneesList: S.Schema<PullRequestAssigneesList>;
1717
+ /** PRBranchInfo information about a branch */
1718
+ export interface PRBranchInfo {
1719
+ label?: string;
1720
+ ref?: string;
1721
+ repo?: Repository;
1722
+ repo_id?: number;
1723
+ sha?: string;
1724
+ }
1725
+ export declare const PRBranchInfo: S.Schema<PRBranchInfo>;
1726
+ /** Label a label to an issue or a pr */
1727
+ export interface Label {
1728
+ color: string;
1729
+ description?: string;
1730
+ exclusive?: boolean;
1731
+ id: number;
1732
+ is_archived?: boolean;
1733
+ name: string;
1734
+ url?: string;
1735
+ }
1736
+ export declare const Label: S.Schema<Label>;
1737
+ export type PullRequestLabelsList = Array<Label>;
1738
+ export declare const PullRequestLabelsList: S.Schema<PullRequestLabelsList>;
1739
+ /** Milestone milestone is a collection of issues on one repository */
1740
+ export interface Milestone {
1741
+ closed_at?: string;
1742
+ closed_issues?: number;
1743
+ created_at?: string;
1744
+ description?: string;
1745
+ due_on?: string;
1746
+ id?: number;
1747
+ open_issues?: number;
1748
+ state?: string;
1749
+ title?: string;
1750
+ updated_at?: string;
1751
+ }
1752
+ export declare const Milestone: S.Schema<Milestone>;
1753
+ export type PullRequestRequestedReviewersList = Array<User>;
1754
+ export declare const PullRequestRequestedReviewersList: S.Schema<PullRequestRequestedReviewersList>;
1755
+ export type PullRequestRequestedReviewersTeamsList = Array<Team>;
1756
+ export declare const PullRequestRequestedReviewersTeamsList: S.Schema<PullRequestRequestedReviewersTeamsList>;
1757
+ /** PullRequest represents a pull request */
1758
+ export interface PullRequest {
1759
+ additions?: number;
1760
+ allow_maintainer_edit?: boolean;
1761
+ assignee?: User;
1762
+ assignees?: PullRequestAssigneesList;
1763
+ base?: PRBranchInfo;
1764
+ body?: string;
1765
+ changed_files?: number;
1766
+ closed_at?: string;
1767
+ comments?: number;
1768
+ created_at?: string;
1769
+ deletions?: number;
1770
+ diff_url?: string;
1771
+ draft?: boolean;
1772
+ due_date?: string;
1773
+ flow?: number;
1774
+ head?: PRBranchInfo;
1775
+ html_url?: string;
1776
+ id?: number;
1777
+ is_locked?: boolean;
1778
+ labels?: PullRequestLabelsList;
1779
+ merge_base?: string;
1780
+ merge_commit_sha?: string;
1781
+ mergeable?: boolean;
1782
+ merged?: boolean;
1783
+ merged_at?: string;
1784
+ merged_by?: User;
1785
+ milestone?: Milestone;
1786
+ number?: number;
1787
+ patch_url?: string;
1788
+ pin_order?: number;
1789
+ requested_reviewers?: PullRequestRequestedReviewersList;
1790
+ requested_reviewers_teams?: PullRequestRequestedReviewersTeamsList;
1791
+ /** number of review comments made on the diff of a PR review (not including comments on commits or issues in a PR) */
1792
+ review_comments?: number;
1793
+ state?: string;
1794
+ title?: string;
1795
+ updated_at?: string;
1796
+ url?: string;
1797
+ user?: User;
1798
+ }
1799
+ export declare const PullRequest: S.Schema<PullRequest>;
1800
+ /** CreatePullReviewComment represent a review comment for creation api */
1801
+ export interface CreatePullReviewComment {
1802
+ body?: string;
1803
+ /** number of additional lines after the commented line (0 = single line comment) */
1804
+ extra_lines_count?: number;
1805
+ /** if comment to new file line or 0 */
1806
+ new_position?: number;
1807
+ /** if comment to old file line or 0 */
1808
+ old_position?: number;
1809
+ /** the tree path */
1810
+ path?: string;
1811
+ }
1812
+ export declare const CreatePullReviewComment: S.Schema<CreatePullReviewComment>;
1813
+ export type RepoCreatePullReviewRequestCommentsList = Array<CreatePullReviewComment>;
1814
+ export declare const RepoCreatePullReviewRequestCommentsList: S.Schema<RepoCreatePullReviewRequestCommentsList>;
1815
+ export interface RepoCreatePullReviewRequest {
1816
+ /** owner of the repo */
1817
+ owner: string;
1818
+ /** name of the repo */
1819
+ repo: string;
1820
+ /** index of the pull request */
1821
+ index: number;
1822
+ body?: string;
1823
+ comments?: RepoCreatePullReviewRequestCommentsList;
1824
+ commit_id?: string;
1825
+ event?: string;
1826
+ }
1827
+ export declare const RepoCreatePullReviewRequest: S.Schema<RepoCreatePullReviewRequest>;
1828
+ /** PullReview represents a pull request review */
1829
+ export interface PullReview {
1830
+ body?: string;
1831
+ comments_count?: number;
1832
+ commit_id?: string;
1833
+ dismissed?: boolean;
1834
+ html_url?: string;
1835
+ id?: number;
1836
+ official?: boolean;
1837
+ pull_request_url?: string;
1838
+ stale?: boolean;
1839
+ state?: string;
1840
+ submitted_at?: string;
1841
+ team?: Team;
1842
+ updated_at?: string;
1843
+ user?: User;
1844
+ }
1845
+ export declare const PullReview: S.Schema<PullReview>;
1846
+ export interface RepoCreatePullReviewCommentRequest {
1847
+ /** owner of the repo */
1848
+ owner: string;
1849
+ /** name of the repo */
1850
+ repo: string;
1851
+ /** index of the pull request */
1852
+ index: number;
1853
+ /** id of the review */
1854
+ id: number;
1855
+ body?: string;
1856
+ /** number of additional lines after the commented line (0 = single line comment) */
1857
+ extra_lines_count?: number;
1858
+ /** if comment to new file line or 0 */
1859
+ new_position?: number;
1860
+ /** if comment to old file line or 0 */
1861
+ old_position?: number;
1862
+ /** the tree path */
1863
+ path?: string;
1864
+ }
1865
+ export declare const RepoCreatePullReviewCommentRequest: S.Schema<RepoCreatePullReviewCommentRequest>;
1866
+ /** PullReviewComment represents a comment on a pull request review */
1867
+ export interface PullReviewComment {
1868
+ body?: string;
1869
+ commit_id?: string;
1870
+ created_at?: string;
1871
+ diff_hunk?: string;
1872
+ /** number of additional lines after the commented line (0 = single line comment) */
1873
+ extra_lines_count?: number;
1874
+ html_url?: string;
1875
+ id?: number;
1876
+ original_commit_id?: string;
1877
+ original_position?: number;
1878
+ path?: string;
1879
+ position?: number;
1880
+ pull_request_review_id?: number;
1881
+ pull_request_url?: string;
1882
+ resolver?: User;
1883
+ updated_at?: string;
1884
+ user?: User;
1885
+ }
1886
+ export declare const PullReviewComment: S.Schema<PullReviewComment>;
1887
+ export type RepoCreatePullReviewRequestsRequestReviewersList = Array<string>;
1888
+ export declare const RepoCreatePullReviewRequestsRequestReviewersList: S.Schema<RepoCreatePullReviewRequestsRequestReviewersList>;
1889
+ export type RepoCreatePullReviewRequestsRequestTeamReviewersList = Array<string>;
1890
+ export declare const RepoCreatePullReviewRequestsRequestTeamReviewersList: S.Schema<RepoCreatePullReviewRequestsRequestTeamReviewersList>;
1891
+ export interface RepoCreatePullReviewRequestsRequest {
1892
+ /** owner of the repo */
1893
+ owner: string;
1894
+ /** name of the repo */
1895
+ repo: string;
1896
+ /** index of the pull request */
1897
+ index: number;
1898
+ reviewers?: RepoCreatePullReviewRequestsRequestReviewersList;
1899
+ team_reviewers?: RepoCreatePullReviewRequestsRequestTeamReviewersList;
1900
+ }
1901
+ export declare const RepoCreatePullReviewRequestsRequest: S.Schema<RepoCreatePullReviewRequestsRequest>;
1902
+ export type RepoCreatePullReviewRequestsResponseBodyList = Array<PullReview>;
1903
+ export declare const RepoCreatePullReviewRequestsResponseBodyList: S.Schema<RepoCreatePullReviewRequestsResponseBodyList>;
1904
+ export type RepoCreatePullReviewRequestsResponse = RepoCreatePullReviewRequestsResponseBodyList;
1905
+ export declare const RepoCreatePullReviewRequestsResponse: S.Schema<RepoCreatePullReviewRequestsResponse>;
1906
+ export interface RepoCreateReleaseRequest {
1907
+ /** owner of the repo */
1908
+ owner: string;
1909
+ /** name of the repo */
1910
+ repo: string;
1911
+ body?: string;
1912
+ draft?: boolean;
1913
+ hide_archive_links?: boolean;
1914
+ name?: string;
1915
+ prerelease?: boolean;
1916
+ tag_name: string;
1917
+ target_commitish?: string;
1918
+ }
1919
+ export declare const RepoCreateReleaseRequest: S.Schema<RepoCreateReleaseRequest>;
1920
+ export type AttachmentType = "attachment" | "external";
1921
+ export declare const AttachmentType: any;
1922
+ /** Attachment a generic attachment */
1923
+ export interface Attachment {
1924
+ browser_download_url?: string;
1925
+ created_at?: string;
1926
+ download_count?: number;
1927
+ id?: number;
1928
+ name?: string;
1929
+ size?: number;
1930
+ type?: AttachmentType;
1931
+ uuid?: string;
1932
+ }
1933
+ export declare const Attachment: S.Schema<Attachment>;
1934
+ export type ReleaseAssetsList = Array<Attachment>;
1935
+ export declare const ReleaseAssetsList: S.Schema<ReleaseAssetsList>;
1936
+ /** Release represents a repository release */
1937
+ export interface Release {
1938
+ archive_download_count?: TagArchiveDownloadCount;
1939
+ assets?: ReleaseAssetsList;
1940
+ author?: User;
1941
+ body?: string;
1942
+ created_at?: string;
1943
+ draft?: boolean;
1944
+ hide_archive_links?: boolean;
1945
+ html_url?: string;
1946
+ id?: number;
1947
+ name?: string;
1948
+ prerelease?: boolean;
1949
+ published_at?: string;
1950
+ tag_name?: string;
1951
+ tarball_url?: string;
1952
+ target_commitish?: string;
1953
+ upload_url?: string;
1954
+ url?: string;
1955
+ zipball_url?: string;
1956
+ }
1957
+ export declare const Release: S.Schema<Release>;
1958
+ export interface RepoCreateReleaseAttachmentRequest {
1959
+ /** owner of the repo */
1960
+ owner: string;
1961
+ /** name of the repo */
1962
+ repo: string;
1963
+ /** id of the release */
1964
+ id: number;
1965
+ /** name of the attachment */
1966
+ name?: string;
1967
+ }
1968
+ export declare const RepoCreateReleaseAttachmentRequest: S.Schema<RepoCreateReleaseAttachmentRequest>;
1969
+ export interface RepoCreateStatusRequest {
1970
+ /** owner of the repo */
1971
+ owner: string;
1972
+ /** name of the repo */
1973
+ repo: string;
1974
+ /** sha of the commit */
1975
+ sha: string;
1976
+ context?: string;
1977
+ description?: string;
1978
+ state?: string;
1979
+ target_url?: string;
1980
+ }
1981
+ export declare const RepoCreateStatusRequest: S.Schema<RepoCreateStatusRequest>;
1982
+ /** CommitStatus holds a single status of a single Commit */
1983
+ export interface CommitStatus {
1984
+ context?: string;
1985
+ created_at?: string;
1986
+ creator?: User;
1987
+ description?: string;
1988
+ id?: number;
1989
+ status?: string;
1990
+ target_url?: string;
1991
+ updated_at?: string;
1992
+ url?: string;
1993
+ }
1994
+ export declare const CommitStatus: S.Schema<CommitStatus>;
1995
+ export interface RepoCreateTagRequest {
1996
+ /** owner of the repo */
1997
+ owner: string;
1998
+ /** name of the repo */
1999
+ repo: string;
2000
+ message?: string;
2001
+ tag_name: string;
2002
+ target?: string;
2003
+ }
2004
+ export declare const RepoCreateTagRequest: S.Schema<RepoCreateTagRequest>;
2005
+ /** Tag represents a repository tag */
2006
+ export interface Tag {
2007
+ archive_download_count?: TagArchiveDownloadCount;
2008
+ commit?: CommitMeta;
2009
+ id?: string;
2010
+ message?: string;
2011
+ name?: string;
2012
+ tarball_url?: string;
2013
+ zipball_url?: string;
2014
+ }
2015
+ export declare const Tag: S.Schema<Tag>;
2016
+ export type RepoCreateTagProtectionRequestWhitelistTeamsList = Array<string>;
2017
+ export declare const RepoCreateTagProtectionRequestWhitelistTeamsList: S.Schema<RepoCreateTagProtectionRequestWhitelistTeamsList>;
2018
+ export type RepoCreateTagProtectionRequestWhitelistUsernamesList = Array<string>;
2019
+ export declare const RepoCreateTagProtectionRequestWhitelistUsernamesList: S.Schema<RepoCreateTagProtectionRequestWhitelistUsernamesList>;
2020
+ export interface RepoCreateTagProtectionRequest {
2021
+ /** owner of the repo */
2022
+ owner: string;
2023
+ /** name of the repo */
2024
+ repo: string;
2025
+ name_pattern?: string;
2026
+ whitelist_teams?: RepoCreateTagProtectionRequestWhitelistTeamsList;
2027
+ whitelist_usernames?: RepoCreateTagProtectionRequestWhitelistUsernamesList;
2028
+ }
2029
+ export declare const RepoCreateTagProtectionRequest: S.Schema<RepoCreateTagProtectionRequest>;
2030
+ export type TagProtectionWhitelistTeamsList = Array<string>;
2031
+ export declare const TagProtectionWhitelistTeamsList: S.Schema<TagProtectionWhitelistTeamsList>;
2032
+ export type TagProtectionWhitelistUsernamesList = Array<string>;
2033
+ export declare const TagProtectionWhitelistUsernamesList: S.Schema<TagProtectionWhitelistUsernamesList>;
2034
+ /** TagProtection represents a tag protection */
2035
+ export interface TagProtection {
2036
+ created_at?: string;
2037
+ id?: number;
2038
+ name_pattern?: string;
2039
+ updated_at?: string;
2040
+ whitelist_teams?: TagProtectionWhitelistTeamsList;
2041
+ whitelist_usernames?: TagProtectionWhitelistUsernamesList;
2042
+ }
2043
+ export declare const TagProtection: S.Schema<TagProtection>;
2044
+ export interface RepoCreateWikiPageRequest {
2045
+ /** owner of the repo */
2046
+ owner: string;
2047
+ /** name of the repo */
2048
+ repo: string;
2049
+ /** content must be base64 encoded */
2050
+ content_base64?: string;
2051
+ /** optional commit message summarizing the change */
2052
+ message?: string;
2053
+ /** page title. leave empty to keep unchanged */
2054
+ title?: string;
2055
+ }
2056
+ export declare const RepoCreateWikiPageRequest: S.Schema<RepoCreateWikiPageRequest>;
2057
+ /** WikiCommit page commit/revision */
2058
+ export interface WikiCommit {
2059
+ author?: CommitUser;
2060
+ commiter?: CommitUser;
2061
+ message?: string;
2062
+ sha?: string;
2063
+ }
2064
+ export declare const WikiCommit: S.Schema<WikiCommit>;
2065
+ /** WikiPage a wiki page */
2066
+ export interface WikiPage {
2067
+ commit_count?: number;
2068
+ /** Page content, base64 encoded */
2069
+ content_base64?: string;
2070
+ footer?: string;
2071
+ html_url?: string;
2072
+ last_commit?: WikiCommit;
2073
+ sidebar?: string;
2074
+ sub_url?: string;
2075
+ title?: string;
2076
+ }
2077
+ export declare const WikiPage: S.Schema<WikiPage>;
2078
+ export interface RepoDeleteAllFlagsRequest {
2079
+ /** owner of the repo */
2080
+ owner: string;
2081
+ /** name of the repo */
2082
+ repo: string;
2083
+ }
2084
+ export declare const RepoDeleteAllFlagsRequest: S.Schema<RepoDeleteAllFlagsRequest>;
2085
+ export interface RepoDeleteAllFlagsResponse {
2086
+ }
2087
+ export declare const RepoDeleteAllFlagsResponse: S.Schema<RepoDeleteAllFlagsResponse>;
2088
+ export interface RepoDeleteAvatarRequest {
2089
+ /** owner of the repo */
2090
+ owner: string;
2091
+ /** name of the repo */
2092
+ repo: string;
2093
+ }
2094
+ export declare const RepoDeleteAvatarRequest: S.Schema<RepoDeleteAvatarRequest>;
2095
+ export interface RepoDeleteAvatarResponse {
2096
+ }
2097
+ export declare const RepoDeleteAvatarResponse: S.Schema<RepoDeleteAvatarResponse>;
2098
+ export interface RepoDeleteBranchRequest {
2099
+ /** owner of the repo */
2100
+ owner: string;
2101
+ /** name of the repo */
2102
+ repo: string;
2103
+ /** branch to delete */
2104
+ branch: string;
2105
+ }
2106
+ export declare const RepoDeleteBranchRequest: S.Schema<RepoDeleteBranchRequest>;
2107
+ export interface RepoDeleteBranchResponse {
2108
+ }
2109
+ export declare const RepoDeleteBranchResponse: S.Schema<RepoDeleteBranchResponse>;
2110
+ export interface RepoDeleteBranchProtectionRequest {
2111
+ /** owner of the repo */
2112
+ owner: string;
2113
+ /** name of the repo */
2114
+ repo: string;
2115
+ /** name of protected branch */
2116
+ name: string;
2117
+ }
2118
+ export declare const RepoDeleteBranchProtectionRequest: S.Schema<RepoDeleteBranchProtectionRequest>;
2119
+ export interface RepoDeleteBranchProtectionResponse {
2120
+ }
2121
+ export declare const RepoDeleteBranchProtectionResponse: S.Schema<RepoDeleteBranchProtectionResponse>;
2122
+ export interface RepoDeleteCollaboratorRequest {
2123
+ /** owner of the repo */
2124
+ owner: string;
2125
+ /** name of the repo */
2126
+ repo: string;
2127
+ /** username of the collaborator to delete */
2128
+ collaborator: string;
2129
+ }
2130
+ export declare const RepoDeleteCollaboratorRequest: S.Schema<RepoDeleteCollaboratorRequest>;
2131
+ export interface RepoDeleteCollaboratorResponse {
2132
+ }
2133
+ export declare const RepoDeleteCollaboratorResponse: S.Schema<RepoDeleteCollaboratorResponse>;
2134
+ export interface RepoDeleteFileRequest {
2135
+ /** owner of the repo */
2136
+ owner: string;
2137
+ /** name of the repo */
2138
+ repo: string;
2139
+ /** path of the file to delete */
2140
+ filepath: string;
2141
+ author?: Identity;
2142
+ /** branch (optional) to base this file from. if not given, the default branch is used */
2143
+ branch?: string;
2144
+ committer?: Identity;
2145
+ dates?: CommitDateOptions;
2146
+ /** (optional) will do a force-push if the new branch already exists */
2147
+ force_overwrite_new_branch?: boolean;
2148
+ /** message (optional) for the commit of this file. if not supplied, a default message will be used */
2149
+ message?: string;
2150
+ /** new_branch (optional) will make a new branch from `branch` before creating the file */
2151
+ new_branch?: string;
2152
+ /** sha is the SHA for the file that already exists */
2153
+ sha: string;
2154
+ /** Add a Signed-off-by trailer by the committer at the end of the commit log message. */
2155
+ signoff?: boolean;
2156
+ }
2157
+ export declare const RepoDeleteFileRequest: S.Schema<RepoDeleteFileRequest>;
2158
+ /** FileDeleteResponse contains information about a repo's file that was deleted */
2159
+ export interface FileDeleteResponse {
2160
+ commit?: FileCommitResponse;
2161
+ content?: unknown;
2162
+ verification?: PayloadCommitVerification;
2163
+ }
2164
+ export declare const FileDeleteResponse: S.Schema<FileDeleteResponse>;
2165
+ export interface RepoDeleteFlagRequest {
2166
+ /** owner of the repo */
2167
+ owner: string;
2168
+ /** name of the repo */
2169
+ repo: string;
2170
+ /** name of the flag */
2171
+ flag: string;
2172
+ }
2173
+ export declare const RepoDeleteFlagRequest: S.Schema<RepoDeleteFlagRequest>;
2174
+ export interface RepoDeleteFlagResponse {
2175
+ }
2176
+ export declare const RepoDeleteFlagResponse: S.Schema<RepoDeleteFlagResponse>;
2177
+ export interface RepoDeleteGitHookRequest {
2178
+ /** owner of the repo */
2179
+ owner: string;
2180
+ /** name of the repo */
2181
+ repo: string;
2182
+ /** id of the hook to get */
2183
+ id: string;
2184
+ }
2185
+ export declare const RepoDeleteGitHookRequest: S.Schema<RepoDeleteGitHookRequest>;
2186
+ export interface RepoDeleteGitHookResponse {
2187
+ }
2188
+ export declare const RepoDeleteGitHookResponse: S.Schema<RepoDeleteGitHookResponse>;
2189
+ export interface RepoDeleteHookRequest {
2190
+ /** owner of the repo */
2191
+ owner: string;
2192
+ /** name of the repo */
2193
+ repo: string;
2194
+ /** id of the hook to delete */
2195
+ id: number;
2196
+ }
2197
+ export declare const RepoDeleteHookRequest: S.Schema<RepoDeleteHookRequest>;
2198
+ export interface RepoDeleteHookResponse {
2199
+ }
2200
+ export declare const RepoDeleteHookResponse: S.Schema<RepoDeleteHookResponse>;
2201
+ export interface RepoDeleteKeyRequest {
2202
+ /** owner of the repo */
2203
+ owner: string;
2204
+ /** name of the repo */
2205
+ repo: string;
2206
+ /** id of the key to delete */
2207
+ id: number;
2208
+ }
2209
+ export declare const RepoDeleteKeyRequest: S.Schema<RepoDeleteKeyRequest>;
2210
+ export interface RepoDeleteKeyResponse {
2211
+ }
2212
+ export declare const RepoDeleteKeyResponse: S.Schema<RepoDeleteKeyResponse>;
2213
+ export interface RepoDeletePullReviewRequest {
2214
+ /** owner of the repo */
2215
+ owner: string;
2216
+ /** name of the repo */
2217
+ repo: string;
2218
+ /** index of the pull request */
2219
+ index: number;
2220
+ /** id of the review */
2221
+ id: number;
2222
+ }
2223
+ export declare const RepoDeletePullReviewRequest: S.Schema<RepoDeletePullReviewRequest>;
2224
+ export interface RepoDeletePullReviewResponse {
2225
+ }
2226
+ export declare const RepoDeletePullReviewResponse: S.Schema<RepoDeletePullReviewResponse>;
2227
+ export interface RepoDeletePullReviewCommentRequest {
2228
+ /** owner of the repo */
2229
+ owner: string;
2230
+ /** name of the repo */
2231
+ repo: string;
2232
+ /** index of the pull request */
2233
+ index: number;
2234
+ /** id of the review */
2235
+ id: number;
2236
+ /** id of the comment */
2237
+ comment: number;
2238
+ }
2239
+ export declare const RepoDeletePullReviewCommentRequest: S.Schema<RepoDeletePullReviewCommentRequest>;
2240
+ export interface RepoDeletePullReviewCommentResponse {
2241
+ }
2242
+ export declare const RepoDeletePullReviewCommentResponse: S.Schema<RepoDeletePullReviewCommentResponse>;
2243
+ export type RepoDeletePullReviewRequestsRequestReviewersList = Array<string>;
2244
+ export declare const RepoDeletePullReviewRequestsRequestReviewersList: S.Schema<RepoDeletePullReviewRequestsRequestReviewersList>;
2245
+ export type RepoDeletePullReviewRequestsRequestTeamReviewersList = Array<string>;
2246
+ export declare const RepoDeletePullReviewRequestsRequestTeamReviewersList: S.Schema<RepoDeletePullReviewRequestsRequestTeamReviewersList>;
2247
+ export interface RepoDeletePullReviewRequestsRequest {
2248
+ /** owner of the repo */
2249
+ owner: string;
2250
+ /** name of the repo */
2251
+ repo: string;
2252
+ /** index of the pull request */
2253
+ index: number;
2254
+ reviewers?: RepoDeletePullReviewRequestsRequestReviewersList;
2255
+ team_reviewers?: RepoDeletePullReviewRequestsRequestTeamReviewersList;
2256
+ }
2257
+ export declare const RepoDeletePullReviewRequestsRequest: S.Schema<RepoDeletePullReviewRequestsRequest>;
2258
+ export interface RepoDeletePullReviewRequestsResponse {
2259
+ }
2260
+ export declare const RepoDeletePullReviewRequestsResponse: S.Schema<RepoDeletePullReviewRequestsResponse>;
2261
+ export interface RepoDeletePushMirrorRequest {
2262
+ /** owner of the repo */
2263
+ owner: string;
2264
+ /** name of the repo */
2265
+ repo: string;
2266
+ /** remote name of the pushMirror */
2267
+ name: string;
2268
+ }
2269
+ export declare const RepoDeletePushMirrorRequest: S.Schema<RepoDeletePushMirrorRequest>;
2270
+ export interface RepoDeletePushMirrorResponse {
2271
+ }
2272
+ export declare const RepoDeletePushMirrorResponse: S.Schema<RepoDeletePushMirrorResponse>;
2273
+ export interface RepoDeleteReleaseRequest {
2274
+ /** owner of the repo */
2275
+ owner: string;
2276
+ /** name of the repo */
2277
+ repo: string;
2278
+ /** id of the release to delete */
2279
+ id: number;
2280
+ }
2281
+ export declare const RepoDeleteReleaseRequest: S.Schema<RepoDeleteReleaseRequest>;
2282
+ export interface RepoDeleteReleaseResponse {
2283
+ }
2284
+ export declare const RepoDeleteReleaseResponse: S.Schema<RepoDeleteReleaseResponse>;
2285
+ export interface RepoDeleteReleaseAttachmentRequest {
2286
+ /** owner of the repo */
2287
+ owner: string;
2288
+ /** name of the repo */
2289
+ repo: string;
2290
+ /** id of the release */
2291
+ id: number;
2292
+ /** id of the attachment to delete */
2293
+ attachment_id: number;
2294
+ }
2295
+ export declare const RepoDeleteReleaseAttachmentRequest: S.Schema<RepoDeleteReleaseAttachmentRequest>;
2296
+ export interface RepoDeleteReleaseAttachmentResponse {
2297
+ }
2298
+ export declare const RepoDeleteReleaseAttachmentResponse: S.Schema<RepoDeleteReleaseAttachmentResponse>;
2299
+ export interface RepoDeleteReleaseByTagRequest {
2300
+ /** owner of the repo */
2301
+ owner: string;
2302
+ /** name of the repo */
2303
+ repo: string;
2304
+ /** tag name of the release to delete */
2305
+ tag: string;
2306
+ }
2307
+ export declare const RepoDeleteReleaseByTagRequest: S.Schema<RepoDeleteReleaseByTagRequest>;
2308
+ export interface RepoDeleteReleaseByTagResponse {
2309
+ }
2310
+ export declare const RepoDeleteReleaseByTagResponse: S.Schema<RepoDeleteReleaseByTagResponse>;
2311
+ export interface RepoDeleteTagRequest {
2312
+ /** owner of the repo */
2313
+ owner: string;
2314
+ /** name of the repo */
2315
+ repo: string;
2316
+ /** name of tag to delete */
2317
+ tag: string;
2318
+ }
2319
+ export declare const RepoDeleteTagRequest: S.Schema<RepoDeleteTagRequest>;
2320
+ export interface RepoDeleteTagResponse {
2321
+ }
2322
+ export declare const RepoDeleteTagResponse: S.Schema<RepoDeleteTagResponse>;
2323
+ export interface RepoDeleteTagProtectionRequest {
2324
+ /** owner of the repo */
2325
+ owner: string;
2326
+ /** name of the repo */
2327
+ repo: string;
2328
+ /** id of protected tag */
2329
+ id: number;
2330
+ }
2331
+ export declare const RepoDeleteTagProtectionRequest: S.Schema<RepoDeleteTagProtectionRequest>;
2332
+ export interface RepoDeleteTagProtectionResponse {
2333
+ }
2334
+ export declare const RepoDeleteTagProtectionResponse: S.Schema<RepoDeleteTagProtectionResponse>;
2335
+ export interface RepoDeleteTeamRequest {
2336
+ /** owner of the repo */
2337
+ owner: string;
2338
+ /** name of the repo */
2339
+ repo: string;
2340
+ /** team name */
2341
+ team: string;
2342
+ }
2343
+ export declare const RepoDeleteTeamRequest: S.Schema<RepoDeleteTeamRequest>;
2344
+ export interface RepoDeleteTeamResponse {
2345
+ }
2346
+ export declare const RepoDeleteTeamResponse: S.Schema<RepoDeleteTeamResponse>;
2347
+ export interface RepoDeleteTopicRequest {
2348
+ /** owner of the repo */
2349
+ owner: string;
2350
+ /** name of the repo */
2351
+ repo: string;
2352
+ /** name of the topic to delete */
2353
+ topic: string;
2354
+ }
2355
+ export declare const RepoDeleteTopicRequest: S.Schema<RepoDeleteTopicRequest>;
2356
+ export interface RepoDeleteTopicResponse {
2357
+ }
2358
+ export declare const RepoDeleteTopicResponse: S.Schema<RepoDeleteTopicResponse>;
2359
+ export interface RepoDeleteWikiPageRequest {
2360
+ /** owner of the repo */
2361
+ owner: string;
2362
+ /** name of the repo */
2363
+ repo: string;
2364
+ /** name of the page */
2365
+ pageName: string;
2366
+ }
2367
+ export declare const RepoDeleteWikiPageRequest: S.Schema<RepoDeleteWikiPageRequest>;
2368
+ export interface RepoDeleteWikiPageResponse {
2369
+ }
2370
+ export declare const RepoDeleteWikiPageResponse: S.Schema<RepoDeleteWikiPageResponse>;
2371
+ export type RepoDownloadCommitDiffOrPatchRequestDiffType = "diff" | "patch";
2372
+ export declare const RepoDownloadCommitDiffOrPatchRequestDiffType: any;
2373
+ export interface RepoDownloadCommitDiffOrPatchRequest {
2374
+ /** owner of the repo */
2375
+ owner: string;
2376
+ /** name of the repo */
2377
+ repo: string;
2378
+ /** SHA of the commit to get */
2379
+ sha: string;
2380
+ /** whether the output is diff or patch */
2381
+ diffType: RepoDownloadCommitDiffOrPatchRequestDiffType | (string & {});
2382
+ }
2383
+ export declare const RepoDownloadCommitDiffOrPatchRequest: S.Schema<RepoDownloadCommitDiffOrPatchRequest>;
2384
+ export type RepoDownloadCommitDiffOrPatchResponse = string;
2385
+ export declare const RepoDownloadCommitDiffOrPatchResponse: S.Schema<RepoDownloadCommitDiffOrPatchResponse>;
2386
+ export type RepoDownloadPullDiffOrPatchRequestDiffType = "diff" | "patch";
2387
+ export declare const RepoDownloadPullDiffOrPatchRequestDiffType: any;
2388
+ export interface RepoDownloadPullDiffOrPatchRequest {
2389
+ /** owner of the repo */
2390
+ owner: string;
2391
+ /** name of the repo */
2392
+ repo: string;
2393
+ /** index of the pull request to get */
2394
+ index: number;
2395
+ /** whether the output is diff or patch */
2396
+ diffType: RepoDownloadPullDiffOrPatchRequestDiffType | (string & {});
2397
+ /** whether to include binary file changes. if true, the diff is applicable with `git apply` */
2398
+ binary?: boolean;
2399
+ }
2400
+ export declare const RepoDownloadPullDiffOrPatchRequest: S.Schema<RepoDownloadPullDiffOrPatchRequest>;
2401
+ export type RepoDownloadPullDiffOrPatchResponse = string;
2402
+ export declare const RepoDownloadPullDiffOrPatchResponse: S.Schema<RepoDownloadPullDiffOrPatchResponse>;
2403
+ export type RepoEditBranchProtectionRequestApprovalsWhitelistTeamsList = Array<string>;
2404
+ export declare const RepoEditBranchProtectionRequestApprovalsWhitelistTeamsList: S.Schema<RepoEditBranchProtectionRequestApprovalsWhitelistTeamsList>;
2405
+ export type RepoEditBranchProtectionRequestApprovalsWhitelistUsernameList = Array<string>;
2406
+ export declare const RepoEditBranchProtectionRequestApprovalsWhitelistUsernameList: S.Schema<RepoEditBranchProtectionRequestApprovalsWhitelistUsernameList>;
2407
+ export type RepoEditBranchProtectionRequestMergeWhitelistTeamsList = Array<string>;
2408
+ export declare const RepoEditBranchProtectionRequestMergeWhitelistTeamsList: S.Schema<RepoEditBranchProtectionRequestMergeWhitelistTeamsList>;
2409
+ export type RepoEditBranchProtectionRequestMergeWhitelistUsernamesList = Array<string>;
2410
+ export declare const RepoEditBranchProtectionRequestMergeWhitelistUsernamesList: S.Schema<RepoEditBranchProtectionRequestMergeWhitelistUsernamesList>;
2411
+ export type RepoEditBranchProtectionRequestPushWhitelistTeamsList = Array<string>;
2412
+ export declare const RepoEditBranchProtectionRequestPushWhitelistTeamsList: S.Schema<RepoEditBranchProtectionRequestPushWhitelistTeamsList>;
2413
+ export type RepoEditBranchProtectionRequestPushWhitelistUsernamesList = Array<string>;
2414
+ export declare const RepoEditBranchProtectionRequestPushWhitelistUsernamesList: S.Schema<RepoEditBranchProtectionRequestPushWhitelistUsernamesList>;
2415
+ export type RepoEditBranchProtectionRequestStatusCheckContextsList = Array<string>;
2416
+ export declare const RepoEditBranchProtectionRequestStatusCheckContextsList: S.Schema<RepoEditBranchProtectionRequestStatusCheckContextsList>;
2417
+ export interface RepoEditBranchProtectionRequest {
2418
+ /** owner of the repo */
2419
+ owner: string;
2420
+ /** name of the repo */
2421
+ repo: string;
2422
+ /** name of protected branch */
2423
+ name: string;
2424
+ apply_to_admins?: boolean;
2425
+ approvals_whitelist_teams?: RepoEditBranchProtectionRequestApprovalsWhitelistTeamsList;
2426
+ approvals_whitelist_username?: RepoEditBranchProtectionRequestApprovalsWhitelistUsernameList;
2427
+ block_on_official_review_requests?: boolean;
2428
+ block_on_outdated_branch?: boolean;
2429
+ block_on_rejected_reviews?: boolean;
2430
+ dismiss_stale_approvals?: boolean;
2431
+ enable_approvals_whitelist?: boolean;
2432
+ enable_merge_whitelist?: boolean;
2433
+ enable_push?: boolean;
2434
+ enable_push_whitelist?: boolean;
2435
+ enable_status_check?: boolean;
2436
+ ignore_stale_approvals?: boolean;
2437
+ merge_whitelist_teams?: RepoEditBranchProtectionRequestMergeWhitelistTeamsList;
2438
+ merge_whitelist_usernames?: RepoEditBranchProtectionRequestMergeWhitelistUsernamesList;
2439
+ protected_file_patterns?: string;
2440
+ push_whitelist_deploy_keys?: boolean;
2441
+ push_whitelist_teams?: RepoEditBranchProtectionRequestPushWhitelistTeamsList;
2442
+ push_whitelist_usernames?: RepoEditBranchProtectionRequestPushWhitelistUsernamesList;
2443
+ require_signed_commits?: boolean;
2444
+ required_approvals?: number;
2445
+ status_check_contexts?: RepoEditBranchProtectionRequestStatusCheckContextsList;
2446
+ unprotected_file_patterns?: string;
2447
+ }
2448
+ export declare const RepoEditBranchProtectionRequest: S.Schema<RepoEditBranchProtectionRequest>;
2449
+ export interface RepoEditGitHookRequest {
2450
+ /** owner of the repo */
2451
+ owner: string;
2452
+ /** name of the repo */
2453
+ repo: string;
2454
+ /** id of the hook to get */
2455
+ id: string;
2456
+ content?: string;
2457
+ }
2458
+ export declare const RepoEditGitHookRequest: S.Schema<RepoEditGitHookRequest>;
2459
+ /** GitHook represents a Git repository hook */
2460
+ export interface GitHook {
2461
+ content?: string;
2462
+ is_active?: boolean;
2463
+ name?: string;
2464
+ }
2465
+ export declare const GitHook: S.Schema<GitHook>;
2466
+ export type RepoEditHookRequestConfigMap = {
2467
+ [key: string]: string | undefined;
2468
+ };
2469
+ export declare const RepoEditHookRequestConfigMap: S.Schema<RepoEditHookRequestConfigMap>;
2470
+ export type RepoEditHookRequestEventsList = Array<string>;
2471
+ export declare const RepoEditHookRequestEventsList: S.Schema<RepoEditHookRequestEventsList>;
2472
+ export interface RepoEditHookRequest {
2473
+ /** owner of the repo */
2474
+ owner: string;
2475
+ /** name of the repo */
2476
+ repo: string;
2477
+ /** index of the hook */
2478
+ id: number;
2479
+ active?: boolean;
2480
+ authorization_header?: string;
2481
+ branch_filter?: string;
2482
+ config?: RepoEditHookRequestConfigMap;
2483
+ events?: RepoEditHookRequestEventsList;
2484
+ }
2485
+ export declare const RepoEditHookRequest: S.Schema<RepoEditHookRequest>;
2486
+ export type RepoEditPullRequestRequestAssigneesList = Array<string>;
2487
+ export declare const RepoEditPullRequestRequestAssigneesList: S.Schema<RepoEditPullRequestRequestAssigneesList>;
2488
+ export type RepoEditPullRequestRequestLabelsList = Array<number>;
2489
+ export declare const RepoEditPullRequestRequestLabelsList: S.Schema<RepoEditPullRequestRequestLabelsList>;
2490
+ export interface RepoEditPullRequestRequest {
2491
+ /** owner of the repo */
2492
+ owner: string;
2493
+ /** name of the repo */
2494
+ repo: string;
2495
+ /** index of the pull request to edit */
2496
+ index: number;
2497
+ allow_maintainer_edit?: boolean;
2498
+ assignee?: string;
2499
+ assignees?: RepoEditPullRequestRequestAssigneesList;
2500
+ base?: string;
2501
+ body?: string;
2502
+ due_date?: string;
2503
+ labels?: RepoEditPullRequestRequestLabelsList;
2504
+ milestone?: number;
2505
+ state?: string;
2506
+ title?: string;
2507
+ unset_due_date?: boolean;
2508
+ }
2509
+ export declare const RepoEditPullRequestRequest: S.Schema<RepoEditPullRequestRequest>;
2510
+ export interface RepoEditReleaseRequest {
2511
+ /** owner of the repo */
2512
+ owner: string;
2513
+ /** name of the repo */
2514
+ repo: string;
2515
+ /** id of the release to edit */
2516
+ id: number;
2517
+ body?: string;
2518
+ draft?: boolean;
2519
+ hide_archive_links?: boolean;
2520
+ name?: string;
2521
+ prerelease?: boolean;
2522
+ tag_name?: string;
2523
+ target_commitish?: string;
2524
+ }
2525
+ export declare const RepoEditReleaseRequest: S.Schema<RepoEditReleaseRequest>;
2526
+ export interface RepoEditReleaseAttachmentRequest {
2527
+ /** owner of the repo */
2528
+ owner: string;
2529
+ /** name of the repo */
2530
+ repo: string;
2531
+ /** id of the release */
2532
+ id: number;
2533
+ /** id of the attachment to edit */
2534
+ attachment_id: number;
2535
+ /** (Can only be set if existing attachment is of external type) */
2536
+ browser_download_url?: string;
2537
+ name?: string;
2538
+ }
2539
+ export declare const RepoEditReleaseAttachmentRequest: S.Schema<RepoEditReleaseAttachmentRequest>;
2540
+ export type RepoEditTagProtectionRequestWhitelistTeamsList = Array<string>;
2541
+ export declare const RepoEditTagProtectionRequestWhitelistTeamsList: S.Schema<RepoEditTagProtectionRequestWhitelistTeamsList>;
2542
+ export type RepoEditTagProtectionRequestWhitelistUsernamesList = Array<string>;
2543
+ export declare const RepoEditTagProtectionRequestWhitelistUsernamesList: S.Schema<RepoEditTagProtectionRequestWhitelistUsernamesList>;
2544
+ export interface RepoEditTagProtectionRequest {
2545
+ /** owner of the repo */
2546
+ owner: string;
2547
+ /** name of the repo */
2548
+ repo: string;
2549
+ /** id of protected tag */
2550
+ id: number;
2551
+ name_pattern?: string;
2552
+ whitelist_teams?: RepoEditTagProtectionRequestWhitelistTeamsList;
2553
+ whitelist_usernames?: RepoEditTagProtectionRequestWhitelistUsernamesList;
2554
+ }
2555
+ export declare const RepoEditTagProtectionRequest: S.Schema<RepoEditTagProtectionRequest>;
2556
+ export interface RepoEditWikiPageRequest {
2557
+ /** owner of the repo */
2558
+ owner: string;
2559
+ /** name of the repo */
2560
+ repo: string;
2561
+ /** name of the page */
2562
+ pageName: string;
2563
+ /** content must be base64 encoded */
2564
+ content_base64?: string;
2565
+ /** optional commit message summarizing the change */
2566
+ message?: string;
2567
+ /** page title. leave empty to keep unchanged */
2568
+ title?: string;
2569
+ }
2570
+ export declare const RepoEditWikiPageRequest: S.Schema<RepoEditWikiPageRequest>;
2571
+ export interface RepoGetActionJobLogsRequest {
2572
+ /** owner of the repo */
2573
+ owner: string;
2574
+ /** name of the repo */
2575
+ repo: string;
2576
+ /** ID of the workflow job */
2577
+ job_id: number;
2578
+ /** 1-based attempt number matching the value of `attempt` in the job listing; omit to fetch the latest attempt of the job */
2579
+ attempt?: number;
2580
+ }
2581
+ export declare const RepoGetActionJobLogsRequest: S.Schema<RepoGetActionJobLogsRequest>;
2582
+ export type RepoGetActionJobLogsResponse = string;
2583
+ export declare const RepoGetActionJobLogsResponse: S.Schema<RepoGetActionJobLogsResponse>;
2584
+ export interface RepoGetActionRunLogsRequest {
2585
+ /** owner of the repo */
2586
+ owner: string;
2587
+ /** name of the repo */
2588
+ repo: string;
2589
+ /** ID of the workflow run. The ZIP contains the latest attempt of each job in the run, with each entry named `{job-name}-{job-id}-attempt-{N}.log` (the job ID prevents collisions when two jobs share a name; the attempt number records which run the log came from). The run itself has no attempt number — jobs are re-run independently, so use the per-job logs endpoint with `?attempt` to fetch a specific historical attempt of one job. */
2590
+ run_id: number;
2591
+ }
2592
+ export declare const RepoGetActionRunLogsRequest: S.Schema<RepoGetActionRunLogsRequest>;
2593
+ export type RepoGetActionRunLogsResponse = string;
2594
+ export declare const RepoGetActionRunLogsResponse: S.Schema<RepoGetActionRunLogsResponse>;
2595
+ export interface RepoGetAllCommitsRequest {
2596
+ /** owner of the repo */
2597
+ owner: string;
2598
+ /** name of the repo */
2599
+ repo: string;
2600
+ /** SHA or branch to start listing commits from (usually 'master') */
2601
+ sha?: string;
2602
+ /** filepath of a file/dir */
2603
+ path?: string;
2604
+ /** include diff stats for every commit (disable for speedup, default 'true') */
2605
+ stat?: boolean;
2606
+ /** include verification for every commit (disable for speedup, default 'true') */
2607
+ verification?: boolean;
2608
+ /** include a list of affected files for every commit (disable for speedup, default 'true') */
2609
+ files?: boolean;
2610
+ /** page number of results to return (1-based) */
2611
+ page?: number;
2612
+ /** page size of results */
2613
+ limit?: number;
2614
+ /** commits that match the given specifier will not be listed. */
2615
+ not?: string;
2616
+ }
2617
+ export declare const RepoGetAllCommitsRequest: S.Schema<RepoGetAllCommitsRequest>;
2618
+ export type RepoGetAllCommitsResponseBodyList = Array<Commit>;
2619
+ export declare const RepoGetAllCommitsResponseBodyList: S.Schema<RepoGetAllCommitsResponseBodyList>;
2620
+ export type RepoGetAllCommitsResponse = RepoGetAllCommitsResponseBodyList;
2621
+ export declare const RepoGetAllCommitsResponse: S.Schema<RepoGetAllCommitsResponse>;
2622
+ export interface RepoGetArchiveRequest {
2623
+ /** owner of the repo */
2624
+ owner: string;
2625
+ /** name of the repo */
2626
+ repo: string;
2627
+ /** the git reference for download with attached archive format (e.g. master.zip) */
2628
+ archive: string;
2629
+ }
2630
+ export declare const RepoGetArchiveRequest: S.Schema<RepoGetArchiveRequest>;
2631
+ export interface RepoGetArchiveResponse {
2632
+ }
2633
+ export declare const RepoGetArchiveResponse: S.Schema<RepoGetArchiveResponse>;
2634
+ export interface RepoGetAssigneesRequest {
2635
+ /** owner of the repo */
2636
+ owner: string;
2637
+ /** name of the repo */
2638
+ repo: string;
2639
+ }
2640
+ export declare const RepoGetAssigneesRequest: S.Schema<RepoGetAssigneesRequest>;
2641
+ export type RepoGetAssigneesResponseBodyList = Array<User>;
2642
+ export declare const RepoGetAssigneesResponseBodyList: S.Schema<RepoGetAssigneesResponseBodyList>;
2643
+ export type RepoGetAssigneesResponse = RepoGetAssigneesResponseBodyList;
2644
+ export declare const RepoGetAssigneesResponse: S.Schema<RepoGetAssigneesResponse>;
2645
+ export interface RepoGetBranchRequest {
2646
+ /** owner of the repo */
2647
+ owner: string;
2648
+ /** name of the repo */
2649
+ repo: string;
2650
+ /** branch to get */
2651
+ branch: string;
2652
+ }
2653
+ export declare const RepoGetBranchRequest: S.Schema<RepoGetBranchRequest>;
2654
+ export interface RepoGetBranchProtectionRequest {
2655
+ /** owner of the repo */
2656
+ owner: string;
2657
+ /** name of the repo */
2658
+ repo: string;
2659
+ /** name of protected branch */
2660
+ name: string;
2661
+ }
2662
+ export declare const RepoGetBranchProtectionRequest: S.Schema<RepoGetBranchProtectionRequest>;
2663
+ export interface RepoGetByIDRequest {
2664
+ /** id of the repo to get */
2665
+ id: number;
2666
+ }
2667
+ export declare const RepoGetByIDRequest: S.Schema<RepoGetByIDRequest>;
2668
+ export interface RepoGetCombinedStatusByRefRequest {
2669
+ /** owner of the repo */
2670
+ owner: string;
2671
+ /** name of the repo */
2672
+ repo: string;
2673
+ /** name of branch/tag/commit */
2674
+ ref: string;
2675
+ /** page number of results to return (1-based) */
2676
+ page?: number;
2677
+ /** page size of results */
2678
+ limit?: number;
2679
+ }
2680
+ export declare const RepoGetCombinedStatusByRefRequest: S.Schema<RepoGetCombinedStatusByRefRequest>;
2681
+ export type CombinedStatusStatusesList = Array<CommitStatus>;
2682
+ export declare const CombinedStatusStatusesList: S.Schema<CombinedStatusStatusesList>;
2683
+ /** CombinedStatus holds the combined state of several statuses for a single commit */
2684
+ export interface CombinedStatus {
2685
+ commit_url?: string;
2686
+ repository?: Repository;
2687
+ sha?: string;
2688
+ state?: string;
2689
+ statuses?: CombinedStatusStatusesList;
2690
+ total_count?: number;
2691
+ url?: string;
2692
+ }
2693
+ export declare const CombinedStatus: S.Schema<CombinedStatus>;
2694
+ export interface RepoGetCommitPullRequestRequest {
2695
+ /** owner of the repo */
2696
+ owner: string;
2697
+ /** name of the repo */
2698
+ repo: string;
2699
+ /** SHA of the commit to get */
2700
+ sha: string;
2701
+ }
2702
+ export declare const RepoGetCommitPullRequestRequest: S.Schema<RepoGetCommitPullRequestRequest>;
2703
+ export interface RepoGetContentsRequest {
2704
+ /** owner of the repo */
2705
+ owner: string;
2706
+ /** name of the repo */
2707
+ repo: string;
2708
+ /** path of the dir, file, symlink or submodule in the repo */
2709
+ filepath: string;
2710
+ /** The name of the commit/branch/tag. Default the repository’s default branch (usually master) */
2711
+ ref?: string;
2712
+ }
2713
+ export declare const RepoGetContentsRequest: S.Schema<RepoGetContentsRequest>;
2714
+ export interface RepoGetContentsListRequest {
2715
+ /** owner of the repo */
2716
+ owner: string;
2717
+ /** name of the repo */
2718
+ repo: string;
2719
+ /** The name of the commit/branch/tag. Default the repository’s default branch (usually master) */
2720
+ ref?: string;
2721
+ }
2722
+ export declare const RepoGetContentsListRequest: S.Schema<RepoGetContentsListRequest>;
2723
+ export type RepoGetContentsListResponseBodyList = Array<ContentsResponse>;
2724
+ export declare const RepoGetContentsListResponseBodyList: S.Schema<RepoGetContentsListResponseBodyList>;
2725
+ export type RepoGetContentsListResponse = RepoGetContentsListResponseBodyList;
2726
+ export declare const RepoGetContentsListResponse: S.Schema<RepoGetContentsListResponse>;
2727
+ export interface RepoGetEditorConfigRequest {
2728
+ /** owner of the repo */
2729
+ owner: string;
2730
+ /** name of the repo */
2731
+ repo: string;
2732
+ /** filepath of file to get */
2733
+ filepath: string;
2734
+ /** The name of the commit/branch/tag. Default the repository’s default branch (usually master) */
2735
+ ref?: string;
2736
+ }
2737
+ export declare const RepoGetEditorConfigRequest: S.Schema<RepoGetEditorConfigRequest>;
2738
+ export type RepoGetEditorConfigResponseBodyMap = {
2739
+ [key: string]: string | undefined;
2740
+ };
2741
+ export declare const RepoGetEditorConfigResponseBodyMap: S.Schema<RepoGetEditorConfigResponseBodyMap>;
2742
+ export type RepoGetEditorConfigResponse = RepoGetEditorConfigResponseBodyMap;
2743
+ export declare const RepoGetEditorConfigResponse: S.Schema<RepoGetEditorConfigResponse>;
2744
+ export interface RepoGetGitHookRequest {
2745
+ /** owner of the repo */
2746
+ owner: string;
2747
+ /** name of the repo */
2748
+ repo: string;
2749
+ /** id of the hook to get */
2750
+ id: string;
2751
+ }
2752
+ export declare const RepoGetGitHookRequest: S.Schema<RepoGetGitHookRequest>;
2753
+ export interface RepoGetHookRequest {
2754
+ /** owner of the repo */
2755
+ owner: string;
2756
+ /** name of the repo */
2757
+ repo: string;
2758
+ /** id of the hook to get */
2759
+ id: number;
2760
+ }
2761
+ export declare const RepoGetHookRequest: S.Schema<RepoGetHookRequest>;
2762
+ export interface RepoGetIssueConfigRequest {
2763
+ /** owner of the repo */
2764
+ owner: string;
2765
+ /** name of the repo */
2766
+ repo: string;
2767
+ }
2768
+ export declare const RepoGetIssueConfigRequest: S.Schema<RepoGetIssueConfigRequest>;
2769
+ export interface IssueConfigContactLink {
2770
+ about?: string;
2771
+ name?: string;
2772
+ url?: string;
2773
+ }
2774
+ export declare const IssueConfigContactLink: S.Schema<IssueConfigContactLink>;
2775
+ export type IssueConfigContactLinksList = Array<IssueConfigContactLink>;
2776
+ export declare const IssueConfigContactLinksList: S.Schema<IssueConfigContactLinksList>;
2777
+ export interface IssueConfig {
2778
+ blank_issues_enabled?: boolean;
2779
+ contact_links?: IssueConfigContactLinksList;
2780
+ }
2781
+ export declare const IssueConfig: S.Schema<IssueConfig>;
2782
+ export interface RepoGetIssueTemplatesRequest {
2783
+ /** owner of the repo */
2784
+ owner: string;
2785
+ /** name of the repo */
2786
+ repo: string;
2787
+ }
2788
+ export declare const RepoGetIssueTemplatesRequest: S.Schema<RepoGetIssueTemplatesRequest>;
2789
+ export type IssueFormFieldAttributesMap = {
2790
+ [key: string]: unknown | undefined;
2791
+ };
2792
+ export declare const IssueFormFieldAttributesMap: S.Schema<IssueFormFieldAttributesMap>;
2793
+ export type IssueFormFieldValidationsMap = {
2794
+ [key: string]: unknown | undefined;
2795
+ };
2796
+ export declare const IssueFormFieldValidationsMap: S.Schema<IssueFormFieldValidationsMap>;
2797
+ export type IssueFormFieldVisibleList = Array<string>;
2798
+ export declare const IssueFormFieldVisibleList: S.Schema<IssueFormFieldVisibleList>;
2799
+ /** IssueFormField represents a form field */
2800
+ export interface IssueFormField {
2801
+ attributes?: IssueFormFieldAttributesMap;
2802
+ id?: string;
2803
+ type?: string;
2804
+ validations?: IssueFormFieldValidationsMap;
2805
+ visible?: IssueFormFieldVisibleList;
2806
+ }
2807
+ export declare const IssueFormField: S.Schema<IssueFormField>;
2808
+ export type IssueTemplateBodyList = Array<IssueFormField>;
2809
+ export declare const IssueTemplateBodyList: S.Schema<IssueTemplateBodyList>;
2810
+ export type IssueTemplateLabels = Array<string>;
2811
+ export declare const IssueTemplateLabels: S.Schema<IssueTemplateLabels>;
2812
+ /** IssueTemplate represents an issue template for a repository */
2813
+ export interface IssueTemplate {
2814
+ about?: string;
2815
+ body?: IssueTemplateBodyList;
2816
+ content?: string;
2817
+ file_name?: string;
2818
+ labels?: IssueTemplateLabels;
2819
+ name?: string;
2820
+ ref?: string;
2821
+ title?: string;
2822
+ }
2823
+ export declare const IssueTemplate: S.Schema<IssueTemplate>;
2824
+ export type RepoGetIssueTemplatesResponseBodyList = Array<IssueTemplate>;
2825
+ export declare const RepoGetIssueTemplatesResponseBodyList: S.Schema<RepoGetIssueTemplatesResponseBodyList>;
2826
+ export type RepoGetIssueTemplatesResponse = RepoGetIssueTemplatesResponseBodyList;
2827
+ export declare const RepoGetIssueTemplatesResponse: S.Schema<RepoGetIssueTemplatesResponse>;
2828
+ export interface RepoGetKeyRequest {
2829
+ /** owner of the repo */
2830
+ owner: string;
2831
+ /** name of the repo */
2832
+ repo: string;
2833
+ /** id of the key to get */
2834
+ id: number;
2835
+ }
2836
+ export declare const RepoGetKeyRequest: S.Schema<RepoGetKeyRequest>;
2837
+ export interface RepoGetLanguagesRequest {
2838
+ /** owner of the repo */
2839
+ owner: string;
2840
+ /** name of the repo */
2841
+ repo: string;
2842
+ }
2843
+ export declare const RepoGetLanguagesRequest: S.Schema<RepoGetLanguagesRequest>;
2844
+ export type RepoGetLanguagesResponseBodyMap = {
2845
+ [key: string]: number | undefined;
2846
+ };
2847
+ export declare const RepoGetLanguagesResponseBodyMap: S.Schema<RepoGetLanguagesResponseBodyMap>;
2848
+ export type RepoGetLanguagesResponse = RepoGetLanguagesResponseBodyMap;
2849
+ export declare const RepoGetLanguagesResponse: S.Schema<RepoGetLanguagesResponse>;
2850
+ export interface RepoGetLatestReleaseRequest {
2851
+ /** owner of the repo */
2852
+ owner: string;
2853
+ /** name of the repo */
2854
+ repo: string;
2855
+ }
2856
+ export declare const RepoGetLatestReleaseRequest: S.Schema<RepoGetLatestReleaseRequest>;
2857
+ export interface RepoGetNoteRequest {
2858
+ /** owner of the repo */
2859
+ owner: string;
2860
+ /** name of the repo */
2861
+ repo: string;
2862
+ /** a git ref or commit sha */
2863
+ sha: string;
2864
+ /** include verification for every commit (disable for speedup, default 'true') */
2865
+ verification?: boolean;
2866
+ /** include a list of affected files for every commit (disable for speedup, default 'true') */
2867
+ files?: boolean;
2868
+ }
2869
+ export declare const RepoGetNoteRequest: S.Schema<RepoGetNoteRequest>;
2870
+ /** Note contains information related to a git note */
2871
+ export interface Note {
2872
+ commit?: Commit;
2873
+ message?: string;
2874
+ }
2875
+ export declare const Note: S.Schema<Note>;
2876
+ export interface RepoGetPullRequestRequest {
2877
+ /** owner of the repo */
2878
+ owner: string;
2879
+ /** name of the repo */
2880
+ repo: string;
2881
+ /** index of the pull request to get */
2882
+ index: number;
2883
+ }
2884
+ export declare const RepoGetPullRequestRequest: S.Schema<RepoGetPullRequestRequest>;
2885
+ export interface RepoGetPullRequestByBaseHeadRequest {
2886
+ /** owner of the repo */
2887
+ owner: string;
2888
+ /** name of the repo */
2889
+ repo: string;
2890
+ /** base of the pull request to get */
2891
+ base: string;
2892
+ /** head of the pull request to get */
2893
+ head: string;
2894
+ }
2895
+ export declare const RepoGetPullRequestByBaseHeadRequest: S.Schema<RepoGetPullRequestByBaseHeadRequest>;
2896
+ export interface RepoGetPullRequestCommitsRequest {
2897
+ /** owner of the repo */
2898
+ owner: string;
2899
+ /** name of the repo */
2900
+ repo: string;
2901
+ /** index of the pull request to get */
2902
+ index: number;
2903
+ /** page number of results to return (1-based) */
2904
+ page?: number;
2905
+ /** page size of results */
2906
+ limit?: number;
2907
+ /** include verification for every commit (disable for speedup, default 'true') */
2908
+ verification?: boolean;
2909
+ /** include a list of affected files for every commit (disable for speedup, default 'true') */
2910
+ files?: boolean;
2911
+ }
2912
+ export declare const RepoGetPullRequestCommitsRequest: S.Schema<RepoGetPullRequestCommitsRequest>;
2913
+ export type RepoGetPullRequestCommitsResponseBodyList = Array<Commit>;
2914
+ export declare const RepoGetPullRequestCommitsResponseBodyList: S.Schema<RepoGetPullRequestCommitsResponseBodyList>;
2915
+ export type RepoGetPullRequestCommitsResponse = RepoGetPullRequestCommitsResponseBodyList;
2916
+ export declare const RepoGetPullRequestCommitsResponse: S.Schema<RepoGetPullRequestCommitsResponse>;
2917
+ export type RepoGetPullRequestFilesRequestWhitespace = "ignore-all" | "ignore-change" | "ignore-eol" | "show-all";
2918
+ export declare const RepoGetPullRequestFilesRequestWhitespace: any;
2919
+ export interface RepoGetPullRequestFilesRequest {
2920
+ /** owner of the repo */
2921
+ owner: string;
2922
+ /** name of the repo */
2923
+ repo: string;
2924
+ /** index of the pull request to get */
2925
+ index: number;
2926
+ /** skip to given file */
2927
+ skip_to?: string;
2928
+ /** whitespace behavior */
2929
+ whitespace?: RepoGetPullRequestFilesRequestWhitespace | (string & {});
2930
+ /** page number of results to return (1-based) */
2931
+ page?: number;
2932
+ /** page size of results */
2933
+ limit?: number;
2934
+ }
2935
+ export declare const RepoGetPullRequestFilesRequest: S.Schema<RepoGetPullRequestFilesRequest>;
2936
+ /** ChangedFile store information about files affected by the pull request */
2937
+ export interface ChangedFile {
2938
+ additions?: number;
2939
+ changes?: number;
2940
+ contents_url?: string;
2941
+ deletions?: number;
2942
+ filename?: string;
2943
+ html_url?: string;
2944
+ previous_filename?: string;
2945
+ raw_url?: string;
2946
+ status?: string;
2947
+ }
2948
+ export declare const ChangedFile: S.Schema<ChangedFile>;
2949
+ export type RepoGetPullRequestFilesResponseBodyList = Array<ChangedFile>;
2950
+ export declare const RepoGetPullRequestFilesResponseBodyList: S.Schema<RepoGetPullRequestFilesResponseBodyList>;
2951
+ export type RepoGetPullRequestFilesResponse = RepoGetPullRequestFilesResponseBodyList;
2952
+ export declare const RepoGetPullRequestFilesResponse: S.Schema<RepoGetPullRequestFilesResponse>;
2953
+ export interface RepoGetPullReviewRequest {
2954
+ /** owner of the repo */
2955
+ owner: string;
2956
+ /** name of the repo */
2957
+ repo: string;
2958
+ /** index of the pull request */
2959
+ index: number;
2960
+ /** id of the review */
2961
+ id: number;
2962
+ }
2963
+ export declare const RepoGetPullReviewRequest: S.Schema<RepoGetPullReviewRequest>;
2964
+ export interface RepoGetPullReviewCommentRequest {
2965
+ /** owner of the repo */
2966
+ owner: string;
2967
+ /** name of the repo */
2968
+ repo: string;
2969
+ /** index of the pull request */
2970
+ index: number;
2971
+ /** id of the review */
2972
+ id: number;
2973
+ /** id of the comment */
2974
+ comment: number;
2975
+ }
2976
+ export declare const RepoGetPullReviewCommentRequest: S.Schema<RepoGetPullReviewCommentRequest>;
2977
+ export interface RepoGetPullReviewCommentsRequest {
2978
+ /** owner of the repo */
2979
+ owner: string;
2980
+ /** name of the repo */
2981
+ repo: string;
2982
+ /** index of the pull request */
2983
+ index: number;
2984
+ /** id of the review */
2985
+ id: number;
2986
+ }
2987
+ export declare const RepoGetPullReviewCommentsRequest: S.Schema<RepoGetPullReviewCommentsRequest>;
2988
+ export type RepoGetPullReviewCommentsResponseBodyList = Array<PullReviewComment>;
2989
+ export declare const RepoGetPullReviewCommentsResponseBodyList: S.Schema<RepoGetPullReviewCommentsResponseBodyList>;
2990
+ export type RepoGetPullReviewCommentsResponse = RepoGetPullReviewCommentsResponseBodyList;
2991
+ export declare const RepoGetPullReviewCommentsResponse: S.Schema<RepoGetPullReviewCommentsResponse>;
2992
+ export interface RepoGetPushMirrorByRemoteNameRequest {
2993
+ /** owner of the repo */
2994
+ owner: string;
2995
+ /** name of the repo */
2996
+ repo: string;
2997
+ /** remote name of push mirror */
2998
+ name: string;
2999
+ }
3000
+ export declare const RepoGetPushMirrorByRemoteNameRequest: S.Schema<RepoGetPushMirrorByRemoteNameRequest>;
3001
+ export interface RepoGetRawFileRequest {
3002
+ /** owner of the repo */
3003
+ owner: string;
3004
+ /** name of the repo */
3005
+ repo: string;
3006
+ /** filepath of the file to get */
3007
+ filepath: string;
3008
+ /** The name of the commit/branch/tag. Default the repository’s default branch (usually master) */
3009
+ ref?: string;
3010
+ }
3011
+ export declare const RepoGetRawFileRequest: S.Schema<RepoGetRawFileRequest>;
3012
+ export type RepoGetRawFileResponse = unknown;
3013
+ export declare const RepoGetRawFileResponse: S.Schema<RepoGetRawFileResponse>;
3014
+ export interface RepoGetRawFileOrLFSRequest {
3015
+ /** owner of the repo */
3016
+ owner: string;
3017
+ /** name of the repo */
3018
+ repo: string;
3019
+ /** filepath of the file to get */
3020
+ filepath: string;
3021
+ /** The name of the commit/branch/tag. Default the repository’s default branch (usually master) */
3022
+ ref?: string;
3023
+ }
3024
+ export declare const RepoGetRawFileOrLFSRequest: S.Schema<RepoGetRawFileOrLFSRequest>;
3025
+ export type RepoGetRawFileOrLFSResponse = unknown;
3026
+ export declare const RepoGetRawFileOrLFSResponse: S.Schema<RepoGetRawFileOrLFSResponse>;
3027
+ export interface RepoGetReleaseRequest {
3028
+ /** owner of the repo */
3029
+ owner: string;
3030
+ /** name of the repo */
3031
+ repo: string;
3032
+ /** id of the release to get */
3033
+ id: number;
3034
+ }
3035
+ export declare const RepoGetReleaseRequest: S.Schema<RepoGetReleaseRequest>;
3036
+ export interface RepoGetReleaseAttachmentRequest {
3037
+ /** owner of the repo */
3038
+ owner: string;
3039
+ /** name of the repo */
3040
+ repo: string;
3041
+ /** id of the release */
3042
+ id: number;
3043
+ /** id of the attachment to get */
3044
+ attachment_id: number;
3045
+ }
3046
+ export declare const RepoGetReleaseAttachmentRequest: S.Schema<RepoGetReleaseAttachmentRequest>;
3047
+ export interface RepoGetReleaseByTagRequest {
3048
+ /** owner of the repo */
3049
+ owner: string;
3050
+ /** name of the repo */
3051
+ repo: string;
3052
+ /** tag name of the release to get */
3053
+ tag: string;
3054
+ }
3055
+ export declare const RepoGetReleaseByTagRequest: S.Schema<RepoGetReleaseByTagRequest>;
3056
+ export interface RepoGetReviewersRequest {
3057
+ /** owner of the repo */
3058
+ owner: string;
3059
+ /** name of the repo */
3060
+ repo: string;
3061
+ }
3062
+ export declare const RepoGetReviewersRequest: S.Schema<RepoGetReviewersRequest>;
3063
+ export type RepoGetReviewersResponseBodyList = Array<User>;
3064
+ export declare const RepoGetReviewersResponseBodyList: S.Schema<RepoGetReviewersResponseBodyList>;
3065
+ export type RepoGetReviewersResponse = RepoGetReviewersResponseBodyList;
3066
+ export declare const RepoGetReviewersResponse: S.Schema<RepoGetReviewersResponse>;
3067
+ export interface RepoGetSingleCommitRequest {
3068
+ /** owner of the repo */
3069
+ owner: string;
3070
+ /** name of the repo */
3071
+ repo: string;
3072
+ /** a git ref or commit sha */
3073
+ sha: string;
3074
+ /** include diff stats for every commit (disable for speedup, default 'true') */
3075
+ stat?: boolean;
3076
+ /** include verification for every commit (disable for speedup, default 'true') */
3077
+ verification?: boolean;
3078
+ /** include a list of affected files for every commit (disable for speedup, default 'true') */
3079
+ files?: boolean;
3080
+ }
3081
+ export declare const RepoGetSingleCommitRequest: S.Schema<RepoGetSingleCommitRequest>;
3082
+ export interface RepoGetTagRequest {
3083
+ /** owner of the repo */
3084
+ owner: string;
3085
+ /** name of the repo */
3086
+ repo: string;
3087
+ /** name of tag */
3088
+ tag: string;
3089
+ }
3090
+ export declare const RepoGetTagRequest: S.Schema<RepoGetTagRequest>;
3091
+ export interface RepoGetTagProtectionRequest {
3092
+ /** owner of the repo */
3093
+ owner: string;
3094
+ /** name of the repo */
3095
+ repo: string;
3096
+ /** id of the tag protect to get */
3097
+ id: number;
3098
+ }
3099
+ export declare const RepoGetTagProtectionRequest: S.Schema<RepoGetTagProtectionRequest>;
3100
+ export interface RepoGetWikiPageRequest {
3101
+ /** owner of the repo */
3102
+ owner: string;
3103
+ /** name of the repo */
3104
+ repo: string;
3105
+ /** name of the page */
3106
+ pageName: string;
3107
+ }
3108
+ export declare const RepoGetWikiPageRequest: S.Schema<RepoGetWikiPageRequest>;
3109
+ export interface RepoGetWikiPageRevisionsRequest {
3110
+ /** owner of the repo */
3111
+ owner: string;
3112
+ /** name of the repo */
3113
+ repo: string;
3114
+ /** name of the page */
3115
+ pageName: string;
3116
+ /** page number of results to return (1-based) */
3117
+ page?: number;
3118
+ }
3119
+ export declare const RepoGetWikiPageRevisionsRequest: S.Schema<RepoGetWikiPageRevisionsRequest>;
3120
+ export type WikiCommitListCommitsList = Array<WikiCommit>;
3121
+ export declare const WikiCommitListCommitsList: S.Schema<WikiCommitListCommitsList>;
3122
+ /** WikiCommitList commit/revision list */
3123
+ export interface WikiCommitList {
3124
+ commits?: WikiCommitListCommitsList;
3125
+ count?: number;
3126
+ }
3127
+ export declare const WikiCommitList: S.Schema<WikiCommitList>;
3128
+ export interface RepoGetWikiPagesRequest {
3129
+ /** owner of the repo */
3130
+ owner: string;
3131
+ /** name of the repo */
3132
+ repo: string;
3133
+ /** page number of results to return (1-based) */
3134
+ page?: number;
3135
+ /** page size of results */
3136
+ limit?: number;
3137
+ }
3138
+ export declare const RepoGetWikiPagesRequest: S.Schema<RepoGetWikiPagesRequest>;
3139
+ /** WikiPageMetaData wiki page meta information */
3140
+ export interface WikiPageMetaData {
3141
+ html_url?: string;
3142
+ last_commit?: WikiCommit;
3143
+ sub_url?: string;
3144
+ title?: string;
3145
+ }
3146
+ export declare const WikiPageMetaData: S.Schema<WikiPageMetaData>;
3147
+ export type RepoGetWikiPagesResponseBodyList = Array<WikiPageMetaData>;
3148
+ export declare const RepoGetWikiPagesResponseBodyList: S.Schema<RepoGetWikiPagesResponseBodyList>;
3149
+ export type RepoGetWikiPagesResponse = RepoGetWikiPagesResponseBodyList;
3150
+ export declare const RepoGetWikiPagesResponse: S.Schema<RepoGetWikiPagesResponse>;
3151
+ export interface RepoListActionsSecretsRequest {
3152
+ /** owner of the repository */
3153
+ owner: string;
3154
+ /** name of the repository */
3155
+ repo: string;
3156
+ /** page number of results to return (1-based) */
3157
+ page?: number;
3158
+ /** page size of results */
3159
+ limit?: number;
3160
+ }
3161
+ export declare const RepoListActionsSecretsRequest: S.Schema<RepoListActionsSecretsRequest>;
3162
+ /** Secret represents a secret */
3163
+ export interface Secret {
3164
+ created_at: string;
3165
+ /** the secret's name */
3166
+ name: string;
3167
+ }
3168
+ export declare const Secret: S.Schema<Secret>;
3169
+ export type RepoListActionsSecretsResponseBodyList = Array<Secret>;
3170
+ export declare const RepoListActionsSecretsResponseBodyList: S.Schema<RepoListActionsSecretsResponseBodyList>;
3171
+ export type RepoListActionsSecretsResponse = RepoListActionsSecretsResponseBodyList;
3172
+ export declare const RepoListActionsSecretsResponse: S.Schema<RepoListActionsSecretsResponse>;
3173
+ export interface RepoListActivityFeedsRequest {
3174
+ /** owner of the repo */
3175
+ owner: string;
3176
+ /** name of the repo */
3177
+ repo: string;
3178
+ /** the date of the activities to be found */
3179
+ date?: string;
3180
+ /** page number of results to return (1-based) */
3181
+ page?: number;
3182
+ /** page size of results */
3183
+ limit?: number;
3184
+ }
3185
+ export declare const RepoListActivityFeedsRequest: S.Schema<RepoListActivityFeedsRequest>;
3186
+ /** The attachments to the comment */
3187
+ export type CommentAssetsList = Array<Attachment>;
3188
+ export declare const CommentAssetsList: S.Schema<CommentAssetsList>;
3189
+ /** Comment represents a comment on a commit or issue */
3190
+ export interface Comment {
3191
+ /** The attachments to the comment */
3192
+ assets?: CommentAssetsList;
3193
+ /** The body of the comment */
3194
+ body?: string;
3195
+ /** The time of the comment's creation */
3196
+ created_at?: string;
3197
+ /** The HTML URL of the comment */
3198
+ html_url?: string;
3199
+ /** The identifier of the comment */
3200
+ id?: number;
3201
+ /** The HTML URL of the issue if the comment is posted on an issue, else empty string */
3202
+ issue_url?: string;
3203
+ /** The original author that posted the comment if it was not posted locally, else empty string */
3204
+ original_author?: string;
3205
+ /** The ID of the original author that posted the comment if it was not posted locally, else 0 */
3206
+ original_author_id?: number;
3207
+ /** The HTML URL of the pull request if the comment is posted on a pull request, else empty string */
3208
+ pull_request_url?: string;
3209
+ /** The time of the comment's update */
3210
+ updated_at?: string;
3211
+ user?: User;
3212
+ }
3213
+ export declare const Comment: S.Schema<Comment>;
3214
+ /** the type of action */
3215
+ 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";
3216
+ export declare const ActivityOpType: any;
3217
+ export interface Activity {
3218
+ act_user?: User;
3219
+ act_user_id?: number;
3220
+ comment?: Comment;
3221
+ comment_id?: number;
3222
+ content?: string;
3223
+ created?: string;
3224
+ id?: number;
3225
+ is_private?: boolean;
3226
+ /** the type of action */
3227
+ op_type?: ActivityOpType;
3228
+ ref_name?: string;
3229
+ repo?: Repository;
3230
+ repo_id?: number;
3231
+ user_id?: number;
3232
+ }
3233
+ export declare const Activity: S.Schema<Activity>;
3234
+ export type RepoListActivityFeedsResponseBodyList = Array<Activity>;
3235
+ export declare const RepoListActivityFeedsResponseBodyList: S.Schema<RepoListActivityFeedsResponseBodyList>;
3236
+ export type RepoListActivityFeedsResponse = RepoListActivityFeedsResponseBodyList;
3237
+ export declare const RepoListActivityFeedsResponse: S.Schema<RepoListActivityFeedsResponse>;
3238
+ export interface RepoListAllGitRefsRequest {
3239
+ /** owner of the repo */
3240
+ owner: string;
3241
+ /** name of the repo */
3242
+ repo: string;
3243
+ }
3244
+ export declare const RepoListAllGitRefsRequest: S.Schema<RepoListAllGitRefsRequest>;
3245
+ export type GitObject = AnnotatedTagObject;
3246
+ export declare const GitObject: S.Schema<AnnotatedTagObject>;
3247
+ export interface Reference {
3248
+ object?: AnnotatedTagObject;
3249
+ ref?: string;
3250
+ url?: string;
3251
+ }
3252
+ export declare const Reference: S.Schema<Reference>;
3253
+ export type RepoListAllGitRefsResponseBodyList = Array<Reference>;
3254
+ export declare const RepoListAllGitRefsResponseBodyList: S.Schema<RepoListAllGitRefsResponseBodyList>;
3255
+ export type RepoListAllGitRefsResponse = RepoListAllGitRefsResponseBodyList;
3256
+ export declare const RepoListAllGitRefsResponse: S.Schema<RepoListAllGitRefsResponse>;
3257
+ export interface RepoListBranchesRequest {
3258
+ /** owner of the repo */
3259
+ owner: string;
3260
+ /** name of the repo */
3261
+ repo: string;
3262
+ /** page number of results to return (1-based) */
3263
+ page?: number;
3264
+ /** page size of results */
3265
+ limit?: number;
3266
+ }
3267
+ export declare const RepoListBranchesRequest: S.Schema<RepoListBranchesRequest>;
3268
+ export type RepoListBranchesResponseBodyList = Array<Branch>;
3269
+ export declare const RepoListBranchesResponseBodyList: S.Schema<RepoListBranchesResponseBodyList>;
3270
+ export type RepoListBranchesResponse = RepoListBranchesResponseBodyList;
3271
+ export declare const RepoListBranchesResponse: S.Schema<RepoListBranchesResponse>;
3272
+ export interface RepoListBranchProtectionRequest {
3273
+ /** owner of the repo */
3274
+ owner: string;
3275
+ /** name of the repo */
3276
+ repo: string;
3277
+ }
3278
+ export declare const RepoListBranchProtectionRequest: S.Schema<RepoListBranchProtectionRequest>;
3279
+ export type RepoListBranchProtectionResponseBodyList = Array<BranchProtection>;
3280
+ export declare const RepoListBranchProtectionResponseBodyList: S.Schema<RepoListBranchProtectionResponseBodyList>;
3281
+ export type RepoListBranchProtectionResponse = RepoListBranchProtectionResponseBodyList;
3282
+ export declare const RepoListBranchProtectionResponse: S.Schema<RepoListBranchProtectionResponse>;
3283
+ export interface RepoListCollaboratorsRequest {
3284
+ /** owner of the repo */
3285
+ owner: string;
3286
+ /** name of the repo */
3287
+ repo: string;
3288
+ /** page number of results to return (1-based) */
3289
+ page?: number;
3290
+ /** page size of results */
3291
+ limit?: number;
3292
+ }
3293
+ export declare const RepoListCollaboratorsRequest: S.Schema<RepoListCollaboratorsRequest>;
3294
+ export type RepoListCollaboratorsResponseBodyList = Array<User>;
3295
+ export declare const RepoListCollaboratorsResponseBodyList: S.Schema<RepoListCollaboratorsResponseBodyList>;
3296
+ export type RepoListCollaboratorsResponse = RepoListCollaboratorsResponseBodyList;
3297
+ export declare const RepoListCollaboratorsResponse: S.Schema<RepoListCollaboratorsResponse>;
3298
+ export interface RepoListFlagsRequest {
3299
+ /** owner of the repo */
3300
+ owner: string;
3301
+ /** name of the repo */
3302
+ repo: string;
3303
+ }
3304
+ export declare const RepoListFlagsRequest: S.Schema<RepoListFlagsRequest>;
3305
+ export type RepoListFlagsResponseBodyList = Array<string>;
3306
+ export declare const RepoListFlagsResponseBodyList: S.Schema<RepoListFlagsResponseBodyList>;
3307
+ export type RepoListFlagsResponse = RepoListFlagsResponseBodyList;
3308
+ export declare const RepoListFlagsResponse: S.Schema<RepoListFlagsResponse>;
3309
+ export interface RepoListGitHooksRequest {
3310
+ /** owner of the repo */
3311
+ owner: string;
3312
+ /** name of the repo */
3313
+ repo: string;
3314
+ }
3315
+ export declare const RepoListGitHooksRequest: S.Schema<RepoListGitHooksRequest>;
3316
+ export type RepoListGitHooksResponseBodyList = Array<GitHook>;
3317
+ export declare const RepoListGitHooksResponseBodyList: S.Schema<RepoListGitHooksResponseBodyList>;
3318
+ export type RepoListGitHooksResponse = RepoListGitHooksResponseBodyList;
3319
+ export declare const RepoListGitHooksResponse: S.Schema<RepoListGitHooksResponse>;
3320
+ export interface RepoListGitRefsRequest {
3321
+ /** owner of the repo */
3322
+ owner: string;
3323
+ /** name of the repo */
3324
+ repo: string;
3325
+ /** part or full name of the ref */
3326
+ ref: string;
3327
+ }
3328
+ export declare const RepoListGitRefsRequest: S.Schema<RepoListGitRefsRequest>;
3329
+ export type RepoListGitRefsResponseBodyList = Array<Reference>;
3330
+ export declare const RepoListGitRefsResponseBodyList: S.Schema<RepoListGitRefsResponseBodyList>;
3331
+ export type RepoListGitRefsResponse = RepoListGitRefsResponseBodyList;
3332
+ export declare const RepoListGitRefsResponse: S.Schema<RepoListGitRefsResponse>;
3333
+ export interface RepoListHooksRequest {
3334
+ /** owner of the repo */
3335
+ owner: string;
3336
+ /** name of the repo */
3337
+ repo: string;
3338
+ /** page number of results to return (1-based) */
3339
+ page?: number;
3340
+ /** page size of results */
3341
+ limit?: number;
3342
+ }
3343
+ export declare const RepoListHooksRequest: S.Schema<RepoListHooksRequest>;
3344
+ export type RepoListHooksResponseBodyList = Array<Hook>;
3345
+ export declare const RepoListHooksResponseBodyList: S.Schema<RepoListHooksResponseBodyList>;
3346
+ export type RepoListHooksResponse = RepoListHooksResponseBodyList;
3347
+ export declare const RepoListHooksResponse: S.Schema<RepoListHooksResponse>;
3348
+ export interface RepoListKeysRequest {
3349
+ /** owner of the repo */
3350
+ owner: string;
3351
+ /** name of the repo */
3352
+ repo: string;
3353
+ /** the key_id to search for */
3354
+ key_id?: number;
3355
+ /** fingerprint of the key */
3356
+ fingerprint?: string;
3357
+ /** page number of results to return (1-based) */
3358
+ page?: number;
3359
+ /** page size of results */
3360
+ limit?: number;
3361
+ }
3362
+ export declare const RepoListKeysRequest: S.Schema<RepoListKeysRequest>;
3363
+ export type RepoListKeysResponseBodyList = Array<DeployKey>;
3364
+ export declare const RepoListKeysResponseBodyList: S.Schema<RepoListKeysResponseBodyList>;
3365
+ export type RepoListKeysResponse = RepoListKeysResponseBodyList;
3366
+ export declare const RepoListKeysResponse: S.Schema<RepoListKeysResponse>;
3367
+ export interface RepoListPinnedIssuesRequest {
3368
+ /** owner of the repo */
3369
+ owner: string;
3370
+ /** name of the repo */
3371
+ repo: string;
3372
+ }
3373
+ export declare const RepoListPinnedIssuesRequest: S.Schema<RepoListPinnedIssuesRequest>;
3374
+ export type IssueAssetsList = Array<Attachment>;
3375
+ export declare const IssueAssetsList: S.Schema<IssueAssetsList>;
3376
+ export type IssueAssigneesList = Array<User>;
3377
+ export declare const IssueAssigneesList: S.Schema<IssueAssigneesList>;
3378
+ export type IssueLabelsList = Array<Label>;
3379
+ export declare const IssueLabelsList: S.Schema<IssueLabelsList>;
3380
+ /** PullRequestMeta PR info if an issue is a PR */
3381
+ export interface PullRequestMeta {
3382
+ draft?: boolean;
3383
+ html_url?: string;
3384
+ merged?: boolean;
3385
+ merged_at?: string;
3386
+ }
3387
+ export declare const PullRequestMeta: S.Schema<PullRequestMeta>;
3388
+ /** RepositoryMeta basic repository information */
3389
+ export interface RepositoryMeta {
3390
+ full_name?: string;
3391
+ id?: number;
3392
+ name?: string;
3393
+ owner?: string;
3394
+ }
3395
+ export declare const RepositoryMeta: S.Schema<RepositoryMeta>;
3396
+ /** Issue represents an issue in a repository */
3397
+ export interface Issue {
3398
+ assets?: IssueAssetsList;
3399
+ assignee?: User;
3400
+ assignees?: IssueAssigneesList;
3401
+ body?: string;
3402
+ closed_at?: string;
3403
+ comments?: number;
3404
+ created_at?: string;
3405
+ due_date?: string;
3406
+ html_url?: string;
3407
+ id?: number;
3408
+ is_locked?: boolean;
3409
+ labels?: IssueLabelsList;
3410
+ milestone?: Milestone;
3411
+ number?: number;
3412
+ original_author?: string;
3413
+ original_author_id?: number;
3414
+ pin_order?: number;
3415
+ pull_request?: PullRequestMeta;
3416
+ ref?: string;
3417
+ repository?: RepositoryMeta;
3418
+ state?: string;
3419
+ title?: string;
3420
+ updated_at?: string;
3421
+ url?: string;
3422
+ user?: User;
3423
+ }
3424
+ export declare const Issue: S.Schema<Issue>;
3425
+ export type RepoListPinnedIssuesResponseBodyList = Array<Issue>;
3426
+ export declare const RepoListPinnedIssuesResponseBodyList: S.Schema<RepoListPinnedIssuesResponseBodyList>;
3427
+ export type RepoListPinnedIssuesResponse = RepoListPinnedIssuesResponseBodyList;
3428
+ export declare const RepoListPinnedIssuesResponse: S.Schema<RepoListPinnedIssuesResponse>;
3429
+ export interface RepoListPinnedPullRequestsRequest {
3430
+ /** owner of the repo */
3431
+ owner: string;
3432
+ /** name of the repo */
3433
+ repo: string;
3434
+ }
3435
+ export declare const RepoListPinnedPullRequestsRequest: S.Schema<RepoListPinnedPullRequestsRequest>;
3436
+ export type RepoListPinnedPullRequestsResponseBodyList = Array<PullRequest>;
3437
+ export declare const RepoListPinnedPullRequestsResponseBodyList: S.Schema<RepoListPinnedPullRequestsResponseBodyList>;
3438
+ export type RepoListPinnedPullRequestsResponse = RepoListPinnedPullRequestsResponseBodyList;
3439
+ export declare const RepoListPinnedPullRequestsResponse: S.Schema<RepoListPinnedPullRequestsResponse>;
3440
+ export type RepoListPullRequestsRequestState = "open" | "closed" | "all";
3441
+ export declare const RepoListPullRequestsRequestState: any;
3442
+ export type RepoListPullRequestsRequestSort = "oldest" | "recentupdate" | "recentclose" | "leastupdate" | "mostcomment" | "leastcomment" | "priority";
3443
+ export declare const RepoListPullRequestsRequestSort: any;
3444
+ export type RepoListPullRequestsRequestLabelsList = Array<number>;
3445
+ export declare const RepoListPullRequestsRequestLabelsList: S.Schema<RepoListPullRequestsRequestLabelsList>;
3446
+ export interface RepoListPullRequestsRequest {
3447
+ /** Owner of the repo */
3448
+ owner: string;
3449
+ /** Name of the repo */
3450
+ repo: string;
3451
+ /** State of pull request */
3452
+ state?: RepoListPullRequestsRequestState | (string & {});
3453
+ /** Type of sort */
3454
+ sort?: RepoListPullRequestsRequestSort | (string & {});
3455
+ /** ID of the milestone */
3456
+ milestone?: number;
3457
+ /** Label IDs */
3458
+ labels?: RepoListPullRequestsRequestLabelsList;
3459
+ /** Filter by pull request author */
3460
+ poster?: string;
3461
+ /** Filter by base branch name */
3462
+ base?: string;
3463
+ /** Filter by head branch name */
3464
+ head?: string;
3465
+ /** Page number of results to return (1-based) */
3466
+ page?: number;
3467
+ /** Page size of results */
3468
+ limit?: number;
3469
+ }
3470
+ export declare const RepoListPullRequestsRequest: S.Schema<RepoListPullRequestsRequest>;
3471
+ export type RepoListPullRequestsResponseBodyList = Array<PullRequest>;
3472
+ export declare const RepoListPullRequestsResponseBodyList: S.Schema<RepoListPullRequestsResponseBodyList>;
3473
+ export type RepoListPullRequestsResponse = RepoListPullRequestsResponseBodyList;
3474
+ export declare const RepoListPullRequestsResponse: S.Schema<RepoListPullRequestsResponse>;
3475
+ export interface RepoListPullReviewsRequest {
3476
+ /** owner of the repo */
3477
+ owner: string;
3478
+ /** name of the repo */
3479
+ repo: string;
3480
+ /** index of the pull request */
3481
+ index: number;
3482
+ /** page number of results to return (1-based) */
3483
+ page?: number;
3484
+ /** page size of results */
3485
+ limit?: number;
3486
+ }
3487
+ export declare const RepoListPullReviewsRequest: S.Schema<RepoListPullReviewsRequest>;
3488
+ export type RepoListPullReviewsResponseBodyList = Array<PullReview>;
3489
+ export declare const RepoListPullReviewsResponseBodyList: S.Schema<RepoListPullReviewsResponseBodyList>;
3490
+ export type RepoListPullReviewsResponse = RepoListPullReviewsResponseBodyList;
3491
+ export declare const RepoListPullReviewsResponse: S.Schema<RepoListPullReviewsResponse>;
3492
+ export interface RepoListPushMirrorsRequest {
3493
+ /** owner of the repo */
3494
+ owner: string;
3495
+ /** name of the repo */
3496
+ repo: string;
3497
+ /** page number of results to return (1-based) */
3498
+ page?: number;
3499
+ /** page size of results */
3500
+ limit?: number;
3501
+ }
3502
+ export declare const RepoListPushMirrorsRequest: S.Schema<RepoListPushMirrorsRequest>;
3503
+ export type RepoListPushMirrorsResponseBodyList = Array<PushMirror>;
3504
+ export declare const RepoListPushMirrorsResponseBodyList: S.Schema<RepoListPushMirrorsResponseBodyList>;
3505
+ export type RepoListPushMirrorsResponse = RepoListPushMirrorsResponseBodyList;
3506
+ export declare const RepoListPushMirrorsResponse: S.Schema<RepoListPushMirrorsResponse>;
3507
+ export interface RepoListReleaseAttachmentsRequest {
3508
+ /** owner of the repo */
3509
+ owner: string;
3510
+ /** name of the repo */
3511
+ repo: string;
3512
+ /** id of the release */
3513
+ id: number;
3514
+ }
3515
+ export declare const RepoListReleaseAttachmentsRequest: S.Schema<RepoListReleaseAttachmentsRequest>;
3516
+ export type RepoListReleaseAttachmentsResponseBodyList = Array<Attachment>;
3517
+ export declare const RepoListReleaseAttachmentsResponseBodyList: S.Schema<RepoListReleaseAttachmentsResponseBodyList>;
3518
+ export type RepoListReleaseAttachmentsResponse = RepoListReleaseAttachmentsResponseBodyList;
3519
+ export declare const RepoListReleaseAttachmentsResponse: S.Schema<RepoListReleaseAttachmentsResponse>;
3520
+ export interface RepoListReleasesRequest {
3521
+ /** owner of the repo */
3522
+ owner: string;
3523
+ /** name of the repo */
3524
+ repo: string;
3525
+ /** filter (exclude / include) drafts, if you dont have repo write access none will show */
3526
+ draft?: boolean;
3527
+ /** filter (exclude / include) pre-releases */
3528
+ pre_release?: boolean;
3529
+ /** Search string */
3530
+ q?: string;
3531
+ /** page number of results to return (1-based) */
3532
+ page?: number;
3533
+ /** page size of results */
3534
+ limit?: number;
3535
+ }
3536
+ export declare const RepoListReleasesRequest: S.Schema<RepoListReleasesRequest>;
3537
+ export type RepoListReleasesResponseBodyList = Array<Release>;
3538
+ export declare const RepoListReleasesResponseBodyList: S.Schema<RepoListReleasesResponseBodyList>;
3539
+ export type RepoListReleasesResponse = RepoListReleasesResponseBodyList;
3540
+ export declare const RepoListReleasesResponse: S.Schema<RepoListReleasesResponse>;
3541
+ export interface RepoListStargazersRequest {
3542
+ /** owner of the repo */
3543
+ owner: string;
3544
+ /** name of the repo */
3545
+ repo: string;
3546
+ /** page number of results to return (1-based) */
3547
+ page?: number;
3548
+ /** page size of results */
3549
+ limit?: number;
3550
+ }
3551
+ export declare const RepoListStargazersRequest: S.Schema<RepoListStargazersRequest>;
3552
+ export type RepoListStargazersResponseBodyList = Array<User>;
3553
+ export declare const RepoListStargazersResponseBodyList: S.Schema<RepoListStargazersResponseBodyList>;
3554
+ export type RepoListStargazersResponse = RepoListStargazersResponseBodyList;
3555
+ export declare const RepoListStargazersResponse: S.Schema<RepoListStargazersResponse>;
3556
+ export type RepoListStatusesRequestSort = "oldest" | "recentupdate" | "leastupdate" | "leastindex" | "highestindex";
3557
+ export declare const RepoListStatusesRequestSort: any;
3558
+ export type RepoListStatusesRequestState = "pending" | "success" | "error" | "failure" | "warning";
3559
+ export declare const RepoListStatusesRequestState: any;
3560
+ export interface RepoListStatusesRequest {
3561
+ /** owner of the repo */
3562
+ owner: string;
3563
+ /** name of the repo */
3564
+ repo: string;
3565
+ /** sha of the commit */
3566
+ sha: string;
3567
+ /** type of sort */
3568
+ sort?: RepoListStatusesRequestSort | (string & {});
3569
+ /** type of state */
3570
+ state?: RepoListStatusesRequestState | (string & {});
3571
+ /** page number of results to return (1-based) */
3572
+ page?: number;
3573
+ /** page size of results */
3574
+ limit?: number;
3575
+ }
3576
+ export declare const RepoListStatusesRequest: S.Schema<RepoListStatusesRequest>;
3577
+ export type RepoListStatusesResponseBodyList = Array<CommitStatus>;
3578
+ export declare const RepoListStatusesResponseBodyList: S.Schema<RepoListStatusesResponseBodyList>;
3579
+ export type RepoListStatusesResponse = RepoListStatusesResponseBodyList;
3580
+ export declare const RepoListStatusesResponse: S.Schema<RepoListStatusesResponse>;
3581
+ export type RepoListStatusesByRefRequestSort = "oldest" | "recentupdate" | "leastupdate" | "leastindex" | "highestindex";
3582
+ export declare const RepoListStatusesByRefRequestSort: any;
3583
+ export type RepoListStatusesByRefRequestState = "pending" | "success" | "error" | "failure" | "warning";
3584
+ export declare const RepoListStatusesByRefRequestState: any;
3585
+ export interface RepoListStatusesByRefRequest {
3586
+ /** owner of the repo */
3587
+ owner: string;
3588
+ /** name of the repo */
3589
+ repo: string;
3590
+ /** name of branch/tag/commit */
3591
+ ref: string;
3592
+ /** type of sort */
3593
+ sort?: RepoListStatusesByRefRequestSort | (string & {});
3594
+ /** type of state */
3595
+ state?: RepoListStatusesByRefRequestState | (string & {});
3596
+ /** page number of results to return (1-based) */
3597
+ page?: number;
3598
+ /** page size of results */
3599
+ limit?: number;
3600
+ }
3601
+ export declare const RepoListStatusesByRefRequest: S.Schema<RepoListStatusesByRefRequest>;
3602
+ export type RepoListStatusesByRefResponseBodyList = Array<CommitStatus>;
3603
+ export declare const RepoListStatusesByRefResponseBodyList: S.Schema<RepoListStatusesByRefResponseBodyList>;
3604
+ export type RepoListStatusesByRefResponse = RepoListStatusesByRefResponseBodyList;
3605
+ export declare const RepoListStatusesByRefResponse: S.Schema<RepoListStatusesByRefResponse>;
3606
+ export interface RepoListSubscribersRequest {
3607
+ /** owner of the repo */
3608
+ owner: string;
3609
+ /** name of the repo */
3610
+ repo: string;
3611
+ /** page number of results to return (1-based) */
3612
+ page?: number;
3613
+ /** page size of results */
3614
+ limit?: number;
3615
+ }
3616
+ export declare const RepoListSubscribersRequest: S.Schema<RepoListSubscribersRequest>;
3617
+ export type RepoListSubscribersResponseBodyList = Array<User>;
3618
+ export declare const RepoListSubscribersResponseBodyList: S.Schema<RepoListSubscribersResponseBodyList>;
3619
+ export type RepoListSubscribersResponse = RepoListSubscribersResponseBodyList;
3620
+ export declare const RepoListSubscribersResponse: S.Schema<RepoListSubscribersResponse>;
3621
+ export interface RepoListTagProtectionRequest {
3622
+ /** owner of the repo */
3623
+ owner: string;
3624
+ /** name of the repo */
3625
+ repo: string;
3626
+ }
3627
+ export declare const RepoListTagProtectionRequest: S.Schema<RepoListTagProtectionRequest>;
3628
+ export type RepoListTagProtectionResponseBodyList = Array<TagProtection>;
3629
+ export declare const RepoListTagProtectionResponseBodyList: S.Schema<RepoListTagProtectionResponseBodyList>;
3630
+ export type RepoListTagProtectionResponse = RepoListTagProtectionResponseBodyList;
3631
+ export declare const RepoListTagProtectionResponse: S.Schema<RepoListTagProtectionResponse>;
3632
+ export interface RepoListTagsRequest {
3633
+ /** owner of the repo */
3634
+ owner: string;
3635
+ /** name of the repo */
3636
+ repo: string;
3637
+ /** page number of results to return (1-based) */
3638
+ page?: number;
3639
+ /** page size of results, default maximum page size is 50 */
3640
+ limit?: number;
3641
+ }
3642
+ export declare const RepoListTagsRequest: S.Schema<RepoListTagsRequest>;
3643
+ export type RepoListTagsResponseBodyList = Array<Tag>;
3644
+ export declare const RepoListTagsResponseBodyList: S.Schema<RepoListTagsResponseBodyList>;
3645
+ export type RepoListTagsResponse = RepoListTagsResponseBodyList;
3646
+ export declare const RepoListTagsResponse: S.Schema<RepoListTagsResponse>;
3647
+ export interface RepoListTeamsRequest {
3648
+ /** owner of the repo */
3649
+ owner: string;
3650
+ /** name of the repo */
3651
+ repo: string;
3652
+ }
3653
+ export declare const RepoListTeamsRequest: S.Schema<RepoListTeamsRequest>;
3654
+ export type RepoListTeamsResponseBodyList = Array<Team>;
3655
+ export declare const RepoListTeamsResponseBodyList: S.Schema<RepoListTeamsResponseBodyList>;
3656
+ export type RepoListTeamsResponse = RepoListTeamsResponseBodyList;
3657
+ export declare const RepoListTeamsResponse: S.Schema<RepoListTeamsResponse>;
3658
+ export interface RepoListTopicsRequest {
3659
+ /** owner of the repo */
3660
+ owner: string;
3661
+ /** name of the repo */
3662
+ repo: string;
3663
+ /** page number of results to return (1-based) */
3664
+ page?: number;
3665
+ /** page size of results */
3666
+ limit?: number;
3667
+ }
3668
+ export declare const RepoListTopicsRequest: S.Schema<RepoListTopicsRequest>;
3669
+ export type TopicNameTopicsList = Array<string>;
3670
+ export declare const TopicNameTopicsList: S.Schema<TopicNameTopicsList>;
3671
+ /** TopicName a list of repo topic names */
3672
+ export interface TopicName {
3673
+ topics?: TopicNameTopicsList;
3674
+ }
3675
+ export declare const TopicName: S.Schema<TopicName>;
3676
+ export type RepoMergePullRequestRequestDo = "merge" | "rebase" | "rebase-merge" | "squash" | "fast-forward-only" | "manually-merged";
3677
+ export declare const RepoMergePullRequestRequestDo: any;
3678
+ export interface RepoMergePullRequestRequest {
3679
+ /** owner of the repo */
3680
+ owner: string;
3681
+ /** name of the repo */
3682
+ repo: string;
3683
+ /** index of the pull request to merge */
3684
+ index: number;
3685
+ Do: RepoMergePullRequestRequestDo | (string & {});
3686
+ MergeCommitID?: string;
3687
+ MergeMessageField?: string;
3688
+ MergeTitleField?: string;
3689
+ delete_branch_after_merge?: boolean;
3690
+ force_merge?: boolean;
3691
+ head_commit_id?: string;
3692
+ merge_when_checks_succeed?: boolean;
3693
+ }
3694
+ export declare const RepoMergePullRequestRequest: S.Schema<RepoMergePullRequestRequest>;
3695
+ export interface RepoMergePullRequestResponse {
3696
+ }
3697
+ export declare const RepoMergePullRequestResponse: S.Schema<RepoMergePullRequestResponse>;
3698
+ export interface RepoNewPinAllowedRequest {
3699
+ /** owner of the repo */
3700
+ owner: string;
3701
+ /** name of the repo */
3702
+ repo: string;
3703
+ }
3704
+ export declare const RepoNewPinAllowedRequest: S.Schema<RepoNewPinAllowedRequest>;
3705
+ /** NewIssuePinsAllowed represents an API response that says if new Issue Pins are allowed */
3706
+ export interface NewIssuePinsAllowed {
3707
+ issues?: boolean;
3708
+ pull_requests?: boolean;
3709
+ }
3710
+ export declare const NewIssuePinsAllowed: S.Schema<NewIssuePinsAllowed>;
3711
+ export interface RepoPullRequestIsMergedRequest {
3712
+ /** owner of the repo */
3713
+ owner: string;
3714
+ /** name of the repo */
3715
+ repo: string;
3716
+ /** index of the pull request */
3717
+ index: number;
3718
+ }
3719
+ export declare const RepoPullRequestIsMergedRequest: S.Schema<RepoPullRequestIsMergedRequest>;
3720
+ export interface RepoPullRequestIsMergedResponse {
3721
+ }
3722
+ export declare const RepoPullRequestIsMergedResponse: S.Schema<RepoPullRequestIsMergedResponse>;
3723
+ export interface RepoRemoveNoteRequest {
3724
+ /** owner of the repo */
3725
+ owner: string;
3726
+ /** name of the repo */
3727
+ repo: string;
3728
+ /** a git ref or commit sha */
3729
+ sha: string;
3730
+ }
3731
+ export declare const RepoRemoveNoteRequest: S.Schema<RepoRemoveNoteRequest>;
3732
+ export interface RepoRemoveNoteResponse {
3733
+ }
3734
+ export declare const RepoRemoveNoteResponse: S.Schema<RepoRemoveNoteResponse>;
3735
+ export type RepoReplaceAllFlagsRequestFlagsList = Array<string>;
3736
+ export declare const RepoReplaceAllFlagsRequestFlagsList: S.Schema<RepoReplaceAllFlagsRequestFlagsList>;
3737
+ export interface RepoReplaceAllFlagsRequest {
3738
+ /** owner of the repo */
3739
+ owner: string;
3740
+ /** name of the repo */
3741
+ repo: string;
3742
+ flags?: RepoReplaceAllFlagsRequestFlagsList;
3743
+ }
3744
+ export declare const RepoReplaceAllFlagsRequest: S.Schema<RepoReplaceAllFlagsRequest>;
3745
+ export interface RepoReplaceAllFlagsResponse {
3746
+ }
3747
+ export declare const RepoReplaceAllFlagsResponse: S.Schema<RepoReplaceAllFlagsResponse>;
3748
+ export interface RepoSearchRunJobsRequest {
3749
+ /** owner of the repo */
3750
+ owner: string;
3751
+ /** name of the repo */
3752
+ repo: string;
3753
+ /** a comma separated list of run job labels to search for */
3754
+ labels?: string;
3755
+ }
3756
+ export declare const RepoSearchRunJobsRequest: S.Schema<RepoSearchRunJobsRequest>;
3757
+ export type RepoSearchRunJobsResponseBodyList = Array<ActionRunJob>;
3758
+ export declare const RepoSearchRunJobsResponseBodyList: S.Schema<RepoSearchRunJobsResponseBodyList>;
3759
+ export type RepoSearchRunJobsResponse = RepoSearchRunJobsResponseBodyList;
3760
+ export declare const RepoSearchRunJobsResponse: S.Schema<RepoSearchRunJobsResponse>;
3761
+ export interface RepoSetNoteRequest {
3762
+ /** owner of the repo */
3763
+ owner: string;
3764
+ /** name of the repo */
3765
+ repo: string;
3766
+ /** a git ref or commit sha */
3767
+ sha: string;
3768
+ message?: string;
3769
+ }
3770
+ export declare const RepoSetNoteRequest: S.Schema<RepoSetNoteRequest>;
3771
+ export interface RepoSigningKeyRequest {
3772
+ /** owner of the repo */
3773
+ owner: string;
3774
+ /** name of the repo */
3775
+ repo: string;
3776
+ }
3777
+ export declare const RepoSigningKeyRequest: S.Schema<RepoSigningKeyRequest>;
3778
+ export type RepoSigningKeyResponse = string;
3779
+ export declare const RepoSigningKeyResponse: S.Schema<RepoSigningKeyResponse>;
3780
+ export interface RepoSubmitPullReviewRequest {
3781
+ /** owner of the repo */
3782
+ owner: string;
3783
+ /** name of the repo */
3784
+ repo: string;
3785
+ /** index of the pull request */
3786
+ index: number;
3787
+ /** id of the review */
3788
+ id: number;
3789
+ body?: string;
3790
+ event?: string;
3791
+ }
3792
+ export declare const RepoSubmitPullReviewRequest: S.Schema<RepoSubmitPullReviewRequest>;
3793
+ export interface RepoSyncForkBranchRequest {
3794
+ /** owner of the repo */
3795
+ owner: string;
3796
+ /** name of the repo */
3797
+ repo: string;
3798
+ /** The branch */
3799
+ branch: string;
3800
+ }
3801
+ export declare const RepoSyncForkBranchRequest: S.Schema<RepoSyncForkBranchRequest>;
3802
+ export interface RepoSyncForkBranchResponse {
3803
+ }
3804
+ export declare const RepoSyncForkBranchResponse: S.Schema<RepoSyncForkBranchResponse>;
3805
+ export interface RepoSyncForkBranchInfoRequest {
3806
+ /** owner of the repo */
3807
+ owner: string;
3808
+ /** name of the repo */
3809
+ repo: string;
3810
+ /** The branch */
3811
+ branch: string;
3812
+ }
3813
+ export declare const RepoSyncForkBranchInfoRequest: S.Schema<RepoSyncForkBranchInfoRequest>;
3814
+ /** SyncForkInfo information about syncing a fork */
3815
+ export interface SyncForkInfo {
3816
+ allowed?: boolean;
3817
+ base_commit?: string;
3818
+ commits_behind?: number;
3819
+ fork_commit?: string;
3820
+ }
3821
+ export declare const SyncForkInfo: S.Schema<SyncForkInfo>;
3822
+ export interface RepoSyncForkDefaultRequest {
3823
+ /** owner of the repo */
3824
+ owner: string;
3825
+ /** name of the repo */
3826
+ repo: string;
3827
+ }
3828
+ export declare const RepoSyncForkDefaultRequest: S.Schema<RepoSyncForkDefaultRequest>;
3829
+ export interface RepoSyncForkDefaultResponse {
3830
+ }
3831
+ export declare const RepoSyncForkDefaultResponse: S.Schema<RepoSyncForkDefaultResponse>;
3832
+ export interface RepoSyncForkDefaultInfoRequest {
3833
+ /** owner of the repo */
3834
+ owner: string;
3835
+ /** name of the repo */
3836
+ repo: string;
3837
+ }
3838
+ export declare const RepoSyncForkDefaultInfoRequest: S.Schema<RepoSyncForkDefaultInfoRequest>;
3839
+ export interface RepoTestHookRequest {
3840
+ /** owner of the repo */
3841
+ owner: string;
3842
+ /** name of the repo */
3843
+ repo: string;
3844
+ /** id of the hook to test */
3845
+ id: number;
3846
+ /** The name of the commit/branch/tag, indicates which commit will be loaded to the webhook payload. */
3847
+ ref?: string;
3848
+ }
3849
+ export declare const RepoTestHookRequest: S.Schema<RepoTestHookRequest>;
3850
+ export interface RepoTestHookResponse {
3851
+ }
3852
+ export declare const RepoTestHookResponse: S.Schema<RepoTestHookResponse>;
3853
+ export interface RepoTrackedTimesRequest {
3854
+ /** owner of the repo */
3855
+ owner: string;
3856
+ /** name of the repo */
3857
+ repo: string;
3858
+ /** optional filter by user (available for issue managers) */
3859
+ user?: string;
3860
+ /** Only show times updated after the given time. This is a timestamp in RFC 3339 format */
3861
+ since?: string;
3862
+ /** Only show times updated before the given time. This is a timestamp in RFC 3339 format */
3863
+ before?: string;
3864
+ /** page number of results to return (1-based) */
3865
+ page?: number;
3866
+ /** page size of results */
3867
+ limit?: number;
3868
+ }
3869
+ export declare const RepoTrackedTimesRequest: S.Schema<RepoTrackedTimesRequest>;
3870
+ /** TrackedTime worked time for an issue / pr */
3871
+ export interface TrackedTime {
3872
+ created?: string;
3873
+ id?: number;
3874
+ issue?: Issue;
3875
+ /** deprecated (only for backwards compatibility) */
3876
+ issue_id?: number;
3877
+ /** Time in seconds */
3878
+ time?: number;
3879
+ /** deprecated (only for backwards compatibility) */
3880
+ user_id?: number;
3881
+ user_name?: string;
3882
+ }
3883
+ export declare const TrackedTime: S.Schema<TrackedTime>;
3884
+ export type RepoTrackedTimesResponseBodyList = Array<TrackedTime>;
3885
+ export declare const RepoTrackedTimesResponseBodyList: S.Schema<RepoTrackedTimesResponseBodyList>;
3886
+ export type RepoTrackedTimesResponse = RepoTrackedTimesResponseBodyList;
3887
+ export declare const RepoTrackedTimesResponse: S.Schema<RepoTrackedTimesResponse>;
3888
+ export interface RepoUpdateAvatarRequest {
3889
+ /** owner of the repo */
3890
+ owner: string;
3891
+ /** name of the repo */
3892
+ repo: string;
3893
+ /** image must be base64 encoded */
3894
+ image?: string;
3895
+ }
3896
+ export declare const RepoUpdateAvatarRequest: S.Schema<RepoUpdateAvatarRequest>;
3897
+ export interface RepoUpdateAvatarResponse {
3898
+ }
3899
+ export declare const RepoUpdateAvatarResponse: S.Schema<RepoUpdateAvatarResponse>;
3900
+ export interface RepoUpdateBranchRequest {
3901
+ /** owner of the repo */
3902
+ owner: string;
3903
+ /** name of the repo */
3904
+ repo: string;
3905
+ /** name of the branch */
3906
+ branch: string;
3907
+ /** New branch name */
3908
+ name: string;
3909
+ }
3910
+ export declare const RepoUpdateBranchRequest: S.Schema<RepoUpdateBranchRequest>;
3911
+ export interface RepoUpdateBranchResponse {
3912
+ }
3913
+ export declare const RepoUpdateBranchResponse: S.Schema<RepoUpdateBranchResponse>;
3914
+ export interface RepoUpdateFileRequest {
3915
+ /** owner of the repo */
3916
+ owner: string;
3917
+ /** name of the repo */
3918
+ repo: string;
3919
+ /** path of the file to update */
3920
+ filepath: string;
3921
+ author?: Identity;
3922
+ /** branch (optional) to base this file from. if not given, the default branch is used */
3923
+ branch?: string;
3924
+ committer?: Identity;
3925
+ /** content must be base64 encoded */
3926
+ content: string;
3927
+ dates?: CommitDateOptions;
3928
+ /** (optional) will do a force-push if the new branch already exists */
3929
+ force_overwrite_new_branch?: boolean;
3930
+ /** from_path (optional) is the path of the original file which will be moved/renamed to the path in the URL */
3931
+ from_path?: string;
3932
+ /** message (optional) for the commit of this file. if not supplied, a default message will be used */
3933
+ message?: string;
3934
+ /** new_branch (optional) will make a new branch from `branch` before creating the file */
3935
+ new_branch?: string;
3936
+ /** sha is the SHA for the file that already exists */
3937
+ sha: string;
3938
+ /** Add a Signed-off-by trailer by the committer at the end of the commit log message. */
3939
+ signoff?: boolean;
3940
+ }
3941
+ export declare const RepoUpdateFileRequest: S.Schema<RepoUpdateFileRequest>;
3942
+ export type RepoUpdatePullRequestRequestStyle = "merge" | "rebase";
3943
+ export declare const RepoUpdatePullRequestRequestStyle: any;
3944
+ export interface RepoUpdatePullRequestRequest {
3945
+ /** owner of the repo */
3946
+ owner: string;
3947
+ /** name of the repo */
3948
+ repo: string;
3949
+ /** index of the pull request to get */
3950
+ index: number;
3951
+ /** how to update pull request */
3952
+ style?: RepoUpdatePullRequestRequestStyle | (string & {});
3953
+ }
3954
+ export declare const RepoUpdatePullRequestRequest: S.Schema<RepoUpdatePullRequestRequest>;
3955
+ export interface RepoUpdatePullRequestResponse {
3956
+ }
3957
+ export declare const RepoUpdatePullRequestResponse: S.Schema<RepoUpdatePullRequestResponse>;
3958
+ /** list of topic names */
3959
+ export type RepoUpdateTopicsRequestTopicsList = Array<string>;
3960
+ export declare const RepoUpdateTopicsRequestTopicsList: S.Schema<RepoUpdateTopicsRequestTopicsList>;
3961
+ export interface RepoUpdateTopicsRequest {
3962
+ /** owner of the repo */
3963
+ owner: string;
3964
+ /** name of the repo */
3965
+ repo: string;
3966
+ /** list of topic names */
3967
+ topics?: RepoUpdateTopicsRequestTopicsList;
3968
+ }
3969
+ export declare const RepoUpdateTopicsRequest: S.Schema<RepoUpdateTopicsRequest>;
3970
+ export interface RepoUpdateTopicsResponse {
3971
+ }
3972
+ export declare const RepoUpdateTopicsResponse: S.Schema<RepoUpdateTopicsResponse>;
3973
+ export interface RepoValidateIssueConfigRequest {
3974
+ /** owner of the repo */
3975
+ owner: string;
3976
+ /** name of the repo */
3977
+ repo: string;
3978
+ }
3979
+ export declare const RepoValidateIssueConfigRequest: S.Schema<RepoValidateIssueConfigRequest>;
3980
+ export interface IssueConfigValidation {
3981
+ message?: string;
3982
+ valid?: boolean;
3983
+ }
3984
+ export declare const IssueConfigValidation: S.Schema<IssueConfigValidation>;
3985
+ export interface ReviewRepoDismissPullRequest {
3986
+ /** owner of the repo */
3987
+ owner: string;
3988
+ /** name of the repo */
3989
+ repo: string;
3990
+ /** index of the pull request */
3991
+ index: number;
3992
+ /** id of the review */
3993
+ id: number;
3994
+ message?: string;
3995
+ priors?: boolean;
3996
+ }
3997
+ export declare const ReviewRepoDismissPullRequest: S.Schema<ReviewRepoDismissPullRequest>;
3998
+ export interface ReviewRepoUnDismissPullRequest {
3999
+ /** owner of the repo */
4000
+ owner: string;
4001
+ /** name of the repo */
4002
+ repo: string;
4003
+ /** index of the pull request */
4004
+ index: number;
4005
+ /** id of the review */
4006
+ id: number;
4007
+ }
4008
+ export declare const ReviewRepoUnDismissPullRequest: S.Schema<ReviewRepoUnDismissPullRequest>;
4009
+ export type SearchRepoRequestSort = "alpha" | "created" | "updated" | "size" | "git_size" | "lfs_size" | "id" | "stars" | "forks";
4010
+ export declare const SearchRepoRequestSort: any;
4011
+ export type SearchRepoRequestOrder = "asc" | "desc";
4012
+ export declare const SearchRepoRequestOrder: any;
4013
+ export interface SearchRepoRequest {
4014
+ /** keyword */
4015
+ q?: string;
4016
+ /** Limit search to repositories with keyword as topic */
4017
+ topic?: boolean;
4018
+ /** include search of keyword within repository description */
4019
+ includeDesc?: boolean;
4020
+ /** search only for repos that the user with the given id owns or contributes to */
4021
+ uid?: number;
4022
+ /** repo owner to prioritize in the results */
4023
+ priority_owner_id?: number;
4024
+ /** search only for repos that belong to the given team id */
4025
+ team_id?: number;
4026
+ /** search only for repos that the user with the given id has starred */
4027
+ starredBy?: number;
4028
+ /** include private repositories this user has access to (defaults to true) */
4029
+ private?: boolean;
4030
+ /** show only public, private or all repositories (defaults to all) */
4031
+ is_private?: boolean;
4032
+ /** show only template, non-template or all repositories (defaults to all) */
4033
+ template?: boolean;
4034
+ /** show only archived, non-archived or all repositories (defaults to all) */
4035
+ archived?: boolean;
4036
+ /** type of repository to search for. Supported values are "fork", "source", "mirror" and "collaborative" */
4037
+ mode?: string;
4038
+ /** if `uid` is given, search only for repos that the user owns */
4039
+ exclusive?: boolean;
4040
+ /** sort repos by attribute. Supported values are "alpha", "created", "updated", "size", "git_size", "lfs_size", "stars", "forks" and "id". Default is "alpha" */
4041
+ sort?: SearchRepoRequestSort | (string & {});
4042
+ /** sort order, either "asc" (ascending) or "desc" (descending). Default is "asc", ignored if "sort" is not specified. */
4043
+ order?: SearchRepoRequestOrder | (string & {});
4044
+ /** page number of results to return (1-based) */
4045
+ page?: number;
4046
+ /** page size of results */
4047
+ limit?: number;
4048
+ }
4049
+ export declare const SearchRepoRequest: S.Schema<SearchRepoRequest>;
4050
+ export type SearchResultsDataList = Array<Repository>;
4051
+ export declare const SearchResultsDataList: S.Schema<SearchResultsDataList>;
4052
+ /** SearchResults results of a successful search */
4053
+ export interface SearchResults {
4054
+ data?: SearchResultsDataList;
4055
+ ok?: boolean;
4056
+ }
4057
+ export declare const SearchResults: S.Schema<SearchResults>;
4058
+ export interface SearchTopicRequest {
4059
+ /** keyword to search for */
4060
+ q: string;
4061
+ /** page number of results to return (1-based) */
4062
+ page?: number;
4063
+ /** page size of results */
4064
+ limit?: number;
4065
+ }
4066
+ export declare const SearchTopicRequest: S.Schema<SearchTopicRequest>;
4067
+ /** TopicResponse for returning topics */
4068
+ export interface TopicResponse {
4069
+ created?: string;
4070
+ id?: number;
4071
+ repo_count?: number;
4072
+ topic_name?: string;
4073
+ updated?: string;
4074
+ }
4075
+ export declare const TopicResponse: S.Schema<TopicResponse>;
4076
+ export type SearchTopicResponseTopicsList = Array<TopicResponse>;
4077
+ export declare const SearchTopicResponseTopicsList: S.Schema<SearchTopicResponseTopicsList>;
4078
+ export interface SearchTopicResponse {
4079
+ topics?: SearchTopicResponseTopicsList;
4080
+ }
4081
+ export declare const SearchTopicResponse: S.Schema<SearchTopicResponse>;
4082
+ export interface SyncRepoMirrorRequest {
4083
+ /** owner of the repo to sync */
4084
+ owner: string;
4085
+ /** name of the repo to sync */
4086
+ repo: string;
4087
+ }
4088
+ export declare const SyncRepoMirrorRequest: S.Schema<SyncRepoMirrorRequest>;
4089
+ export interface SyncRepoMirrorResponse {
4090
+ }
4091
+ export declare const SyncRepoMirrorResponse: S.Schema<SyncRepoMirrorResponse>;
4092
+ export interface SyncRepoPushMirrorRequest {
4093
+ /** owner of the repo to sync */
4094
+ owner: string;
4095
+ /** name of the repo to sync */
4096
+ repo: string;
4097
+ }
4098
+ export declare const SyncRepoPushMirrorRequest: S.Schema<SyncRepoPushMirrorRequest>;
4099
+ export interface SyncRepoPushMirrorResponse {
4100
+ }
4101
+ export declare const SyncRepoPushMirrorResponse: S.Schema<SyncRepoPushMirrorResponse>;
4102
+ /** ID of the team or teams to add to the repository. Teams can only be added to organization-owned repositories. */
4103
+ export type TransferRepoRequestTeamIdsList = Array<number>;
4104
+ export declare const TransferRepoRequestTeamIdsList: S.Schema<TransferRepoRequestTeamIdsList>;
4105
+ export interface TransferRepoRequest {
4106
+ /** owner of the repo to transfer */
4107
+ owner: string;
4108
+ /** name of the repo to transfer */
4109
+ repo: string;
4110
+ new_owner: string;
4111
+ /** ID of the team or teams to add to the repository. Teams can only be added to organization-owned repositories. */
4112
+ team_ids?: TransferRepoRequestTeamIdsList;
4113
+ }
4114
+ export declare const TransferRepoRequest: S.Schema<TransferRepoRequest>;
4115
+ export interface TransferRepoResponse {
4116
+ }
4117
+ export declare const TransferRepoResponse: S.Schema<TransferRepoResponse>;
4118
+ export interface UpdateRepoSecretRequest {
4119
+ /** owner of the repository */
4120
+ owner: string;
4121
+ /** name of the repository */
4122
+ repo: string;
4123
+ /** name of the secret */
4124
+ secretname: string;
4125
+ /** 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. */
4126
+ data: string;
4127
+ }
4128
+ export declare const UpdateRepoSecretRequest: S.Schema<UpdateRepoSecretRequest>;
4129
+ export interface UpdateRepoSecretResponse {
4130
+ }
4131
+ export declare const UpdateRepoSecretResponse: S.Schema<UpdateRepoSecretResponse>;
4132
+ export interface UpdateRepoVariableRequest {
4133
+ /** name of the owner */
4134
+ owner: string;
4135
+ /** name of the repository */
4136
+ repo: string;
4137
+ /** name of the variable */
4138
+ variablename: string;
4139
+ /** New name for the variable. If the field is empty, the variable name won't be updated. Forgejo will convert it to uppercase. */
4140
+ name?: string;
4141
+ /** 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. */
4142
+ value: string;
4143
+ }
4144
+ export declare const UpdateRepoVariableRequest: S.Schema<UpdateRepoVariableRequest>;
4145
+ export interface UpdateRepoVariableResponse {
4146
+ }
4147
+ export declare const UpdateRepoVariableResponse: S.Schema<UpdateRepoVariableResponse>;
4148
+ export interface UserCurrentCheckSubscriptionRequest {
4149
+ /** owner of the repo */
4150
+ owner: string;
4151
+ /** name of the repo */
4152
+ repo: string;
4153
+ }
4154
+ export declare const UserCurrentCheckSubscriptionRequest: S.Schema<UserCurrentCheckSubscriptionRequest>;
4155
+ /** WatchInfo represents an API watch status of one repository */
4156
+ export interface WatchInfo {
4157
+ created_at?: string;
4158
+ ignored?: boolean;
4159
+ reason?: unknown;
4160
+ repository_url?: string;
4161
+ subscribed?: boolean;
4162
+ url?: string;
4163
+ }
4164
+ export declare const WatchInfo: S.Schema<WatchInfo>;
4165
+ export interface UserCurrentDeleteSubscriptionRequest {
4166
+ /** owner of the repo */
4167
+ owner: string;
4168
+ /** name of the repo */
4169
+ repo: string;
4170
+ }
4171
+ export declare const UserCurrentDeleteSubscriptionRequest: S.Schema<UserCurrentDeleteSubscriptionRequest>;
4172
+ export interface UserCurrentDeleteSubscriptionResponse {
4173
+ }
4174
+ export declare const UserCurrentDeleteSubscriptionResponse: S.Schema<UserCurrentDeleteSubscriptionResponse>;
4175
+ export interface UserCurrentPutSubscriptionRequest {
4176
+ /** owner of the repo */
4177
+ owner: string;
4178
+ /** name of the repo */
4179
+ repo: string;
4180
+ }
4181
+ export declare const UserCurrentPutSubscriptionRequest: S.Schema<UserCurrentPutSubscriptionRequest>;
4182
+ export type AcceptRepoTransferError = Forbidden | NotFound | ForgejoOpError;
4183
+ /** Accept a repo transfer */
4184
+ export declare const acceptRepoTransfer: API.OperationMethod<AcceptRepoTransferRequest, AcceptRepoTransferResponse, AcceptRepoTransferError, ForgejoOpContext>;
4185
+ export type ActionRun2Error = BadRequest | Forbidden | NotFound | ForgejoOpError;
4186
+ /** Get an action run */
4187
+ export declare const actionRun2: API.OperationMethod<ActionRunRequest, ActionRun, ActionRun2Error, ForgejoOpContext>;
4188
+ export type CancelActionRunError = Forbidden | NotFound | ForgejoOpError;
4189
+ /** Cancel a pending or running workflow run. Cancel a particular workflow run. Pending or running jobs of the run are cancelled. A run that has already finished, whether cancelled, failed, skipped or succeeded, is left unchanged. In both cases the endpoint responds with HTTP 204. */
4190
+ export declare const cancelActionRun: API.OperationMethod<CancelActionRunRequest, CancelActionRunResponse, CancelActionRunError, ForgejoOpContext>;
4191
+ export type ConvertRepoError = Forbidden | NotFound | UnprocessableEntity | ForgejoOpError;
4192
+ /** Convert a mirror repo to a normal repo. */
4193
+ export declare const convertRepo: API.OperationMethod<ConvertRepoRequest, Repository, ConvertRepoError, ForgejoOpContext>;
4194
+ export type CreateCurrentUserRepoError = BadRequest | Forbidden | Conflict | UnprocessableEntity | ForgejoOpError;
4195
+ /** Create a repository */
4196
+ export declare const createCurrentUserRepo: API.OperationMethod<CreateCurrentUserRepoRequest, Repository, CreateCurrentUserRepoError, ForgejoOpContext>;
4197
+ export type CreateForkError = Forbidden | NotFound | Conflict | UnprocessableEntity | ForgejoOpError;
4198
+ /** Fork a repository */
4199
+ export declare const createFork: API.OperationMethod<CreateForkRequest, CreateForkResponse, CreateForkError, ForgejoOpContext>;
4200
+ export type CreateRepoVariableError = BadRequest | NotFound | ForgejoOpError;
4201
+ /** Create a repo-level variable */
4202
+ export declare const createRepoVariable: API.OperationMethod<CreateRepoVariableRequest, CreateRepoVariableResponse, CreateRepoVariableError, ForgejoOpContext>;
4203
+ export type DeleteActionArtifactError = BadRequest | Forbidden | NotFound | ForgejoOpError;
4204
+ /** Mark an artifact for deletion Marks the artifact for deletion. Storage space will be reclaimed asynchronously by a background job. */
4205
+ export declare const deleteActionArtifact: API.OperationMethod<DeleteActionArtifactRequest, DeleteActionArtifactResponse, DeleteActionArtifactError, ForgejoOpContext>;
4206
+ export type DeleteActionRunError = BadRequest | Forbidden | NotFound | ForgejoOpError;
4207
+ /** Delete a completed workflow run. Remove a particular workflow run. The workflow run must have completed (succeeded, failed, cancelled) for the operation to succeed. Otherwise, an error is returned. */
4208
+ export declare const deleteActionRun: API.OperationMethod<DeleteActionRunRequest, DeleteActionRunResponse, DeleteActionRunError, ForgejoOpContext>;
4209
+ export type DeleteRepoError = Forbidden | NotFound | ForgejoOpError;
4210
+ /** Delete a repository */
4211
+ export declare const deleteRepo: API.OperationMethod<DeleteRepoRequest, DeleteRepoResponse, DeleteRepoError, ForgejoOpContext>;
4212
+ export type DeleteRepoRunnerError = BadRequest | NotFound | ForgejoOpError;
4213
+ /** Delete a particular runner that belongs to a repository */
4214
+ export declare const deleteRepoRunner: API.OperationMethod<DeleteRepoRunnerRequest, DeleteRepoRunnerResponse, DeleteRepoRunnerError, ForgejoOpContext>;
4215
+ export type DeleteRepoSecretError = BadRequest | NotFound | ForgejoOpError;
4216
+ /** Delete a secret in a repository */
4217
+ export declare const deleteRepoSecret: API.OperationMethod<DeleteRepoSecretRequest, DeleteRepoSecretResponse, DeleteRepoSecretError, ForgejoOpContext>;
4218
+ export type DeleteRepoVariableError = BadRequest | NotFound | ForgejoOpError;
4219
+ /** Delete a repo-level variable */
4220
+ export declare const deleteRepoVariable: API.OperationMethod<DeleteRepoVariableRequest, DeleteRepoVariableResponse, DeleteRepoVariableError, ForgejoOpContext>;
4221
+ export type DispatchWorkflowError = NotFound | ForgejoOpError;
4222
+ /** Dispatches a workflow */
4223
+ export declare const dispatchWorkflow: API.OperationMethod<DispatchWorkflowRequest, DispatchWorkflowRun, DispatchWorkflowError, ForgejoOpContext>;
4224
+ export type DownloadActionArtifactError = BadRequest | Forbidden | NotFound | ForgejoOpError;
4225
+ /** Download an artifact */
4226
+ export declare const downloadActionArtifact: API.OperationMethod<DownloadActionArtifactRequest, DownloadActionArtifactResponse, DownloadActionArtifactError, ForgejoOpContext>;
4227
+ export type EditRepoError = Forbidden | NotFound | UnprocessableEntity | ForgejoOpError;
4228
+ /** Edit a repository's properties. Only fields that are set will be changed. */
4229
+ export declare const editRepo: API.OperationMethod<EditRepoRequest, Repository, EditRepoError, ForgejoOpContext>;
4230
+ export type GenerateRepoError = Forbidden | NotFound | Conflict | UnprocessableEntity | ForgejoOpError;
4231
+ /** Create a repository using a template */
4232
+ export declare const generateRepo: API.OperationMethod<GenerateRepoRequest, Repository, GenerateRepoError, ForgejoOpContext>;
4233
+ export type GetActionArtifactError = BadRequest | Forbidden | NotFound | ForgejoOpError;
4234
+ /** Get an artifact by ID */
4235
+ export declare const getActionArtifact: API.OperationMethod<GetActionArtifactRequest, ActionArtifact, GetActionArtifactError, ForgejoOpContext>;
4236
+ export type GetAnnotatedTagError = BadRequest | NotFound | ForgejoOpError;
4237
+ /** Gets the tag object of an annotated tag (not lightweight tags) */
4238
+ export declare const getAnnotatedTag: API.OperationMethod<GetAnnotatedTagRequest, AnnotatedTag, GetAnnotatedTagError, ForgejoOpContext>;
4239
+ export type GetBlobError = BadRequest | NotFound | ForgejoOpError;
4240
+ /** Gets the blob of a repository. */
4241
+ export declare const getBlob: API.OperationMethod<GetBlobRequest, GitBlob, GetBlobError, ForgejoOpContext>;
4242
+ export type GetBlobsError = BadRequest | ForgejoOpError;
4243
+ /** Gets multiple blobs of a repository. */
4244
+ export declare const getBlobs: API.OperationMethod<GetBlobsRequest, GetBlobsResponse, GetBlobsError, ForgejoOpContext>;
4245
+ export type GetRepoError = NotFound | ForgejoOpError;
4246
+ /** Get a repository */
4247
+ export declare const getRepo: API.OperationMethod<GetRepoRequest, Repository, GetRepoError, ForgejoOpContext>;
4248
+ export type GetRepoPermissionsError = Forbidden | NotFound | ForgejoOpError;
4249
+ /** Get repository permissions for a user */
4250
+ export declare const getRepoPermissions: API.OperationMethod<GetRepoPermissionsRequest, RepoCollaboratorPermission, GetRepoPermissionsError, ForgejoOpContext>;
4251
+ export type GetRepoRunnerError = BadRequest | NotFound | ForgejoOpError;
4252
+ /** Get a particular runner that belongs to the repository */
4253
+ export declare const getRepoRunner: API.OperationMethod<GetRepoRunnerRequest, ActionRunner, GetRepoRunnerError, ForgejoOpContext>;
4254
+ export type GetRepoRunnersError = BadRequest | NotFound | ForgejoOpError;
4255
+ /** Get runners belonging to the repository */
4256
+ export declare const getRepoRunners: API.OperationMethod<GetRepoRunnersRequest, GetRepoRunnersResponse, GetRepoRunnersError, ForgejoOpContext>;
4257
+ export type GetRepoVariableError = BadRequest | NotFound | ForgejoOpError;
4258
+ /** Get a repo-level variable */
4259
+ export declare const getRepoVariable: API.OperationMethod<GetRepoVariableRequest, ActionVariable, GetRepoVariableError, ForgejoOpContext>;
4260
+ export type GetRepoVariablesListError = BadRequest | Forbidden | NotFound | ForgejoOpError;
4261
+ /** Get repo-level variables list */
4262
+ export declare const getRepoVariablesList: API.OperationMethod<GetRepoVariablesListRequest, GetRepoVariablesListResponse, GetRepoVariablesListError, ForgejoOpContext>;
4263
+ export type GetTreeError = BadRequest | NotFound | ForgejoOpError;
4264
+ /** Gets the tree of a repository. */
4265
+ export declare const getTree: API.OperationMethod<GetTreeRequest, GitTreeResponse, GetTreeError, ForgejoOpContext>;
4266
+ export type ListActionArtifactsError = BadRequest | Forbidden | ForgejoOpError;
4267
+ /** List a repository's artifacts */
4268
+ export declare const listActionArtifacts: API.OperationMethod<ListActionArtifactsRequest, ListActionArtifactsResponse, ListActionArtifactsError, ForgejoOpContext>;
4269
+ export type ListActionRunArtifactsError = BadRequest | Forbidden | NotFound | ForgejoOpError;
4270
+ /** List artifacts of a workflow run */
4271
+ export declare const listActionRunArtifacts: API.OperationMethod<ListActionRunArtifactsRequest, ListActionRunArtifactsResponse, ListActionRunArtifactsError, ForgejoOpContext>;
4272
+ export type ListActionRunJobsError = BadRequest | Forbidden | NotFound | ForgejoOpError;
4273
+ /** List jobs of a workflow run */
4274
+ export declare const listActionRunJobs: API.OperationMethod<ListActionRunJobsRequest, ListActionRunJobsResponse, ListActionRunJobsError, ForgejoOpContext>;
4275
+ export type ListActionRunsError = BadRequest | Forbidden | ForgejoOpError;
4276
+ /** List a repository's action runs */
4277
+ export declare const listActionRuns: API.OperationMethod<ListActionRunsRequest, ListActionRunResponse, ListActionRunsError, ForgejoOpContext>;
4278
+ export type ListActionTasksError = BadRequest | Forbidden | NotFound | Conflict | UnprocessableEntity | ForgejoOpError;
4279
+ /** List a repository's action tasks */
4280
+ export declare const listActionTasks: API.OperationMethod<ListActionTasksRequest, ActionTaskResponse, ListActionTasksError, ForgejoOpContext>;
4281
+ export type ListForksError = NotFound | ForgejoOpError;
4282
+ /** List a repository's forks */
4283
+ export declare const listForks: API.OperationMethod<ListForksRequest, ListForksResponse, ListForksError, ForgejoOpContext>;
4284
+ export type MigrateRepoError = Forbidden | Conflict | UnprocessableEntity | ForgejoOpError;
4285
+ /** Migrate a remote git repository */
4286
+ export declare const migrateRepo: API.OperationMethod<MigrateRepoRequest, Repository, MigrateRepoError, ForgejoOpContext>;
4287
+ export type RegisterRepoRunnerError = BadRequest | NotFound | ForgejoOpError;
4288
+ /** Register a new repository-level runner */
4289
+ export declare const registerRepoRunner: API.OperationMethod<RegisterRepoRunnerRequest, RegisterRunnerResponse, RegisterRepoRunnerError, ForgejoOpContext>;
4290
+ export type RejectRepoTransferError = Forbidden | NotFound | ForgejoOpError;
4291
+ /** Reject a repo transfer */
4292
+ export declare const rejectRepoTransfer: API.OperationMethod<RejectRepoTransferRequest, Repository, RejectRepoTransferError, ForgejoOpContext>;
4293
+ export type RepoAddCollaboratorError = Forbidden | NotFound | UnprocessableEntity | ForgejoOpError;
4294
+ /** Add a collaborator to a repository */
4295
+ export declare const repoAddCollaborator: API.OperationMethod<RepoAddCollaboratorRequest, RepoAddCollaboratorResponse, RepoAddCollaboratorError, ForgejoOpContext>;
4296
+ export type RepoAddFlagError = Forbidden | NotFound | ForgejoOpError;
4297
+ /** Add a flag to a repository */
4298
+ export declare const repoAddFlag: API.OperationMethod<RepoAddFlagRequest, RepoAddFlagResponse, RepoAddFlagError, ForgejoOpContext>;
4299
+ export type RepoAddPushMirrorError = BadRequest | Forbidden | NotFound | ForgejoOpError;
4300
+ /** Set up a new push mirror in a repository */
4301
+ export declare const repoAddPushMirror: API.OperationMethod<RepoAddPushMirrorRequest, PushMirror, RepoAddPushMirrorError, ForgejoOpContext>;
4302
+ export type RepoAddTeamError = NotFound | UnprocessableEntity | ForgejoOpError;
4303
+ /** Add a team to a repository */
4304
+ export declare const repoAddTeam: API.OperationMethod<RepoAddTeamRequest, RepoAddTeamResponse, RepoAddTeamError, ForgejoOpContext>;
4305
+ export type RepoAddTopicError = NotFound | UnprocessableEntity | ForgejoOpError;
4306
+ /** Add a topic to a repository */
4307
+ export declare const repoAddTopic: API.OperationMethod<RepoAddTopicRequest, RepoAddTopicResponse, RepoAddTopicError, ForgejoOpContext>;
4308
+ export type RepoApplyDiffPatchError = NotFound | Locked | ForgejoOpError;
4309
+ /** Apply diff patch to repository */
4310
+ export declare const repoApplyDiffPatch: API.OperationMethod<RepoApplyDiffPatchRequest, FileResponse, RepoApplyDiffPatchError, ForgejoOpContext>;
4311
+ export type RepoCancelScheduledAutoMergeError = Forbidden | NotFound | Locked | ForgejoOpError;
4312
+ /** Cancel the scheduled auto merge for the given pull request */
4313
+ export declare const repoCancelScheduledAutoMerge: API.OperationMethod<RepoCancelScheduledAutoMergeRequest, RepoCancelScheduledAutoMergeResponse, RepoCancelScheduledAutoMergeError, ForgejoOpContext>;
4314
+ export type RepoChangeFilesError = Forbidden | NotFound | Conflict | UnprocessableEntity | Locked | ForgejoOpError;
4315
+ /** Modify multiple files in a repository */
4316
+ export declare const repoChangeFiles: API.OperationMethod<RepoChangeFilesRequest, FilesResponse, RepoChangeFilesError, ForgejoOpContext>;
4317
+ export type RepoCheckCollaboratorError = NotFound | UnprocessableEntity | ForgejoOpError;
4318
+ /** Check if a user is a collaborator of a repository If the user is a collaborator, return 204. If the user is not a collaborator, return 404. */
4319
+ export declare const repoCheckCollaborator: API.OperationMethod<RepoCheckCollaboratorRequest, RepoCheckCollaboratorResponse, RepoCheckCollaboratorError, ForgejoOpContext>;
4320
+ export type RepoCheckFlagError = Forbidden | NotFound | ForgejoOpError;
4321
+ /** Check if a repository has a given flag */
4322
+ export declare const repoCheckFlag: API.OperationMethod<RepoCheckFlagRequest, RepoCheckFlagResponse, RepoCheckFlagError, ForgejoOpContext>;
4323
+ export type RepoCheckTeamError = NotFound | ForgejoOpError;
4324
+ /** Check if a team is assigned to a repository */
4325
+ export declare const repoCheckTeam: API.OperationMethod<RepoCheckTeamRequest, Team, RepoCheckTeamError, ForgejoOpContext>;
4326
+ export type RepoCompareDiffError = NotFound | ForgejoOpError;
4327
+ /** Get commit comparison information */
4328
+ export declare const repoCompareDiff: API.OperationMethod<RepoCompareDiffRequest, Compare, RepoCompareDiffError, ForgejoOpContext>;
4329
+ export type RepoCreateBranchError = Forbidden | NotFound | Conflict | Locked | ForgejoOpError;
4330
+ /** Create a branch */
4331
+ export declare const repoCreateBranch: API.OperationMethod<RepoCreateBranchRequest, Branch, RepoCreateBranchError, ForgejoOpContext>;
4332
+ export type RepoCreateBranchProtectionError = Forbidden | NotFound | UnprocessableEntity | Locked | ForgejoOpError;
4333
+ /** Create a branch protections for a repository */
4334
+ export declare const repoCreateBranchProtection: API.OperationMethod<RepoCreateBranchProtectionRequest, BranchProtection, RepoCreateBranchProtectionError, ForgejoOpContext>;
4335
+ export type RepoCreateFileError = Forbidden | NotFound | Conflict | UnprocessableEntity | Locked | ForgejoOpError;
4336
+ /** Create a file in a repository */
4337
+ export declare const repoCreateFile: API.OperationMethod<RepoCreateFileRequest, FileResponse, RepoCreateFileError, ForgejoOpContext>;
4338
+ export type RepoCreateHookError = NotFound | ForgejoOpError;
4339
+ /** Create a hook */
4340
+ export declare const repoCreateHook: API.OperationMethod<RepoCreateHookRequest, Hook, RepoCreateHookError, ForgejoOpContext>;
4341
+ export type RepoCreateKeyError = NotFound | UnprocessableEntity | ForgejoOpError;
4342
+ /** Add a key to a repository */
4343
+ export declare const repoCreateKey: API.OperationMethod<RepoCreateKeyRequest, DeployKey, RepoCreateKeyError, ForgejoOpContext>;
4344
+ export type RepoCreatePullRequestError = NotFound | Conflict | UnprocessableEntity | Locked | ForgejoOpError;
4345
+ /** Create a pull request */
4346
+ export declare const repoCreatePullRequest: API.OperationMethod<RepoCreatePullRequestRequest, PullRequest, RepoCreatePullRequestError, ForgejoOpContext>;
4347
+ export type RepoCreatePullReviewError = NotFound | UnprocessableEntity | ForgejoOpError;
4348
+ /** Create a review to an pull request */
4349
+ export declare const repoCreatePullReview: API.OperationMethod<RepoCreatePullReviewRequest, PullReview, RepoCreatePullReviewError, ForgejoOpContext>;
4350
+ export type RepoCreatePullReviewCommentError = NotFound | UnprocessableEntity | ForgejoOpError;
4351
+ /** Add a new comment to a pull request review */
4352
+ export declare const repoCreatePullReviewComment: API.OperationMethod<RepoCreatePullReviewCommentRequest, PullReviewComment, RepoCreatePullReviewCommentError, ForgejoOpContext>;
4353
+ export type RepoCreatePullReviewRequestsError = Forbidden | NotFound | UnprocessableEntity | ForgejoOpError;
4354
+ /** Create review requests for a pull request */
4355
+ export declare const repoCreatePullReviewRequests: API.OperationMethod<RepoCreatePullReviewRequestsRequest, RepoCreatePullReviewRequestsResponse, RepoCreatePullReviewRequestsError, ForgejoOpContext>;
4356
+ export type RepoCreateReleaseError = NotFound | Conflict | UnprocessableEntity | ForgejoOpError;
4357
+ /** Create a release */
4358
+ export declare const repoCreateRelease: API.OperationMethod<RepoCreateReleaseRequest, Release, RepoCreateReleaseError, ForgejoOpContext>;
4359
+ export type RepoCreateReleaseAttachmentError = BadRequest | NotFound | ForgejoOpError;
4360
+ /** Create a release attachment */
4361
+ export declare const repoCreateReleaseAttachment: API.OperationMethod<RepoCreateReleaseAttachmentRequest, Attachment, RepoCreateReleaseAttachmentError, ForgejoOpContext>;
4362
+ export type RepoCreateStatusError = BadRequest | NotFound | ForgejoOpError;
4363
+ /** Create a commit status */
4364
+ export declare const repoCreateStatus: API.OperationMethod<RepoCreateStatusRequest, CommitStatus, RepoCreateStatusError, ForgejoOpContext>;
4365
+ export type RepoCreateTagError = NotFound | Conflict | UnprocessableEntity | Locked | ForgejoOpError;
4366
+ /** Create a new git tag in a repository */
4367
+ export declare const repoCreateTag: API.OperationMethod<RepoCreateTagRequest, Tag, RepoCreateTagError, ForgejoOpContext>;
4368
+ export type RepoCreateTagProtectionError = Forbidden | NotFound | UnprocessableEntity | Locked | ForgejoOpError;
4369
+ /** Create a tag protections for a repository */
4370
+ export declare const repoCreateTagProtection: API.OperationMethod<RepoCreateTagProtectionRequest, TagProtection, RepoCreateTagProtectionError, ForgejoOpContext>;
4371
+ export type RepoCreateWikiPageError = BadRequest | Forbidden | NotFound | Locked | ForgejoOpError;
4372
+ /** Create a wiki page */
4373
+ export declare const repoCreateWikiPage: API.OperationMethod<RepoCreateWikiPageRequest, WikiPage, RepoCreateWikiPageError, ForgejoOpContext>;
4374
+ export type RepoDeleteAllFlagsError = Forbidden | NotFound | ForgejoOpError;
4375
+ /** Remove all flags from a repository */
4376
+ export declare const repoDeleteAllFlags: API.OperationMethod<RepoDeleteAllFlagsRequest, RepoDeleteAllFlagsResponse, RepoDeleteAllFlagsError, ForgejoOpContext>;
4377
+ export type RepoDeleteAvatarError = NotFound | ForgejoOpError;
4378
+ /** Delete a repository's avatar */
4379
+ export declare const repoDeleteAvatar: API.OperationMethod<RepoDeleteAvatarRequest, RepoDeleteAvatarResponse, RepoDeleteAvatarError, ForgejoOpContext>;
4380
+ export type RepoDeleteBranchError = Forbidden | NotFound | Locked | ForgejoOpError;
4381
+ /** Delete a specific branch from a repository */
4382
+ export declare const repoDeleteBranch: API.OperationMethod<RepoDeleteBranchRequest, RepoDeleteBranchResponse, RepoDeleteBranchError, ForgejoOpContext>;
4383
+ export type RepoDeleteBranchProtectionError = NotFound | ForgejoOpError;
4384
+ /** Delete a specific branch protection for the repository */
4385
+ export declare const repoDeleteBranchProtection: API.OperationMethod<RepoDeleteBranchProtectionRequest, RepoDeleteBranchProtectionResponse, RepoDeleteBranchProtectionError, ForgejoOpContext>;
4386
+ export type RepoDeleteCollaboratorError = NotFound | UnprocessableEntity | ForgejoOpError;
4387
+ /** Delete a collaborator from a repository */
4388
+ export declare const repoDeleteCollaborator: API.OperationMethod<RepoDeleteCollaboratorRequest, RepoDeleteCollaboratorResponse, RepoDeleteCollaboratorError, ForgejoOpContext>;
4389
+ export type RepoDeleteFileError = BadRequest | Forbidden | NotFound | Locked | ForgejoOpError;
4390
+ /** Delete a file in a repository */
4391
+ export declare const repoDeleteFile: API.OperationMethod<RepoDeleteFileRequest, FileDeleteResponse, RepoDeleteFileError, ForgejoOpContext>;
4392
+ export type RepoDeleteFlagError = Forbidden | NotFound | ForgejoOpError;
4393
+ /** Remove a flag from a repository */
4394
+ export declare const repoDeleteFlag: API.OperationMethod<RepoDeleteFlagRequest, RepoDeleteFlagResponse, RepoDeleteFlagError, ForgejoOpContext>;
4395
+ export type RepoDeleteGitHookError = NotFound | ForgejoOpError;
4396
+ /** Delete a Git hook in a repository */
4397
+ export declare const repoDeleteGitHook: API.OperationMethod<RepoDeleteGitHookRequest, RepoDeleteGitHookResponse, RepoDeleteGitHookError, ForgejoOpContext>;
4398
+ export type RepoDeleteHookError = NotFound | ForgejoOpError;
4399
+ /** Delete a hook in a repository */
4400
+ export declare const repoDeleteHook: API.OperationMethod<RepoDeleteHookRequest, RepoDeleteHookResponse, RepoDeleteHookError, ForgejoOpContext>;
4401
+ export type RepoDeleteKeyError = Forbidden | NotFound | ForgejoOpError;
4402
+ /** Delete a key from a repository */
4403
+ export declare const repoDeleteKey: API.OperationMethod<RepoDeleteKeyRequest, RepoDeleteKeyResponse, RepoDeleteKeyError, ForgejoOpContext>;
4404
+ export type RepoDeletePullReviewError = Forbidden | NotFound | ForgejoOpError;
4405
+ /** Delete a specific review from a pull request */
4406
+ export declare const repoDeletePullReview: API.OperationMethod<RepoDeletePullReviewRequest, RepoDeletePullReviewResponse, RepoDeletePullReviewError, ForgejoOpContext>;
4407
+ export type RepoDeletePullReviewCommentError = Forbidden | NotFound | ForgejoOpError;
4408
+ /** Delete a pull review comment */
4409
+ export declare const repoDeletePullReviewComment: API.OperationMethod<RepoDeletePullReviewCommentRequest, RepoDeletePullReviewCommentResponse, RepoDeletePullReviewCommentError, ForgejoOpContext>;
4410
+ export type RepoDeletePullReviewRequestsError = Forbidden | NotFound | UnprocessableEntity | ForgejoOpError;
4411
+ /** Cancel review requests for a pull request */
4412
+ export declare const repoDeletePullReviewRequests: API.OperationMethod<RepoDeletePullReviewRequestsRequest, RepoDeletePullReviewRequestsResponse, RepoDeletePullReviewRequestsError, ForgejoOpContext>;
4413
+ export type RepoDeletePushMirrorError = BadRequest | NotFound | ForgejoOpError;
4414
+ /** Remove a push mirror from a repository by remoteName */
4415
+ export declare const repoDeletePushMirror: API.OperationMethod<RepoDeletePushMirrorRequest, RepoDeletePushMirrorResponse, RepoDeletePushMirrorError, ForgejoOpContext>;
4416
+ export type RepoDeleteReleaseError = NotFound | UnprocessableEntity | ForgejoOpError;
4417
+ /** Delete a release */
4418
+ export declare const repoDeleteRelease: API.OperationMethod<RepoDeleteReleaseRequest, RepoDeleteReleaseResponse, RepoDeleteReleaseError, ForgejoOpContext>;
4419
+ export type RepoDeleteReleaseAttachmentError = NotFound | ForgejoOpError;
4420
+ /** Delete a release attachment */
4421
+ export declare const repoDeleteReleaseAttachment: API.OperationMethod<RepoDeleteReleaseAttachmentRequest, RepoDeleteReleaseAttachmentResponse, RepoDeleteReleaseAttachmentError, ForgejoOpContext>;
4422
+ export type RepoDeleteReleaseByTagError = NotFound | UnprocessableEntity | ForgejoOpError;
4423
+ /** Delete a release by tag name */
4424
+ export declare const repoDeleteReleaseByTag: API.OperationMethod<RepoDeleteReleaseByTagRequest, RepoDeleteReleaseByTagResponse, RepoDeleteReleaseByTagError, ForgejoOpContext>;
4425
+ export type RepoDeleteTagError = NotFound | Conflict | UnprocessableEntity | Locked | ForgejoOpError;
4426
+ /** Delete a repository's tag by name */
4427
+ export declare const repoDeleteTag: API.OperationMethod<RepoDeleteTagRequest, RepoDeleteTagResponse, RepoDeleteTagError, ForgejoOpContext>;
4428
+ export type RepoDeleteTagProtectionError = NotFound | ForgejoOpError;
4429
+ /** Delete a specific tag protection for the repository */
4430
+ export declare const repoDeleteTagProtection: API.OperationMethod<RepoDeleteTagProtectionRequest, RepoDeleteTagProtectionResponse, RepoDeleteTagProtectionError, ForgejoOpContext>;
4431
+ export type RepoDeleteTeamError = NotFound | UnprocessableEntity | ForgejoOpError;
4432
+ /** Delete a team from a repository */
4433
+ export declare const repoDeleteTeam: API.OperationMethod<RepoDeleteTeamRequest, RepoDeleteTeamResponse, RepoDeleteTeamError, ForgejoOpContext>;
4434
+ export type RepoDeleteTopicError = NotFound | UnprocessableEntity | ForgejoOpError;
4435
+ /** Delete a topic from a repository */
4436
+ export declare const repoDeleteTopic: API.OperationMethod<RepoDeleteTopicRequest, RepoDeleteTopicResponse, RepoDeleteTopicError, ForgejoOpContext>;
4437
+ export type RepoDeleteWikiPageError = Forbidden | NotFound | Locked | ForgejoOpError;
4438
+ /** Delete a wiki page */
4439
+ export declare const repoDeleteWikiPage: API.OperationMethod<RepoDeleteWikiPageRequest, RepoDeleteWikiPageResponse, RepoDeleteWikiPageError, ForgejoOpContext>;
4440
+ export type RepoDownloadCommitDiffOrPatchError = NotFound | ForgejoOpError;
4441
+ /** Get a commit's diff or patch */
4442
+ export declare const repoDownloadCommitDiffOrPatch: API.OperationMethod<RepoDownloadCommitDiffOrPatchRequest, RepoDownloadCommitDiffOrPatchResponse, RepoDownloadCommitDiffOrPatchError, ForgejoOpContext>;
4443
+ export type RepoDownloadPullDiffOrPatchError = NotFound | ForgejoOpError;
4444
+ /** Get a pull request diff or patch */
4445
+ export declare const repoDownloadPullDiffOrPatch: API.OperationMethod<RepoDownloadPullDiffOrPatchRequest, RepoDownloadPullDiffOrPatchResponse, RepoDownloadPullDiffOrPatchError, ForgejoOpContext>;
4446
+ export type RepoEditBranchProtectionError = NotFound | UnprocessableEntity | Locked | ForgejoOpError;
4447
+ /** Edit a branch protections for a repository. Only fields that are set will be changed */
4448
+ export declare const repoEditBranchProtection: API.OperationMethod<RepoEditBranchProtectionRequest, BranchProtection, RepoEditBranchProtectionError, ForgejoOpContext>;
4449
+ export type RepoEditGitHookError = NotFound | ForgejoOpError;
4450
+ /** Edit a Git hook in a repository */
4451
+ export declare const repoEditGitHook: API.OperationMethod<RepoEditGitHookRequest, GitHook, RepoEditGitHookError, ForgejoOpContext>;
4452
+ export type RepoEditHookError = NotFound | ForgejoOpError;
4453
+ /** Edit a hook in a repository */
4454
+ export declare const repoEditHook: API.OperationMethod<RepoEditHookRequest, Hook, RepoEditHookError, ForgejoOpContext>;
4455
+ export type RepoEditPullRequestError = Forbidden | NotFound | Conflict | UnprocessableEntity | ForgejoOpError;
4456
+ /** Update a pull request. If using deadline only the date will be taken into account, and time of day ignored. */
4457
+ export declare const repoEditPullRequest: API.OperationMethod<RepoEditPullRequestRequest, PullRequest, RepoEditPullRequestError, ForgejoOpContext>;
4458
+ export type RepoEditReleaseError = NotFound | ForgejoOpError;
4459
+ /** Update a release */
4460
+ export declare const repoEditRelease: API.OperationMethod<RepoEditReleaseRequest, Release, RepoEditReleaseError, ForgejoOpContext>;
4461
+ export type RepoEditReleaseAttachmentError = NotFound | ForgejoOpError;
4462
+ /** Edit a release attachment */
4463
+ export declare const repoEditReleaseAttachment: API.OperationMethod<RepoEditReleaseAttachmentRequest, Attachment, RepoEditReleaseAttachmentError, ForgejoOpContext>;
4464
+ export type RepoEditTagProtectionError = NotFound | UnprocessableEntity | Locked | ForgejoOpError;
4465
+ /** Edit a tag protections for a repository. Only fields that are set will be changed */
4466
+ export declare const repoEditTagProtection: API.OperationMethod<RepoEditTagProtectionRequest, TagProtection, RepoEditTagProtectionError, ForgejoOpContext>;
4467
+ export type RepoEditWikiPageError = BadRequest | Forbidden | NotFound | Locked | ForgejoOpError;
4468
+ /** Edit a wiki page */
4469
+ export declare const repoEditWikiPage: API.OperationMethod<RepoEditWikiPageRequest, WikiPage, RepoEditWikiPageError, ForgejoOpContext>;
4470
+ export type RepoGetActionJobLogsError = Forbidden | NotFound | ForgejoOpError;
4471
+ /** Download the plaintext logs of an action job Returns the plaintext log for the job. By default the log for the most recent attempt is returned (ActionRunJob.TaskID tracks the latest task). Pass `?attempt=N` to fetch the log for a specific historical attempt; the value matches the `attempt` field returned by the job listing endpoints. */
4472
+ export declare const repoGetActionJobLogs: API.OperationMethod<RepoGetActionJobLogsRequest, RepoGetActionJobLogsResponse, RepoGetActionJobLogsError, ForgejoOpContext>;
4473
+ export type RepoGetActionRunLogsError = Forbidden | NotFound | ForgejoOpError;
4474
+ /** Download a ZIP of plaintext logs for every job in an action run */
4475
+ export declare const repoGetActionRunLogs: API.OperationMethod<RepoGetActionRunLogsRequest, RepoGetActionRunLogsResponse, RepoGetActionRunLogsError, ForgejoOpContext>;
4476
+ export type RepoGetAllCommitsError = NotFound | Conflict | ForgejoOpError;
4477
+ /** Get a list of all commits from a repository */
4478
+ export declare const repoGetAllCommits: API.OperationMethod<RepoGetAllCommitsRequest, RepoGetAllCommitsResponse, RepoGetAllCommitsError, ForgejoOpContext>;
4479
+ export type RepoGetArchiveError = NotFound | ForgejoOpError;
4480
+ /** Get an archive of a repository */
4481
+ export declare const repoGetArchive: API.OperationMethod<RepoGetArchiveRequest, RepoGetArchiveResponse, RepoGetArchiveError, ForgejoOpContext>;
4482
+ export type RepoGetAssigneesError = NotFound | ForgejoOpError;
4483
+ /** Return all users that have write access and can be assigned to issues */
4484
+ export declare const repoGetAssignees: API.OperationMethod<RepoGetAssigneesRequest, RepoGetAssigneesResponse, RepoGetAssigneesError, ForgejoOpContext>;
4485
+ export type RepoGetBranchError = NotFound | ForgejoOpError;
4486
+ /** Retrieve a specific branch from a repository, including its effective branch protection */
4487
+ export declare const repoGetBranch: API.OperationMethod<RepoGetBranchRequest, Branch, RepoGetBranchError, ForgejoOpContext>;
4488
+ export type RepoGetBranchProtectionError = NotFound | ForgejoOpError;
4489
+ /** Get a specific branch protection for the repository */
4490
+ export declare const repoGetBranchProtection: API.OperationMethod<RepoGetBranchProtectionRequest, BranchProtection, RepoGetBranchProtectionError, ForgejoOpContext>;
4491
+ export type RepoGetByIDError = NotFound | ForgejoOpError;
4492
+ /** Get a repository by id */
4493
+ export declare const repoGetByID: API.OperationMethod<RepoGetByIDRequest, Repository, RepoGetByIDError, ForgejoOpContext>;
4494
+ export type RepoGetCombinedStatusByRefError = BadRequest | NotFound | ForgejoOpError;
4495
+ /** Get a commit's combined status, by branch/tag/commit reference */
4496
+ export declare const repoGetCombinedStatusByRef: API.OperationMethod<RepoGetCombinedStatusByRefRequest, CombinedStatus, RepoGetCombinedStatusByRefError, ForgejoOpContext>;
4497
+ export type RepoGetCommitPullRequestError = NotFound | ForgejoOpError;
4498
+ /** Get the pull request of the commit */
4499
+ export declare const repoGetCommitPullRequest: API.OperationMethod<RepoGetCommitPullRequestRequest, PullRequest, RepoGetCommitPullRequestError, ForgejoOpContext>;
4500
+ export type RepoGetContentsError = NotFound | ForgejoOpError;
4501
+ /** Gets the metadata and contents (if a file) of an entry in a repository, or a list of entries if a dir */
4502
+ export declare const repoGetContents: API.OperationMethod<RepoGetContentsRequest, ContentsResponse, RepoGetContentsError, ForgejoOpContext>;
4503
+ export type RepoGetContentsListError = NotFound | ForgejoOpError;
4504
+ /** Gets the metadata of all the entries of the root dir */
4505
+ export declare const repoGetContentsList: API.OperationMethod<RepoGetContentsListRequest, RepoGetContentsListResponse, RepoGetContentsListError, ForgejoOpContext>;
4506
+ export type RepoGetEditorConfigError = NotFound | ForgejoOpError;
4507
+ /** Get the EditorConfig definitions of a file in a repository */
4508
+ export declare const repoGetEditorConfig: API.OperationMethod<RepoGetEditorConfigRequest, RepoGetEditorConfigResponse, RepoGetEditorConfigError, ForgejoOpContext>;
4509
+ export type RepoGetGitHookError = NotFound | ForgejoOpError;
4510
+ /** Get a Git hook */
4511
+ export declare const repoGetGitHook: API.OperationMethod<RepoGetGitHookRequest, GitHook, RepoGetGitHookError, ForgejoOpContext>;
4512
+ export type RepoGetHookError = NotFound | ForgejoOpError;
4513
+ /** Get a hook */
4514
+ export declare const repoGetHook: API.OperationMethod<RepoGetHookRequest, Hook, RepoGetHookError, ForgejoOpContext>;
4515
+ export type RepoGetIssueConfigError = NotFound | ForgejoOpError;
4516
+ /** Returns the issue config for a repo */
4517
+ export declare const repoGetIssueConfig: API.OperationMethod<RepoGetIssueConfigRequest, IssueConfig, RepoGetIssueConfigError, ForgejoOpContext>;
4518
+ export type RepoGetIssueTemplatesError = NotFound | ForgejoOpError;
4519
+ /** Get available issue templates for a repository */
4520
+ export declare const repoGetIssueTemplates: API.OperationMethod<RepoGetIssueTemplatesRequest, RepoGetIssueTemplatesResponse, RepoGetIssueTemplatesError, ForgejoOpContext>;
4521
+ export type RepoGetKeyError = NotFound | ForgejoOpError;
4522
+ /** Get a repository's key by id */
4523
+ export declare const repoGetKey: API.OperationMethod<RepoGetKeyRequest, DeployKey, RepoGetKeyError, ForgejoOpContext>;
4524
+ export type RepoGetLanguagesError = NotFound | ForgejoOpError;
4525
+ /** Get languages and number of bytes of code written */
4526
+ export declare const repoGetLanguages: API.OperationMethod<RepoGetLanguagesRequest, RepoGetLanguagesResponse, RepoGetLanguagesError, ForgejoOpContext>;
4527
+ export type RepoGetLatestReleaseError = NotFound | ForgejoOpError;
4528
+ /** Gets the most recent non-prerelease, non-draft release of a repository, sorted by created_at */
4529
+ export declare const repoGetLatestRelease: API.OperationMethod<RepoGetLatestReleaseRequest, Release, RepoGetLatestReleaseError, ForgejoOpContext>;
4530
+ export type RepoGetNoteError = NotFound | UnprocessableEntity | ForgejoOpError;
4531
+ /** Get a note corresponding to a single commit from a repository */
4532
+ export declare const repoGetNote: API.OperationMethod<RepoGetNoteRequest, Note, RepoGetNoteError, ForgejoOpContext>;
4533
+ export type RepoGetPullRequestError = NotFound | ForgejoOpError;
4534
+ /** Get a pull request */
4535
+ export declare const repoGetPullRequest: API.OperationMethod<RepoGetPullRequestRequest, PullRequest, RepoGetPullRequestError, ForgejoOpContext>;
4536
+ export type RepoGetPullRequestByBaseHeadError = NotFound | ForgejoOpError;
4537
+ /** Get a pull request by base and head */
4538
+ export declare const repoGetPullRequestByBaseHead: API.OperationMethod<RepoGetPullRequestByBaseHeadRequest, PullRequest, RepoGetPullRequestByBaseHeadError, ForgejoOpContext>;
4539
+ export type RepoGetPullRequestCommitsError = NotFound | ForgejoOpError;
4540
+ /** Get commits for a pull request */
4541
+ export declare const repoGetPullRequestCommits: API.OperationMethod<RepoGetPullRequestCommitsRequest, RepoGetPullRequestCommitsResponse, RepoGetPullRequestCommitsError, ForgejoOpContext>;
4542
+ export type RepoGetPullRequestFilesError = NotFound | ForgejoOpError;
4543
+ /** Get changed files for a pull request */
4544
+ export declare const repoGetPullRequestFiles: API.OperationMethod<RepoGetPullRequestFilesRequest, RepoGetPullRequestFilesResponse, RepoGetPullRequestFilesError, ForgejoOpContext>;
4545
+ export type RepoGetPullReviewError = NotFound | ForgejoOpError;
4546
+ /** Get a specific review for a pull request */
4547
+ export declare const repoGetPullReview: API.OperationMethod<RepoGetPullReviewRequest, PullReview, RepoGetPullReviewError, ForgejoOpContext>;
4548
+ export type RepoGetPullReviewCommentError = Forbidden | NotFound | ForgejoOpError;
4549
+ /** Get a pull review comment */
4550
+ export declare const repoGetPullReviewComment: API.OperationMethod<RepoGetPullReviewCommentRequest, PullReviewComment, RepoGetPullReviewCommentError, ForgejoOpContext>;
4551
+ export type RepoGetPullReviewCommentsError = NotFound | ForgejoOpError;
4552
+ /** Get a specific review for a pull request */
4553
+ export declare const repoGetPullReviewComments: API.OperationMethod<RepoGetPullReviewCommentsRequest, RepoGetPullReviewCommentsResponse, RepoGetPullReviewCommentsError, ForgejoOpContext>;
4554
+ export type RepoGetPushMirrorByRemoteNameError = BadRequest | Forbidden | NotFound | ForgejoOpError;
4555
+ /** Get push mirror of the repository by remoteName */
4556
+ export declare const repoGetPushMirrorByRemoteName: API.OperationMethod<RepoGetPushMirrorByRemoteNameRequest, PushMirror, RepoGetPushMirrorByRemoteNameError, ForgejoOpContext>;
4557
+ export type RepoGetRawFileError = NotFound | ForgejoOpError;
4558
+ /** Get a file from a repository */
4559
+ export declare const repoGetRawFile: API.OperationMethod<RepoGetRawFileRequest, RepoGetRawFileResponse, RepoGetRawFileError, ForgejoOpContext>;
4560
+ export type RepoGetRawFileOrLFSError = NotFound | ForgejoOpError;
4561
+ /** Get a file or it's LFS object from a repository */
4562
+ export declare const repoGetRawFileOrLFS: API.OperationMethod<RepoGetRawFileOrLFSRequest, RepoGetRawFileOrLFSResponse, RepoGetRawFileOrLFSError, ForgejoOpContext>;
4563
+ export type RepoGetReleaseError = NotFound | ForgejoOpError;
4564
+ /** Get a release */
4565
+ export declare const repoGetRelease: API.OperationMethod<RepoGetReleaseRequest, Release, RepoGetReleaseError, ForgejoOpContext>;
4566
+ export type RepoGetReleaseAttachmentError = NotFound | ForgejoOpError;
4567
+ /** Get a release attachment */
4568
+ export declare const repoGetReleaseAttachment: API.OperationMethod<RepoGetReleaseAttachmentRequest, Attachment, RepoGetReleaseAttachmentError, ForgejoOpContext>;
4569
+ export type RepoGetReleaseByTagError = NotFound | ForgejoOpError;
4570
+ /** Get a release by tag name */
4571
+ export declare const repoGetReleaseByTag: API.OperationMethod<RepoGetReleaseByTagRequest, Release, RepoGetReleaseByTagError, ForgejoOpContext>;
4572
+ export type RepoGetReviewersError = NotFound | ForgejoOpError;
4573
+ /** Return all users that can be requested to review in this repo */
4574
+ export declare const repoGetReviewers: API.OperationMethod<RepoGetReviewersRequest, RepoGetReviewersResponse, RepoGetReviewersError, ForgejoOpContext>;
4575
+ export type RepoGetSingleCommitError = NotFound | UnprocessableEntity | ForgejoOpError;
4576
+ /** Get a single commit from a repository */
4577
+ export declare const repoGetSingleCommit: API.OperationMethod<RepoGetSingleCommitRequest, Commit, RepoGetSingleCommitError, ForgejoOpContext>;
4578
+ export type RepoGetTagError = NotFound | ForgejoOpError;
4579
+ /** Get the tag of a repository by tag name */
4580
+ export declare const repoGetTag: API.OperationMethod<RepoGetTagRequest, Tag, RepoGetTagError, ForgejoOpContext>;
4581
+ export type RepoGetTagProtectionError = NotFound | ForgejoOpError;
4582
+ /** Get a specific tag protection for the repository */
4583
+ export declare const repoGetTagProtection: API.OperationMethod<RepoGetTagProtectionRequest, TagProtection, RepoGetTagProtectionError, ForgejoOpContext>;
4584
+ export type RepoGetWikiPageError = NotFound | ForgejoOpError;
4585
+ /** Get a wiki page */
4586
+ export declare const repoGetWikiPage: API.OperationMethod<RepoGetWikiPageRequest, WikiPage, RepoGetWikiPageError, ForgejoOpContext>;
4587
+ export type RepoGetWikiPageRevisionsError = NotFound | ForgejoOpError;
4588
+ /** Get revisions of a wiki page */
4589
+ export declare const repoGetWikiPageRevisions: API.OperationMethod<RepoGetWikiPageRevisionsRequest, WikiCommitList, RepoGetWikiPageRevisionsError, ForgejoOpContext>;
4590
+ export type RepoGetWikiPagesError = NotFound | ForgejoOpError;
4591
+ /** Get all wiki pages */
4592
+ export declare const repoGetWikiPages: API.OperationMethod<RepoGetWikiPagesRequest, RepoGetWikiPagesResponse, RepoGetWikiPagesError, ForgejoOpContext>;
4593
+ export type RepoListActionsSecretsError = Forbidden | NotFound | ForgejoOpError;
4594
+ /** List an repo's actions secrets */
4595
+ export declare const repoListActionsSecrets: API.OperationMethod<RepoListActionsSecretsRequest, RepoListActionsSecretsResponse, RepoListActionsSecretsError, ForgejoOpContext>;
4596
+ export type RepoListActivityFeedsError = NotFound | ForgejoOpError;
4597
+ /** List a repository's activity feeds */
4598
+ export declare const repoListActivityFeeds: API.OperationMethod<RepoListActivityFeedsRequest, RepoListActivityFeedsResponse, RepoListActivityFeedsError, ForgejoOpContext>;
4599
+ export type RepoListAllGitRefsError = NotFound | ForgejoOpError;
4600
+ /** Get specified ref or filtered repository's refs */
4601
+ export declare const repoListAllGitRefs: API.OperationMethod<RepoListAllGitRefsRequest, RepoListAllGitRefsResponse, RepoListAllGitRefsError, ForgejoOpContext>;
4602
+ export type RepoListBranchesError = ForgejoOpError;
4603
+ /** List a repository's branches */
4604
+ export declare const repoListBranches: API.OperationMethod<RepoListBranchesRequest, RepoListBranchesResponse, RepoListBranchesError, ForgejoOpContext>;
4605
+ export type RepoListBranchProtectionError = Forbidden | NotFound | ForgejoOpError;
4606
+ /** List branch protections for a repository */
4607
+ export declare const repoListBranchProtection: API.OperationMethod<RepoListBranchProtectionRequest, RepoListBranchProtectionResponse, RepoListBranchProtectionError, ForgejoOpContext>;
4608
+ export type RepoListCollaboratorsError = NotFound | ForgejoOpError;
4609
+ /** List a repository's collaborators */
4610
+ export declare const repoListCollaborators: API.OperationMethod<RepoListCollaboratorsRequest, RepoListCollaboratorsResponse, RepoListCollaboratorsError, ForgejoOpContext>;
4611
+ export type RepoListFlagsError = Forbidden | NotFound | ForgejoOpError;
4612
+ /** List a repository's flags */
4613
+ export declare const repoListFlags: API.OperationMethod<RepoListFlagsRequest, RepoListFlagsResponse, RepoListFlagsError, ForgejoOpContext>;
4614
+ export type RepoListGitHooksError = NotFound | ForgejoOpError;
4615
+ /** List the Git hooks in a repository */
4616
+ export declare const repoListGitHooks: API.OperationMethod<RepoListGitHooksRequest, RepoListGitHooksResponse, RepoListGitHooksError, ForgejoOpContext>;
4617
+ export type RepoListGitRefsError = NotFound | ForgejoOpError;
4618
+ /** Get specified ref or filtered repository's refs */
4619
+ export declare const repoListGitRefs: API.OperationMethod<RepoListGitRefsRequest, RepoListGitRefsResponse, RepoListGitRefsError, ForgejoOpContext>;
4620
+ export type RepoListHooksError = Forbidden | NotFound | ForgejoOpError;
4621
+ /** List the hooks in a repository */
4622
+ export declare const repoListHooks: API.OperationMethod<RepoListHooksRequest, RepoListHooksResponse, RepoListHooksError, ForgejoOpContext>;
4623
+ export type RepoListKeysError = NotFound | ForgejoOpError;
4624
+ /** List a repository's keys */
4625
+ export declare const repoListKeys: API.OperationMethod<RepoListKeysRequest, RepoListKeysResponse, RepoListKeysError, ForgejoOpContext>;
4626
+ export type RepoListPinnedIssuesError = NotFound | ForgejoOpError;
4627
+ /** List a repo's pinned issues */
4628
+ export declare const repoListPinnedIssues: API.OperationMethod<RepoListPinnedIssuesRequest, RepoListPinnedIssuesResponse, RepoListPinnedIssuesError, ForgejoOpContext>;
4629
+ export type RepoListPinnedPullRequestsError = NotFound | ForgejoOpError;
4630
+ /** List a repo's pinned pull requests */
4631
+ export declare const repoListPinnedPullRequests: API.OperationMethod<RepoListPinnedPullRequestsRequest, RepoListPinnedPullRequestsResponse, RepoListPinnedPullRequestsError, ForgejoOpContext>;
4632
+ export type RepoListPullRequestsError = BadRequest | NotFound | ForgejoOpError;
4633
+ /** List a repo's pull requests. If a pull request is selected but fails to be retrieved for any reason, it will be a null value in the list of results. */
4634
+ export declare const repoListPullRequests: API.OperationMethod<RepoListPullRequestsRequest, RepoListPullRequestsResponse, RepoListPullRequestsError, ForgejoOpContext>;
4635
+ export type RepoListPullReviewsError = NotFound | ForgejoOpError;
4636
+ /** List all reviews for a pull request */
4637
+ export declare const repoListPullReviews: API.OperationMethod<RepoListPullReviewsRequest, RepoListPullReviewsResponse, RepoListPullReviewsError, ForgejoOpContext>;
4638
+ export type RepoListPushMirrorsError = BadRequest | Forbidden | NotFound | ForgejoOpError;
4639
+ /** Get all push mirrors of the repository */
4640
+ export declare const repoListPushMirrors: API.OperationMethod<RepoListPushMirrorsRequest, RepoListPushMirrorsResponse, RepoListPushMirrorsError, ForgejoOpContext>;
4641
+ export type RepoListReleaseAttachmentsError = NotFound | ForgejoOpError;
4642
+ /** List release's attachments */
4643
+ export declare const repoListReleaseAttachments: API.OperationMethod<RepoListReleaseAttachmentsRequest, RepoListReleaseAttachmentsResponse, RepoListReleaseAttachmentsError, ForgejoOpContext>;
4644
+ export type RepoListReleasesError = NotFound | ForgejoOpError;
4645
+ /** List a repo's releases */
4646
+ export declare const repoListReleases: API.OperationMethod<RepoListReleasesRequest, RepoListReleasesResponse, RepoListReleasesError, ForgejoOpContext>;
4647
+ export type RepoListStargazersError = NotFound | ForgejoOpError;
4648
+ /** List a repo's stargazers */
4649
+ export declare const repoListStargazers: API.OperationMethod<RepoListStargazersRequest, RepoListStargazersResponse, RepoListStargazersError, ForgejoOpContext>;
4650
+ export type RepoListStatusesError = BadRequest | NotFound | ForgejoOpError;
4651
+ /** Get a commit's statuses */
4652
+ export declare const repoListStatuses: API.OperationMethod<RepoListStatusesRequest, RepoListStatusesResponse, RepoListStatusesError, ForgejoOpContext>;
4653
+ export type RepoListStatusesByRefError = BadRequest | NotFound | ForgejoOpError;
4654
+ /** Get a commit's statuses, by branch/tag/commit reference */
4655
+ export declare const repoListStatusesByRef: API.OperationMethod<RepoListStatusesByRefRequest, RepoListStatusesByRefResponse, RepoListStatusesByRefError, ForgejoOpContext>;
4656
+ export type RepoListSubscribersError = NotFound | ForgejoOpError;
4657
+ /** List a repo's watchers */
4658
+ export declare const repoListSubscribers: API.OperationMethod<RepoListSubscribersRequest, RepoListSubscribersResponse, RepoListSubscribersError, ForgejoOpContext>;
4659
+ export type RepoListTagProtectionError = ForgejoOpError;
4660
+ /** List tag protections for a repository */
4661
+ export declare const repoListTagProtection: API.OperationMethod<RepoListTagProtectionRequest, RepoListTagProtectionResponse, RepoListTagProtectionError, ForgejoOpContext>;
4662
+ export type RepoListTagsError = NotFound | ForgejoOpError;
4663
+ /** List a repository's tags */
4664
+ export declare const repoListTags: API.OperationMethod<RepoListTagsRequest, RepoListTagsResponse, RepoListTagsError, ForgejoOpContext>;
4665
+ export type RepoListTeamsError = NotFound | ForgejoOpError;
4666
+ /** List a repository's teams */
4667
+ export declare const repoListTeams: API.OperationMethod<RepoListTeamsRequest, RepoListTeamsResponse, RepoListTeamsError, ForgejoOpContext>;
4668
+ export type RepoListTopicsError = NotFound | ForgejoOpError;
4669
+ /** Get list of topics that a repository has */
4670
+ export declare const repoListTopics: API.OperationMethod<RepoListTopicsRequest, TopicName, RepoListTopicsError, ForgejoOpContext>;
4671
+ export type RepoMergePullRequestError = NotFound | Conflict | Locked | ForgejoOpError;
4672
+ /** Merge a pull request */
4673
+ export declare const repoMergePullRequest: API.OperationMethod<RepoMergePullRequestRequest, RepoMergePullRequestResponse, RepoMergePullRequestError, ForgejoOpContext>;
4674
+ export type RepoNewPinAllowedError = NotFound | ForgejoOpError;
4675
+ /** Returns if new Issue Pins are allowed */
4676
+ export declare const repoNewPinAllowed: API.OperationMethod<RepoNewPinAllowedRequest, NewIssuePinsAllowed, RepoNewPinAllowedError, ForgejoOpContext>;
4677
+ export type RepoPullRequestIsMergedError = NotFound | ForgejoOpError;
4678
+ /** Check if a pull request has been merged */
4679
+ export declare const repoPullRequestIsMerged: API.OperationMethod<RepoPullRequestIsMergedRequest, RepoPullRequestIsMergedResponse, RepoPullRequestIsMergedError, ForgejoOpContext>;
4680
+ export type RepoRemoveNoteError = NotFound | UnprocessableEntity | ForgejoOpError;
4681
+ /** Removes a note corresponding to a single commit from a repository */
4682
+ export declare const repoRemoveNote: API.OperationMethod<RepoRemoveNoteRequest, RepoRemoveNoteResponse, RepoRemoveNoteError, ForgejoOpContext>;
4683
+ export type RepoReplaceAllFlagsError = Forbidden | NotFound | ForgejoOpError;
4684
+ /** Replace all flags of a repository */
4685
+ export declare const repoReplaceAllFlags: API.OperationMethod<RepoReplaceAllFlagsRequest, RepoReplaceAllFlagsResponse, RepoReplaceAllFlagsError, ForgejoOpContext>;
4686
+ export type RepoSearchRunJobsError = Forbidden | ForgejoOpError;
4687
+ /** Search for repository's action jobs according filter conditions */
4688
+ export declare const repoSearchRunJobs: API.OperationMethod<RepoSearchRunJobsRequest, RepoSearchRunJobsResponse, RepoSearchRunJobsError, ForgejoOpContext>;
4689
+ export type RepoSetNoteError = NotFound | UnprocessableEntity | ForgejoOpError;
4690
+ /** Set a note corresponding to a single commit from a repository */
4691
+ export declare const repoSetNote: API.OperationMethod<RepoSetNoteRequest, Note, RepoSetNoteError, ForgejoOpContext>;
4692
+ export type RepoSigningKeyError = ForgejoOpError;
4693
+ /** Get signing-key.gpg for given repository */
4694
+ export declare const repoSigningKey: API.OperationMethod<RepoSigningKeyRequest, RepoSigningKeyResponse, RepoSigningKeyError, ForgejoOpContext>;
4695
+ export type RepoSubmitPullReviewError = NotFound | UnprocessableEntity | ForgejoOpError;
4696
+ /** Submit a pending review to an pull request */
4697
+ export declare const repoSubmitPullReview: API.OperationMethod<RepoSubmitPullReviewRequest, PullReview, RepoSubmitPullReviewError, ForgejoOpContext>;
4698
+ export type RepoSyncForkBranchError = BadRequest | NotFound | ForgejoOpError;
4699
+ /** Syncs a fork branch with the base branch */
4700
+ export declare const repoSyncForkBranch: API.OperationMethod<RepoSyncForkBranchRequest, RepoSyncForkBranchResponse, RepoSyncForkBranchError, ForgejoOpContext>;
4701
+ export type RepoSyncForkBranchInfoError = BadRequest | NotFound | ForgejoOpError;
4702
+ /** Gets information about syncing a fork branch with the base branch */
4703
+ export declare const repoSyncForkBranchInfo: API.OperationMethod<RepoSyncForkBranchInfoRequest, SyncForkInfo, RepoSyncForkBranchInfoError, ForgejoOpContext>;
4704
+ export type RepoSyncForkDefaultError = BadRequest | NotFound | ForgejoOpError;
4705
+ /** Syncs the default branch of a fork with the base branch */
4706
+ export declare const repoSyncForkDefault: API.OperationMethod<RepoSyncForkDefaultRequest, RepoSyncForkDefaultResponse, RepoSyncForkDefaultError, ForgejoOpContext>;
4707
+ export type RepoSyncForkDefaultInfoError = BadRequest | NotFound | ForgejoOpError;
4708
+ /** Gets information about syncing the fork default branch with the base branch */
4709
+ export declare const repoSyncForkDefaultInfo: API.OperationMethod<RepoSyncForkDefaultInfoRequest, SyncForkInfo, RepoSyncForkDefaultInfoError, ForgejoOpContext>;
4710
+ export type RepoTestHookError = NotFound | ForgejoOpError;
4711
+ /** Test a push webhook */
4712
+ export declare const repoTestHook: API.OperationMethod<RepoTestHookRequest, RepoTestHookResponse, RepoTestHookError, ForgejoOpContext>;
4713
+ export type RepoTrackedTimesError = BadRequest | Forbidden | NotFound | UnprocessableEntity | ForgejoOpError;
4714
+ /** List a repo's tracked times */
4715
+ export declare const repoTrackedTimes: API.OperationMethod<RepoTrackedTimesRequest, RepoTrackedTimesResponse, RepoTrackedTimesError, ForgejoOpContext>;
4716
+ export type RepoUpdateAvatarError = NotFound | ForgejoOpError;
4717
+ /** Update a repository's avatar */
4718
+ export declare const repoUpdateAvatar: API.OperationMethod<RepoUpdateAvatarRequest, RepoUpdateAvatarResponse, RepoUpdateAvatarError, ForgejoOpContext>;
4719
+ export type RepoUpdateBranchError = Forbidden | NotFound | UnprocessableEntity | ForgejoOpError;
4720
+ /** Update a branch */
4721
+ export declare const repoUpdateBranch: API.OperationMethod<RepoUpdateBranchRequest, RepoUpdateBranchResponse, RepoUpdateBranchError, ForgejoOpContext>;
4722
+ export type RepoUpdateFileError = Forbidden | NotFound | Conflict | UnprocessableEntity | Locked | ForgejoOpError;
4723
+ /** Update a file in a repository */
4724
+ export declare const repoUpdateFile: API.OperationMethod<RepoUpdateFileRequest, FileResponse, RepoUpdateFileError, ForgejoOpContext>;
4725
+ export type RepoUpdatePullRequestError = Forbidden | NotFound | Conflict | UnprocessableEntity | ForgejoOpError;
4726
+ /** Merge PR's baseBranch into headBranch */
4727
+ export declare const repoUpdatePullRequest: API.OperationMethod<RepoUpdatePullRequestRequest, RepoUpdatePullRequestResponse, RepoUpdatePullRequestError, ForgejoOpContext>;
4728
+ export type RepoUpdateTopicsError = NotFound | UnprocessableEntity | ForgejoOpError;
4729
+ /** Replace list of topics for a repository */
4730
+ export declare const repoUpdateTopics: API.OperationMethod<RepoUpdateTopicsRequest, RepoUpdateTopicsResponse, RepoUpdateTopicsError, ForgejoOpContext>;
4731
+ export type RepoValidateIssueConfigError = NotFound | ForgejoOpError;
4732
+ /** Returns the validation information for a issue config */
4733
+ export declare const repoValidateIssueConfig: API.OperationMethod<RepoValidateIssueConfigRequest, IssueConfigValidation, RepoValidateIssueConfigError, ForgejoOpContext>;
4734
+ export type ReviewRepoDismissPullError = Forbidden | NotFound | UnprocessableEntity | ForgejoOpError;
4735
+ /** Dismiss a review for a pull request */
4736
+ export declare const reviewRepoDismissPull: API.OperationMethod<ReviewRepoDismissPullRequest, PullReview, ReviewRepoDismissPullError, ForgejoOpContext>;
4737
+ export type ReviewRepoUnDismissPullError = Forbidden | NotFound | UnprocessableEntity | ForgejoOpError;
4738
+ /** Cancel to dismiss a review for a pull request */
4739
+ export declare const reviewRepoUnDismissPull: API.OperationMethod<ReviewRepoUnDismissPullRequest, PullReview, ReviewRepoUnDismissPullError, ForgejoOpContext>;
4740
+ export type SearchRepoError = UnprocessableEntity | ForgejoOpError;
4741
+ /** Search for repositories */
4742
+ export declare const searchRepo: API.OperationMethod<SearchRepoRequest, SearchResults, SearchRepoError, ForgejoOpContext>;
4743
+ export type SearchTopicError = Forbidden | NotFound | ForgejoOpError;
4744
+ /** Search for topics by keyword */
4745
+ export declare const searchTopic: API.OperationMethod<SearchTopicRequest, SearchTopicResponse, SearchTopicError, ForgejoOpContext>;
4746
+ export type SyncRepoMirrorError = Forbidden | NotFound | ForgejoOpError;
4747
+ /** Sync a mirrored repository */
4748
+ export declare const syncRepoMirror: API.OperationMethod<SyncRepoMirrorRequest, SyncRepoMirrorResponse, SyncRepoMirrorError, ForgejoOpContext>;
4749
+ export type SyncRepoPushMirrorError = BadRequest | Forbidden | NotFound | ForgejoOpError;
4750
+ /** Sync all push mirrored repository */
4751
+ export declare const syncRepoPushMirror: API.OperationMethod<SyncRepoPushMirrorRequest, SyncRepoPushMirrorResponse, SyncRepoPushMirrorError, ForgejoOpContext>;
4752
+ export type TransferRepoError = Forbidden | NotFound | UnprocessableEntity | ForgejoOpError;
4753
+ /** Transfer a repo ownership */
4754
+ export declare const transferRepo: API.OperationMethod<TransferRepoRequest, TransferRepoResponse, TransferRepoError, ForgejoOpContext>;
4755
+ export type UpdateRepoSecretError = BadRequest | NotFound | ForgejoOpError;
4756
+ /** Create or Update a secret value in a repository */
4757
+ export declare const updateRepoSecret: API.OperationMethod<UpdateRepoSecretRequest, UpdateRepoSecretResponse, UpdateRepoSecretError, ForgejoOpContext>;
4758
+ export type UpdateRepoVariableError = BadRequest | NotFound | ForgejoOpError;
4759
+ /** Update a repo-level variable */
4760
+ export declare const updateRepoVariable: API.OperationMethod<UpdateRepoVariableRequest, UpdateRepoVariableResponse, UpdateRepoVariableError, ForgejoOpContext>;
4761
+ export type UserCurrentCheckSubscriptionError = NotFound | ForgejoOpError;
4762
+ /** Check if the current user is watching a repo */
4763
+ export declare const userCurrentCheckSubscription: API.OperationMethod<UserCurrentCheckSubscriptionRequest, WatchInfo, UserCurrentCheckSubscriptionError, ForgejoOpContext>;
4764
+ export type UserCurrentDeleteSubscriptionError = NotFound | ForgejoOpError;
4765
+ /** Unwatch a repo */
4766
+ export declare const userCurrentDeleteSubscription: API.OperationMethod<UserCurrentDeleteSubscriptionRequest, UserCurrentDeleteSubscriptionResponse, UserCurrentDeleteSubscriptionError, ForgejoOpContext>;
4767
+ export type UserCurrentPutSubscriptionError = NotFound | ForgejoOpError;
4768
+ /** Watch a repo */
4769
+ export declare const userCurrentPutSubscription: API.OperationMethod<UserCurrentPutSubscriptionRequest, WatchInfo, UserCurrentPutSubscriptionError, ForgejoOpContext>;
4770
+ //# sourceMappingURL=repository.d.ts.map