forgejo 0.1.0 → 0.2.1

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 (321) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +5 -0
  3. data/CHANGELOG.md~ +3 -0
  4. data/Makefile +16 -16
  5. data/README.md +68 -12
  6. data/config.yaml +21 -0
  7. data/config.yaml~ +13 -0
  8. data/docs/APIForbiddenError.md +20 -0
  9. data/docs/APIInvalidTopicsError.md +20 -0
  10. data/docs/APINotFound.md +22 -0
  11. data/docs/APIRepoArchivedError.md +20 -0
  12. data/docs/APIUnauthorizedError.md +20 -0
  13. data/docs/APIValidationError.md +20 -0
  14. data/docs/ActivitypubApi.md +133 -0
  15. data/docs/AdminApi.md +1305 -184
  16. data/docs/Attachment.md +2 -0
  17. data/docs/CreatePushMirrorOption.md +3 -1
  18. data/docs/CreateQuotaGroupOptions.md +20 -0
  19. data/docs/CreateQuotaRuleOptions.md +22 -0
  20. data/docs/EditAttachmentOptions.md +2 -0
  21. data/docs/EditQuotaRuleOptions.md +20 -0
  22. data/docs/EditRepoOption.md +2 -0
  23. data/docs/IssueApi.md +55 -55
  24. data/docs/MarkupOption.md +2 -0
  25. data/docs/NoteOptions.md +18 -0
  26. data/docs/OrganizationApi.md +386 -19
  27. data/docs/PackageApi.md +1 -1
  28. data/docs/PullRequest.md +2 -0
  29. data/docs/PushMirror.md +2 -0
  30. data/docs/QuotaGroup.md +20 -0
  31. data/docs/QuotaInfo.md +20 -0
  32. data/docs/QuotaRuleInfo.md +22 -0
  33. data/docs/QuotaUsed.md +18 -0
  34. data/docs/QuotaUsedArtifact.md +22 -0
  35. data/docs/QuotaUsedAttachment.md +24 -0
  36. data/docs/QuotaUsedAttachmentContainedIn.md +20 -0
  37. data/docs/QuotaUsedPackage.md +26 -0
  38. data/docs/QuotaUsedSize.md +22 -0
  39. data/docs/QuotaUsedSizeAssets.md +22 -0
  40. data/docs/QuotaUsedSizeAssetsAttachments.md +20 -0
  41. data/docs/QuotaUsedSizeAssetsPackages.md +18 -0
  42. data/docs/QuotaUsedSizeGit.md +18 -0
  43. data/docs/QuotaUsedSizeRepos.md +20 -0
  44. data/docs/RepoCreateReleaseAttachmentRequest.md +4 -2
  45. data/docs/Repository.md +2 -0
  46. data/docs/RepositoryApi.md +308 -72
  47. data/docs/SetUserQuotaGroupsOptions.md +18 -0
  48. data/docs/UpdateBranchRepoOption.md +18 -0
  49. data/docs/UserApi.md +390 -33
  50. data/forgejo.gemspec +12 -13
  51. data/lib/forgejo/api/activitypub_api.rb +110 -2
  52. data/lib/forgejo/api/admin_api.rb +1148 -109
  53. data/lib/forgejo/api/issue_api.rb +94 -36
  54. data/lib/forgejo/api/miscellaneous_api.rb +2 -2
  55. data/lib/forgejo/api/notification_api.rb +2 -2
  56. data/lib/forgejo/api/organization_api.rb +363 -2
  57. data/lib/forgejo/api/package_api.rb +4 -2
  58. data/lib/forgejo/api/repository_api.rb +370 -26
  59. data/lib/forgejo/api/settings_api.rb +2 -2
  60. data/lib/forgejo/api/user_api.rb +350 -8
  61. data/lib/forgejo/api_client.rb +2 -2
  62. data/lib/forgejo/api_error.rb +2 -2
  63. data/lib/forgejo/configuration.rb +2 -2
  64. data/lib/forgejo/models/access_token.rb +11 -5
  65. data/lib/forgejo/models/action_task.rb +11 -5
  66. data/lib/forgejo/models/action_task_response.rb +11 -5
  67. data/lib/forgejo/models/action_variable.rb +11 -5
  68. data/lib/forgejo/models/activity.rb +11 -5
  69. data/lib/forgejo/models/activity_pub.rb +11 -5
  70. data/lib/forgejo/models/add_collaborator_option.rb +45 -5
  71. data/lib/forgejo/models/add_time_option.rb +21 -5
  72. data/lib/forgejo/models/annotated_tag.rb +11 -5
  73. data/lib/forgejo/models/annotated_tag_object.rb +11 -5
  74. data/lib/forgejo/models/api_error.rb +11 -5
  75. data/lib/forgejo/models/api_forbidden_error.rb +229 -0
  76. data/lib/forgejo/models/api_invalid_topics_error.rb +231 -0
  77. data/lib/forgejo/models/api_not_found.rb +240 -0
  78. data/lib/forgejo/models/api_repo_archived_error.rb +229 -0
  79. data/lib/forgejo/models/api_unauthorized_error.rb +229 -0
  80. data/lib/forgejo/models/api_validation_error.rb +229 -0
  81. data/lib/forgejo/models/attachment.rb +55 -6
  82. data/lib/forgejo/models/blocked_user.rb +11 -5
  83. data/lib/forgejo/models/branch.rb +11 -5
  84. data/lib/forgejo/models/branch_protection.rb +11 -5
  85. data/lib/forgejo/models/change_file_operation.rb +21 -5
  86. data/lib/forgejo/models/change_files_options.rb +21 -5
  87. data/lib/forgejo/models/changed_file.rb +11 -5
  88. data/lib/forgejo/models/combined_status.rb +11 -5
  89. data/lib/forgejo/models/comment.rb +11 -5
  90. data/lib/forgejo/models/commit.rb +11 -5
  91. data/lib/forgejo/models/commit_affected_files.rb +11 -5
  92. data/lib/forgejo/models/commit_date_options.rb +11 -5
  93. data/lib/forgejo/models/commit_meta.rb +11 -5
  94. data/lib/forgejo/models/commit_stats.rb +11 -5
  95. data/lib/forgejo/models/commit_status.rb +11 -5
  96. data/lib/forgejo/models/commit_user.rb +11 -5
  97. data/lib/forgejo/models/compare.rb +11 -5
  98. data/lib/forgejo/models/contents_response.rb +11 -5
  99. data/lib/forgejo/models/create_access_token_option.rb +21 -5
  100. data/lib/forgejo/models/create_branch_protection_option.rb +11 -5
  101. data/lib/forgejo/models/create_branch_repo_option.rb +21 -5
  102. data/lib/forgejo/models/create_email_option.rb +11 -5
  103. data/lib/forgejo/models/create_file_options.rb +21 -5
  104. data/lib/forgejo/models/create_fork_option.rb +11 -5
  105. data/lib/forgejo/models/create_gpg_key_option.rb +21 -5
  106. data/lib/forgejo/models/create_hook_option.rb +21 -5
  107. data/lib/forgejo/models/create_issue_comment_option.rb +21 -5
  108. data/lib/forgejo/models/create_issue_option.rb +21 -5
  109. data/lib/forgejo/models/create_key_option.rb +31 -5
  110. data/lib/forgejo/models/create_label_option.rb +31 -5
  111. data/lib/forgejo/models/create_milestone_option.rb +11 -5
  112. data/lib/forgejo/models/create_o_auth2_application_options.rb +11 -5
  113. data/lib/forgejo/models/create_or_update_secret_option.rb +21 -5
  114. data/lib/forgejo/models/create_org_option.rb +21 -5
  115. data/lib/forgejo/models/create_pull_request_option.rb +11 -5
  116. data/lib/forgejo/models/create_pull_review_comment.rb +11 -5
  117. data/lib/forgejo/models/create_pull_review_options.rb +11 -5
  118. data/lib/forgejo/models/create_push_mirror_option.rb +24 -9
  119. data/lib/forgejo/models/create_quota_group_options.rb +234 -0
  120. data/lib/forgejo/models/create_quota_rule_options.rb +244 -0
  121. data/lib/forgejo/models/create_release_option.rb +21 -5
  122. data/lib/forgejo/models/create_repo_option.rb +21 -5
  123. data/lib/forgejo/models/create_status_option.rb +11 -5
  124. data/lib/forgejo/models/create_tag_option.rb +21 -5
  125. data/lib/forgejo/models/create_tag_protection_option.rb +11 -5
  126. data/lib/forgejo/models/create_team_option.rb +21 -5
  127. data/lib/forgejo/models/create_user_option.rb +31 -5
  128. data/lib/forgejo/models/create_variable_option.rb +21 -5
  129. data/lib/forgejo/models/create_wiki_page_options.rb +11 -5
  130. data/lib/forgejo/models/cron.rb +11 -5
  131. data/lib/forgejo/models/delete_email_option.rb +11 -5
  132. data/lib/forgejo/models/delete_file_options.rb +21 -5
  133. data/lib/forgejo/models/delete_labels_option.rb +11 -5
  134. data/lib/forgejo/models/deploy_key.rb +11 -5
  135. data/lib/forgejo/models/dismiss_pull_review_options.rb +11 -5
  136. data/lib/forgejo/models/dispatch_workflow_option.rb +21 -5
  137. data/lib/forgejo/models/edit_attachment_options.rb +22 -6
  138. data/lib/forgejo/models/edit_branch_protection_option.rb +11 -5
  139. data/lib/forgejo/models/edit_deadline_option.rb +21 -5
  140. data/lib/forgejo/models/edit_git_hook_option.rb +11 -5
  141. data/lib/forgejo/models/edit_hook_option.rb +11 -5
  142. data/lib/forgejo/models/edit_issue_comment_option.rb +21 -5
  143. data/lib/forgejo/models/edit_issue_option.rb +11 -5
  144. data/lib/forgejo/models/edit_label_option.rb +11 -5
  145. data/lib/forgejo/models/edit_milestone_option.rb +11 -5
  146. data/lib/forgejo/models/edit_org_option.rb +11 -5
  147. data/lib/forgejo/models/edit_pull_request_option.rb +11 -5
  148. data/lib/forgejo/models/edit_quota_rule_options.rb +234 -0
  149. data/lib/forgejo/models/edit_reaction_option.rb +11 -5
  150. data/lib/forgejo/models/edit_release_option.rb +11 -5
  151. data/lib/forgejo/models/edit_repo_option.rb +22 -6
  152. data/lib/forgejo/models/edit_tag_protection_option.rb +11 -5
  153. data/lib/forgejo/models/edit_team_option.rb +21 -5
  154. data/lib/forgejo/models/edit_user_option.rb +11 -5
  155. data/lib/forgejo/models/email.rb +11 -5
  156. data/lib/forgejo/models/external_tracker.rb +11 -5
  157. data/lib/forgejo/models/external_wiki.rb +11 -5
  158. data/lib/forgejo/models/file_commit_response.rb +11 -5
  159. data/lib/forgejo/models/file_delete_response.rb +11 -5
  160. data/lib/forgejo/models/file_links_response.rb +11 -5
  161. data/lib/forgejo/models/file_response.rb +11 -5
  162. data/lib/forgejo/models/files_response.rb +11 -5
  163. data/lib/forgejo/models/general_api_settings.rb +11 -5
  164. data/lib/forgejo/models/general_attachment_settings.rb +11 -5
  165. data/lib/forgejo/models/general_repo_settings.rb +11 -5
  166. data/lib/forgejo/models/general_ui_settings.rb +11 -5
  167. data/lib/forgejo/models/generate_repo_option.rb +31 -5
  168. data/lib/forgejo/models/git_blob_response.rb +11 -5
  169. data/lib/forgejo/models/git_entry.rb +11 -5
  170. data/lib/forgejo/models/git_hook.rb +11 -5
  171. data/lib/forgejo/models/git_object.rb +11 -5
  172. data/lib/forgejo/models/git_tree_response.rb +11 -5
  173. data/lib/forgejo/models/gitignore_template_info.rb +11 -5
  174. data/lib/forgejo/models/gpg_key.rb +11 -5
  175. data/lib/forgejo/models/gpg_key_email.rb +11 -5
  176. data/lib/forgejo/models/hook.rb +11 -5
  177. data/lib/forgejo/models/identity.rb +11 -5
  178. data/lib/forgejo/models/internal_tracker.rb +11 -5
  179. data/lib/forgejo/models/issue.rb +11 -5
  180. data/lib/forgejo/models/issue_config.rb +11 -5
  181. data/lib/forgejo/models/issue_config_contact_link.rb +11 -5
  182. data/lib/forgejo/models/issue_config_validation.rb +11 -5
  183. data/lib/forgejo/models/issue_deadline.rb +11 -5
  184. data/lib/forgejo/models/issue_form_field.rb +11 -5
  185. data/lib/forgejo/models/issue_labels_option.rb +11 -5
  186. data/lib/forgejo/models/issue_meta.rb +11 -5
  187. data/lib/forgejo/models/issue_template.rb +11 -5
  188. data/lib/forgejo/models/label.rb +11 -5
  189. data/lib/forgejo/models/label_template.rb +11 -5
  190. data/lib/forgejo/models/license_template_info.rb +11 -5
  191. data/lib/forgejo/models/licenses_template_list_entry.rb +11 -5
  192. data/lib/forgejo/models/markdown_option.rb +11 -5
  193. data/lib/forgejo/models/markup_option.rb +22 -6
  194. data/lib/forgejo/models/merge_pull_request_option.rb +11 -5
  195. data/lib/forgejo/models/migrate_repo_options.rb +31 -5
  196. data/lib/forgejo/models/milestone.rb +11 -5
  197. data/lib/forgejo/models/new_issue_pins_allowed.rb +11 -5
  198. data/lib/forgejo/models/node_info.rb +11 -5
  199. data/lib/forgejo/models/node_info_services.rb +11 -5
  200. data/lib/forgejo/models/node_info_software.rb +11 -5
  201. data/lib/forgejo/models/node_info_usage.rb +11 -5
  202. data/lib/forgejo/models/node_info_usage_users.rb +11 -5
  203. data/lib/forgejo/models/note.rb +11 -5
  204. data/lib/forgejo/models/note_options.rb +220 -0
  205. data/lib/forgejo/models/notification_count.rb +11 -5
  206. data/lib/forgejo/models/notification_subject.rb +11 -5
  207. data/lib/forgejo/models/notification_thread.rb +11 -5
  208. data/lib/forgejo/models/o_auth2_application.rb +11 -5
  209. data/lib/forgejo/models/organization.rb +11 -5
  210. data/lib/forgejo/models/organization_permissions.rb +11 -5
  211. data/lib/forgejo/models/package.rb +11 -5
  212. data/lib/forgejo/models/package_file.rb +11 -5
  213. data/lib/forgejo/models/payload_commit.rb +11 -5
  214. data/lib/forgejo/models/payload_commit_verification.rb +11 -5
  215. data/lib/forgejo/models/payload_user.rb +11 -5
  216. data/lib/forgejo/models/permission.rb +11 -5
  217. data/lib/forgejo/models/pr_branch_info.rb +11 -5
  218. data/lib/forgejo/models/public_key.rb +11 -5
  219. data/lib/forgejo/models/pull_request.rb +23 -6
  220. data/lib/forgejo/models/pull_request_meta.rb +11 -5
  221. data/lib/forgejo/models/pull_review.rb +11 -5
  222. data/lib/forgejo/models/pull_review_comment.rb +11 -5
  223. data/lib/forgejo/models/pull_review_request_options.rb +11 -5
  224. data/lib/forgejo/models/push_mirror.rb +21 -6
  225. data/lib/forgejo/models/quota_group.rb +234 -0
  226. data/lib/forgejo/models/quota_info.rb +233 -0
  227. data/lib/forgejo/models/quota_rule_info.rb +244 -0
  228. data/lib/forgejo/models/quota_used.rb +221 -0
  229. data/lib/forgejo/models/quota_used_artifact.rb +242 -0
  230. data/lib/forgejo/models/quota_used_attachment.rb +251 -0
  231. data/lib/forgejo/models/quota_used_attachment_contained_in.rb +232 -0
  232. data/lib/forgejo/models/quota_used_package.rb +262 -0
  233. data/lib/forgejo/models/quota_used_size.rb +239 -0
  234. data/lib/forgejo/models/quota_used_size_assets.rb +240 -0
  235. data/lib/forgejo/models/quota_used_size_assets_attachments.rb +232 -0
  236. data/lib/forgejo/models/quota_used_size_assets_packages.rb +222 -0
  237. data/lib/forgejo/models/quota_used_size_git.rb +222 -0
  238. data/lib/forgejo/models/quota_used_size_repos.rb +232 -0
  239. data/lib/forgejo/models/reaction.rb +11 -5
  240. data/lib/forgejo/models/reference.rb +11 -5
  241. data/lib/forgejo/models/release.rb +11 -5
  242. data/lib/forgejo/models/rename_user_option.rb +21 -5
  243. data/lib/forgejo/models/replace_flags_option.rb +11 -5
  244. data/lib/forgejo/models/repo_collaborator_permission.rb +11 -5
  245. data/lib/forgejo/models/repo_commit.rb +11 -5
  246. data/lib/forgejo/models/repo_create_release_attachment_request.rb +26 -10
  247. data/lib/forgejo/models/repo_topic_options.rb +11 -5
  248. data/lib/forgejo/models/repo_transfer.rb +11 -5
  249. data/lib/forgejo/models/repository.rb +21 -6
  250. data/lib/forgejo/models/repository_meta.rb +11 -5
  251. data/lib/forgejo/models/search_results.rb +11 -5
  252. data/lib/forgejo/models/secret.rb +11 -5
  253. data/lib/forgejo/models/server_version.rb +11 -5
  254. data/lib/forgejo/models/set_user_quota_groups_options.rb +241 -0
  255. data/lib/forgejo/models/stop_watch.rb +11 -5
  256. data/lib/forgejo/models/submit_pull_review_options.rb +11 -5
  257. data/lib/forgejo/models/tag.rb +11 -5
  258. data/lib/forgejo/models/tag_archive_download_count.rb +11 -5
  259. data/lib/forgejo/models/tag_protection.rb +11 -5
  260. data/lib/forgejo/models/team.rb +11 -5
  261. data/lib/forgejo/models/team_search200_response.rb +11 -5
  262. data/lib/forgejo/models/timeline_comment.rb +11 -5
  263. data/lib/forgejo/models/topic_name.rb +11 -5
  264. data/lib/forgejo/models/topic_response.rb +11 -5
  265. data/lib/forgejo/models/tracked_time.rb +11 -5
  266. data/lib/forgejo/models/transfer_repo_option.rb +21 -5
  267. data/lib/forgejo/models/update_branch_repo_option.rb +239 -0
  268. data/lib/forgejo/models/update_file_options.rb +31 -5
  269. data/lib/forgejo/models/update_repo_avatar_option.rb +11 -5
  270. data/lib/forgejo/models/update_user_avatar_option.rb +11 -5
  271. data/lib/forgejo/models/update_variable_option.rb +21 -5
  272. data/lib/forgejo/models/user.rb +11 -5
  273. data/lib/forgejo/models/user_heatmap_data.rb +11 -5
  274. data/lib/forgejo/models/user_search200_response.rb +11 -5
  275. data/lib/forgejo/models/user_settings.rb +11 -5
  276. data/lib/forgejo/models/user_settings_options.rb +11 -5
  277. data/lib/forgejo/models/watch_info.rb +11 -5
  278. data/lib/forgejo/models/wiki_commit.rb +11 -5
  279. data/lib/forgejo/models/wiki_commit_list.rb +11 -5
  280. data/lib/forgejo/models/wiki_page.rb +11 -5
  281. data/lib/forgejo/models/wiki_page_meta_data.rb +11 -5
  282. data/lib/forgejo/version.rb +3 -3
  283. data/lib/forgejo.rb +28 -2
  284. data/manifest.scm +6 -2
  285. data/openapi-generator-cli.jar +0 -0
  286. data/pom.xml~ +22 -0
  287. data/smoke +1 -1
  288. data/spec/models/api_forbidden_error_spec.rb +42 -0
  289. data/spec/models/api_invalid_topics_error_spec.rb +42 -0
  290. data/spec/models/api_not_found_spec.rb +48 -0
  291. data/spec/models/api_repo_archived_error_spec.rb +42 -0
  292. data/spec/models/api_unauthorized_error_spec.rb +42 -0
  293. data/spec/models/api_validation_error_spec.rb +42 -0
  294. data/spec/models/create_quota_group_options_spec.rb +42 -0
  295. data/spec/models/create_quota_rule_options_spec.rb +48 -0
  296. data/spec/models/edit_quota_rule_options_spec.rb +42 -0
  297. data/spec/models/note_options_spec.rb +36 -0
  298. data/spec/models/quota_group_spec.rb +42 -0
  299. data/spec/models/quota_info_spec.rb +42 -0
  300. data/spec/models/quota_rule_info_spec.rb +48 -0
  301. data/spec/models/quota_used_artifact_spec.rb +48 -0
  302. data/spec/models/quota_used_attachment_contained_in_spec.rb +42 -0
  303. data/spec/models/quota_used_attachment_spec.rb +54 -0
  304. data/spec/models/quota_used_package_spec.rb +60 -0
  305. data/spec/models/quota_used_size_assets_attachments_spec.rb +42 -0
  306. data/spec/models/quota_used_size_assets_packages_spec.rb +36 -0
  307. data/spec/models/quota_used_size_assets_spec.rb +48 -0
  308. data/spec/models/quota_used_size_git_spec.rb +36 -0
  309. data/spec/models/quota_used_size_repos_spec.rb +42 -0
  310. data/spec/models/quota_used_size_spec.rb +48 -0
  311. data/spec/models/quota_used_spec.rb +36 -0
  312. data/spec/models/set_user_quota_groups_options_spec.rb +36 -0
  313. data/spec/models/update_branch_repo_option_spec.rb +36 -0
  314. data/spec/spec_helper.rb +2 -2
  315. data/swagger.v1.json +2563 -338
  316. data/swagger.v1.patched.json +1 -1
  317. metadata +291 -182
  318. data/LICENSE~ +0 -9
  319. data/Makefile~ +0 -2
  320. data/patch~ +0 -1
  321. data/smoke~ +0 -1
data/swagger.v1.json CHANGED
@@ -16,13 +16,47 @@
16
16
  "description": "This documentation describes the Forgejo API.",
17
17
  "title": "Forgejo API",
18
18
  "license": {
19
- "name": "MIT",
19
+ "name": "This file is distributed under the MIT license for the purpose of interoperability",
20
20
  "url": "http://opensource.org/licenses/MIT"
21
21
  },
22
- "version": "8.0.3-53-9d5cce4bcc+gitea-1.22.0"
22
+ "version": "10.0.0-121-28886cd+gitea-1.22.0"
23
23
  },
24
24
  "basePath": "/api/v1",
25
25
  "paths": {
26
+ "/activitypub/actor": {
27
+ "get": {
28
+ "produces": [
29
+ "application/json"
30
+ ],
31
+ "tags": [
32
+ "activitypub"
33
+ ],
34
+ "summary": "Returns the instance's Actor",
35
+ "operationId": "activitypubInstanceActor",
36
+ "responses": {
37
+ "200": {
38
+ "$ref": "#/responses/ActivityPub"
39
+ }
40
+ }
41
+ }
42
+ },
43
+ "/activitypub/actor/inbox": {
44
+ "post": {
45
+ "produces": [
46
+ "application/json"
47
+ ],
48
+ "tags": [
49
+ "activitypub"
50
+ ],
51
+ "summary": "Send to the inbox",
52
+ "operationId": "activitypubInstanceActorInbox",
53
+ "responses": {
54
+ "204": {
55
+ "$ref": "#/responses/empty"
56
+ }
57
+ }
58
+ }
59
+ },
26
60
  "/activitypub/repository-id/{repository-id}": {
27
61
  "get": {
28
62
  "produces": [
@@ -451,7 +485,7 @@
451
485
  }
452
486
  }
453
487
  },
454
- "/admin/runners/registration-token": {
488
+ "/admin/quota/groups": {
455
489
  "get": {
456
490
  "produces": [
457
491
  "application/json"
@@ -459,77 +493,104 @@
459
493
  "tags": [
460
494
  "admin"
461
495
  ],
462
- "summary": "Get an global actions runner registration token",
463
- "operationId": "adminGetRunnerRegistrationToken",
496
+ "summary": "List the available quota groups",
497
+ "operationId": "adminListQuotaGroups",
464
498
  "responses": {
465
499
  "200": {
466
- "$ref": "#/responses/RegistrationToken"
500
+ "$ref": "#/responses/QuotaGroupList"
501
+ },
502
+ "403": {
503
+ "$ref": "#/responses/forbidden"
467
504
  }
468
505
  }
469
- }
470
- },
471
- "/admin/unadopted": {
472
- "get": {
506
+ },
507
+ "post": {
473
508
  "produces": [
474
509
  "application/json"
475
510
  ],
476
511
  "tags": [
477
512
  "admin"
478
513
  ],
479
- "summary": "List unadopted repositories",
480
- "operationId": "adminUnadoptedList",
514
+ "summary": "Create a new quota group",
515
+ "operationId": "adminCreateQuotaGroup",
481
516
  "parameters": [
482
517
  {
483
- "type": "integer",
484
- "description": "page number of results to return (1-based)",
485
- "name": "page",
486
- "in": "query"
487
- },
488
- {
489
- "type": "integer",
490
- "description": "page size of results",
491
- "name": "limit",
492
- "in": "query"
493
- },
494
- {
495
- "type": "string",
496
- "description": "pattern of repositories to search for",
497
- "name": "pattern",
498
- "in": "query"
518
+ "description": "Definition of the quota group",
519
+ "name": "group",
520
+ "in": "body",
521
+ "required": true,
522
+ "schema": {
523
+ "$ref": "#/definitions/CreateQuotaGroupOptions"
524
+ }
499
525
  }
500
526
  ],
501
527
  "responses": {
502
- "200": {
503
- "$ref": "#/responses/StringSlice"
528
+ "201": {
529
+ "$ref": "#/responses/QuotaGroup"
530
+ },
531
+ "400": {
532
+ "$ref": "#/responses/error"
504
533
  },
505
534
  "403": {
506
535
  "$ref": "#/responses/forbidden"
536
+ },
537
+ "409": {
538
+ "$ref": "#/responses/error"
539
+ },
540
+ "422": {
541
+ "$ref": "#/responses/validationError"
507
542
  }
508
543
  }
509
544
  }
510
545
  },
511
- "/admin/unadopted/{owner}/{repo}": {
512
- "post": {
546
+ "/admin/quota/groups/{quotagroup}": {
547
+ "get": {
513
548
  "produces": [
514
549
  "application/json"
515
550
  ],
516
551
  "tags": [
517
552
  "admin"
518
553
  ],
519
- "summary": "Adopt unadopted files as a repository",
520
- "operationId": "adminAdoptRepository",
554
+ "summary": "Get information about the quota group",
555
+ "operationId": "adminGetQuotaGroup",
521
556
  "parameters": [
522
557
  {
523
558
  "type": "string",
524
- "description": "owner of the repo",
525
- "name": "owner",
559
+ "description": "quota group to query",
560
+ "name": "quotagroup",
526
561
  "in": "path",
527
562
  "required": true
563
+ }
564
+ ],
565
+ "responses": {
566
+ "200": {
567
+ "$ref": "#/responses/QuotaGroup"
568
+ },
569
+ "400": {
570
+ "$ref": "#/responses/error"
571
+ },
572
+ "403": {
573
+ "$ref": "#/responses/forbidden"
528
574
  },
575
+ "404": {
576
+ "$ref": "#/responses/notFound"
577
+ }
578
+ }
579
+ },
580
+ "delete": {
581
+ "produces": [
582
+ "application/json"
583
+ ],
584
+ "tags": [
585
+ "admin"
586
+ ],
587
+ "summary": "Delete a quota group",
588
+ "operationId": "adminDeleteQuotaGroup",
589
+ "parameters": [
529
590
  {
530
591
  "type": "string",
531
- "description": "name of the repo",
532
- "name": "repo",
592
+ "description": "quota group to delete",
593
+ "name": "quotagroup",
533
594
  "in": "path",
534
595
  "required": true
535
596
  }
@@ -538,6 +599,9 @@
538
599
  "204": {
539
600
  "$ref": "#/responses/empty"
540
601
  },
602
+ "400": {
603
+ "$ref": "#/responses/error"
604
+ },
541
605
  "403": {
542
606
  "$ref": "#/responses/forbidden"
543
607
  },
@@ -545,28 +609,30 @@
545
609
  "$ref": "#/responses/notFound"
546
610
  }
547
611
  }
548
- },
549
- "delete": {
612
+ }
613
+ },
614
+ "/admin/quota/groups/{quotagroup}/rules/{quotarule}": {
615
+ "put": {
550
616
  "produces": [
551
617
  "application/json"
552
618
  ],
553
619
  "tags": [
554
620
  "admin"
555
621
  ],
556
- "summary": "Delete unadopted files",
557
- "operationId": "adminDeleteUnadoptedRepository",
622
+ "summary": "Adds a rule to a quota group",
623
+ "operationId": "adminAddRuleToQuotaGroup",
558
624
  "parameters": [
559
625
  {
560
626
  "type": "string",
561
- "description": "owner of the repo",
562
- "name": "owner",
627
+ "description": "quota group to add a rule to",
628
+ "name": "quotagroup",
563
629
  "in": "path",
564
630
  "required": true
565
631
  },
566
632
  {
567
633
  "type": "string",
568
- "description": "name of the repo",
569
- "name": "repo",
634
+ "description": "the name of the quota rule to add to the group",
635
+ "name": "quotarule",
570
636
  "in": "path",
571
637
  "required": true
572
638
  }
@@ -575,82 +641,86 @@
575
641
  "204": {
576
642
  "$ref": "#/responses/empty"
577
643
  },
644
+ "400": {
645
+ "$ref": "#/responses/error"
646
+ },
578
647
  "403": {
579
648
  "$ref": "#/responses/forbidden"
649
+ },
650
+ "404": {
651
+ "$ref": "#/responses/notFound"
652
+ },
653
+ "409": {
654
+ "$ref": "#/responses/error"
655
+ },
656
+ "422": {
657
+ "$ref": "#/responses/validationError"
580
658
  }
581
659
  }
582
- }
583
- },
584
- "/admin/users": {
585
- "get": {
660
+ },
661
+ "delete": {
586
662
  "produces": [
587
663
  "application/json"
588
664
  ],
589
665
  "tags": [
590
666
  "admin"
591
667
  ],
592
- "summary": "Search users according filter conditions",
593
- "operationId": "adminSearchUsers",
668
+ "summary": "Removes a rule from a quota group",
669
+ "operationId": "adminRemoveRuleFromQuotaGroup",
594
670
  "parameters": [
595
- {
596
- "type": "integer",
597
- "format": "int64",
598
- "description": "ID of the user's login source to search for",
599
- "name": "source_id",
600
- "in": "query"
601
- },
602
671
  {
603
672
  "type": "string",
604
- "description": "user's login name to search for",
605
- "name": "login_name",
606
- "in": "query"
607
- },
608
- {
609
- "type": "integer",
610
- "description": "page number of results to return (1-based)",
611
- "name": "page",
612
- "in": "query"
673
+ "description": "quota group to remove a rule from",
674
+ "name": "quotagroup",
675
+ "in": "path",
676
+ "required": true
613
677
  },
614
678
  {
615
- "type": "integer",
616
- "description": "page size of results",
617
- "name": "limit",
618
- "in": "query"
679
+ "type": "string",
680
+ "description": "the name of the quota rule to remove from the group",
681
+ "name": "quotarule",
682
+ "in": "path",
683
+ "required": true
619
684
  }
620
685
  ],
621
686
  "responses": {
622
- "200": {
623
- "$ref": "#/responses/UserList"
687
+ "201": {
688
+ "$ref": "#/responses/empty"
689
+ },
690
+ "400": {
691
+ "$ref": "#/responses/error"
624
692
  },
625
693
  "403": {
626
694
  "$ref": "#/responses/forbidden"
695
+ },
696
+ "404": {
697
+ "$ref": "#/responses/notFound"
627
698
  }
628
699
  }
629
- },
630
- "post": {
631
- "consumes": [
632
- "application/json"
633
- ],
700
+ }
701
+ },
702
+ "/admin/quota/groups/{quotagroup}/users": {
703
+ "get": {
634
704
  "produces": [
635
705
  "application/json"
636
706
  ],
637
707
  "tags": [
638
708
  "admin"
639
709
  ],
640
- "summary": "Create a user",
641
- "operationId": "adminCreateUser",
710
+ "summary": "List users in a quota group",
711
+ "operationId": "adminListUsersInQuotaGroup",
642
712
  "parameters": [
643
713
  {
644
- "name": "body",
645
- "in": "body",
646
- "schema": {
647
- "$ref": "#/definitions/CreateUserOption"
648
- }
714
+ "type": "string",
715
+ "description": "quota group to list members of",
716
+ "name": "quotagroup",
717
+ "in": "path",
718
+ "required": true
649
719
  }
650
720
  ],
651
721
  "responses": {
652
- "201": {
653
- "$ref": "#/responses/User"
722
+ "200": {
723
+ "$ref": "#/responses/UserList"
654
724
  },
655
725
  "400": {
656
726
  "$ref": "#/responses/error"
@@ -658,83 +728,87 @@
658
728
  "403": {
659
729
  "$ref": "#/responses/forbidden"
660
730
  },
661
- "422": {
662
- "$ref": "#/responses/validationError"
731
+ "404": {
732
+ "$ref": "#/responses/notFound"
663
733
  }
664
734
  }
665
735
  }
666
736
  },
667
- "/admin/users/{username}": {
668
- "delete": {
737
+ "/admin/quota/groups/{quotagroup}/users/{username}": {
738
+ "put": {
669
739
  "produces": [
670
740
  "application/json"
671
741
  ],
672
742
  "tags": [
673
743
  "admin"
674
744
  ],
675
- "summary": "Delete a user",
676
- "operationId": "adminDeleteUser",
745
+ "summary": "Add a user to a quota group",
746
+ "operationId": "adminAddUserToQuotaGroup",
677
747
  "parameters": [
678
748
  {
679
749
  "type": "string",
680
- "description": "username of user to delete",
681
- "name": "username",
750
+ "description": "quota group to add the user to",
751
+ "name": "quotagroup",
682
752
  "in": "path",
683
753
  "required": true
684
754
  },
685
755
  {
686
- "type": "boolean",
687
- "description": "purge the user from the system completely",
688
- "name": "purge",
689
- "in": "query"
756
+ "type": "string",
757
+ "description": "username of the user to add to the quota group",
758
+ "name": "username",
759
+ "in": "path",
760
+ "required": true
690
761
  }
691
762
  ],
692
763
  "responses": {
693
764
  "204": {
694
765
  "$ref": "#/responses/empty"
695
766
  },
767
+ "400": {
768
+ "$ref": "#/responses/error"
769
+ },
696
770
  "403": {
697
771
  "$ref": "#/responses/forbidden"
698
772
  },
699
773
  "404": {
700
774
  "$ref": "#/responses/notFound"
701
775
  },
776
+ "409": {
777
+ "$ref": "#/responses/error"
778
+ },
702
779
  "422": {
703
780
  "$ref": "#/responses/validationError"
704
781
  }
705
782
  }
706
783
  },
707
- "patch": {
708
- "consumes": [
709
- "application/json"
710
- ],
784
+ "delete": {
711
785
  "produces": [
712
786
  "application/json"
713
787
  ],
714
788
  "tags": [
715
789
  "admin"
716
790
  ],
717
- "summary": "Edit an existing user",
718
- "operationId": "adminEditUser",
791
+ "summary": "Remove a user from a quota group",
792
+ "operationId": "adminRemoveUserFromQuotaGroup",
719
793
  "parameters": [
720
794
  {
721
795
  "type": "string",
722
- "description": "username of user to edit",
723
- "name": "username",
796
+ "description": "quota group to remove a user from",
797
+ "name": "quotagroup",
724
798
  "in": "path",
725
799
  "required": true
726
800
  },
727
801
  {
728
- "name": "body",
729
- "in": "body",
730
- "schema": {
731
- "$ref": "#/definitions/EditUserOption"
732
- }
802
+ "type": "string",
803
+ "description": "username of the user to remove from the quota group",
804
+ "name": "username",
805
+ "in": "path",
806
+ "required": true
733
807
  }
734
808
  ],
735
809
  "responses": {
736
- "200": {
737
- "$ref": "#/responses/User"
810
+ "204": {
811
+ "$ref": "#/responses/empty"
738
812
  },
739
813
  "400": {
740
814
  "$ref": "#/responses/error"
@@ -742,17 +816,498 @@
742
816
  "403": {
743
817
  "$ref": "#/responses/forbidden"
744
818
  },
745
- "422": {
746
- "$ref": "#/responses/validationError"
819
+ "404": {
820
+ "$ref": "#/responses/notFound"
747
821
  }
748
822
  }
749
823
  }
750
824
  },
751
- "/admin/users/{username}/keys": {
752
- "post": {
753
- "consumes": [
754
- "application/json"
755
- ],
825
+ "/admin/quota/rules": {
826
+ "get": {
827
+ "produces": [
828
+ "application/json"
829
+ ],
830
+ "tags": [
831
+ "admin"
832
+ ],
833
+ "summary": "List the available quota rules",
834
+ "operationId": "adminListQuotaRules",
835
+ "responses": {
836
+ "200": {
837
+ "$ref": "#/responses/QuotaRuleInfoList"
838
+ },
839
+ "403": {
840
+ "$ref": "#/responses/forbidden"
841
+ }
842
+ }
843
+ },
844
+ "post": {
845
+ "produces": [
846
+ "application/json"
847
+ ],
848
+ "tags": [
849
+ "admin"
850
+ ],
851
+ "summary": "Create a new quota rule",
852
+ "operationId": "adminCreateQuotaRule",
853
+ "parameters": [
854
+ {
855
+ "description": "Definition of the quota rule",
856
+ "name": "rule",
857
+ "in": "body",
858
+ "required": true,
859
+ "schema": {
860
+ "$ref": "#/definitions/CreateQuotaRuleOptions"
861
+ }
862
+ }
863
+ ],
864
+ "responses": {
865
+ "201": {
866
+ "$ref": "#/responses/QuotaRuleInfo"
867
+ },
868
+ "400": {
869
+ "$ref": "#/responses/error"
870
+ },
871
+ "403": {
872
+ "$ref": "#/responses/forbidden"
873
+ },
874
+ "409": {
875
+ "$ref": "#/responses/error"
876
+ },
877
+ "422": {
878
+ "$ref": "#/responses/validationError"
879
+ }
880
+ }
881
+ }
882
+ },
883
+ "/admin/quota/rules/{quotarule}": {
884
+ "get": {
885
+ "produces": [
886
+ "application/json"
887
+ ],
888
+ "tags": [
889
+ "admin"
890
+ ],
891
+ "summary": "Get information about a quota rule",
892
+ "operationId": "adminGetQuotaRule",
893
+ "parameters": [
894
+ {
895
+ "type": "string",
896
+ "description": "quota rule to query",
897
+ "name": "quotarule",
898
+ "in": "path",
899
+ "required": true
900
+ }
901
+ ],
902
+ "responses": {
903
+ "200": {
904
+ "$ref": "#/responses/QuotaRuleInfo"
905
+ },
906
+ "400": {
907
+ "$ref": "#/responses/error"
908
+ },
909
+ "403": {
910
+ "$ref": "#/responses/forbidden"
911
+ },
912
+ "404": {
913
+ "$ref": "#/responses/notFound"
914
+ }
915
+ }
916
+ },
917
+ "delete": {
918
+ "produces": [
919
+ "application/json"
920
+ ],
921
+ "tags": [
922
+ "admin"
923
+ ],
924
+ "summary": "Deletes a quota rule",
925
+ "operationId": "adminDEleteQuotaRule",
926
+ "parameters": [
927
+ {
928
+ "type": "string",
929
+ "description": "quota rule to delete",
930
+ "name": "quotarule",
931
+ "in": "path",
932
+ "required": true
933
+ }
934
+ ],
935
+ "responses": {
936
+ "204": {
937
+ "$ref": "#/responses/empty"
938
+ },
939
+ "400": {
940
+ "$ref": "#/responses/error"
941
+ },
942
+ "403": {
943
+ "$ref": "#/responses/forbidden"
944
+ },
945
+ "404": {
946
+ "$ref": "#/responses/notFound"
947
+ }
948
+ }
949
+ },
950
+ "patch": {
951
+ "produces": [
952
+ "application/json"
953
+ ],
954
+ "tags": [
955
+ "admin"
956
+ ],
957
+ "summary": "Change an existing quota rule",
958
+ "operationId": "adminEditQuotaRule",
959
+ "parameters": [
960
+ {
961
+ "type": "string",
962
+ "description": "Quota rule to change",
963
+ "name": "quotarule",
964
+ "in": "path",
965
+ "required": true
966
+ },
967
+ {
968
+ "name": "rule",
969
+ "in": "body",
970
+ "required": true,
971
+ "schema": {
972
+ "$ref": "#/definitions/EditQuotaRuleOptions"
973
+ }
974
+ }
975
+ ],
976
+ "responses": {
977
+ "200": {
978
+ "$ref": "#/responses/QuotaRuleInfo"
979
+ },
980
+ "400": {
981
+ "$ref": "#/responses/error"
982
+ },
983
+ "403": {
984
+ "$ref": "#/responses/forbidden"
985
+ },
986
+ "404": {
987
+ "$ref": "#/responses/notFound"
988
+ },
989
+ "422": {
990
+ "$ref": "#/responses/validationError"
991
+ }
992
+ }
993
+ }
994
+ },
995
+ "/admin/runners/registration-token": {
996
+ "get": {
997
+ "produces": [
998
+ "application/json"
999
+ ],
1000
+ "tags": [
1001
+ "admin"
1002
+ ],
1003
+ "summary": "Get an global actions runner registration token",
1004
+ "operationId": "adminGetRunnerRegistrationToken",
1005
+ "responses": {
1006
+ "200": {
1007
+ "$ref": "#/responses/RegistrationToken"
1008
+ }
1009
+ }
1010
+ }
1011
+ },
1012
+ "/admin/unadopted": {
1013
+ "get": {
1014
+ "produces": [
1015
+ "application/json"
1016
+ ],
1017
+ "tags": [
1018
+ "admin"
1019
+ ],
1020
+ "summary": "List unadopted repositories",
1021
+ "operationId": "adminUnadoptedList",
1022
+ "parameters": [
1023
+ {
1024
+ "type": "integer",
1025
+ "description": "page number of results to return (1-based)",
1026
+ "name": "page",
1027
+ "in": "query"
1028
+ },
1029
+ {
1030
+ "type": "integer",
1031
+ "description": "page size of results",
1032
+ "name": "limit",
1033
+ "in": "query"
1034
+ },
1035
+ {
1036
+ "type": "string",
1037
+ "description": "pattern of repositories to search for",
1038
+ "name": "pattern",
1039
+ "in": "query"
1040
+ }
1041
+ ],
1042
+ "responses": {
1043
+ "200": {
1044
+ "$ref": "#/responses/StringSlice"
1045
+ },
1046
+ "403": {
1047
+ "$ref": "#/responses/forbidden"
1048
+ }
1049
+ }
1050
+ }
1051
+ },
1052
+ "/admin/unadopted/{owner}/{repo}": {
1053
+ "post": {
1054
+ "produces": [
1055
+ "application/json"
1056
+ ],
1057
+ "tags": [
1058
+ "admin"
1059
+ ],
1060
+ "summary": "Adopt unadopted files as a repository",
1061
+ "operationId": "adminAdoptRepository",
1062
+ "parameters": [
1063
+ {
1064
+ "type": "string",
1065
+ "description": "owner of the repo",
1066
+ "name": "owner",
1067
+ "in": "path",
1068
+ "required": true
1069
+ },
1070
+ {
1071
+ "type": "string",
1072
+ "description": "name of the repo",
1073
+ "name": "repo",
1074
+ "in": "path",
1075
+ "required": true
1076
+ }
1077
+ ],
1078
+ "responses": {
1079
+ "204": {
1080
+ "$ref": "#/responses/empty"
1081
+ },
1082
+ "403": {
1083
+ "$ref": "#/responses/forbidden"
1084
+ },
1085
+ "404": {
1086
+ "$ref": "#/responses/notFound"
1087
+ }
1088
+ }
1089
+ },
1090
+ "delete": {
1091
+ "produces": [
1092
+ "application/json"
1093
+ ],
1094
+ "tags": [
1095
+ "admin"
1096
+ ],
1097
+ "summary": "Delete unadopted files",
1098
+ "operationId": "adminDeleteUnadoptedRepository",
1099
+ "parameters": [
1100
+ {
1101
+ "type": "string",
1102
+ "description": "owner of the repo",
1103
+ "name": "owner",
1104
+ "in": "path",
1105
+ "required": true
1106
+ },
1107
+ {
1108
+ "type": "string",
1109
+ "description": "name of the repo",
1110
+ "name": "repo",
1111
+ "in": "path",
1112
+ "required": true
1113
+ }
1114
+ ],
1115
+ "responses": {
1116
+ "204": {
1117
+ "$ref": "#/responses/empty"
1118
+ },
1119
+ "403": {
1120
+ "$ref": "#/responses/forbidden"
1121
+ }
1122
+ }
1123
+ }
1124
+ },
1125
+ "/admin/users": {
1126
+ "get": {
1127
+ "produces": [
1128
+ "application/json"
1129
+ ],
1130
+ "tags": [
1131
+ "admin"
1132
+ ],
1133
+ "summary": "Search users according filter conditions",
1134
+ "operationId": "adminSearchUsers",
1135
+ "parameters": [
1136
+ {
1137
+ "type": "integer",
1138
+ "format": "int64",
1139
+ "description": "ID of the user's login source to search for",
1140
+ "name": "source_id",
1141
+ "in": "query"
1142
+ },
1143
+ {
1144
+ "type": "string",
1145
+ "description": "user's login name to search for",
1146
+ "name": "login_name",
1147
+ "in": "query"
1148
+ },
1149
+ {
1150
+ "enum": [
1151
+ "oldest",
1152
+ "newest",
1153
+ "alphabetically",
1154
+ "reversealphabetically",
1155
+ "recentupdate",
1156
+ "leastupdate"
1157
+ ],
1158
+ "type": "string",
1159
+ "description": "sort order of results",
1160
+ "name": "sort",
1161
+ "in": "query"
1162
+ },
1163
+ {
1164
+ "type": "integer",
1165
+ "description": "page number of results to return (1-based)",
1166
+ "name": "page",
1167
+ "in": "query"
1168
+ },
1169
+ {
1170
+ "type": "integer",
1171
+ "description": "page size of results",
1172
+ "name": "limit",
1173
+ "in": "query"
1174
+ }
1175
+ ],
1176
+ "responses": {
1177
+ "200": {
1178
+ "$ref": "#/responses/UserList"
1179
+ },
1180
+ "403": {
1181
+ "$ref": "#/responses/forbidden"
1182
+ }
1183
+ }
1184
+ },
1185
+ "post": {
1186
+ "consumes": [
1187
+ "application/json"
1188
+ ],
1189
+ "produces": [
1190
+ "application/json"
1191
+ ],
1192
+ "tags": [
1193
+ "admin"
1194
+ ],
1195
+ "summary": "Create a user",
1196
+ "operationId": "adminCreateUser",
1197
+ "parameters": [
1198
+ {
1199
+ "name": "body",
1200
+ "in": "body",
1201
+ "schema": {
1202
+ "$ref": "#/definitions/CreateUserOption"
1203
+ }
1204
+ }
1205
+ ],
1206
+ "responses": {
1207
+ "201": {
1208
+ "$ref": "#/responses/User"
1209
+ },
1210
+ "400": {
1211
+ "$ref": "#/responses/error"
1212
+ },
1213
+ "403": {
1214
+ "$ref": "#/responses/forbidden"
1215
+ },
1216
+ "422": {
1217
+ "$ref": "#/responses/validationError"
1218
+ }
1219
+ }
1220
+ }
1221
+ },
1222
+ "/admin/users/{username}": {
1223
+ "delete": {
1224
+ "produces": [
1225
+ "application/json"
1226
+ ],
1227
+ "tags": [
1228
+ "admin"
1229
+ ],
1230
+ "summary": "Delete a user",
1231
+ "operationId": "adminDeleteUser",
1232
+ "parameters": [
1233
+ {
1234
+ "type": "string",
1235
+ "description": "username of user to delete",
1236
+ "name": "username",
1237
+ "in": "path",
1238
+ "required": true
1239
+ },
1240
+ {
1241
+ "type": "boolean",
1242
+ "description": "purge the user from the system completely",
1243
+ "name": "purge",
1244
+ "in": "query"
1245
+ }
1246
+ ],
1247
+ "responses": {
1248
+ "204": {
1249
+ "$ref": "#/responses/empty"
1250
+ },
1251
+ "403": {
1252
+ "$ref": "#/responses/forbidden"
1253
+ },
1254
+ "404": {
1255
+ "$ref": "#/responses/notFound"
1256
+ },
1257
+ "422": {
1258
+ "$ref": "#/responses/validationError"
1259
+ }
1260
+ }
1261
+ },
1262
+ "patch": {
1263
+ "consumes": [
1264
+ "application/json"
1265
+ ],
1266
+ "produces": [
1267
+ "application/json"
1268
+ ],
1269
+ "tags": [
1270
+ "admin"
1271
+ ],
1272
+ "summary": "Edit an existing user",
1273
+ "operationId": "adminEditUser",
1274
+ "parameters": [
1275
+ {
1276
+ "type": "string",
1277
+ "description": "username of user to edit",
1278
+ "name": "username",
1279
+ "in": "path",
1280
+ "required": true
1281
+ },
1282
+ {
1283
+ "name": "body",
1284
+ "in": "body",
1285
+ "schema": {
1286
+ "$ref": "#/definitions/EditUserOption"
1287
+ }
1288
+ }
1289
+ ],
1290
+ "responses": {
1291
+ "200": {
1292
+ "$ref": "#/responses/User"
1293
+ },
1294
+ "400": {
1295
+ "$ref": "#/responses/error"
1296
+ },
1297
+ "403": {
1298
+ "$ref": "#/responses/forbidden"
1299
+ },
1300
+ "422": {
1301
+ "$ref": "#/responses/validationError"
1302
+ }
1303
+ }
1304
+ }
1305
+ },
1306
+ "/admin/users/{username}/keys": {
1307
+ "post": {
1308
+ "consumes": [
1309
+ "application/json"
1310
+ ],
756
1311
  "produces": [
757
1312
  "application/json"
758
1313
  ],
@@ -873,6 +1428,91 @@
873
1428
  }
874
1429
  }
875
1430
  },
1431
+ "/admin/users/{username}/quota": {
1432
+ "get": {
1433
+ "produces": [
1434
+ "application/json"
1435
+ ],
1436
+ "tags": [
1437
+ "admin"
1438
+ ],
1439
+ "summary": "Get the user's quota info",
1440
+ "operationId": "adminGetUserQuota",
1441
+ "parameters": [
1442
+ {
1443
+ "type": "string",
1444
+ "description": "username of user to query",
1445
+ "name": "username",
1446
+ "in": "path",
1447
+ "required": true
1448
+ }
1449
+ ],
1450
+ "responses": {
1451
+ "200": {
1452
+ "$ref": "#/responses/QuotaInfo"
1453
+ },
1454
+ "400": {
1455
+ "$ref": "#/responses/error"
1456
+ },
1457
+ "403": {
1458
+ "$ref": "#/responses/forbidden"
1459
+ },
1460
+ "404": {
1461
+ "$ref": "#/responses/notFound"
1462
+ },
1463
+ "422": {
1464
+ "$ref": "#/responses/validationError"
1465
+ }
1466
+ }
1467
+ }
1468
+ },
1469
+ "/admin/users/{username}/quota/groups": {
1470
+ "post": {
1471
+ "produces": [
1472
+ "application/json"
1473
+ ],
1474
+ "tags": [
1475
+ "admin"
1476
+ ],
1477
+ "summary": "Set the user's quota groups to a given list.",
1478
+ "operationId": "adminSetUserQuotaGroups",
1479
+ "parameters": [
1480
+ {
1481
+ "type": "string",
1482
+ "description": "username of the user to modify the quota groups from",
1483
+ "name": "username",
1484
+ "in": "path",
1485
+ "required": true
1486
+ },
1487
+ {
1488
+ "description": "list of groups that the user should be a member of",
1489
+ "name": "groups",
1490
+ "in": "body",
1491
+ "required": true,
1492
+ "schema": {
1493
+ "$ref": "#/definitions/SetUserQuotaGroupsOptions"
1494
+ }
1495
+ }
1496
+ ],
1497
+ "responses": {
1498
+ "204": {
1499
+ "$ref": "#/responses/empty"
1500
+ },
1501
+ "400": {
1502
+ "$ref": "#/responses/error"
1503
+ },
1504
+ "403": {
1505
+ "$ref": "#/responses/forbidden"
1506
+ },
1507
+ "404": {
1508
+ "$ref": "#/responses/notFound"
1509
+ },
1510
+ "422": {
1511
+ "$ref": "#/responses/validationError"
1512
+ }
1513
+ }
1514
+ }
1515
+ },
876
1516
  "/admin/users/{username}/rename": {
877
1517
  "post": {
878
1518
  "produces": [
@@ -1637,6 +2277,9 @@
1637
2277
  },
1638
2278
  "404": {
1639
2279
  "$ref": "#/responses/notFound"
2280
+ },
2281
+ "422": {
2282
+ "$ref": "#/responses/error"
1640
2283
  }
1641
2284
  }
1642
2285
  }
@@ -2867,6 +3510,205 @@
2867
3510
  }
2868
3511
  }
2869
3512
  },
3513
+ "/orgs/{org}/quota": {
3514
+ "get": {
3515
+ "produces": [
3516
+ "application/json"
3517
+ ],
3518
+ "tags": [
3519
+ "organization"
3520
+ ],
3521
+ "summary": "Get quota information for an organization",
3522
+ "operationId": "orgGetQuota",
3523
+ "parameters": [
3524
+ {
3525
+ "type": "string",
3526
+ "description": "name of the organization",
3527
+ "name": "org",
3528
+ "in": "path",
3529
+ "required": true
3530
+ }
3531
+ ],
3532
+ "responses": {
3533
+ "200": {
3534
+ "$ref": "#/responses/QuotaInfo"
3535
+ },
3536
+ "403": {
3537
+ "$ref": "#/responses/forbidden"
3538
+ },
3539
+ "404": {
3540
+ "$ref": "#/responses/notFound"
3541
+ }
3542
+ }
3543
+ }
3544
+ },
3545
+ "/orgs/{org}/quota/artifacts": {
3546
+ "get": {
3547
+ "produces": [
3548
+ "application/json"
3549
+ ],
3550
+ "tags": [
3551
+ "organization"
3552
+ ],
3553
+ "summary": "List the artifacts affecting the organization's quota",
3554
+ "operationId": "orgListQuotaArtifacts",
3555
+ "parameters": [
3556
+ {
3557
+ "type": "string",
3558
+ "description": "name of the organization",
3559
+ "name": "org",
3560
+ "in": "path",
3561
+ "required": true
3562
+ },
3563
+ {
3564
+ "type": "integer",
3565
+ "description": "page number of results to return (1-based)",
3566
+ "name": "page",
3567
+ "in": "query"
3568
+ },
3569
+ {
3570
+ "type": "integer",
3571
+ "description": "page size of results",
3572
+ "name": "limit",
3573
+ "in": "query"
3574
+ }
3575
+ ],
3576
+ "responses": {
3577
+ "200": {
3578
+ "$ref": "#/responses/QuotaUsedArtifactList"
3579
+ },
3580
+ "403": {
3581
+ "$ref": "#/responses/forbidden"
3582
+ },
3583
+ "404": {
3584
+ "$ref": "#/responses/notFound"
3585
+ }
3586
+ }
3587
+ }
3588
+ },
3589
+ "/orgs/{org}/quota/attachments": {
3590
+ "get": {
3591
+ "produces": [
3592
+ "application/json"
3593
+ ],
3594
+ "tags": [
3595
+ "organization"
3596
+ ],
3597
+ "summary": "List the attachments affecting the organization's quota",
3598
+ "operationId": "orgListQuotaAttachments",
3599
+ "parameters": [
3600
+ {
3601
+ "type": "string",
3602
+ "description": "name of the organization",
3603
+ "name": "org",
3604
+ "in": "path",
3605
+ "required": true
3606
+ },
3607
+ {
3608
+ "type": "integer",
3609
+ "description": "page number of results to return (1-based)",
3610
+ "name": "page",
3611
+ "in": "query"
3612
+ },
3613
+ {
3614
+ "type": "integer",
3615
+ "description": "page size of results",
3616
+ "name": "limit",
3617
+ "in": "query"
3618
+ }
3619
+ ],
3620
+ "responses": {
3621
+ "200": {
3622
+ "$ref": "#/responses/QuotaUsedAttachmentList"
3623
+ },
3624
+ "403": {
3625
+ "$ref": "#/responses/forbidden"
3626
+ },
3627
+ "404": {
3628
+ "$ref": "#/responses/notFound"
3629
+ }
3630
+ }
3631
+ }
3632
+ },
3633
+ "/orgs/{org}/quota/check": {
3634
+ "get": {
3635
+ "produces": [
3636
+ "application/json"
3637
+ ],
3638
+ "tags": [
3639
+ "organization"
3640
+ ],
3641
+ "summary": "Check if the organization is over quota for a given subject",
3642
+ "operationId": "orgCheckQuota",
3643
+ "parameters": [
3644
+ {
3645
+ "type": "string",
3646
+ "description": "name of the organization",
3647
+ "name": "org",
3648
+ "in": "path",
3649
+ "required": true
3650
+ }
3651
+ ],
3652
+ "responses": {
3653
+ "200": {
3654
+ "$ref": "#/responses/boolean"
3655
+ },
3656
+ "403": {
3657
+ "$ref": "#/responses/forbidden"
3658
+ },
3659
+ "404": {
3660
+ "$ref": "#/responses/notFound"
3661
+ },
3662
+ "422": {
3663
+ "$ref": "#/responses/validationError"
3664
+ }
3665
+ }
3666
+ }
3667
+ },
3668
+ "/orgs/{org}/quota/packages": {
3669
+ "get": {
3670
+ "produces": [
3671
+ "application/json"
3672
+ ],
3673
+ "tags": [
3674
+ "organization"
3675
+ ],
3676
+ "summary": "List the packages affecting the organization's quota",
3677
+ "operationId": "orgListQuotaPackages",
3678
+ "parameters": [
3679
+ {
3680
+ "type": "string",
3681
+ "description": "name of the organization",
3682
+ "name": "org",
3683
+ "in": "path",
3684
+ "required": true
3685
+ },
3686
+ {
3687
+ "type": "integer",
3688
+ "description": "page number of results to return (1-based)",
3689
+ "name": "page",
3690
+ "in": "query"
3691
+ },
3692
+ {
3693
+ "type": "integer",
3694
+ "description": "page size of results",
3695
+ "name": "limit",
3696
+ "in": "query"
3697
+ }
3698
+ ],
3699
+ "responses": {
3700
+ "200": {
3701
+ "$ref": "#/responses/QuotaUsedPackageList"
3702
+ },
3703
+ "403": {
3704
+ "$ref": "#/responses/forbidden"
3705
+ },
3706
+ "404": {
3707
+ "$ref": "#/responses/notFound"
3708
+ }
3709
+ }
3710
+ }
3711
+ },
2870
3712
  "/orgs/{org}/repos": {
2871
3713
  "get": {
2872
3714
  "produces": [
@@ -3371,107 +4213,125 @@
3371
4213
  "operationId": "issueSearchIssues",
3372
4214
  "parameters": [
3373
4215
  {
4216
+ "enum": [
4217
+ "open",
4218
+ "closed",
4219
+ "all"
4220
+ ],
3374
4221
  "type": "string",
3375
- "description": "whether issue is open or closed",
4222
+ "default": "open",
4223
+ "description": "State of the issue",
3376
4224
  "name": "state",
3377
4225
  "in": "query"
3378
4226
  },
3379
4227
  {
3380
4228
  "type": "string",
3381
- "description": "comma separated list of labels. Fetch only issues that have any of this labels. Non existent labels are discarded",
4229
+ "description": "Comma-separated list of label names. Fetch only issues that have any of these labels. Non existent labels are discarded.",
3382
4230
  "name": "labels",
3383
4231
  "in": "query"
3384
4232
  },
3385
4233
  {
3386
4234
  "type": "string",
3387
- "description": "comma separated list of milestone names. Fetch only issues that have any of this milestones. Non existent are discarded",
4235
+ "description": "Comma-separated list of milestone names. Fetch only issues that have any of these milestones. Non existent milestones are discarded.",
3388
4236
  "name": "milestones",
3389
4237
  "in": "query"
3390
4238
  },
3391
4239
  {
3392
4240
  "type": "string",
3393
- "description": "search string",
4241
+ "description": "Search string",
3394
4242
  "name": "q",
3395
4243
  "in": "query"
3396
4244
  },
3397
4245
  {
3398
4246
  "type": "integer",
3399
4247
  "format": "int64",
3400
- "description": "repository to prioritize in the results",
4248
+ "description": "Repository ID to prioritize in the results",
3401
4249
  "name": "priority_repo_id",
3402
4250
  "in": "query"
3403
4251
  },
3404
4252
  {
4253
+ "enum": [
4254
+ "issues",
4255
+ "pulls"
4256
+ ],
3405
4257
  "type": "string",
3406
- "description": "filter by type (issues / pulls) if set",
4258
+ "description": "Filter by issue type",
3407
4259
  "name": "type",
3408
4260
  "in": "query"
3409
4261
  },
3410
4262
  {
3411
4263
  "type": "string",
3412
4264
  "format": "date-time",
3413
- "description": "Only show notifications updated after the given time. This is a timestamp in RFC 3339 format",
4265
+ "description": "Only show issues updated after the given time (RFC 3339 format)",
3414
4266
  "name": "since",
3415
4267
  "in": "query"
3416
4268
  },
3417
4269
  {
3418
4270
  "type": "string",
3419
4271
  "format": "date-time",
3420
- "description": "Only show notifications updated before the given time. This is a timestamp in RFC 3339 format",
4272
+ "description": "Only show issues updated before the given time (RFC 3339 format)",
3421
4273
  "name": "before",
3422
4274
  "in": "query"
3423
4275
  },
3424
4276
  {
3425
4277
  "type": "boolean",
3426
- "description": "filter (issues / pulls) assigned to you, default is false",
4278
+ "default": false,
4279
+ "description": "Filter issues or pulls assigned to the authenticated user",
3427
4280
  "name": "assigned",
3428
4281
  "in": "query"
3429
4282
  },
3430
4283
  {
3431
4284
  "type": "boolean",
3432
- "description": "filter (issues / pulls) created by you, default is false",
4285
+ "default": false,
4286
+ "description": "Filter issues or pulls created by the authenticated user",
3433
4287
  "name": "created",
3434
4288
  "in": "query"
3435
4289
  },
3436
4290
  {
3437
4291
  "type": "boolean",
3438
- "description": "filter (issues / pulls) mentioning you, default is false",
4292
+ "default": false,
4293
+ "description": "Filter issues or pulls mentioning the authenticated user",
3439
4294
  "name": "mentioned",
3440
4295
  "in": "query"
3441
4296
  },
3442
4297
  {
3443
4298
  "type": "boolean",
3444
- "description": "filter pulls requesting your review, default is false",
4299
+ "default": false,
4300
+ "description": "Filter pull requests where the authenticated user's review was requested",
3445
4301
  "name": "review_requested",
3446
4302
  "in": "query"
3447
4303
  },
3448
4304
  {
3449
4305
  "type": "boolean",
3450
- "description": "filter pulls reviewed by you, default is false",
4306
+ "default": false,
4307
+ "description": "Filter pull requests reviewed by the authenticated user",
3451
4308
  "name": "reviewed",
3452
4309
  "in": "query"
3453
4310
  },
3454
4311
  {
3455
4312
  "type": "string",
3456
- "description": "filter by owner",
4313
+ "description": "Filter by repository owner",
3457
4314
  "name": "owner",
3458
4315
  "in": "query"
3459
4316
  },
3460
4317
  {
3461
4318
  "type": "string",
3462
- "description": "filter by team (requires organization owner parameter to be provided)",
4319
+ "description": "Filter by team (requires organization owner parameter)",
3463
4320
  "name": "team",
3464
4321
  "in": "query"
3465
4322
  },
3466
4323
  {
4324
+ "minimum": 1,
3467
4325
  "type": "integer",
3468
- "description": "page number of results to return (1-based)",
4326
+ "default": 1,
4327
+ "description": "Page number of results to return (1-based)",
3469
4328
  "name": "page",
3470
4329
  "in": "query"
3471
4330
  },
3472
4331
  {
4332
+ "minimum": 0,
3473
4333
  "type": "integer",
3474
- "description": "page size of results",
4334
+ "description": "Number of items per page",
3475
4335
  "name": "limit",
3476
4336
  "in": "query"
3477
4337
  }
@@ -3479,6 +4339,12 @@
3479
4339
  "responses": {
3480
4340
  "200": {
3481
4341
  "$ref": "#/responses/IssueList"
4342
+ },
4343
+ "400": {
4344
+ "$ref": "#/responses/error"
4345
+ },
4346
+ "422": {
4347
+ "$ref": "#/responses/validationError"
3482
4348
  }
3483
4349
  }
3484
4350
  }
@@ -3515,6 +4381,9 @@
3515
4381
  "409": {
3516
4382
  "description": "The repository with the same name already exists."
3517
4383
  },
4384
+ "413": {
4385
+ "$ref": "#/responses/quotaExceeded"
4386
+ },
3518
4387
  "422": {
3519
4388
  "$ref": "#/responses/validationError"
3520
4389
  }
@@ -3756,16 +4625,49 @@
3756
4625
  ],
3757
4626
  "responses": {
3758
4627
  "200": {
3759
- "$ref": "#/responses/Repository"
3760
- },
3761
- "403": {
3762
- "$ref": "#/responses/forbidden"
3763
- },
3764
- "404": {
3765
- "$ref": "#/responses/notFound"
3766
- },
3767
- "422": {
3768
- "$ref": "#/responses/validationError"
4628
+ "$ref": "#/responses/Repository"
4629
+ },
4630
+ "403": {
4631
+ "$ref": "#/responses/forbidden"
4632
+ },
4633
+ "404": {
4634
+ "$ref": "#/responses/notFound"
4635
+ },
4636
+ "422": {
4637
+ "$ref": "#/responses/validationError"
4638
+ }
4639
+ }
4640
+ }
4641
+ },
4642
+ "/repos/{owner}/{repo}/actions/runners/registration-token": {
4643
+ "get": {
4644
+ "produces": [
4645
+ "application/json"
4646
+ ],
4647
+ "tags": [
4648
+ "repository"
4649
+ ],
4650
+ "summary": "Get a repository's actions runner registration token",
4651
+ "operationId": "repoGetRunnerRegistrationToken",
4652
+ "parameters": [
4653
+ {
4654
+ "type": "string",
4655
+ "description": "owner of the repo",
4656
+ "name": "owner",
4657
+ "in": "path",
4658
+ "required": true
4659
+ },
4660
+ {
4661
+ "type": "string",
4662
+ "description": "name of the repo",
4663
+ "name": "repo",
4664
+ "in": "path",
4665
+ "required": true
4666
+ }
4667
+ ],
4668
+ "responses": {
4669
+ "200": {
4670
+ "$ref": "#/responses/RegistrationToken"
3769
4671
  }
3770
4672
  }
3771
4673
  }
@@ -4821,6 +5723,9 @@
4821
5723
  "409": {
4822
5724
  "description": "The branch with the same name already exists."
4823
5725
  },
5726
+ "413": {
5727
+ "$ref": "#/responses/quotaExceeded"
5728
+ },
4824
5729
  "423": {
4825
5730
  "$ref": "#/responses/repoArchivedError"
4826
5731
  }
@@ -4915,6 +5820,63 @@
4915
5820
  "$ref": "#/responses/repoArchivedError"
4916
5821
  }
4917
5822
  }
5823
+ },
5824
+ "patch": {
5825
+ "consumes": [
5826
+ "application/json"
5827
+ ],
5828
+ "produces": [
5829
+ "application/json"
5830
+ ],
5831
+ "tags": [
5832
+ "repository"
5833
+ ],
5834
+ "summary": "Update a branch",
5835
+ "operationId": "repoUpdateBranch",
5836
+ "parameters": [
5837
+ {
5838
+ "type": "string",
5839
+ "description": "owner of the repo",
5840
+ "name": "owner",
5841
+ "in": "path",
5842
+ "required": true
5843
+ },
5844
+ {
5845
+ "type": "string",
5846
+ "description": "name of the repo",
5847
+ "name": "repo",
5848
+ "in": "path",
5849
+ "required": true
5850
+ },
5851
+ {
5852
+ "type": "string",
5853
+ "description": "name of the branch",
5854
+ "name": "branch",
5855
+ "in": "path",
5856
+ "required": true
5857
+ },
5858
+ {
5859
+ "name": "body",
5860
+ "in": "body",
5861
+ "schema": {
5862
+ "$ref": "#/definitions/UpdateBranchRepoOption"
5863
+ }
5864
+ }
5865
+ ],
5866
+ "responses": {
5867
+ "204": {
5868
+ "$ref": "#/responses/empty"
5869
+ },
5870
+ "403": {
5871
+ "$ref": "#/responses/forbidden"
5872
+ },
5873
+ "404": {
5874
+ "$ref": "#/responses/notFound"
5875
+ },
5876
+ "422": {
5877
+ "$ref": "#/responses/validationError"
5878
+ }
5879
+ }
4918
5880
  }
4919
5881
  },
4920
5882
  "/repos/{owner}/{repo}/collaborators": {
@@ -5557,6 +6519,9 @@
5557
6519
  "404": {
5558
6520
  "$ref": "#/responses/notFound"
5559
6521
  },
6522
+ "413": {
6523
+ "$ref": "#/responses/quotaExceeded"
6524
+ },
5560
6525
  "422": {
5561
6526
  "$ref": "#/responses/error"
5562
6527
  },
@@ -5667,6 +6632,9 @@
5667
6632
  "404": {
5668
6633
  "$ref": "#/responses/notFound"
5669
6634
  },
6635
+ "413": {
6636
+ "$ref": "#/responses/quotaExceeded"
6637
+ },
5670
6638
  "422": {
5671
6639
  "$ref": "#/responses/error"
5672
6640
  },
@@ -5728,6 +6696,9 @@
5728
6696
  "404": {
5729
6697
  "$ref": "#/responses/notFound"
5730
6698
  },
6699
+ "413": {
6700
+ "$ref": "#/responses/quotaExceeded"
6701
+ },
5731
6702
  "422": {
5732
6703
  "$ref": "#/responses/error"
5733
6704
  },
@@ -5792,6 +6763,9 @@
5792
6763
  "404": {
5793
6764
  "$ref": "#/responses/error"
5794
6765
  },
6766
+ "413": {
6767
+ "$ref": "#/responses/quotaExceeded"
6768
+ },
5795
6769
  "423": {
5796
6770
  "$ref": "#/responses/repoArchivedError"
5797
6771
  }
@@ -5842,6 +6816,9 @@
5842
6816
  "404": {
5843
6817
  "$ref": "#/responses/notFound"
5844
6818
  },
6819
+ "413": {
6820
+ "$ref": "#/responses/quotaExceeded"
6821
+ },
5845
6822
  "423": {
5846
6823
  "$ref": "#/responses/repoArchivedError"
5847
6824
  }
@@ -6243,6 +7220,9 @@
6243
7220
  "409": {
6244
7221
  "description": "The repository with the same name already exists."
6245
7222
  },
7223
+ "413": {
7224
+ "$ref": "#/responses/quotaExceeded"
7225
+ },
6246
7226
  "422": {
6247
7227
  "$ref": "#/responses/validationError"
6248
7228
  }
@@ -6469,6 +7449,101 @@
6469
7449
  "$ref": "#/responses/validationError"
6470
7450
  }
6471
7451
  }
7452
+ },
7453
+ "post": {
7454
+ "produces": [
7455
+ "application/json"
7456
+ ],
7457
+ "tags": [
7458
+ "repository"
7459
+ ],
7460
+ "summary": "Set a note corresponding to a single commit from a repository",
7461
+ "operationId": "repoSetNote",
7462
+ "parameters": [
7463
+ {
7464
+ "type": "string",
7465
+ "description": "owner of the repo",
7466
+ "name": "owner",
7467
+ "in": "path",
7468
+ "required": true
7469
+ },
7470
+ {
7471
+ "type": "string",
7472
+ "description": "name of the repo",
7473
+ "name": "repo",
7474
+ "in": "path",
7475
+ "required": true
7476
+ },
7477
+ {
7478
+ "type": "string",
7479
+ "description": "a git ref or commit sha",
7480
+ "name": "sha",
7481
+ "in": "path",
7482
+ "required": true
7483
+ },
7484
+ {
7485
+ "name": "body",
7486
+ "in": "body",
7487
+ "schema": {
7488
+ "$ref": "#/definitions/NoteOptions"
7489
+ }
7490
+ }
7491
+ ],
7492
+ "responses": {
7493
+ "200": {
7494
+ "$ref": "#/responses/Note"
7495
+ },
7496
+ "404": {
7497
+ "$ref": "#/responses/notFound"
7498
+ },
7499
+ "422": {
7500
+ "$ref": "#/responses/validationError"
7501
+ }
7502
+ }
7503
+ },
7504
+ "delete": {
7505
+ "produces": [
7506
+ "application/json"
7507
+ ],
7508
+ "tags": [
7509
+ "repository"
7510
+ ],
7511
+ "summary": "Removes a note corresponding to a single commit from a repository",
7512
+ "operationId": "repoRemoveNote",
7513
+ "parameters": [
7514
+ {
7515
+ "type": "string",
7516
+ "description": "owner of the repo",
7517
+ "name": "owner",
7518
+ "in": "path",
7519
+ "required": true
7520
+ },
7521
+ {
7522
+ "type": "string",
7523
+ "description": "name of the repo",
7524
+ "name": "repo",
7525
+ "in": "path",
7526
+ "required": true
7527
+ },
7528
+ {
7529
+ "type": "string",
7530
+ "description": "a git ref or commit sha",
7531
+ "name": "sha",
7532
+ "in": "path",
7533
+ "required": true
7534
+ }
7535
+ ],
7536
+ "responses": {
7537
+ "204": {
7538
+ "$ref": "#/responses/empty"
7539
+ },
7540
+ "404": {
7541
+ "$ref": "#/responses/notFound"
7542
+ },
7543
+ "422": {
7544
+ "$ref": "#/responses/validationError"
7545
+ }
7546
+ }
6472
7547
  }
6473
7548
  },
6474
7549
  "/repos/{owner}/{repo}/git/refs": {
@@ -7715,6 +8790,9 @@
7715
8790
  "404": {
7716
8791
  "$ref": "#/responses/error"
7717
8792
  },
8793
+ "413": {
8794
+ "$ref": "#/responses/quotaExceeded"
8795
+ },
7718
8796
  "422": {
7719
8797
  "$ref": "#/responses/validationError"
7720
8798
  },
@@ -7886,6 +8964,9 @@
7886
8964
  "404": {
7887
8965
  "$ref": "#/responses/error"
7888
8966
  },
8967
+ "413": {
8968
+ "$ref": "#/responses/quotaExceeded"
8969
+ },
7889
8970
  "423": {
7890
8971
  "$ref": "#/responses/repoArchivedError"
7891
8972
  }
@@ -8344,6 +9425,9 @@
8344
9425
  "404": {
8345
9426
  "$ref": "#/responses/error"
8346
9427
  },
9428
+ "413": {
9429
+ "$ref": "#/responses/quotaExceeded"
9430
+ },
8347
9431
  "422": {
8348
9432
  "$ref": "#/responses/validationError"
8349
9433
  },
@@ -8515,6 +9599,9 @@
8515
9599
  "404": {
8516
9600
  "$ref": "#/responses/error"
8517
9601
  },
9602
+ "413": {
9603
+ "$ref": "#/responses/quotaExceeded"
9604
+ },
8518
9605
  "423": {
8519
9606
  "$ref": "#/responses/repoArchivedError"
8520
9607
  }
@@ -10867,6 +11954,9 @@
10867
11954
  },
10868
11955
  "/repos/{owner}/{repo}/media/{filepath}": {
10869
11956
  "get": {
11957
+ "produces": [
11958
+ "application/octet-stream"
11959
+ ],
10870
11960
  "tags": [
10871
11961
  "repository"
10872
11962
  ],
@@ -10903,7 +11993,10 @@
10903
11993
  ],
10904
11994
  "responses": {
10905
11995
  "200": {
10906
- "description": "Returns raw file content."
11996
+ "description": "Returns raw file content.",
11997
+ "schema": {
11998
+ "type": "file"
11999
+ }
10907
12000
  },
10908
12001
  "404": {
10909
12002
  "$ref": "#/responses/notFound"
@@ -11182,6 +12275,9 @@
11182
12275
  },
11183
12276
  "404": {
11184
12277
  "$ref": "#/responses/notFound"
12278
+ },
12279
+ "413": {
12280
+ "$ref": "#/responses/quotaExceeded"
11185
12281
  }
11186
12282
  }
11187
12283
  }
@@ -11392,26 +12488,27 @@
11392
12488
  "parameters": [
11393
12489
  {
11394
12490
  "type": "string",
11395
- "description": "owner of the repo",
12491
+ "description": "Owner of the repo",
11396
12492
  "name": "owner",
11397
12493
  "in": "path",
11398
12494
  "required": true
11399
12495
  },
11400
12496
  {
11401
12497
  "type": "string",
11402
- "description": "name of the repo",
12498
+ "description": "Name of the repo",
11403
12499
  "name": "repo",
11404
12500
  "in": "path",
11405
12501
  "required": true
11406
12502
  },
11407
12503
  {
11408
12504
  "enum": [
11409
- "closed",
11410
12505
  "open",
12506
+ "closed",
11411
12507
  "all"
11412
12508
  ],
11413
12509
  "type": "string",
11414
- "description": "State of pull request: open or closed (optional)",
12510
+ "default": "open",
12511
+ "description": "State of pull request",
11415
12512
  "name": "state",
11416
12513
  "in": "query"
11417
12514
  },
@@ -11448,14 +12545,23 @@
11448
12545
  "in": "query"
11449
12546
  },
11450
12547
  {
12548
+ "type": "string",
12549
+ "description": "Filter by pull request author",
12550
+ "name": "poster",
12551
+ "in": "query"
12552
+ },
12553
+ {
12554
+ "minimum": 1,
11451
12555
  "type": "integer",
11452
- "description": "page number of results to return (1-based)",
12556
+ "default": 1,
12557
+ "description": "Page number of results to return (1-based)",
11453
12558
  "name": "page",
11454
12559
  "in": "query"
11455
12560
  },
11456
12561
  {
12562
+ "minimum": 0,
11457
12563
  "type": "integer",
11458
- "description": "page size of results",
12564
+ "description": "Page size of results",
11459
12565
  "name": "limit",
11460
12566
  "in": "query"
11461
12567
  }
@@ -11466,6 +12572,9 @@
11466
12572
  },
11467
12573
  "404": {
11468
12574
  "$ref": "#/responses/notFound"
12575
+ },
12576
+ "500": {
12577
+ "$ref": "#/responses/error"
11469
12578
  }
11470
12579
  }
11471
12580
  },
@@ -11514,6 +12623,9 @@
11514
12623
  "409": {
11515
12624
  "$ref": "#/responses/error"
11516
12625
  },
12626
+ "413": {
12627
+ "$ref": "#/responses/quotaExceeded"
12628
+ },
11517
12629
  "422": {
11518
12630
  "$ref": "#/responses/validationError"
11519
12631
  },
@@ -12016,6 +13128,9 @@
12016
13128
  "409": {
12017
13129
  "$ref": "#/responses/error"
12018
13130
  },
13131
+ "413": {
13132
+ "$ref": "#/responses/quotaExceeded"
13133
+ },
12019
13134
  "423": {
12020
13135
  "$ref": "#/responses/repoArchivedError"
12021
13136
  }
@@ -12874,6 +13989,9 @@
12874
13989
  "409": {
12875
13990
  "$ref": "#/responses/error"
12876
13991
  },
13992
+ "413": {
13993
+ "$ref": "#/responses/quotaExceeded"
13994
+ },
12877
13995
  "422": {
12878
13996
  "$ref": "#/responses/validationError"
12879
13997
  }
@@ -12980,6 +14098,9 @@
12980
14098
  },
12981
14099
  "404": {
12982
14100
  "$ref": "#/responses/notFound"
14101
+ },
14102
+ "413": {
14103
+ "$ref": "#/responses/quotaExceeded"
12983
14104
  }
12984
14105
  }
12985
14106
  }
@@ -13022,6 +14143,9 @@
13022
14143
  },
13023
14144
  "404": {
13024
14145
  "$ref": "#/responses/notFound"
14146
+ },
14147
+ "413": {
14148
+ "$ref": "#/responses/quotaExceeded"
13025
14149
  }
13026
14150
  }
13027
14151
  }
@@ -13122,7 +14246,7 @@
13122
14246
  "/repos/{owner}/{repo}/raw/{filepath}": {
13123
14247
  "get": {
13124
14248
  "produces": [
13125
- "application/json"
14249
+ "application/octet-stream"
13126
14250
  ],
13127
14251
  "tags": [
13128
14252
  "repository"
@@ -13160,7 +14284,10 @@
13160
14284
  ],
13161
14285
  "responses": {
13162
14286
  "200": {
13163
- "description": "Returns raw file content."
14287
+ "description": "Returns raw file content.",
14288
+ "schema": {
14289
+ "type": "file"
14290
+ }
13164
14291
  },
13165
14292
  "404": {
13166
14293
  "$ref": "#/responses/notFound"
@@ -13205,6 +14332,12 @@
13205
14332
  "name": "pre-release",
13206
14333
  "in": "query"
13207
14334
  },
14335
+ {
14336
+ "type": "string",
14337
+ "description": "Search string",
14338
+ "name": "q",
14339
+ "in": "query"
14340
+ },
13208
14341
  {
13209
14342
  "type": "integer",
13210
14343
  "description": "page number of results to return (1-based)",
@@ -13623,9 +14756,15 @@
13623
14756
  },
13624
14757
  {
13625
14758
  "type": "file",
13626
- "description": "attachment to upload",
14759
+ "description": "attachment to upload (this parameter is incompatible with `external_url`)",
13627
14760
  "name": "attachment",
13628
14761
  "in": "formData"
14762
+ },
14763
+ {
14764
+ "type": "string",
14765
+ "description": "url to external asset (this parameter is incompatible with `attachment`)",
14766
+ "name": "external_url",
14767
+ "in": "formData"
13629
14768
  }
13630
14769
  ],
13631
14770
  "responses": {
@@ -13637,6 +14776,9 @@
13637
14776
  },
13638
14777
  "404": {
13639
14778
  "$ref": "#/responses/notFound"
14779
+ },
14780
+ "413": {
14781
+ "$ref": "#/responses/quotaExceeded"
13640
14782
  }
13641
14783
  }
13642
14784
  }
@@ -13799,6 +14941,9 @@
13799
14941
  },
13800
14942
  "404": {
13801
14943
  "$ref": "#/responses/notFound"
14944
+ },
14945
+ "413": {
14946
+ "$ref": "#/responses/quotaExceeded"
13802
14947
  }
13803
14948
  }
13804
14949
  }
@@ -13839,39 +14984,6 @@
13839
14984
  }
13840
14985
  }
13841
14986
  },
13842
- "/repos/{owner}/{repo}/runners/registration-token": {
13843
- "get": {
13844
- "produces": [
13845
- "application/json"
13846
- ],
13847
- "tags": [
13848
- "repository"
13849
- ],
13850
- "summary": "Get a repository's actions runner registration token",
13851
- "operationId": "repoGetRunnerRegistrationToken",
13852
- "parameters": [
13853
- {
13854
- "type": "string",
13855
- "description": "owner of the repo",
13856
- "name": "owner",
13857
- "in": "path",
13858
- "required": true
13859
- },
13860
- {
13861
- "type": "string",
13862
- "description": "name of the repo",
13863
- "name": "repo",
13864
- "in": "path",
13865
- "required": true
13866
- }
13867
- ],
13868
- "responses": {
13869
- "200": {
13870
- "$ref": "#/responses/RegistrationToken"
13871
- }
13872
- }
13873
- }
13874
- },
13875
14987
  "/repos/{owner}/{repo}/signing-key.gpg": {
13876
14988
  "get": {
13877
14989
  "produces": [
@@ -14553,6 +15665,9 @@
14553
15665
  "409": {
14554
15666
  "$ref": "#/responses/conflict"
14555
15667
  },
15668
+ "413": {
15669
+ "$ref": "#/responses/quotaExceeded"
15670
+ },
14556
15671
  "422": {
14557
15672
  "$ref": "#/responses/validationError"
14558
15673
  },
@@ -15185,6 +16300,9 @@
15185
16300
  "404": {
15186
16301
  "$ref": "#/responses/notFound"
15187
16302
  },
16303
+ "413": {
16304
+ "$ref": "#/responses/quotaExceeded"
16305
+ },
15188
16306
  "422": {
15189
16307
  "$ref": "#/responses/validationError"
15190
16308
  }
@@ -15226,6 +16344,9 @@
15226
16344
  },
15227
16345
  "404": {
15228
16346
  "$ref": "#/responses/notFound"
16347
+ },
16348
+ "413": {
16349
+ "$ref": "#/responses/quotaExceeded"
15229
16350
  }
15230
16351
  }
15231
16352
  }
@@ -15315,6 +16436,9 @@
15315
16436
  "404": {
15316
16437
  "$ref": "#/responses/notFound"
15317
16438
  },
16439
+ "413": {
16440
+ "$ref": "#/responses/quotaExceeded"
16441
+ },
15318
16442
  "423": {
15319
16443
  "$ref": "#/responses/repoArchivedError"
15320
16444
  }
@@ -15459,6 +16583,9 @@
15459
16583
  "404": {
15460
16584
  "$ref": "#/responses/notFound"
15461
16585
  },
16586
+ "413": {
16587
+ "$ref": "#/responses/quotaExceeded"
16588
+ },
15462
16589
  "423": {
15463
16590
  "$ref": "#/responses/repoArchivedError"
15464
16591
  }
@@ -15611,6 +16738,9 @@
15611
16738
  "409": {
15612
16739
  "description": "The repository with the same name already exists."
15613
16740
  },
16741
+ "413": {
16742
+ "$ref": "#/responses/quotaExceeded"
16743
+ },
15614
16744
  "422": {
15615
16745
  "$ref": "#/responses/validationError"
15616
16746
  }
@@ -16259,6 +17389,12 @@
16259
17389
  "responses": {
16260
17390
  "200": {
16261
17391
  "$ref": "#/responses/User"
17392
+ },
17393
+ "401": {
17394
+ "$ref": "#/responses/unauthorized"
17395
+ },
17396
+ "403": {
17397
+ "$ref": "#/responses/forbidden"
16262
17398
  }
16263
17399
  }
16264
17400
  }
@@ -16276,6 +17412,12 @@
16276
17412
  "responses": {
16277
17413
  "200": {
16278
17414
  "$ref": "#/responses/RegistrationToken"
17415
+ },
17416
+ "401": {
17417
+ "$ref": "#/responses/unauthorized"
17418
+ },
17419
+ "403": {
17420
+ "$ref": "#/responses/forbidden"
16279
17421
  }
16280
17422
  }
16281
17423
  }
@@ -16319,6 +17461,12 @@
16319
17461
  "400": {
16320
17462
  "$ref": "#/responses/error"
16321
17463
  },
17464
+ "401": {
17465
+ "$ref": "#/responses/unauthorized"
17466
+ },
17467
+ "403": {
17468
+ "$ref": "#/responses/forbidden"
17469
+ },
16322
17470
  "404": {
16323
17471
  "$ref": "#/responses/notFound"
16324
17472
  }
@@ -16352,6 +17500,12 @@
16352
17500
  "400": {
16353
17501
  "$ref": "#/responses/error"
16354
17502
  },
17503
+ "401": {
17504
+ "$ref": "#/responses/unauthorized"
17505
+ },
17506
+ "403": {
17507
+ "$ref": "#/responses/forbidden"
17508
+ },
16355
17509
  "404": {
16356
17510
  "$ref": "#/responses/notFound"
16357
17511
  }
@@ -16389,6 +17543,12 @@
16389
17543
  "400": {
16390
17544
  "$ref": "#/responses/error"
16391
17545
  },
17546
+ "401": {
17547
+ "$ref": "#/responses/unauthorized"
17548
+ },
17549
+ "403": {
17550
+ "$ref": "#/responses/forbidden"
17551
+ },
16392
17552
  "404": {
16393
17553
  "$ref": "#/responses/notFound"
16394
17554
  }
@@ -16421,6 +17581,12 @@
16421
17581
  "400": {
16422
17582
  "$ref": "#/responses/error"
16423
17583
  },
17584
+ "401": {
17585
+ "$ref": "#/responses/unauthorized"
17586
+ },
17587
+ "403": {
17588
+ "$ref": "#/responses/forbidden"
17589
+ },
16424
17590
  "404": {
16425
17591
  "$ref": "#/responses/notFound"
16426
17592
  }
@@ -16464,6 +17630,12 @@
16464
17630
  "400": {
16465
17631
  "$ref": "#/responses/error"
16466
17632
  },
17633
+ "401": {
17634
+ "$ref": "#/responses/unauthorized"
17635
+ },
17636
+ "403": {
17637
+ "$ref": "#/responses/forbidden"
17638
+ },
16467
17639
  "404": {
16468
17640
  "$ref": "#/responses/notFound"
16469
17641
  }
@@ -16507,6 +17679,12 @@
16507
17679
  "400": {
16508
17680
  "$ref": "#/responses/error"
16509
17681
  },
17682
+ "401": {
17683
+ "$ref": "#/responses/unauthorized"
17684
+ },
17685
+ "403": {
17686
+ "$ref": "#/responses/forbidden"
17687
+ },
16510
17688
  "404": {
16511
17689
  "$ref": "#/responses/notFound"
16512
17690
  }
@@ -16540,6 +17718,12 @@
16540
17718
  "400": {
16541
17719
  "$ref": "#/responses/error"
16542
17720
  },
17721
+ "401": {
17722
+ "$ref": "#/responses/unauthorized"
17723
+ },
17724
+ "403": {
17725
+ "$ref": "#/responses/forbidden"
17726
+ },
16543
17727
  "404": {
16544
17728
  "$ref": "#/responses/notFound"
16545
17729
  }
@@ -16573,6 +17757,12 @@
16573
17757
  "responses": {
16574
17758
  "200": {
16575
17759
  "$ref": "#/responses/OAuth2ApplicationList"
17760
+ },
17761
+ "401": {
17762
+ "$ref": "#/responses/unauthorized"
17763
+ },
17764
+ "403": {
17765
+ "$ref": "#/responses/forbidden"
16576
17766
  }
16577
17767
  }
16578
17768
  },
@@ -16601,6 +17791,12 @@
16601
17791
  },
16602
17792
  "400": {
16603
17793
  "$ref": "#/responses/error"
17794
+ },
17795
+ "401": {
17796
+ "$ref": "#/responses/unauthorized"
17797
+ },
17798
+ "403": {
17799
+ "$ref": "#/responses/forbidden"
16604
17800
  }
16605
17801
  }
16606
17802
  }
@@ -16629,6 +17825,12 @@
16629
17825
  "200": {
16630
17826
  "$ref": "#/responses/OAuth2Application"
16631
17827
  },
17828
+ "401": {
17829
+ "$ref": "#/responses/unauthorized"
17830
+ },
17831
+ "403": {
17832
+ "$ref": "#/responses/forbidden"
17833
+ },
16632
17834
  "404": {
16633
17835
  "$ref": "#/responses/notFound"
16634
17836
  }
@@ -16657,6 +17859,12 @@
16657
17859
  "204": {
16658
17860
  "$ref": "#/responses/empty"
16659
17861
  },
17862
+ "401": {
17863
+ "$ref": "#/responses/unauthorized"
17864
+ },
17865
+ "403": {
17866
+ "$ref": "#/responses/forbidden"
17867
+ },
16660
17868
  "404": {
16661
17869
  "$ref": "#/responses/notFound"
16662
17870
  }
@@ -16693,6 +17901,12 @@
16693
17901
  "200": {
16694
17902
  "$ref": "#/responses/OAuth2Application"
16695
17903
  },
17904
+ "401": {
17905
+ "$ref": "#/responses/unauthorized"
17906
+ },
17907
+ "403": {
17908
+ "$ref": "#/responses/forbidden"
17909
+ },
16696
17910
  "404": {
16697
17911
  "$ref": "#/responses/notFound"
16698
17912
  }
@@ -16721,6 +17935,12 @@
16721
17935
  "responses": {
16722
17936
  "204": {
16723
17937
  "$ref": "#/responses/empty"
17938
+ },
17939
+ "401": {
17940
+ "$ref": "#/responses/unauthorized"
17941
+ },
17942
+ "403": {
17943
+ "$ref": "#/responses/forbidden"
16724
17944
  }
16725
17945
  }
16726
17946
  },
@@ -16736,6 +17956,12 @@
16736
17956
  "responses": {
16737
17957
  "204": {
16738
17958
  "$ref": "#/responses/empty"
17959
+ },
17960
+ "401": {
17961
+ "$ref": "#/responses/unauthorized"
17962
+ },
17963
+ "403": {
17964
+ "$ref": "#/responses/forbidden"
16739
17965
  }
16740
17966
  }
16741
17967
  }
@@ -16763,6 +17989,12 @@
16763
17989
  "204": {
16764
17990
  "$ref": "#/responses/empty"
16765
17991
  },
17992
+ "401": {
17993
+ "$ref": "#/responses/unauthorized"
17994
+ },
17995
+ "403": {
17996
+ "$ref": "#/responses/forbidden"
17997
+ },
16766
17998
  "404": {
16767
17999
  "$ref": "#/responses/notFound"
16768
18000
  },
@@ -16785,6 +18017,12 @@
16785
18017
  "responses": {
16786
18018
  "200": {
16787
18019
  "$ref": "#/responses/EmailList"
18020
+ },
18021
+ "401": {
18022
+ "$ref": "#/responses/unauthorized"
18023
+ },
18024
+ "403": {
18025
+ "$ref": "#/responses/forbidden"
16788
18026
  }
16789
18027
  }
16790
18028
  },
@@ -16810,6 +18048,12 @@
16810
18048
  "201": {
16811
18049
  "$ref": "#/responses/EmailList"
16812
18050
  },
18051
+ "401": {
18052
+ "$ref": "#/responses/unauthorized"
18053
+ },
18054
+ "403": {
18055
+ "$ref": "#/responses/forbidden"
18056
+ },
16813
18057
  "422": {
16814
18058
  "$ref": "#/responses/validationError"
16815
18059
  }
@@ -16837,6 +18081,12 @@
16837
18081
  "204": {
16838
18082
  "$ref": "#/responses/empty"
16839
18083
  },
18084
+ "401": {
18085
+ "$ref": "#/responses/unauthorized"
18086
+ },
18087
+ "403": {
18088
+ "$ref": "#/responses/forbidden"
18089
+ },
16840
18090
  "404": {
16841
18091
  "$ref": "#/responses/notFound"
16842
18092
  }
@@ -16870,6 +18120,12 @@
16870
18120
  "responses": {
16871
18121
  "200": {
16872
18122
  "$ref": "#/responses/UserList"
18123
+ },
18124
+ "401": {
18125
+ "$ref": "#/responses/unauthorized"
18126
+ },
18127
+ "403": {
18128
+ "$ref": "#/responses/forbidden"
16873
18129
  }
16874
18130
  }
16875
18131
  }
@@ -16901,6 +18157,12 @@
16901
18157
  "responses": {
16902
18158
  "200": {
16903
18159
  "$ref": "#/responses/UserList"
18160
+ },
18161
+ "401": {
18162
+ "$ref": "#/responses/unauthorized"
18163
+ },
18164
+ "403": {
18165
+ "$ref": "#/responses/forbidden"
16904
18166
  }
16905
18167
  }
16906
18168
  }
@@ -16925,6 +18187,12 @@
16925
18187
  "204": {
16926
18188
  "$ref": "#/responses/empty"
16927
18189
  },
18190
+ "401": {
18191
+ "$ref": "#/responses/unauthorized"
18192
+ },
18193
+ "403": {
18194
+ "$ref": "#/responses/forbidden"
18195
+ },
16928
18196
  "404": {
16929
18197
  "$ref": "#/responses/notFound"
16930
18198
  }
@@ -16949,6 +18217,9 @@
16949
18217
  "204": {
16950
18218
  "$ref": "#/responses/empty"
16951
18219
  },
18220
+ "401": {
18221
+ "$ref": "#/responses/unauthorized"
18222
+ },
16952
18223
  "403": {
16953
18224
  "$ref": "#/responses/forbidden"
16954
18225
  },
@@ -16976,6 +18247,12 @@
16976
18247
  "204": {
16977
18248
  "$ref": "#/responses/empty"
16978
18249
  },
18250
+ "401": {
18251
+ "$ref": "#/responses/unauthorized"
18252
+ },
18253
+ "403": {
18254
+ "$ref": "#/responses/forbidden"
18255
+ },
16979
18256
  "404": {
16980
18257
  "$ref": "#/responses/notFound"
16981
18258
  }
@@ -16996,6 +18273,12 @@
16996
18273
  "200": {
16997
18274
  "$ref": "#/responses/string"
16998
18275
  },
18276
+ "401": {
18277
+ "$ref": "#/responses/unauthorized"
18278
+ },
18279
+ "403": {
18280
+ "$ref": "#/responses/forbidden"
18281
+ },
16999
18282
  "404": {
17000
18283
  "$ref": "#/responses/notFound"
17001
18284
  }
@@ -17019,6 +18302,12 @@
17019
18302
  "201": {
17020
18303
  "$ref": "#/responses/GPGKey"
17021
18304
  },
18305
+ "401": {
18306
+ "$ref": "#/responses/unauthorized"
18307
+ },
18308
+ "403": {
18309
+ "$ref": "#/responses/forbidden"
18310
+ },
17022
18311
  "404": {
17023
18312
  "$ref": "#/responses/notFound"
17024
18313
  },
@@ -17055,6 +18344,12 @@
17055
18344
  "responses": {
17056
18345
  "200": {
17057
18346
  "$ref": "#/responses/GPGKeyList"
18347
+ },
18348
+ "401": {
18349
+ "$ref": "#/responses/unauthorized"
18350
+ },
18351
+ "403": {
18352
+ "$ref": "#/responses/forbidden"
17058
18353
  }
17059
18354
  }
17060
18355
  },
@@ -17083,6 +18378,12 @@
17083
18378
  "201": {
17084
18379
  "$ref": "#/responses/GPGKey"
17085
18380
  },
18381
+ "401": {
18382
+ "$ref": "#/responses/unauthorized"
18383
+ },
18384
+ "403": {
18385
+ "$ref": "#/responses/forbidden"
18386
+ },
17086
18387
  "404": {
17087
18388
  "$ref": "#/responses/notFound"
17088
18389
  },
@@ -17116,6 +18417,12 @@
17116
18417
  "200": {
17117
18418
  "$ref": "#/responses/GPGKey"
17118
18419
  },
18420
+ "401": {
18421
+ "$ref": "#/responses/unauthorized"
18422
+ },
18423
+ "403": {
18424
+ "$ref": "#/responses/forbidden"
18425
+ },
17119
18426
  "404": {
17120
18427
  "$ref": "#/responses/notFound"
17121
18428
  }
@@ -17144,6 +18451,9 @@
17144
18451
  "204": {
17145
18452
  "$ref": "#/responses/empty"
17146
18453
  },
18454
+ "401": {
18455
+ "$ref": "#/responses/unauthorized"
18456
+ },
17147
18457
  "403": {
17148
18458
  "$ref": "#/responses/forbidden"
17149
18459
  },
@@ -17180,6 +18490,12 @@
17180
18490
  "responses": {
17181
18491
  "200": {
17182
18492
  "$ref": "#/responses/HookList"
18493
+ },
18494
+ "401": {
18495
+ "$ref": "#/responses/unauthorized"
18496
+ },
18497
+ "403": {
18498
+ "$ref": "#/responses/forbidden"
17183
18499
  }
17184
18500
  }
17185
18501
  },
@@ -17208,6 +18524,12 @@
17208
18524
  "responses": {
17209
18525
  "201": {
17210
18526
  "$ref": "#/responses/Hook"
18527
+ },
18528
+ "401": {
18529
+ "$ref": "#/responses/unauthorized"
18530
+ },
18531
+ "403": {
18532
+ "$ref": "#/responses/forbidden"
17211
18533
  }
17212
18534
  }
17213
18535
  }
@@ -17235,6 +18557,12 @@
17235
18557
  "responses": {
17236
18558
  "200": {
17237
18559
  "$ref": "#/responses/Hook"
18560
+ },
18561
+ "401": {
18562
+ "$ref": "#/responses/unauthorized"
18563
+ },
18564
+ "403": {
18565
+ "$ref": "#/responses/forbidden"
17238
18566
  }
17239
18567
  }
17240
18568
  },
@@ -17260,6 +18588,12 @@
17260
18588
  "responses": {
17261
18589
  "204": {
17262
18590
  "$ref": "#/responses/empty"
18591
+ },
18592
+ "401": {
18593
+ "$ref": "#/responses/unauthorized"
18594
+ },
18595
+ "403": {
18596
+ "$ref": "#/responses/forbidden"
17263
18597
  }
17264
18598
  }
17265
18599
  },
@@ -17295,6 +18629,12 @@
17295
18629
  "responses": {
17296
18630
  "200": {
17297
18631
  "$ref": "#/responses/Hook"
18632
+ },
18633
+ "401": {
18634
+ "$ref": "#/responses/unauthorized"
18635
+ },
18636
+ "403": {
18637
+ "$ref": "#/responses/forbidden"
17298
18638
  }
17299
18639
  }
17300
18640
  }
@@ -17332,6 +18672,12 @@
17332
18672
  "responses": {
17333
18673
  "200": {
17334
18674
  "$ref": "#/responses/PublicKeyList"
18675
+ },
18676
+ "401": {
18677
+ "$ref": "#/responses/unauthorized"
18678
+ },
18679
+ "403": {
18680
+ "$ref": "#/responses/forbidden"
17335
18681
  }
17336
18682
  }
17337
18683
  },
@@ -17360,6 +18706,12 @@
17360
18706
  "201": {
17361
18707
  "$ref": "#/responses/PublicKey"
17362
18708
  },
18709
+ "401": {
18710
+ "$ref": "#/responses/unauthorized"
18711
+ },
18712
+ "403": {
18713
+ "$ref": "#/responses/forbidden"
18714
+ },
17363
18715
  "422": {
17364
18716
  "$ref": "#/responses/validationError"
17365
18717
  }
@@ -17390,44 +18742,190 @@
17390
18742
  "200": {
17391
18743
  "$ref": "#/responses/PublicKey"
17392
18744
  },
18745
+ "401": {
18746
+ "$ref": "#/responses/unauthorized"
18747
+ },
18748
+ "403": {
18749
+ "$ref": "#/responses/forbidden"
18750
+ },
18751
+ "404": {
18752
+ "$ref": "#/responses/notFound"
18753
+ }
18754
+ }
18755
+ },
18756
+ "delete": {
18757
+ "produces": [
18758
+ "application/json"
18759
+ ],
18760
+ "tags": [
18761
+ "user"
18762
+ ],
18763
+ "summary": "Delete a public key",
18764
+ "operationId": "userCurrentDeleteKey",
18765
+ "parameters": [
18766
+ {
18767
+ "type": "integer",
18768
+ "format": "int64",
18769
+ "description": "id of key to delete",
18770
+ "name": "id",
18771
+ "in": "path",
18772
+ "required": true
18773
+ }
18774
+ ],
18775
+ "responses": {
18776
+ "204": {
18777
+ "$ref": "#/responses/empty"
18778
+ },
18779
+ "401": {
18780
+ "$ref": "#/responses/unauthorized"
18781
+ },
18782
+ "403": {
18783
+ "$ref": "#/responses/forbidden"
18784
+ },
18785
+ "404": {
18786
+ "$ref": "#/responses/notFound"
18787
+ }
18788
+ }
18789
+ }
18790
+ },
18791
+ "/user/list_blocked": {
18792
+ "get": {
18793
+ "produces": [
18794
+ "application/json"
18795
+ ],
18796
+ "tags": [
18797
+ "user"
18798
+ ],
18799
+ "summary": "List the authenticated user's blocked users",
18800
+ "operationId": "userListBlockedUsers",
18801
+ "parameters": [
18802
+ {
18803
+ "type": "integer",
18804
+ "description": "page number of results to return (1-based)",
18805
+ "name": "page",
18806
+ "in": "query"
18807
+ },
18808
+ {
18809
+ "type": "integer",
18810
+ "description": "page size of results",
18811
+ "name": "limit",
18812
+ "in": "query"
18813
+ }
18814
+ ],
18815
+ "responses": {
18816
+ "200": {
18817
+ "$ref": "#/responses/BlockedUserList"
18818
+ },
18819
+ "401": {
18820
+ "$ref": "#/responses/unauthorized"
18821
+ },
18822
+ "403": {
18823
+ "$ref": "#/responses/forbidden"
18824
+ }
18825
+ }
18826
+ }
18827
+ },
18828
+ "/user/orgs": {
18829
+ "get": {
18830
+ "produces": [
18831
+ "application/json"
18832
+ ],
18833
+ "tags": [
18834
+ "organization"
18835
+ ],
18836
+ "summary": "List the current user's organizations",
18837
+ "operationId": "orgListCurrentUserOrgs",
18838
+ "parameters": [
18839
+ {
18840
+ "type": "integer",
18841
+ "description": "page number of results to return (1-based)",
18842
+ "name": "page",
18843
+ "in": "query"
18844
+ },
18845
+ {
18846
+ "type": "integer",
18847
+ "description": "page size of results",
18848
+ "name": "limit",
18849
+ "in": "query"
18850
+ }
18851
+ ],
18852
+ "responses": {
18853
+ "200": {
18854
+ "$ref": "#/responses/OrganizationList"
18855
+ },
18856
+ "401": {
18857
+ "$ref": "#/responses/unauthorized"
18858
+ },
18859
+ "403": {
18860
+ "$ref": "#/responses/forbidden"
18861
+ },
17393
18862
  "404": {
17394
18863
  "$ref": "#/responses/notFound"
17395
18864
  }
17396
18865
  }
17397
- },
17398
- "delete": {
18866
+ }
18867
+ },
18868
+ "/user/quota": {
18869
+ "get": {
18870
+ "produces": [
18871
+ "application/json"
18872
+ ],
18873
+ "tags": [
18874
+ "user"
18875
+ ],
18876
+ "summary": "Get quota information for the authenticated user",
18877
+ "operationId": "userGetQuota",
18878
+ "responses": {
18879
+ "200": {
18880
+ "$ref": "#/responses/QuotaInfo"
18881
+ },
18882
+ "401": {
18883
+ "$ref": "#/responses/unauthorized"
18884
+ },
18885
+ "403": {
18886
+ "$ref": "#/responses/forbidden"
18887
+ }
18888
+ }
18889
+ }
18890
+ },
18891
+ "/user/quota/artifacts": {
18892
+ "get": {
17399
18893
  "produces": [
17400
18894
  "application/json"
17401
18895
  ],
17402
18896
  "tags": [
17403
18897
  "user"
17404
18898
  ],
17405
- "summary": "Delete a public key",
17406
- "operationId": "userCurrentDeleteKey",
18899
+ "summary": "List the artifacts affecting the authenticated user's quota",
18900
+ "operationId": "userListQuotaArtifacts",
17407
18901
  "parameters": [
17408
18902
  {
17409
18903
  "type": "integer",
17410
- "format": "int64",
17411
- "description": "id of key to delete",
17412
- "name": "id",
17413
- "in": "path",
17414
- "required": true
18904
+ "description": "page number of results to return (1-based)",
18905
+ "name": "page",
18906
+ "in": "query"
18907
+ },
18908
+ {
18909
+ "type": "integer",
18910
+ "description": "page size of results",
18911
+ "name": "limit",
18912
+ "in": "query"
17415
18913
  }
17416
18914
  ],
17417
18915
  "responses": {
17418
- "204": {
17419
- "$ref": "#/responses/empty"
18916
+ "200": {
18917
+ "$ref": "#/responses/QuotaUsedArtifactList"
18918
+ },
18919
+ "401": {
18920
+ "$ref": "#/responses/unauthorized"
17420
18921
  },
17421
18922
  "403": {
17422
18923
  "$ref": "#/responses/forbidden"
17423
- },
17424
- "404": {
17425
- "$ref": "#/responses/notFound"
17426
18924
  }
17427
18925
  }
17428
18926
  }
17429
18927
  },
17430
- "/user/list_blocked": {
18928
+ "/user/quota/attachments": {
17431
18929
  "get": {
17432
18930
  "produces": [
17433
18931
  "application/json"
@@ -17435,8 +18933,8 @@
17435
18933
  "tags": [
17436
18934
  "user"
17437
18935
  ],
17438
- "summary": "List the authenticated user's blocked users",
17439
- "operationId": "userListBlockedUsers",
18936
+ "summary": "List the attachments affecting the authenticated user's quota",
18937
+ "operationId": "userListQuotaAttachments",
17440
18938
  "parameters": [
17441
18939
  {
17442
18940
  "type": "integer",
@@ -17453,21 +18951,53 @@
17453
18951
  ],
17454
18952
  "responses": {
17455
18953
  "200": {
17456
- "$ref": "#/responses/BlockedUserList"
18954
+ "$ref": "#/responses/QuotaUsedAttachmentList"
18955
+ },
18956
+ "401": {
18957
+ "$ref": "#/responses/unauthorized"
18958
+ },
18959
+ "403": {
18960
+ "$ref": "#/responses/forbidden"
17457
18961
  }
17458
18962
  }
17459
18963
  }
17460
18964
  },
17461
- "/user/orgs": {
18965
+ "/user/quota/check": {
17462
18966
  "get": {
17463
18967
  "produces": [
17464
18968
  "application/json"
17465
18969
  ],
17466
18970
  "tags": [
17467
- "organization"
18971
+ "user"
17468
18972
  ],
17469
- "summary": "List the current user's organizations",
17470
- "operationId": "orgListCurrentUserOrgs",
18973
+ "summary": "Check if the authenticated user is over quota for a given subject",
18974
+ "operationId": "userCheckQuota",
18975
+ "responses": {
18976
+ "200": {
18977
+ "$ref": "#/responses/boolean"
18978
+ },
18979
+ "401": {
18980
+ "$ref": "#/responses/unauthorized"
18981
+ },
18982
+ "403": {
18983
+ "$ref": "#/responses/forbidden"
18984
+ },
18985
+ "422": {
18986
+ "$ref": "#/responses/validationError"
18987
+ }
18988
+ }
18989
+ }
18990
+ },
18991
+ "/user/quota/packages": {
18992
+ "get": {
18993
+ "produces": [
18994
+ "application/json"
18995
+ ],
18996
+ "tags": [
18997
+ "user"
18998
+ ],
18999
+ "summary": "List the packages affecting the authenticated user's quota",
19000
+ "operationId": "userListQuotaPackages",
17471
19001
  "parameters": [
17472
19002
  {
17473
19003
  "type": "integer",
@@ -17484,10 +19014,13 @@
17484
19014
  ],
17485
19015
  "responses": {
17486
19016
  "200": {
17487
- "$ref": "#/responses/OrganizationList"
19017
+ "$ref": "#/responses/QuotaUsedPackageList"
17488
19018
  },
17489
- "404": {
17490
- "$ref": "#/responses/notFound"
19019
+ "401": {
19020
+ "$ref": "#/responses/unauthorized"
19021
+ },
19022
+ "403": {
19023
+ "$ref": "#/responses/forbidden"
17491
19024
  }
17492
19025
  }
17493
19026
  }
@@ -17514,11 +19047,26 @@
17514
19047
  "description": "page size of results",
17515
19048
  "name": "limit",
17516
19049
  "in": "query"
19050
+ },
19051
+ {
19052
+ "type": "string",
19053
+ "description": "order the repositories by name (default), id, or size",
19054
+ "name": "order_by",
19055
+ "in": "query"
17517
19056
  }
17518
19057
  ],
17519
19058
  "responses": {
17520
19059
  "200": {
17521
19060
  "$ref": "#/responses/RepositoryList"
19061
+ },
19062
+ "401": {
19063
+ "$ref": "#/responses/unauthorized"
19064
+ },
19065
+ "403": {
19066
+ "$ref": "#/responses/forbidden"
19067
+ },
19068
+ "422": {
19069
+ "$ref": "#/responses/validationError"
17522
19070
  }
17523
19071
  }
17524
19072
  },
@@ -17551,9 +19099,18 @@
17551
19099
  "400": {
17552
19100
  "$ref": "#/responses/error"
17553
19101
  },
19102
+ "401": {
19103
+ "$ref": "#/responses/unauthorized"
19104
+ },
19105
+ "403": {
19106
+ "$ref": "#/responses/forbidden"
19107
+ },
17554
19108
  "409": {
17555
19109
  "description": "The repository with the same name already exists."
17556
19110
  },
19111
+ "413": {
19112
+ "$ref": "#/responses/quotaExceeded"
19113
+ },
17557
19114
  "422": {
17558
19115
  "$ref": "#/responses/validationError"
17559
19116
  }
@@ -17573,6 +19130,12 @@
17573
19130
  "responses": {
17574
19131
  "200": {
17575
19132
  "$ref": "#/responses/UserSettings"
19133
+ },
19134
+ "401": {
19135
+ "$ref": "#/responses/unauthorized"
19136
+ },
19137
+ "403": {
19138
+ "$ref": "#/responses/forbidden"
17576
19139
  }
17577
19140
  }
17578
19141
  },
@@ -17597,6 +19160,12 @@
17597
19160
  "responses": {
17598
19161
  "200": {
17599
19162
  "$ref": "#/responses/UserSettings"
19163
+ },
19164
+ "401": {
19165
+ "$ref": "#/responses/unauthorized"
19166
+ },
19167
+ "403": {
19168
+ "$ref": "#/responses/forbidden"
17600
19169
  }
17601
19170
  }
17602
19171
  }
@@ -17628,6 +19197,12 @@
17628
19197
  "responses": {
17629
19198
  "200": {
17630
19199
  "$ref": "#/responses/RepositoryList"
19200
+ },
19201
+ "401": {
19202
+ "$ref": "#/responses/unauthorized"
19203
+ },
19204
+ "403": {
19205
+ "$ref": "#/responses/forbidden"
17631
19206
  }
17632
19207
  }
17633
19208
  }
@@ -17659,6 +19234,12 @@
17659
19234
  "204": {
17660
19235
  "$ref": "#/responses/empty"
17661
19236
  },
19237
+ "401": {
19238
+ "$ref": "#/responses/unauthorized"
19239
+ },
19240
+ "403": {
19241
+ "$ref": "#/responses/forbidden"
19242
+ },
17662
19243
  "404": {
17663
19244
  "$ref": "#/responses/notFound"
17664
19245
  }
@@ -17690,6 +19271,12 @@
17690
19271
  "204": {
17691
19272
  "$ref": "#/responses/empty"
17692
19273
  },
19274
+ "401": {
19275
+ "$ref": "#/responses/unauthorized"
19276
+ },
19277
+ "403": {
19278
+ "$ref": "#/responses/forbidden"
19279
+ },
17693
19280
  "404": {
17694
19281
  "$ref": "#/responses/notFound"
17695
19282
  }
@@ -17721,6 +19308,12 @@
17721
19308
  "204": {
17722
19309
  "$ref": "#/responses/empty"
17723
19310
  },
19311
+ "401": {
19312
+ "$ref": "#/responses/unauthorized"
19313
+ },
19314
+ "403": {
19315
+ "$ref": "#/responses/forbidden"
19316
+ },
17724
19317
  "404": {
17725
19318
  "$ref": "#/responses/notFound"
17726
19319
  }
@@ -17757,6 +19350,12 @@
17757
19350
  "responses": {
17758
19351
  "200": {
17759
19352
  "$ref": "#/responses/StopWatchList"
19353
+ },
19354
+ "401": {
19355
+ "$ref": "#/responses/unauthorized"
19356
+ },
19357
+ "403": {
19358
+ "$ref": "#/responses/forbidden"
17760
19359
  }
17761
19360
  }
17762
19361
  }
@@ -17788,6 +19387,12 @@
17788
19387
  "responses": {
17789
19388
  "200": {
17790
19389
  "$ref": "#/responses/RepositoryList"
19390
+ },
19391
+ "401": {
19392
+ "$ref": "#/responses/unauthorized"
19393
+ },
19394
+ "403": {
19395
+ "$ref": "#/responses/forbidden"
17791
19396
  }
17792
19397
  }
17793
19398
  }
@@ -17819,6 +19424,12 @@
17819
19424
  "responses": {
17820
19425
  "200": {
17821
19426
  "$ref": "#/responses/TeamList"
19427
+ },
19428
+ "401": {
19429
+ "$ref": "#/responses/unauthorized"
19430
+ },
19431
+ "403": {
19432
+ "$ref": "#/responses/forbidden"
17822
19433
  }
17823
19434
  }
17824
19435
  }
@@ -17864,6 +19475,12 @@
17864
19475
  "responses": {
17865
19476
  "200": {
17866
19477
  "$ref": "#/responses/TrackedTimeList"
19478
+ },
19479
+ "401": {
19480
+ "$ref": "#/responses/unauthorized"
19481
+ },
19482
+ "403": {
19483
+ "$ref": "#/responses/forbidden"
17867
19484
  }
17868
19485
  }
17869
19486
  }
@@ -17891,6 +19508,12 @@
17891
19508
  "204": {
17892
19509
  "$ref": "#/responses/empty"
17893
19510
  },
19511
+ "401": {
19512
+ "$ref": "#/responses/unauthorized"
19513
+ },
19514
+ "403": {
19515
+ "$ref": "#/responses/forbidden"
19516
+ },
17894
19517
  "404": {
17895
19518
  "$ref": "#/responses/notFound"
17896
19519
  },
@@ -18513,6 +20136,9 @@
18513
20136
  },
18514
20137
  "403": {
18515
20138
  "$ref": "#/responses/forbidden"
20139
+ },
20140
+ "404": {
20141
+ "$ref": "#/responses/notFound"
18516
20142
  }
18517
20143
  }
18518
20144
  },
@@ -18553,6 +20179,9 @@
18553
20179
  },
18554
20180
  "403": {
18555
20181
  "$ref": "#/responses/forbidden"
20182
+ },
20183
+ "404": {
20184
+ "$ref": "#/responses/notFound"
18556
20185
  }
18557
20186
  }
18558
20187
  }
@@ -18633,6 +20262,100 @@
18633
20262
  },
18634
20263
  "x-go-package": "code.gitea.io/gitea/modules/structs"
18635
20264
  },
20265
+ "APIForbiddenError": {
20266
+ "type": "object",
20267
+ "properties": {
20268
+ "message": {
20269
+ "type": "string",
20270
+ "x-go-name": "Message"
20271
+ },
20272
+ "url": {
20273
+ "type": "string",
20274
+ "x-go-name": "URL"
20275
+ }
20276
+ },
20277
+ "x-go-package": "code.gitea.io/gitea/services/context"
20278
+ },
20279
+ "APIInvalidTopicsError": {
20280
+ "type": "object",
20281
+ "properties": {
20282
+ "invalidTopics": {
20283
+ "type": "array",
20284
+ "items": {
20285
+ "type": "string"
20286
+ },
20287
+ "x-go-name": "InvalidTopics"
20288
+ },
20289
+ "message": {
20290
+ "type": "string",
20291
+ "x-go-name": "Message"
20292
+ }
20293
+ },
20294
+ "x-go-package": "code.gitea.io/gitea/services/context"
20295
+ },
20296
+ "APINotFound": {
20297
+ "type": "object",
20298
+ "properties": {
20299
+ "errors": {
20300
+ "type": "array",
20301
+ "items": {
20302
+ "type": "string"
20303
+ },
20304
+ "x-go-name": "Errors"
20305
+ },
20306
+ "message": {
20307
+ "type": "string",
20308
+ "x-go-name": "Message"
20309
+ },
20310
+ "url": {
20311
+ "type": "string",
20312
+ "x-go-name": "URL"
20313
+ }
20314
+ },
20315
+ "x-go-package": "code.gitea.io/gitea/services/context"
20316
+ },
20317
+ "APIRepoArchivedError": {
20318
+ "type": "object",
20319
+ "properties": {
20320
+ "message": {
20321
+ "type": "string",
20322
+ "x-go-name": "Message"
20323
+ },
20324
+ "url": {
20325
+ "type": "string",
20326
+ "x-go-name": "URL"
20327
+ }
20328
+ },
20329
+ "x-go-package": "code.gitea.io/gitea/services/context"
20330
+ },
20331
+ "APIUnauthorizedError": {
20332
+ "type": "object",
20333
+ "properties": {
20334
+ "message": {
20335
+ "type": "string",
20336
+ "x-go-name": "Message"
20337
+ },
20338
+ "url": {
20339
+ "type": "string",
20340
+ "x-go-name": "URL"
20341
+ }
20342
+ },
20343
+ "x-go-package": "code.gitea.io/gitea/services/context"
20344
+ },
20345
+ "APIValidationError": {
20346
+ "type": "object",
20347
+ "properties": {
20348
+ "message": {
20349
+ "type": "string",
20350
+ "x-go-name": "Message"
20351
+ },
20352
+ "url": {
20353
+ "type": "string",
20354
+ "x-go-name": "URL"
20355
+ }
20356
+ },
20357
+ "x-go-package": "code.gitea.io/gitea/services/context"
20358
+ },
18636
20359
  "AccessToken": {
18637
20360
  "type": "object",
18638
20361
  "title": "AccessToken represents an API access token.",
@@ -18884,6 +20607,11 @@
18884
20607
  "properties": {
18885
20608
  "permission": {
18886
20609
  "type": "string",
20610
+ "enum": [
20611
+ "read",
20612
+ "write",
20613
+ "admin"
20614
+ ],
18887
20615
  "x-go-name": "Permission"
18888
20616
  }
18889
20617
  },
@@ -19001,6 +20729,14 @@
19001
20729
  "format": "int64",
19002
20730
  "x-go-name": "Size"
19003
20731
  },
20732
+ "type": {
20733
+ "type": "string",
20734
+ "enum": [
20735
+ "attachment",
20736
+ "external"
20737
+ ],
20738
+ "x-go-name": "Type"
20739
+ },
19004
20740
  "uuid": {
19005
20741
  "type": "string",
19006
20742
  "x-go-name": "UUID"
@@ -20436,11 +22172,61 @@
20436
22172
  },
20437
22173
  "remote_username": {
20438
22174
  "type": "string",
20439
- "x-go-name": "RemoteUsername"
22175
+ "x-go-name": "RemoteUsername"
22176
+ },
22177
+ "sync_on_commit": {
22178
+ "type": "boolean",
22179
+ "x-go-name": "SyncOnCommit"
22180
+ },
22181
+ "use_ssh": {
22182
+ "type": "boolean",
22183
+ "x-go-name": "UseSSH"
22184
+ }
22185
+ },
22186
+ "x-go-package": "code.gitea.io/gitea/modules/structs"
22187
+ },
22188
+ "CreateQuotaGroupOptions": {
22189
+ "description": "CreateQutaGroupOptions represents the options for creating a quota group",
22190
+ "type": "object",
22191
+ "properties": {
22192
+ "name": {
22193
+ "description": "Name of the quota group to create",
22194
+ "type": "string",
22195
+ "x-go-name": "Name"
22196
+ },
22197
+ "rules": {
22198
+ "description": "Rules to add to the newly created group.\nIf a rule does not exist, it will be created.",
22199
+ "type": "array",
22200
+ "items": {
22201
+ "$ref": "#/definitions/CreateQuotaRuleOptions"
22202
+ },
22203
+ "x-go-name": "Rules"
22204
+ }
22205
+ },
22206
+ "x-go-package": "code.gitea.io/gitea/modules/structs"
22207
+ },
22208
+ "CreateQuotaRuleOptions": {
22209
+ "description": "CreateQuotaRuleOptions represents the options for creating a quota rule",
22210
+ "type": "object",
22211
+ "properties": {
22212
+ "limit": {
22213
+ "description": "The limit set by the rule",
22214
+ "type": "integer",
22215
+ "format": "int64",
22216
+ "x-go-name": "Limit"
22217
+ },
22218
+ "name": {
22219
+ "description": "Name of the rule to create",
22220
+ "type": "string",
22221
+ "x-go-name": "Name"
20440
22222
  },
20441
- "sync_on_commit": {
20442
- "type": "boolean",
20443
- "x-go-name": "SyncOnCommit"
22223
+ "subjects": {
22224
+ "description": "The subjects affected by the rule",
22225
+ "type": "array",
22226
+ "items": {
22227
+ "type": "string"
22228
+ },
22229
+ "x-go-name": "Subjects"
20444
22230
  }
20445
22231
  },
20446
22232
  "x-go-package": "code.gitea.io/gitea/modules/structs"
@@ -20979,6 +22765,11 @@
20979
22765
  "description": "EditAttachmentOptions options for editing attachments",
20980
22766
  "type": "object",
20981
22767
  "properties": {
22768
+ "browser_download_url": {
22769
+ "description": "(Can only be set if existing attachment is of external type)",
22770
+ "type": "string",
22771
+ "x-go-name": "DownloadURL"
22772
+ },
20982
22773
  "name": {
20983
22774
  "type": "string",
20984
22775
  "x-go-name": "Name"
@@ -21394,6 +23185,27 @@
21394
23185
  },
21395
23186
  "x-go-package": "code.gitea.io/gitea/modules/structs"
21396
23187
  },
23188
+ "EditQuotaRuleOptions": {
23189
+ "description": "EditQuotaRuleOptions represents the options for editing a quota rule",
23190
+ "type": "object",
23191
+ "properties": {
23192
+ "limit": {
23193
+ "description": "The limit set by the rule",
23194
+ "type": "integer",
23195
+ "format": "int64",
23196
+ "x-go-name": "Limit"
23197
+ },
23198
+ "subjects": {
23199
+ "description": "The subjects affected by the rule",
23200
+ "type": "array",
23201
+ "items": {
23202
+ "type": "string"
23203
+ },
23204
+ "x-go-name": "Subjects"
23205
+ }
23206
+ },
23207
+ "x-go-package": "code.gitea.io/gitea/modules/structs"
23208
+ },
21397
23209
  "EditReactionOption": {
21398
23210
  "description": "EditReactionOption contain the reaction type",
21399
23211
  "type": "object",
@@ -21509,6 +23321,11 @@
21509
23321
  "type": "string",
21510
23322
  "x-go-name": "DefaultMergeStyle"
21511
23323
  },
23324
+ "default_update_style": {
23325
+ "description": "set to a update style to be used by this repository: \"rebase\" or \"merge\"",
23326
+ "type": "string",
23327
+ "x-go-name": "DefaultUpdateStyle"
23328
+ },
21512
23329
  "description": {
21513
23330
  "description": "a short description of the repository.",
21514
23331
  "type": "string",
@@ -22937,6 +24754,10 @@
22937
24754
  "description": "MarkupOption markup options",
22938
24755
  "type": "object",
22939
24756
  "properties": {
24757
+ "BranchPath": {
24758
+ "description": "The current branch path where the form gets posted\n\nin: body",
24759
+ "type": "string"
24760
+ },
22940
24761
  "Context": {
22941
24762
  "description": "Context to render\n\nin: body",
22942
24763
  "type": "string"
@@ -23314,6 +25135,16 @@
23314
25135
  },
23315
25136
  "x-go-package": "code.gitea.io/gitea/modules/structs"
23316
25137
  },
25138
+ "NoteOptions": {
25139
+ "type": "object",
25140
+ "properties": {
25141
+ "message": {
25142
+ "type": "string",
25143
+ "x-go-name": "Message"
25144
+ }
25145
+ },
25146
+ "x-go-package": "code.gitea.io/gitea/modules/structs"
25147
+ },
23317
25148
  "NotificationCount": {
23318
25149
  "description": "NotificationCount number of unread notifications",
23319
25150
  "type": "object",
@@ -23928,6 +25759,13 @@
23928
25759
  },
23929
25760
  "x-go-name": "RequestedReviewers"
23930
25761
  },
25762
+ "requested_reviewers_teams": {
25763
+ "type": "array",
25764
+ "items": {
25765
+ "$ref": "#/definitions/Team"
25766
+ },
25767
+ "x-go-name": "RequestedReviewersTeams"
25768
+ },
23931
25769
  "review_comments": {
23932
25770
  "description": "number of review comments made on the diff of a PR review (not including comments on commits or issues in a PR)",
23933
25771
  "type": "integer",
@@ -24069,110 +25907,409 @@
24069
25907
  "type": "string",
24070
25908
  "x-go-name": "HTMLURL"
24071
25909
  },
24072
- "id": {
25910
+ "id": {
25911
+ "type": "integer",
25912
+ "format": "int64",
25913
+ "x-go-name": "ID"
25914
+ },
25915
+ "original_commit_id": {
25916
+ "type": "string",
25917
+ "x-go-name": "OrigCommitID"
25918
+ },
25919
+ "original_position": {
25920
+ "type": "integer",
25921
+ "format": "uint64",
25922
+ "x-go-name": "OldLineNum"
25923
+ },
25924
+ "path": {
25925
+ "type": "string",
25926
+ "x-go-name": "Path"
25927
+ },
25928
+ "position": {
25929
+ "type": "integer",
25930
+ "format": "uint64",
25931
+ "x-go-name": "LineNum"
25932
+ },
25933
+ "pull_request_review_id": {
25934
+ "type": "integer",
25935
+ "format": "int64",
25936
+ "x-go-name": "ReviewID"
25937
+ },
25938
+ "pull_request_url": {
25939
+ "type": "string",
25940
+ "x-go-name": "HTMLPullURL"
25941
+ },
25942
+ "resolver": {
25943
+ "$ref": "#/definitions/User"
25944
+ },
25945
+ "updated_at": {
25946
+ "type": "string",
25947
+ "format": "date-time",
25948
+ "x-go-name": "Updated"
25949
+ },
25950
+ "user": {
25951
+ "$ref": "#/definitions/User"
25952
+ }
25953
+ },
25954
+ "x-go-package": "code.gitea.io/gitea/modules/structs"
25955
+ },
25956
+ "PullReviewRequestOptions": {
25957
+ "description": "PullReviewRequestOptions are options to add or remove pull review requests",
25958
+ "type": "object",
25959
+ "properties": {
25960
+ "reviewers": {
25961
+ "type": "array",
25962
+ "items": {
25963
+ "type": "string"
25964
+ },
25965
+ "x-go-name": "Reviewers"
25966
+ },
25967
+ "team_reviewers": {
25968
+ "type": "array",
25969
+ "items": {
25970
+ "type": "string"
25971
+ },
25972
+ "x-go-name": "TeamReviewers"
25973
+ }
25974
+ },
25975
+ "x-go-package": "code.gitea.io/gitea/modules/structs"
25976
+ },
25977
+ "PushMirror": {
25978
+ "description": "PushMirror represents information of a push mirror",
25979
+ "type": "object",
25980
+ "properties": {
25981
+ "created": {
25982
+ "type": "string",
25983
+ "format": "date-time",
25984
+ "x-go-name": "CreatedUnix"
25985
+ },
25986
+ "interval": {
25987
+ "type": "string",
25988
+ "x-go-name": "Interval"
25989
+ },
25990
+ "last_error": {
25991
+ "type": "string",
25992
+ "x-go-name": "LastError"
25993
+ },
25994
+ "last_update": {
25995
+ "type": "string",
25996
+ "format": "date-time",
25997
+ "x-go-name": "LastUpdateUnix"
25998
+ },
25999
+ "public_key": {
26000
+ "type": "string",
26001
+ "x-go-name": "PublicKey"
26002
+ },
26003
+ "remote_address": {
26004
+ "type": "string",
26005
+ "x-go-name": "RemoteAddress"
26006
+ },
26007
+ "remote_name": {
26008
+ "type": "string",
26009
+ "x-go-name": "RemoteName"
26010
+ },
26011
+ "repo_name": {
26012
+ "type": "string",
26013
+ "x-go-name": "RepoName"
26014
+ },
26015
+ "sync_on_commit": {
26016
+ "type": "boolean",
26017
+ "x-go-name": "SyncOnCommit"
26018
+ }
26019
+ },
26020
+ "x-go-package": "code.gitea.io/gitea/modules/structs"
26021
+ },
26022
+ "QuotaGroup": {
26023
+ "description": "QuotaGroup represents a quota group",
26024
+ "type": "object",
26025
+ "properties": {
26026
+ "name": {
26027
+ "description": "Name of the group",
26028
+ "type": "string",
26029
+ "x-go-name": "Name"
26030
+ },
26031
+ "rules": {
26032
+ "description": "Rules associated with the group",
26033
+ "type": "array",
26034
+ "items": {
26035
+ "$ref": "#/definitions/QuotaRuleInfo"
26036
+ },
26037
+ "x-go-name": "Rules"
26038
+ }
26039
+ },
26040
+ "x-go-package": "code.gitea.io/gitea/modules/structs"
26041
+ },
26042
+ "QuotaGroupList": {
26043
+ "description": "QuotaGroupList represents a list of quota groups",
26044
+ "type": "array",
26045
+ "items": {
26046
+ "$ref": "#/definitions/QuotaGroup"
26047
+ },
26048
+ "x-go-package": "code.gitea.io/gitea/modules/structs"
26049
+ },
26050
+ "QuotaInfo": {
26051
+ "description": "QuotaInfo represents information about a user's quota",
26052
+ "type": "object",
26053
+ "properties": {
26054
+ "groups": {
26055
+ "$ref": "#/definitions/QuotaGroupList"
26056
+ },
26057
+ "used": {
26058
+ "$ref": "#/definitions/QuotaUsed"
26059
+ }
26060
+ },
26061
+ "x-go-package": "code.gitea.io/gitea/modules/structs"
26062
+ },
26063
+ "QuotaRuleInfo": {
26064
+ "description": "QuotaRuleInfo contains information about a quota rule",
26065
+ "type": "object",
26066
+ "properties": {
26067
+ "limit": {
26068
+ "description": "The limit set by the rule",
26069
+ "type": "integer",
26070
+ "format": "int64",
26071
+ "x-go-name": "Limit"
26072
+ },
26073
+ "name": {
26074
+ "description": "Name of the rule (only shown to admins)",
26075
+ "type": "string",
26076
+ "x-go-name": "Name"
26077
+ },
26078
+ "subjects": {
26079
+ "description": "Subjects the rule affects",
26080
+ "type": "array",
26081
+ "items": {
26082
+ "type": "string"
26083
+ },
26084
+ "x-go-name": "Subjects"
26085
+ }
26086
+ },
26087
+ "x-go-package": "code.gitea.io/gitea/modules/structs"
26088
+ },
26089
+ "QuotaUsed": {
26090
+ "description": "QuotaUsed represents the quota usage of a user",
26091
+ "type": "object",
26092
+ "properties": {
26093
+ "size": {
26094
+ "$ref": "#/definitions/QuotaUsedSize"
26095
+ }
26096
+ },
26097
+ "x-go-package": "code.gitea.io/gitea/modules/structs"
26098
+ },
26099
+ "QuotaUsedArtifact": {
26100
+ "description": "QuotaUsedArtifact represents an artifact counting towards a user's quota",
26101
+ "type": "object",
26102
+ "properties": {
26103
+ "html_url": {
26104
+ "description": "HTML URL to the action run containing the artifact",
26105
+ "type": "string",
26106
+ "x-go-name": "HTMLURL"
26107
+ },
26108
+ "name": {
26109
+ "description": "Name of the artifact",
26110
+ "type": "string",
26111
+ "x-go-name": "Name"
26112
+ },
26113
+ "size": {
26114
+ "description": "Size of the artifact (compressed)",
26115
+ "type": "integer",
26116
+ "format": "int64",
26117
+ "x-go-name": "Size"
26118
+ }
26119
+ },
26120
+ "x-go-package": "code.gitea.io/gitea/modules/structs"
26121
+ },
26122
+ "QuotaUsedArtifactList": {
26123
+ "description": "QuotaUsedArtifactList represents a list of artifacts counting towards a user's quota",
26124
+ "type": "array",
26125
+ "items": {
26126
+ "$ref": "#/definitions/QuotaUsedArtifact"
26127
+ },
26128
+ "x-go-package": "code.gitea.io/gitea/modules/structs"
26129
+ },
26130
+ "QuotaUsedAttachment": {
26131
+ "description": "QuotaUsedAttachment represents an attachment counting towards a user's quota",
26132
+ "type": "object",
26133
+ "properties": {
26134
+ "api_url": {
26135
+ "description": "API URL for the attachment",
26136
+ "type": "string",
26137
+ "x-go-name": "APIURL"
26138
+ },
26139
+ "contained_in": {
26140
+ "description": "Context for the attachment: URLs to the containing object",
26141
+ "type": "object",
26142
+ "properties": {
26143
+ "api_url": {
26144
+ "description": "API URL for the object that contains this attachment",
26145
+ "type": "string",
26146
+ "x-go-name": "APIURL"
26147
+ },
26148
+ "html_url": {
26149
+ "description": "HTML URL for the object that contains this attachment",
26150
+ "type": "string",
26151
+ "x-go-name": "HTMLURL"
26152
+ }
26153
+ },
26154
+ "x-go-name": "ContainedIn"
26155
+ },
26156
+ "name": {
26157
+ "description": "Filename of the attachment",
26158
+ "type": "string",
26159
+ "x-go-name": "Name"
26160
+ },
26161
+ "size": {
26162
+ "description": "Size of the attachment (in bytes)",
26163
+ "type": "integer",
26164
+ "format": "int64",
26165
+ "x-go-name": "Size"
26166
+ }
26167
+ },
26168
+ "x-go-package": "code.gitea.io/gitea/modules/structs"
26169
+ },
26170
+ "QuotaUsedAttachmentList": {
26171
+ "description": "QuotaUsedAttachmentList represents a list of attachment counting towards a user's quota",
26172
+ "type": "array",
26173
+ "items": {
26174
+ "$ref": "#/definitions/QuotaUsedAttachment"
26175
+ },
26176
+ "x-go-package": "code.gitea.io/gitea/modules/structs"
26177
+ },
26178
+ "QuotaUsedPackage": {
26179
+ "description": "QuotaUsedPackage represents a package counting towards a user's quota",
26180
+ "type": "object",
26181
+ "properties": {
26182
+ "html_url": {
26183
+ "description": "HTML URL to the package version",
26184
+ "type": "string",
26185
+ "x-go-name": "HTMLURL"
26186
+ },
26187
+ "name": {
26188
+ "description": "Name of the package",
26189
+ "type": "string",
26190
+ "x-go-name": "Name"
26191
+ },
26192
+ "size": {
26193
+ "description": "Size of the package version",
24073
26194
  "type": "integer",
24074
26195
  "format": "int64",
24075
- "x-go-name": "ID"
26196
+ "x-go-name": "Size"
24076
26197
  },
24077
- "original_commit_id": {
26198
+ "type": {
26199
+ "description": "Type of the package",
24078
26200
  "type": "string",
24079
- "x-go-name": "OrigCommitID"
24080
- },
24081
- "original_position": {
24082
- "type": "integer",
24083
- "format": "uint64",
24084
- "x-go-name": "OldLineNum"
26201
+ "x-go-name": "Type"
24085
26202
  },
24086
- "path": {
26203
+ "version": {
26204
+ "description": "Version of the package",
24087
26205
  "type": "string",
24088
- "x-go-name": "Path"
26206
+ "x-go-name": "Version"
26207
+ }
26208
+ },
26209
+ "x-go-package": "code.gitea.io/gitea/modules/structs"
26210
+ },
26211
+ "QuotaUsedPackageList": {
26212
+ "description": "QuotaUsedPackageList represents a list of packages counting towards a user's quota",
26213
+ "type": "array",
26214
+ "items": {
26215
+ "$ref": "#/definitions/QuotaUsedPackage"
26216
+ },
26217
+ "x-go-package": "code.gitea.io/gitea/modules/structs"
26218
+ },
26219
+ "QuotaUsedSize": {
26220
+ "description": "QuotaUsedSize represents the size-based quota usage of a user",
26221
+ "type": "object",
26222
+ "properties": {
26223
+ "assets": {
26224
+ "$ref": "#/definitions/QuotaUsedSizeAssets"
24089
26225
  },
24090
- "position": {
24091
- "type": "integer",
24092
- "format": "uint64",
24093
- "x-go-name": "LineNum"
26226
+ "git": {
26227
+ "$ref": "#/definitions/QuotaUsedSizeGit"
24094
26228
  },
24095
- "pull_request_review_id": {
26229
+ "repos": {
26230
+ "$ref": "#/definitions/QuotaUsedSizeRepos"
26231
+ }
26232
+ },
26233
+ "x-go-package": "code.gitea.io/gitea/modules/structs"
26234
+ },
26235
+ "QuotaUsedSizeAssets": {
26236
+ "description": "QuotaUsedSizeAssets represents the size-based asset usage of a user",
26237
+ "type": "object",
26238
+ "properties": {
26239
+ "artifacts": {
26240
+ "description": "Storage size used for the user's artifacts",
24096
26241
  "type": "integer",
24097
26242
  "format": "int64",
24098
- "x-go-name": "ReviewID"
24099
- },
24100
- "pull_request_url": {
24101
- "type": "string",
24102
- "x-go-name": "HTMLPullURL"
24103
- },
24104
- "resolver": {
24105
- "$ref": "#/definitions/User"
26243
+ "x-go-name": "Artifacts"
24106
26244
  },
24107
- "updated_at": {
24108
- "type": "string",
24109
- "format": "date-time",
24110
- "x-go-name": "Updated"
26245
+ "attachments": {
26246
+ "$ref": "#/definitions/QuotaUsedSizeAssetsAttachments"
24111
26247
  },
24112
- "user": {
24113
- "$ref": "#/definitions/User"
26248
+ "packages": {
26249
+ "$ref": "#/definitions/QuotaUsedSizeAssetsPackages"
24114
26250
  }
24115
26251
  },
24116
26252
  "x-go-package": "code.gitea.io/gitea/modules/structs"
24117
26253
  },
24118
- "PullReviewRequestOptions": {
24119
- "description": "PullReviewRequestOptions are options to add or remove pull review requests",
26254
+ "QuotaUsedSizeAssetsAttachments": {
26255
+ "description": "QuotaUsedSizeAssetsAttachments represents the size-based attachment quota usage of a user",
24120
26256
  "type": "object",
24121
26257
  "properties": {
24122
- "reviewers": {
24123
- "type": "array",
24124
- "items": {
24125
- "type": "string"
24126
- },
24127
- "x-go-name": "Reviewers"
26258
+ "issues": {
26259
+ "description": "Storage size used for the user's issue \u0026 comment attachments",
26260
+ "type": "integer",
26261
+ "format": "int64",
26262
+ "x-go-name": "Issues"
24128
26263
  },
24129
- "team_reviewers": {
24130
- "type": "array",
24131
- "items": {
24132
- "type": "string"
24133
- },
24134
- "x-go-name": "TeamReviewers"
26264
+ "releases": {
26265
+ "description": "Storage size used for the user's release attachments",
26266
+ "type": "integer",
26267
+ "format": "int64",
26268
+ "x-go-name": "Releases"
24135
26269
  }
24136
26270
  },
24137
26271
  "x-go-package": "code.gitea.io/gitea/modules/structs"
24138
26272
  },
24139
- "PushMirror": {
24140
- "description": "PushMirror represents information of a push mirror",
26273
+ "QuotaUsedSizeAssetsPackages": {
26274
+ "description": "QuotaUsedSizeAssetsPackages represents the size-based package quota usage of a user",
24141
26275
  "type": "object",
24142
26276
  "properties": {
24143
- "created": {
24144
- "type": "string",
24145
- "format": "date-time",
24146
- "x-go-name": "CreatedUnix"
24147
- },
24148
- "interval": {
24149
- "type": "string",
24150
- "x-go-name": "Interval"
24151
- },
24152
- "last_error": {
24153
- "type": "string",
24154
- "x-go-name": "LastError"
24155
- },
24156
- "last_update": {
24157
- "type": "string",
24158
- "format": "date-time",
24159
- "x-go-name": "LastUpdateUnix"
24160
- },
24161
- "remote_address": {
24162
- "type": "string",
24163
- "x-go-name": "RemoteAddress"
24164
- },
24165
- "remote_name": {
24166
- "type": "string",
24167
- "x-go-name": "RemoteName"
24168
- },
24169
- "repo_name": {
24170
- "type": "string",
24171
- "x-go-name": "RepoName"
26277
+ "all": {
26278
+ "description": "Storage suze used for the user's packages",
26279
+ "type": "integer",
26280
+ "format": "int64",
26281
+ "x-go-name": "All"
26282
+ }
26283
+ },
26284
+ "x-go-package": "code.gitea.io/gitea/modules/structs"
26285
+ },
26286
+ "QuotaUsedSizeGit": {
26287
+ "description": "QuotaUsedSizeGit represents the size-based git (lfs) quota usage of a user",
26288
+ "type": "object",
26289
+ "properties": {
26290
+ "LFS": {
26291
+ "description": "Storage size of the user's Git LFS objects",
26292
+ "type": "integer",
26293
+ "format": "int64"
26294
+ }
26295
+ },
26296
+ "x-go-package": "code.gitea.io/gitea/modules/structs"
26297
+ },
26298
+ "QuotaUsedSizeRepos": {
26299
+ "description": "QuotaUsedSizeRepos represents the size-based repository quota usage of a user",
26300
+ "type": "object",
26301
+ "properties": {
26302
+ "private": {
26303
+ "description": "Storage size of the user's private repositories",
26304
+ "type": "integer",
26305
+ "format": "int64",
26306
+ "x-go-name": "Private"
24172
26307
  },
24173
- "sync_on_commit": {
24174
- "type": "boolean",
24175
- "x-go-name": "SyncOnCommit"
26308
+ "public": {
26309
+ "description": "Storage size of the user's public repositories",
26310
+ "type": "integer",
26311
+ "format": "int64",
26312
+ "x-go-name": "Public"
24176
26313
  }
24177
26314
  },
24178
26315
  "x-go-package": "code.gitea.io/gitea/modules/structs"
@@ -24473,6 +26610,10 @@
24473
26610
  "type": "string",
24474
26611
  "x-go-name": "DefaultMergeStyle"
24475
26612
  },
26613
+ "default_update_style": {
26614
+ "type": "string",
26615
+ "x-go-name": "DefaultUpdateStyle"
26616
+ },
24476
26617
  "description": {
24477
26618
  "type": "string",
24478
26619
  "x-go-name": "Description"
@@ -24750,6 +26891,24 @@
24750
26891
  },
24751
26892
  "x-go-package": "code.gitea.io/gitea/modules/structs"
24752
26893
  },
26894
+ "SetUserQuotaGroupsOptions": {
26895
+ "description": "SetUserQuotaGroupsOptions represents the quota groups of a user",
26896
+ "type": "object",
26897
+ "required": [
26898
+ "groups"
26899
+ ],
26900
+ "properties": {
26901
+ "groups": {
26902
+ "description": "Quota groups the user shall have",
26903
+ "type": "array",
26904
+ "items": {
26905
+ "type": "string"
26906
+ },
26907
+ "x-go-name": "Groups"
26908
+ }
26909
+ },
26910
+ "x-go-package": "code.gitea.io/gitea/modules/structs"
26911
+ },
24753
26912
  "StateType": {
24754
26913
  "description": "StateType issue state type",
24755
26914
  "type": "string",
@@ -25209,6 +27368,22 @@
25209
27368
  },
25210
27369
  "x-go-package": "code.gitea.io/gitea/modules/structs"
25211
27370
  },
27371
+ "UpdateBranchRepoOption": {
27372
+ "description": "UpdateBranchRepoOption options when updating a branch in a repository",
27373
+ "type": "object",
27374
+ "required": [
27375
+ "name"
27376
+ ],
27377
+ "properties": {
27378
+ "name": {
27379
+ "description": "New branch name",
27380
+ "type": "string",
27381
+ "uniqueItems": true,
27382
+ "x-go-name": "Name"
27383
+ }
27384
+ },
27385
+ "x-go-package": "code.gitea.io/gitea/modules/structs"
27386
+ },
25212
27387
  "UpdateFileOptions": {
25213
27388
  "description": "UpdateFileOptions options for updating files\nNote: `author` and `committer` are optional (if only one is given, it will be used for the other, otherwise the authenticated user will be used)",
25214
27389
  "type": "object",
@@ -26353,6 +28528,57 @@
26353
28528
  }
26354
28529
  }
26355
28530
  },
28531
+ "QuotaGroup": {
28532
+ "description": "QuotaGroup",
28533
+ "schema": {
28534
+ "$ref": "#/definitions/QuotaGroup"
28535
+ }
28536
+ },
28537
+ "QuotaGroupList": {
28538
+ "description": "QuotaGroupList",
28539
+ "schema": {
28540
+ "$ref": "#/definitions/QuotaGroupList"
28541
+ }
28542
+ },
28543
+ "QuotaInfo": {
28544
+ "description": "QuotaInfo",
28545
+ "schema": {
28546
+ "$ref": "#/definitions/QuotaInfo"
28547
+ }
28548
+ },
28549
+ "QuotaRuleInfo": {
28550
+ "description": "QuotaRuleInfo",
28551
+ "schema": {
28552
+ "$ref": "#/definitions/QuotaRuleInfo"
28553
+ }
28554
+ },
28555
+ "QuotaRuleInfoList": {
28556
+ "description": "QuotaRuleInfoList",
28557
+ "schema": {
28558
+ "type": "array",
28559
+ "items": {
28560
+ "$ref": "#/definitions/QuotaRuleInfo"
28561
+ }
28562
+ }
28563
+ },
28564
+ "QuotaUsedArtifactList": {
28565
+ "description": "QuotaUsedArtifactList",
28566
+ "schema": {
28567
+ "$ref": "#/definitions/QuotaUsedArtifactList"
28568
+ }
28569
+ },
28570
+ "QuotaUsedAttachmentList": {
28571
+ "description": "QuotaUsedAttachmentList",
28572
+ "schema": {
28573
+ "$ref": "#/definitions/QuotaUsedAttachmentList"
28574
+ }
28575
+ },
28576
+ "QuotaUsedPackageList": {
28577
+ "description": "QuotaUsedPackageList",
28578
+ "schema": {
28579
+ "$ref": "#/definitions/QuotaUsedPackageList"
28580
+ }
28581
+ },
26356
28582
  "Reaction": {
26357
28583
  "description": "Reaction",
26358
28584
  "schema": {
@@ -26652,6 +28878,9 @@
26652
28878
  }
26653
28879
  }
26654
28880
  },
28881
+ "boolean": {
28882
+ "description": "Boolean"
28883
+ },
26655
28884
  "conflict": {
26656
28885
  "description": "APIConflict is a conflict empty response"
26657
28886
  },
@@ -26660,78 +28889,74 @@
26660
28889
  },
26661
28890
  "error": {
26662
28891
  "description": "APIError is error format response",
26663
- "headers": {
26664
- "message": {
26665
- "type": "string"
26666
- },
26667
- "url": {
26668
- "type": "string"
26669
- }
28892
+ "schema": {
28893
+ "$ref": "#/definitions/APIError"
26670
28894
  }
26671
28895
  },
26672
28896
  "forbidden": {
26673
28897
  "description": "APIForbiddenError is a forbidden error response",
26674
- "headers": {
26675
- "message": {
26676
- "type": "string"
26677
- },
26678
- "url": {
26679
- "type": "string"
26680
- }
28898
+ "schema": {
28899
+ "$ref": "#/definitions/APIForbiddenError"
26681
28900
  }
26682
28901
  },
26683
28902
  "invalidTopicsError": {
26684
28903
  "description": "APIInvalidTopicsError is error format response to invalid topics",
26685
- "headers": {
26686
- "invalidTopics": {
26687
- "type": "array",
26688
- "items": {
26689
- "type": "string"
26690
- }
26691
- },
26692
- "message": {
26693
- "type": "string"
26694
- }
28904
+ "schema": {
28905
+ "$ref": "#/definitions/APIInvalidTopicsError"
26695
28906
  }
26696
28907
  },
26697
28908
  "notFound": {
26698
- "description": "APINotFound is a not found empty response"
28909
+ "description": "APINotFound is a not found error response",
28910
+ "schema": {
28911
+ "$ref": "#/definitions/APINotFound"
28912
+ }
26699
28913
  },
26700
28914
  "parameterBodies": {
26701
28915
  "description": "parameterBodies",
26702
28916
  "schema": {
26703
- "$ref": "#/definitions/DispatchWorkflowOption"
28917
+ "$ref": "#/definitions/NoteOptions"
26704
28918
  }
26705
28919
  },
26706
- "redirect": {
26707
- "description": "APIRedirect is a redirect response"
26708
- },
26709
- "repoArchivedError": {
26710
- "description": "APIRepoArchivedError is an error that is raised when an archived repo should be modified",
28920
+ "quotaExceeded": {
28921
+ "description": "QuotaExceeded",
26711
28922
  "headers": {
26712
28923
  "message": {
26713
28924
  "type": "string"
26714
28925
  },
26715
- "url": {
28926
+ "user_id": {
28927
+ "type": "integer",
28928
+ "format": "int64"
28929
+ },
28930
+ "username": {
26716
28931
  "type": "string"
26717
28932
  }
26718
28933
  }
26719
28934
  },
28935
+ "redirect": {
28936
+ "description": "APIRedirect is a redirect response"
28937
+ },
28938
+ "repoArchivedError": {
28939
+ "description": "APIRepoArchivedError is an error that is raised when an archived repo should be modified",
28940
+ "schema": {
28941
+ "$ref": "#/definitions/APIRepoArchivedError"
28942
+ }
28943
+ },
26720
28944
  "string": {
26721
28945
  "description": "APIString is a string response",
26722
28946
  "schema": {
26723
28947
  "type": "string"
26724
28948
  }
26725
28949
  },
28950
+ "unauthorized": {
28951
+ "description": "APIUnauthorizedError is a unauthorized error response",
28952
+ "schema": {
28953
+ "$ref": "#/definitions/APIUnauthorizedError"
28954
+ }
28955
+ },
26726
28956
  "validationError": {
26727
28957
  "description": "APIValidationError is error format response related to input validation",
26728
- "headers": {
26729
- "message": {
26730
- "type": "string"
26731
- },
26732
- "url": {
26733
- "type": "string"
26734
- }
28958
+ "schema": {
28959
+ "$ref": "#/definitions/APIValidationError"
26735
28960
  }
26736
28961
  }
26737
28962
  },