forgejo 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/Gemfile +9 -0
- data/LICENSE +9 -0
- data/LICENSE~ +9 -0
- data/Makefile +23 -0
- data/Makefile~ +2 -0
- data/README.md +717 -0
- data/Rakefile +10 -0
- data/docs/APIError.md +20 -0
- data/docs/AccessToken.md +26 -0
- data/docs/ActionTask.md +42 -0
- data/docs/ActionTaskResponse.md +20 -0
- data/docs/ActionVariable.md +24 -0
- data/docs/Activity.md +42 -0
- data/docs/ActivityPub.md +18 -0
- data/docs/ActivitypubApi.md +289 -0
- data/docs/AddCollaboratorOption.md +18 -0
- data/docs/AddTimeOption.md +22 -0
- data/docs/AdminApi.md +1672 -0
- data/docs/AnnotatedTag.md +32 -0
- data/docs/AnnotatedTagObject.md +22 -0
- data/docs/Attachment.md +30 -0
- data/docs/BlockedUser.md +20 -0
- data/docs/Branch.md +34 -0
- data/docs/BranchProtection.md +70 -0
- data/docs/ChangeFileOperation.md +26 -0
- data/docs/ChangeFilesOptions.md +32 -0
- data/docs/ChangedFile.md +34 -0
- data/docs/CombinedStatus.md +30 -0
- data/docs/Comment.md +38 -0
- data/docs/Commit.md +36 -0
- data/docs/CommitAffectedFiles.md +20 -0
- data/docs/CommitDateOptions.md +20 -0
- data/docs/CommitMeta.md +22 -0
- data/docs/CommitStats.md +22 -0
- data/docs/CommitStatus.md +34 -0
- data/docs/CommitUser.md +22 -0
- data/docs/Compare.md +20 -0
- data/docs/ContentsResponse.md +46 -0
- data/docs/CreateAccessTokenOption.md +20 -0
- data/docs/CreateBranchProtectionOption.md +66 -0
- data/docs/CreateBranchRepoOption.md +22 -0
- data/docs/CreateEmailOption.md +18 -0
- data/docs/CreateFileOptions.md +32 -0
- data/docs/CreateForkOption.md +20 -0
- data/docs/CreateGPGKeyOption.md +20 -0
- data/docs/CreateHookOption.md +28 -0
- data/docs/CreateIssueCommentOption.md +20 -0
- data/docs/CreateIssueOption.md +34 -0
- data/docs/CreateKeyOption.md +22 -0
- data/docs/CreateLabelOption.md +26 -0
- data/docs/CreateMilestoneOption.md +24 -0
- data/docs/CreateOAuth2ApplicationOptions.md +22 -0
- data/docs/CreateOrUpdateSecretOption.md +18 -0
- data/docs/CreateOrgOption.md +32 -0
- data/docs/CreatePullRequestOption.md +34 -0
- data/docs/CreatePullReviewComment.md +24 -0
- data/docs/CreatePullReviewOptions.md +24 -0
- data/docs/CreatePushMirrorOption.md +26 -0
- data/docs/CreateReleaseOption.md +30 -0
- data/docs/CreateRepoOption.md +40 -0
- data/docs/CreateStatusOption.md +24 -0
- data/docs/CreateTagOption.md +22 -0
- data/docs/CreateTagProtectionOption.md +22 -0
- data/docs/CreateTeamOption.md +30 -0
- data/docs/CreateUserOption.md +38 -0
- data/docs/CreateVariableOption.md +18 -0
- data/docs/CreateWikiPageOptions.md +22 -0
- data/docs/Cron.md +26 -0
- data/docs/DeleteEmailOption.md +18 -0
- data/docs/DeleteFileOptions.md +32 -0
- data/docs/DeleteLabelsOption.md +18 -0
- data/docs/DeployKey.md +34 -0
- data/docs/DismissPullReviewOptions.md +20 -0
- data/docs/DispatchWorkflowOption.md +20 -0
- data/docs/EditAttachmentOptions.md +18 -0
- data/docs/EditBranchProtectionOption.md +62 -0
- data/docs/EditDeadlineOption.md +18 -0
- data/docs/EditGitHookOption.md +18 -0
- data/docs/EditHookOption.md +26 -0
- data/docs/EditIssueCommentOption.md +20 -0
- data/docs/EditIssueOption.md +36 -0
- data/docs/EditLabelOption.md +26 -0
- data/docs/EditMilestoneOption.md +24 -0
- data/docs/EditOrgOption.md +30 -0
- data/docs/EditPullRequestOption.md +38 -0
- data/docs/EditReactionOption.md +18 -0
- data/docs/EditReleaseOption.md +30 -0
- data/docs/EditRepoOption.md +82 -0
- data/docs/EditTagProtectionOption.md +22 -0
- data/docs/EditTeamOption.md +30 -0
- data/docs/EditUserOption.md +54 -0
- data/docs/Email.md +26 -0
- data/docs/ExternalTracker.md +24 -0
- data/docs/ExternalWiki.md +18 -0
- data/docs/FileCommitResponse.md +34 -0
- data/docs/FileDeleteResponse.md +22 -0
- data/docs/FileLinksResponse.md +22 -0
- data/docs/FileResponse.md +22 -0
- data/docs/FilesResponse.md +22 -0
- data/docs/GPGKey.md +42 -0
- data/docs/GPGKeyEmail.md +20 -0
- data/docs/GeneralAPISettings.md +24 -0
- data/docs/GeneralAttachmentSettings.md +24 -0
- data/docs/GeneralRepoSettings.md +30 -0
- data/docs/GeneralUISettings.md +22 -0
- data/docs/GenerateRepoOption.md +40 -0
- data/docs/GitBlobResponse.md +26 -0
- data/docs/GitEntry.md +28 -0
- data/docs/GitHook.md +22 -0
- data/docs/GitObject.md +22 -0
- data/docs/GitTreeResponse.md +28 -0
- data/docs/GitignoreTemplateInfo.md +20 -0
- data/docs/Hook.md +40 -0
- data/docs/Identity.md +20 -0
- data/docs/InternalTracker.md +22 -0
- data/docs/Issue.md +66 -0
- data/docs/IssueApi.md +5206 -0
- data/docs/IssueConfig.md +20 -0
- data/docs/IssueConfigContactLink.md +22 -0
- data/docs/IssueConfigValidation.md +20 -0
- data/docs/IssueDeadline.md +18 -0
- data/docs/IssueFormField.md +26 -0
- data/docs/IssueLabelsOption.md +20 -0
- data/docs/IssueMeta.md +22 -0
- data/docs/IssueTemplate.md +32 -0
- data/docs/Label.md +30 -0
- data/docs/LabelTemplate.md +24 -0
- data/docs/LicenseTemplateInfo.md +26 -0
- data/docs/LicensesTemplateListEntry.md +22 -0
- data/docs/MarkdownOption.md +24 -0
- data/docs/MarkupOption.md +26 -0
- data/docs/MergePullRequestOption.md +32 -0
- data/docs/MigrateRepoOptions.md +56 -0
- data/docs/Milestone.md +36 -0
- data/docs/MiscellaneousApi.md +833 -0
- data/docs/NewIssuePinsAllowed.md +20 -0
- data/docs/NodeInfo.md +30 -0
- data/docs/NodeInfoServices.md +20 -0
- data/docs/NodeInfoSoftware.md +24 -0
- data/docs/NodeInfoUsage.md +22 -0
- data/docs/NodeInfoUsageUsers.md +22 -0
- data/docs/Note.md +20 -0
- data/docs/NotificationApi.md +550 -0
- data/docs/NotificationCount.md +18 -0
- data/docs/NotificationSubject.md +30 -0
- data/docs/NotificationThread.md +30 -0
- data/docs/OAuth2Application.md +30 -0
- data/docs/Organization.md +38 -0
- data/docs/OrganizationApi.md +4259 -0
- data/docs/OrganizationPermissions.md +26 -0
- data/docs/PRBranchInfo.md +26 -0
- data/docs/Package.md +34 -0
- data/docs/PackageApi.md +314 -0
- data/docs/PackageFile.md +30 -0
- data/docs/PayloadCommit.md +36 -0
- data/docs/PayloadCommitVerification.md +26 -0
- data/docs/PayloadUser.md +22 -0
- data/docs/Permission.md +22 -0
- data/docs/PublicKey.md +34 -0
- data/docs/PullRequest.md +88 -0
- data/docs/PullRequestMeta.md +24 -0
- data/docs/PullReview.md +44 -0
- data/docs/PullReviewComment.md +46 -0
- data/docs/PullReviewRequestOptions.md +20 -0
- data/docs/PushMirror.md +32 -0
- data/docs/Reaction.md +22 -0
- data/docs/Reference.md +22 -0
- data/docs/Release.md +52 -0
- data/docs/RenameUserOption.md +18 -0
- data/docs/ReplaceFlagsOption.md +18 -0
- data/docs/RepoCollaboratorPermission.md +22 -0
- data/docs/RepoCommit.md +28 -0
- data/docs/RepoCreateReleaseAttachmentRequest.md +18 -0
- data/docs/RepoTopicOptions.md +18 -0
- data/docs/RepoTransfer.md +22 -0
- data/docs/Repository.md +140 -0
- data/docs/RepositoryApi.md +13022 -0
- data/docs/RepositoryMeta.md +24 -0
- data/docs/SearchResults.md +20 -0
- data/docs/Secret.md +20 -0
- data/docs/ServerVersion.md +18 -0
- data/docs/SettingsApi.md +275 -0
- data/docs/StopWatch.md +30 -0
- data/docs/SubmitPullReviewOptions.md +20 -0
- data/docs/Tag.md +30 -0
- data/docs/TagArchiveDownloadCount.md +20 -0
- data/docs/TagProtection.md +28 -0
- data/docs/Team.md +34 -0
- data/docs/TeamSearch200Response.md +20 -0
- data/docs/TimelineComment.md +74 -0
- data/docs/TopicName.md +18 -0
- data/docs/TopicResponse.md +26 -0
- data/docs/TrackedTime.md +30 -0
- data/docs/TransferRepoOption.md +20 -0
- data/docs/UpdateFileOptions.md +36 -0
- data/docs/UpdateRepoAvatarOption.md +18 -0
- data/docs/UpdateUserAvatarOption.md +18 -0
- data/docs/UpdateVariableOption.md +20 -0
- data/docs/User.md +62 -0
- data/docs/UserApi.md +4969 -0
- data/docs/UserHeatmapData.md +20 -0
- data/docs/UserSearch200Response.md +20 -0
- data/docs/UserSettings.md +38 -0
- data/docs/UserSettingsOptions.md +38 -0
- data/docs/WatchInfo.md +28 -0
- data/docs/WikiCommit.md +24 -0
- data/docs/WikiCommitList.md +20 -0
- data/docs/WikiPage.md +32 -0
- data/docs/WikiPageMetaData.md +24 -0
- data/forgejo.gemspec +49 -0
- data/git_push.sh +57 -0
- data/lib/forgejo/api/activitypub_api.rb +269 -0
- data/lib/forgejo/api/admin_api.rb +1496 -0
- data/lib/forgejo/api/issue_api.rb +5282 -0
- data/lib/forgejo/api/miscellaneous_api.rb +725 -0
- data/lib/forgejo/api/notification_api.rb +520 -0
- data/lib/forgejo/api/organization_api.rb +3898 -0
- data/lib/forgejo/api/package_api.rb +334 -0
- data/lib/forgejo/api/repository_api.rb +12849 -0
- data/lib/forgejo/api/settings_api.rb +242 -0
- data/lib/forgejo/api/user_api.rb +4314 -0
- data/lib/forgejo/api_client.rb +437 -0
- data/lib/forgejo/api_error.rb +58 -0
- data/lib/forgejo/configuration.rb +392 -0
- data/lib/forgejo/models/access_token.rb +252 -0
- data/lib/forgejo/models/action_task.rb +323 -0
- data/lib/forgejo/models/action_task_response.rb +226 -0
- data/lib/forgejo/models/action_variable.rb +246 -0
- data/lib/forgejo/models/activity.rb +357 -0
- data/lib/forgejo/models/activity_pub.rb +215 -0
- data/lib/forgejo/models/add_collaborator_option.rb +215 -0
- data/lib/forgejo/models/add_time_option.rb +242 -0
- data/lib/forgejo/models/annotated_tag.rb +278 -0
- data/lib/forgejo/models/annotated_tag_object.rb +233 -0
- data/lib/forgejo/models/api_error.rb +224 -0
- data/lib/forgejo/models/attachment.rb +269 -0
- data/lib/forgejo/models/blocked_user.rb +223 -0
- data/lib/forgejo/models/branch.rb +289 -0
- data/lib/forgejo/models/branch_protection.rb +464 -0
- data/lib/forgejo/models/change_file_operation.rb +304 -0
- data/lib/forgejo/models/change_files_options.rb +292 -0
- data/lib/forgejo/models/changed_file.rb +287 -0
- data/lib/forgejo/models/combined_status.rb +272 -0
- data/lib/forgejo/models/comment.rb +307 -0
- data/lib/forgejo/models/commit.rb +299 -0
- data/lib/forgejo/models/commit_affected_files.rb +224 -0
- data/lib/forgejo/models/commit_date_options.rb +224 -0
- data/lib/forgejo/models/commit_meta.rb +232 -0
- data/lib/forgejo/models/commit_stats.rb +233 -0
- data/lib/forgejo/models/commit_status.rb +288 -0
- data/lib/forgejo/models/commit_user.rb +232 -0
- data/lib/forgejo/models/compare.rb +225 -0
- data/lib/forgejo/models/contents_response.rb +346 -0
- data/lib/forgejo/models/create_access_token_option.rb +233 -0
- data/lib/forgejo/models/create_branch_protection_option.rb +446 -0
- data/lib/forgejo/models/create_branch_repo_option.rb +243 -0
- data/lib/forgejo/models/create_email_option.rb +218 -0
- data/lib/forgejo/models/create_file_options.rb +290 -0
- data/lib/forgejo/models/create_fork_option.rb +226 -0
- data/lib/forgejo/models/create_gpg_key_option.rb +232 -0
- data/lib/forgejo/models/create_hook_option.rb +315 -0
- data/lib/forgejo/models/create_issue_comment_option.rb +231 -0
- data/lib/forgejo/models/create_issue_option.rb +301 -0
- data/lib/forgejo/models/create_key_option.rb +250 -0
- data/lib/forgejo/models/create_label_option.rb +265 -0
- data/lib/forgejo/models/create_milestone_option.rb +276 -0
- data/lib/forgejo/models/create_o_auth2_application_options.rb +235 -0
- data/lib/forgejo/models/create_or_update_secret_option.rb +223 -0
- data/lib/forgejo/models/create_org_option.rb +320 -0
- data/lib/forgejo/models/create_pull_request_option.rb +291 -0
- data/lib/forgejo/models/create_pull_review_comment.rb +245 -0
- data/lib/forgejo/models/create_pull_review_options.rb +245 -0
- data/lib/forgejo/models/create_push_mirror_option.rb +250 -0
- data/lib/forgejo/models/create_release_option.rb +276 -0
- data/lib/forgejo/models/create_repo_option.rb +379 -0
- data/lib/forgejo/models/create_status_option.rb +243 -0
- data/lib/forgejo/models/create_tag_option.rb +240 -0
- data/lib/forgejo/models/create_tag_protection_option.rb +237 -0
- data/lib/forgejo/models/create_team_option.rb +314 -0
- data/lib/forgejo/models/create_user_option.rb +320 -0
- data/lib/forgejo/models/create_variable_option.rb +223 -0
- data/lib/forgejo/models/create_wiki_page_options.rb +236 -0
- data/lib/forgejo/models/cron.rb +251 -0
- data/lib/forgejo/models/delete_email_option.rb +218 -0
- data/lib/forgejo/models/delete_file_options.rb +290 -0
- data/lib/forgejo/models/delete_labels_option.rb +215 -0
- data/lib/forgejo/models/deploy_key.rb +287 -0
- data/lib/forgejo/models/dismiss_pull_review_options.rb +224 -0
- data/lib/forgejo/models/dispatch_workflow_option.rb +235 -0
- data/lib/forgejo/models/edit_attachment_options.rb +215 -0
- data/lib/forgejo/models/edit_branch_protection_option.rb +427 -0
- data/lib/forgejo/models/edit_deadline_option.rb +222 -0
- data/lib/forgejo/models/edit_git_hook_option.rb +215 -0
- data/lib/forgejo/models/edit_hook_option.rb +255 -0
- data/lib/forgejo/models/edit_issue_comment_option.rb +231 -0
- data/lib/forgejo/models/edit_issue_option.rb +299 -0
- data/lib/forgejo/models/edit_label_option.rb +251 -0
- data/lib/forgejo/models/edit_milestone_option.rb +242 -0
- data/lib/forgejo/models/edit_org_option.rb +304 -0
- data/lib/forgejo/models/edit_pull_request_option.rb +309 -0
- data/lib/forgejo/models/edit_reaction_option.rb +215 -0
- data/lib/forgejo/models/edit_release_option.rb +269 -0
- data/lib/forgejo/models/edit_repo_option.rb +533 -0
- data/lib/forgejo/models/edit_tag_protection_option.rb +237 -0
- data/lib/forgejo/models/edit_team_option.rb +314 -0
- data/lib/forgejo/models/edit_user_option.rb +377 -0
- data/lib/forgejo/models/email.rb +251 -0
- data/lib/forgejo/models/external_tracker.rb +246 -0
- data/lib/forgejo/models/external_wiki.rb +216 -0
- data/lib/forgejo/models/file_commit_response.rb +288 -0
- data/lib/forgejo/models/file_delete_response.rb +233 -0
- data/lib/forgejo/models/file_links_response.rb +233 -0
- data/lib/forgejo/models/file_response.rb +233 -0
- data/lib/forgejo/models/files_response.rb +235 -0
- data/lib/forgejo/models/general_api_settings.rb +242 -0
- data/lib/forgejo/models/general_attachment_settings.rb +242 -0
- data/lib/forgejo/models/general_repo_settings.rb +269 -0
- data/lib/forgejo/models/general_ui_settings.rb +237 -0
- data/lib/forgejo/models/generate_repo_option.rb +340 -0
- data/lib/forgejo/models/git_blob_response.rb +251 -0
- data/lib/forgejo/models/git_entry.rb +260 -0
- data/lib/forgejo/models/git_hook.rb +233 -0
- data/lib/forgejo/models/git_object.rb +232 -0
- data/lib/forgejo/models/git_tree_response.rb +262 -0
- data/lib/forgejo/models/gitignore_template_info.rb +224 -0
- data/lib/forgejo/models/gpg_key.rb +327 -0
- data/lib/forgejo/models/gpg_key_email.rb +224 -0
- data/lib/forgejo/models/hook.rb +319 -0
- data/lib/forgejo/models/identity.rb +224 -0
- data/lib/forgejo/models/internal_tracker.rb +236 -0
- data/lib/forgejo/models/issue.rb +438 -0
- data/lib/forgejo/models/issue_config.rb +225 -0
- data/lib/forgejo/models/issue_config_contact_link.rb +232 -0
- data/lib/forgejo/models/issue_config_validation.rb +223 -0
- data/lib/forgejo/models/issue_deadline.rb +215 -0
- data/lib/forgejo/models/issue_form_field.rb +257 -0
- data/lib/forgejo/models/issue_labels_option.rb +227 -0
- data/lib/forgejo/models/issue_meta.rb +233 -0
- data/lib/forgejo/models/issue_template.rb +282 -0
- data/lib/forgejo/models/label.rb +269 -0
- data/lib/forgejo/models/label_template.rb +242 -0
- data/lib/forgejo/models/license_template_info.rb +251 -0
- data/lib/forgejo/models/licenses_template_list_entry.rb +233 -0
- data/lib/forgejo/models/markdown_option.rb +246 -0
- data/lib/forgejo/models/markup_option.rb +256 -0
- data/lib/forgejo/models/merge_pull_request_option.rb +319 -0
- data/lib/forgejo/models/migrate_repo_options.rb +436 -0
- data/lib/forgejo/models/milestone.rb +297 -0
- data/lib/forgejo/models/new_issue_pins_allowed.rb +224 -0
- data/lib/forgejo/models/node_info.rb +271 -0
- data/lib/forgejo/models/node_info_services.rb +228 -0
- data/lib/forgejo/models/node_info_software.rb +242 -0
- data/lib/forgejo/models/node_info_usage.rb +233 -0
- data/lib/forgejo/models/node_info_usage_users.rb +233 -0
- data/lib/forgejo/models/note.rb +224 -0
- data/lib/forgejo/models/notification_count.rb +215 -0
- data/lib/forgejo/models/notification_subject.rb +271 -0
- data/lib/forgejo/models/notification_thread.rb +269 -0
- data/lib/forgejo/models/o_auth2_application.rb +270 -0
- data/lib/forgejo/models/organization.rb +306 -0
- data/lib/forgejo/models/organization_permissions.rb +251 -0
- data/lib/forgejo/models/package.rb +287 -0
- data/lib/forgejo/models/package_file.rb +269 -0
- data/lib/forgejo/models/payload_commit.rb +303 -0
- data/lib/forgejo/models/payload_commit_verification.rb +251 -0
- data/lib/forgejo/models/payload_user.rb +234 -0
- data/lib/forgejo/models/permission.rb +233 -0
- data/lib/forgejo/models/pr_branch_info.rb +251 -0
- data/lib/forgejo/models/public_key.rb +287 -0
- data/lib/forgejo/models/pull_request.rb +538 -0
- data/lib/forgejo/models/pull_request_meta.rb +242 -0
- data/lib/forgejo/models/pull_review.rb +333 -0
- data/lib/forgejo/models/pull_review_comment.rb +341 -0
- data/lib/forgejo/models/pull_review_request_options.rb +228 -0
- data/lib/forgejo/models/push_mirror.rb +278 -0
- data/lib/forgejo/models/reaction.rb +233 -0
- data/lib/forgejo/models/reference.rb +232 -0
- data/lib/forgejo/models/release.rb +370 -0
- data/lib/forgejo/models/rename_user_option.rb +223 -0
- data/lib/forgejo/models/replace_flags_option.rb +217 -0
- data/lib/forgejo/models/repo_collaborator_permission.rb +233 -0
- data/lib/forgejo/models/repo_commit.rb +259 -0
- data/lib/forgejo/models/repo_create_release_attachment_request.rb +215 -0
- data/lib/forgejo/models/repo_topic_options.rb +218 -0
- data/lib/forgejo/models/repo_transfer.rb +235 -0
- data/lib/forgejo/models/repository.rb +801 -0
- data/lib/forgejo/models/repository_meta.rb +242 -0
- data/lib/forgejo/models/search_results.rb +226 -0
- data/lib/forgejo/models/secret.rb +225 -0
- data/lib/forgejo/models/server_version.rb +215 -0
- data/lib/forgejo/models/stop_watch.rb +269 -0
- data/lib/forgejo/models/submit_pull_review_options.rb +225 -0
- data/lib/forgejo/models/tag.rb +269 -0
- data/lib/forgejo/models/tag_archive_download_count.rb +224 -0
- data/lib/forgejo/models/tag_protection.rb +264 -0
- data/lib/forgejo/models/team.rb +325 -0
- data/lib/forgejo/models/team_search200_response.rb +225 -0
- data/lib/forgejo/models/timeline_comment.rb +469 -0
- data/lib/forgejo/models/topic_name.rb +217 -0
- data/lib/forgejo/models/topic_response.rb +251 -0
- data/lib/forgejo/models/tracked_time.rb +272 -0
- data/lib/forgejo/models/transfer_repo_option.rb +234 -0
- data/lib/forgejo/models/update_file_options.rb +317 -0
- data/lib/forgejo/models/update_repo_avatar_option.rb +216 -0
- data/lib/forgejo/models/update_user_avatar_option.rb +216 -0
- data/lib/forgejo/models/update_variable_option.rb +233 -0
- data/lib/forgejo/models/user.rb +433 -0
- data/lib/forgejo/models/user_heatmap_data.rb +225 -0
- data/lib/forgejo/models/user_search200_response.rb +225 -0
- data/lib/forgejo/models/user_settings.rb +306 -0
- data/lib/forgejo/models/user_settings_options.rb +306 -0
- data/lib/forgejo/models/watch_info.rb +260 -0
- data/lib/forgejo/models/wiki_commit.rb +242 -0
- data/lib/forgejo/models/wiki_commit_list.rb +226 -0
- data/lib/forgejo/models/wiki_page.rb +279 -0
- data/lib/forgejo/models/wiki_page_meta_data.rb +242 -0
- data/lib/forgejo/version.rb +15 -0
- data/lib/forgejo.rb +241 -0
- data/manifest.scm +2 -0
- data/patch +7 -0
- data/patch~ +1 -0
- data/smoke +16 -0
- data/smoke~ +1 -0
- data/spec/api/activitypub_api_spec.rb +80 -0
- data/spec/api/admin_api_spec.rb +308 -0
- data/spec/api/issue_api_spec.rb +998 -0
- data/spec/api/miscellaneous_api_spec.rb +161 -0
- data/spec/api/notification_api_spec.rb +134 -0
- data/spec/api/organization_api_spec.rb +752 -0
- data/spec/api/package_api_spec.rb +92 -0
- data/spec/api/repository_api_spec.rb +2366 -0
- data/spec/api/settings_api_spec.rb +75 -0
- data/spec/api/user_api_spec.rb +839 -0
- data/spec/models/access_token_spec.rb +60 -0
- data/spec/models/action_task_response_spec.rb +42 -0
- data/spec/models/action_task_spec.rb +108 -0
- data/spec/models/action_variable_spec.rb +54 -0
- data/spec/models/activity_pub_spec.rb +36 -0
- data/spec/models/activity_spec.rb +112 -0
- data/spec/models/add_collaborator_option_spec.rb +36 -0
- data/spec/models/add_time_option_spec.rb +48 -0
- data/spec/models/annotated_tag_object_spec.rb +48 -0
- data/spec/models/annotated_tag_spec.rb +78 -0
- data/spec/models/api_error_spec.rb +42 -0
- data/spec/models/attachment_spec.rb +72 -0
- data/spec/models/blocked_user_spec.rb +42 -0
- data/spec/models/branch_protection_spec.rb +192 -0
- data/spec/models/branch_spec.rb +84 -0
- data/spec/models/change_file_operation_spec.rb +64 -0
- data/spec/models/change_files_options_spec.rb +78 -0
- data/spec/models/changed_file_spec.rb +84 -0
- data/spec/models/combined_status_spec.rb +72 -0
- data/spec/models/comment_spec.rb +96 -0
- data/spec/models/commit_affected_files_spec.rb +42 -0
- data/spec/models/commit_date_options_spec.rb +42 -0
- data/spec/models/commit_meta_spec.rb +48 -0
- data/spec/models/commit_spec.rb +90 -0
- data/spec/models/commit_stats_spec.rb +48 -0
- data/spec/models/commit_status_spec.rb +84 -0
- data/spec/models/commit_user_spec.rb +48 -0
- data/spec/models/compare_spec.rb +42 -0
- data/spec/models/contents_response_spec.rb +120 -0
- data/spec/models/create_access_token_option_spec.rb +42 -0
- data/spec/models/create_branch_protection_option_spec.rb +180 -0
- data/spec/models/create_branch_repo_option_spec.rb +48 -0
- data/spec/models/create_email_option_spec.rb +36 -0
- data/spec/models/create_file_options_spec.rb +78 -0
- data/spec/models/create_fork_option_spec.rb +42 -0
- data/spec/models/create_gpg_key_option_spec.rb +42 -0
- data/spec/models/create_hook_option_spec.rb +70 -0
- data/spec/models/create_issue_comment_option_spec.rb +42 -0
- data/spec/models/create_issue_option_spec.rb +84 -0
- data/spec/models/create_key_option_spec.rb +48 -0
- data/spec/models/create_label_option_spec.rb +60 -0
- data/spec/models/create_milestone_option_spec.rb +58 -0
- data/spec/models/create_o_auth2_application_options_spec.rb +48 -0
- data/spec/models/create_or_update_secret_option_spec.rb +36 -0
- data/spec/models/create_org_option_spec.rb +82 -0
- data/spec/models/create_pull_request_option_spec.rb +84 -0
- data/spec/models/create_pull_review_comment_spec.rb +54 -0
- data/spec/models/create_pull_review_options_spec.rb +54 -0
- data/spec/models/create_push_mirror_option_spec.rb +60 -0
- data/spec/models/create_release_option_spec.rb +72 -0
- data/spec/models/create_repo_option_spec.rb +110 -0
- data/spec/models/create_status_option_spec.rb +54 -0
- data/spec/models/create_tag_option_spec.rb +48 -0
- data/spec/models/create_tag_protection_option_spec.rb +48 -0
- data/spec/models/create_team_option_spec.rb +76 -0
- data/spec/models/create_user_option_spec.rb +96 -0
- data/spec/models/create_variable_option_spec.rb +36 -0
- data/spec/models/create_wiki_page_options_spec.rb +48 -0
- data/spec/models/cron_spec.rb +60 -0
- data/spec/models/delete_email_option_spec.rb +36 -0
- data/spec/models/delete_file_options_spec.rb +78 -0
- data/spec/models/delete_labels_option_spec.rb +36 -0
- data/spec/models/deploy_key_spec.rb +84 -0
- data/spec/models/dismiss_pull_review_options_spec.rb +42 -0
- data/spec/models/dispatch_workflow_option_spec.rb +42 -0
- data/spec/models/edit_attachment_options_spec.rb +36 -0
- data/spec/models/edit_branch_protection_option_spec.rb +168 -0
- data/spec/models/edit_deadline_option_spec.rb +36 -0
- data/spec/models/edit_git_hook_option_spec.rb +36 -0
- data/spec/models/edit_hook_option_spec.rb +60 -0
- data/spec/models/edit_issue_comment_option_spec.rb +42 -0
- data/spec/models/edit_issue_option_spec.rb +90 -0
- data/spec/models/edit_label_option_spec.rb +60 -0
- data/spec/models/edit_milestone_option_spec.rb +54 -0
- data/spec/models/edit_org_option_spec.rb +76 -0
- data/spec/models/edit_pull_request_option_spec.rb +96 -0
- data/spec/models/edit_reaction_option_spec.rb +36 -0
- data/spec/models/edit_release_option_spec.rb +72 -0
- data/spec/models/edit_repo_option_spec.rb +228 -0
- data/spec/models/edit_tag_protection_option_spec.rb +48 -0
- data/spec/models/edit_team_option_spec.rb +76 -0
- data/spec/models/edit_user_option_spec.rb +144 -0
- data/spec/models/email_spec.rb +60 -0
- data/spec/models/external_tracker_spec.rb +54 -0
- data/spec/models/external_wiki_spec.rb +36 -0
- data/spec/models/file_commit_response_spec.rb +84 -0
- data/spec/models/file_delete_response_spec.rb +48 -0
- data/spec/models/file_links_response_spec.rb +48 -0
- data/spec/models/file_response_spec.rb +48 -0
- data/spec/models/files_response_spec.rb +48 -0
- data/spec/models/general_api_settings_spec.rb +54 -0
- data/spec/models/general_attachment_settings_spec.rb +54 -0
- data/spec/models/general_repo_settings_spec.rb +72 -0
- data/spec/models/general_ui_settings_spec.rb +48 -0
- data/spec/models/generate_repo_option_spec.rb +102 -0
- data/spec/models/git_blob_response_spec.rb +60 -0
- data/spec/models/git_entry_spec.rb +66 -0
- data/spec/models/git_hook_spec.rb +48 -0
- data/spec/models/git_object_spec.rb +48 -0
- data/spec/models/git_tree_response_spec.rb +66 -0
- data/spec/models/gitignore_template_info_spec.rb +42 -0
- data/spec/models/gpg_key_email_spec.rb +42 -0
- data/spec/models/gpg_key_spec.rb +108 -0
- data/spec/models/hook_spec.rb +102 -0
- data/spec/models/identity_spec.rb +42 -0
- data/spec/models/internal_tracker_spec.rb +48 -0
- data/spec/models/issue_config_contact_link_spec.rb +48 -0
- data/spec/models/issue_config_spec.rb +42 -0
- data/spec/models/issue_config_validation_spec.rb +42 -0
- data/spec/models/issue_deadline_spec.rb +36 -0
- data/spec/models/issue_form_field_spec.rb +60 -0
- data/spec/models/issue_labels_option_spec.rb +42 -0
- data/spec/models/issue_meta_spec.rb +48 -0
- data/spec/models/issue_spec.rb +180 -0
- data/spec/models/issue_template_spec.rb +78 -0
- data/spec/models/label_spec.rb +72 -0
- data/spec/models/label_template_spec.rb +54 -0
- data/spec/models/license_template_info_spec.rb +60 -0
- data/spec/models/licenses_template_list_entry_spec.rb +48 -0
- data/spec/models/markdown_option_spec.rb +54 -0
- data/spec/models/markup_option_spec.rb +60 -0
- data/spec/models/merge_pull_request_option_spec.rb +82 -0
- data/spec/models/migrate_repo_options_spec.rb +154 -0
- data/spec/models/milestone_spec.rb +90 -0
- data/spec/models/new_issue_pins_allowed_spec.rb +42 -0
- data/spec/models/node_info_services_spec.rb +42 -0
- data/spec/models/node_info_software_spec.rb +54 -0
- data/spec/models/node_info_spec.rb +72 -0
- data/spec/models/node_info_usage_spec.rb +48 -0
- data/spec/models/node_info_usage_users_spec.rb +48 -0
- data/spec/models/note_spec.rb +42 -0
- data/spec/models/notification_count_spec.rb +36 -0
- data/spec/models/notification_subject_spec.rb +72 -0
- data/spec/models/notification_thread_spec.rb +72 -0
- data/spec/models/o_auth2_application_spec.rb +72 -0
- data/spec/models/organization_permissions_spec.rb +60 -0
- data/spec/models/organization_spec.rb +96 -0
- data/spec/models/package_file_spec.rb +72 -0
- data/spec/models/package_spec.rb +84 -0
- data/spec/models/payload_commit_spec.rb +90 -0
- data/spec/models/payload_commit_verification_spec.rb +60 -0
- data/spec/models/payload_user_spec.rb +48 -0
- data/spec/models/permission_spec.rb +48 -0
- data/spec/models/pr_branch_info_spec.rb +60 -0
- data/spec/models/public_key_spec.rb +84 -0
- data/spec/models/pull_request_meta_spec.rb +54 -0
- data/spec/models/pull_request_spec.rb +246 -0
- data/spec/models/pull_review_comment_spec.rb +120 -0
- data/spec/models/pull_review_request_options_spec.rb +42 -0
- data/spec/models/pull_review_spec.rb +114 -0
- data/spec/models/push_mirror_spec.rb +78 -0
- data/spec/models/reaction_spec.rb +48 -0
- data/spec/models/reference_spec.rb +48 -0
- data/spec/models/release_spec.rb +138 -0
- data/spec/models/rename_user_option_spec.rb +36 -0
- data/spec/models/replace_flags_option_spec.rb +36 -0
- data/spec/models/repo_collaborator_permission_spec.rb +48 -0
- data/spec/models/repo_commit_spec.rb +66 -0
- data/spec/models/repo_create_release_attachment_request_spec.rb +36 -0
- data/spec/models/repo_topic_options_spec.rb +36 -0
- data/spec/models/repo_transfer_spec.rb +48 -0
- data/spec/models/repository_meta_spec.rb +54 -0
- data/spec/models/repository_spec.rb +406 -0
- data/spec/models/search_results_spec.rb +42 -0
- data/spec/models/secret_spec.rb +42 -0
- data/spec/models/server_version_spec.rb +36 -0
- data/spec/models/stop_watch_spec.rb +72 -0
- data/spec/models/submit_pull_review_options_spec.rb +42 -0
- data/spec/models/tag_archive_download_count_spec.rb +42 -0
- data/spec/models/tag_protection_spec.rb +66 -0
- data/spec/models/tag_spec.rb +72 -0
- data/spec/models/team_search200_response_spec.rb +42 -0
- data/spec/models/team_spec.rb +88 -0
- data/spec/models/timeline_comment_spec.rb +204 -0
- data/spec/models/topic_name_spec.rb +36 -0
- data/spec/models/topic_response_spec.rb +60 -0
- data/spec/models/tracked_time_spec.rb +72 -0
- data/spec/models/transfer_repo_option_spec.rb +42 -0
- data/spec/models/update_file_options_spec.rb +90 -0
- data/spec/models/update_repo_avatar_option_spec.rb +36 -0
- data/spec/models/update_user_avatar_option_spec.rb +36 -0
- data/spec/models/update_variable_option_spec.rb +42 -0
- data/spec/models/user_heatmap_data_spec.rb +42 -0
- data/spec/models/user_search200_response_spec.rb +42 -0
- data/spec/models/user_settings_options_spec.rb +96 -0
- data/spec/models/user_settings_spec.rb +96 -0
- data/spec/models/user_spec.rb +168 -0
- data/spec/models/watch_info_spec.rb +66 -0
- data/spec/models/wiki_commit_list_spec.rb +42 -0
- data/spec/models/wiki_commit_spec.rb +54 -0
- data/spec/models/wiki_page_meta_data_spec.rb +54 -0
- data/spec/models/wiki_page_spec.rb +78 -0
- data/spec/spec_helper.rb +111 -0
- data/swagger.v1.json +26802 -0
- data/swagger.v1.patched.json +1 -0
- metadata +949 -0
@@ -0,0 +1,550 @@
|
|
1
|
+
# Forgejo::NotificationApi
|
2
|
+
|
3
|
+
All URIs are relative to */api/v1*
|
4
|
+
|
5
|
+
| Method | HTTP request | Description |
|
6
|
+
| ------ | ------------ | ----------- |
|
7
|
+
| [**notify_get_list**](NotificationApi.md#notify_get_list) | **GET** /notifications | List users's notification threads |
|
8
|
+
| [**notify_get_repo_list**](NotificationApi.md#notify_get_repo_list) | **GET** /repos/{owner}/{repo}/notifications | List users's notification threads on a specific repo |
|
9
|
+
| [**notify_get_thread**](NotificationApi.md#notify_get_thread) | **GET** /notifications/threads/{id} | Get notification thread by ID |
|
10
|
+
| [**notify_new_available**](NotificationApi.md#notify_new_available) | **GET** /notifications/new | Check if unread notifications exist |
|
11
|
+
| [**notify_read_list**](NotificationApi.md#notify_read_list) | **PUT** /notifications | Mark notification threads as read, pinned or unread |
|
12
|
+
| [**notify_read_repo_list**](NotificationApi.md#notify_read_repo_list) | **PUT** /repos/{owner}/{repo}/notifications | Mark notification threads as read, pinned or unread on a specific repo |
|
13
|
+
| [**notify_read_thread**](NotificationApi.md#notify_read_thread) | **PATCH** /notifications/threads/{id} | Mark notification thread as read by ID |
|
14
|
+
|
15
|
+
|
16
|
+
## notify_get_list
|
17
|
+
|
18
|
+
> <Array<NotificationThread>> notify_get_list(opts)
|
19
|
+
|
20
|
+
List users's notification threads
|
21
|
+
|
22
|
+
### Examples
|
23
|
+
|
24
|
+
```ruby
|
25
|
+
require 'time'
|
26
|
+
require 'forgejo'
|
27
|
+
# setup authorization
|
28
|
+
Forgejo.configure do |config|
|
29
|
+
# Configure API key authorization: AuthorizationHeaderToken
|
30
|
+
config.api_key['Authorization'] = 'YOUR API KEY'
|
31
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
32
|
+
# config.api_key_prefix['Authorization'] = 'Bearer'
|
33
|
+
end
|
34
|
+
|
35
|
+
api_instance = Forgejo::NotificationApi.new
|
36
|
+
opts = {
|
37
|
+
all: true, # Boolean | If true, show notifications marked as read. Default value is false
|
38
|
+
status_types: ['inner_example'], # Array<String> | Show notifications with the provided status types. Options are: unread, read and/or pinned. Defaults to unread & pinned.
|
39
|
+
subject_type: ['issue'], # Array<String> | filter notifications by subject type
|
40
|
+
since: Time.parse('2013-10-20T19:20:30+01:00'), # Time | Only show notifications updated after the given time. This is a timestamp in RFC 3339 format
|
41
|
+
before: Time.parse('2013-10-20T19:20:30+01:00'), # Time | Only show notifications updated before the given time. This is a timestamp in RFC 3339 format
|
42
|
+
page: 56, # Integer | page number of results to return (1-based)
|
43
|
+
limit: 56 # Integer | page size of results
|
44
|
+
}
|
45
|
+
|
46
|
+
begin
|
47
|
+
# List users's notification threads
|
48
|
+
result = api_instance.notify_get_list(opts)
|
49
|
+
p result
|
50
|
+
rescue Forgejo::ApiError => e
|
51
|
+
puts "Error when calling NotificationApi->notify_get_list: #{e}"
|
52
|
+
end
|
53
|
+
```
|
54
|
+
|
55
|
+
#### Using the notify_get_list_with_http_info variant
|
56
|
+
|
57
|
+
This returns an Array which contains the response data, status code and headers.
|
58
|
+
|
59
|
+
> <Array(<Array<NotificationThread>>, Integer, Hash)> notify_get_list_with_http_info(opts)
|
60
|
+
|
61
|
+
```ruby
|
62
|
+
begin
|
63
|
+
# List users's notification threads
|
64
|
+
data, status_code, headers = api_instance.notify_get_list_with_http_info(opts)
|
65
|
+
p status_code # => 2xx
|
66
|
+
p headers # => { ... }
|
67
|
+
p data # => <Array<NotificationThread>>
|
68
|
+
rescue Forgejo::ApiError => e
|
69
|
+
puts "Error when calling NotificationApi->notify_get_list_with_http_info: #{e}"
|
70
|
+
end
|
71
|
+
```
|
72
|
+
|
73
|
+
### Parameters
|
74
|
+
|
75
|
+
| Name | Type | Description | Notes |
|
76
|
+
| ---- | ---- | ----------- | ----- |
|
77
|
+
| **all** | **Boolean** | If true, show notifications marked as read. Default value is false | [optional] |
|
78
|
+
| **status_types** | [**Array<String>**](String.md) | Show notifications with the provided status types. Options are: unread, read and/or pinned. Defaults to unread & pinned. | [optional] |
|
79
|
+
| **subject_type** | [**Array<String>**](String.md) | filter notifications by subject type | [optional] |
|
80
|
+
| **since** | **Time** | Only show notifications updated after the given time. This is a timestamp in RFC 3339 format | [optional] |
|
81
|
+
| **before** | **Time** | Only show notifications updated before the given time. This is a timestamp in RFC 3339 format | [optional] |
|
82
|
+
| **page** | **Integer** | page number of results to return (1-based) | [optional] |
|
83
|
+
| **limit** | **Integer** | page size of results | [optional] |
|
84
|
+
|
85
|
+
### Return type
|
86
|
+
|
87
|
+
[**Array<NotificationThread>**](NotificationThread.md)
|
88
|
+
|
89
|
+
### Authorization
|
90
|
+
|
91
|
+
[AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken)
|
92
|
+
|
93
|
+
### HTTP request headers
|
94
|
+
|
95
|
+
- **Content-Type**: Not defined
|
96
|
+
- **Accept**: application/json
|
97
|
+
|
98
|
+
|
99
|
+
## notify_get_repo_list
|
100
|
+
|
101
|
+
> <Array<NotificationThread>> notify_get_repo_list(owner, repo, opts)
|
102
|
+
|
103
|
+
List users's notification threads on a specific repo
|
104
|
+
|
105
|
+
### Examples
|
106
|
+
|
107
|
+
```ruby
|
108
|
+
require 'time'
|
109
|
+
require 'forgejo'
|
110
|
+
# setup authorization
|
111
|
+
Forgejo.configure do |config|
|
112
|
+
# Configure API key authorization: AuthorizationHeaderToken
|
113
|
+
config.api_key['Authorization'] = 'YOUR API KEY'
|
114
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
115
|
+
# config.api_key_prefix['Authorization'] = 'Bearer'
|
116
|
+
end
|
117
|
+
|
118
|
+
api_instance = Forgejo::NotificationApi.new
|
119
|
+
owner = 'owner_example' # String | owner of the repo
|
120
|
+
repo = 'repo_example' # String | name of the repo
|
121
|
+
opts = {
|
122
|
+
all: true, # Boolean | If true, show notifications marked as read. Default value is false
|
123
|
+
status_types: ['inner_example'], # Array<String> | Show notifications with the provided status types. Options are: unread, read and/or pinned. Defaults to unread & pinned
|
124
|
+
subject_type: ['issue'], # Array<String> | filter notifications by subject type
|
125
|
+
since: Time.parse('2013-10-20T19:20:30+01:00'), # Time | Only show notifications updated after the given time. This is a timestamp in RFC 3339 format
|
126
|
+
before: Time.parse('2013-10-20T19:20:30+01:00'), # Time | Only show notifications updated before the given time. This is a timestamp in RFC 3339 format
|
127
|
+
page: 56, # Integer | page number of results to return (1-based)
|
128
|
+
limit: 56 # Integer | page size of results
|
129
|
+
}
|
130
|
+
|
131
|
+
begin
|
132
|
+
# List users's notification threads on a specific repo
|
133
|
+
result = api_instance.notify_get_repo_list(owner, repo, opts)
|
134
|
+
p result
|
135
|
+
rescue Forgejo::ApiError => e
|
136
|
+
puts "Error when calling NotificationApi->notify_get_repo_list: #{e}"
|
137
|
+
end
|
138
|
+
```
|
139
|
+
|
140
|
+
#### Using the notify_get_repo_list_with_http_info variant
|
141
|
+
|
142
|
+
This returns an Array which contains the response data, status code and headers.
|
143
|
+
|
144
|
+
> <Array(<Array<NotificationThread>>, Integer, Hash)> notify_get_repo_list_with_http_info(owner, repo, opts)
|
145
|
+
|
146
|
+
```ruby
|
147
|
+
begin
|
148
|
+
# List users's notification threads on a specific repo
|
149
|
+
data, status_code, headers = api_instance.notify_get_repo_list_with_http_info(owner, repo, opts)
|
150
|
+
p status_code # => 2xx
|
151
|
+
p headers # => { ... }
|
152
|
+
p data # => <Array<NotificationThread>>
|
153
|
+
rescue Forgejo::ApiError => e
|
154
|
+
puts "Error when calling NotificationApi->notify_get_repo_list_with_http_info: #{e}"
|
155
|
+
end
|
156
|
+
```
|
157
|
+
|
158
|
+
### Parameters
|
159
|
+
|
160
|
+
| Name | Type | Description | Notes |
|
161
|
+
| ---- | ---- | ----------- | ----- |
|
162
|
+
| **owner** | **String** | owner of the repo | |
|
163
|
+
| **repo** | **String** | name of the repo | |
|
164
|
+
| **all** | **Boolean** | If true, show notifications marked as read. Default value is false | [optional] |
|
165
|
+
| **status_types** | [**Array<String>**](String.md) | Show notifications with the provided status types. Options are: unread, read and/or pinned. Defaults to unread & pinned | [optional] |
|
166
|
+
| **subject_type** | [**Array<String>**](String.md) | filter notifications by subject type | [optional] |
|
167
|
+
| **since** | **Time** | Only show notifications updated after the given time. This is a timestamp in RFC 3339 format | [optional] |
|
168
|
+
| **before** | **Time** | Only show notifications updated before the given time. This is a timestamp in RFC 3339 format | [optional] |
|
169
|
+
| **page** | **Integer** | page number of results to return (1-based) | [optional] |
|
170
|
+
| **limit** | **Integer** | page size of results | [optional] |
|
171
|
+
|
172
|
+
### Return type
|
173
|
+
|
174
|
+
[**Array<NotificationThread>**](NotificationThread.md)
|
175
|
+
|
176
|
+
### Authorization
|
177
|
+
|
178
|
+
[AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken)
|
179
|
+
|
180
|
+
### HTTP request headers
|
181
|
+
|
182
|
+
- **Content-Type**: Not defined
|
183
|
+
- **Accept**: application/json
|
184
|
+
|
185
|
+
|
186
|
+
## notify_get_thread
|
187
|
+
|
188
|
+
> <NotificationThread> notify_get_thread(id)
|
189
|
+
|
190
|
+
Get notification thread by ID
|
191
|
+
|
192
|
+
### Examples
|
193
|
+
|
194
|
+
```ruby
|
195
|
+
require 'time'
|
196
|
+
require 'forgejo'
|
197
|
+
# setup authorization
|
198
|
+
Forgejo.configure do |config|
|
199
|
+
# Configure API key authorization: AuthorizationHeaderToken
|
200
|
+
config.api_key['Authorization'] = 'YOUR API KEY'
|
201
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
202
|
+
# config.api_key_prefix['Authorization'] = 'Bearer'
|
203
|
+
end
|
204
|
+
|
205
|
+
api_instance = Forgejo::NotificationApi.new
|
206
|
+
id = 'id_example' # String | id of notification thread
|
207
|
+
|
208
|
+
begin
|
209
|
+
# Get notification thread by ID
|
210
|
+
result = api_instance.notify_get_thread(id)
|
211
|
+
p result
|
212
|
+
rescue Forgejo::ApiError => e
|
213
|
+
puts "Error when calling NotificationApi->notify_get_thread: #{e}"
|
214
|
+
end
|
215
|
+
```
|
216
|
+
|
217
|
+
#### Using the notify_get_thread_with_http_info variant
|
218
|
+
|
219
|
+
This returns an Array which contains the response data, status code and headers.
|
220
|
+
|
221
|
+
> <Array(<NotificationThread>, Integer, Hash)> notify_get_thread_with_http_info(id)
|
222
|
+
|
223
|
+
```ruby
|
224
|
+
begin
|
225
|
+
# Get notification thread by ID
|
226
|
+
data, status_code, headers = api_instance.notify_get_thread_with_http_info(id)
|
227
|
+
p status_code # => 2xx
|
228
|
+
p headers # => { ... }
|
229
|
+
p data # => <NotificationThread>
|
230
|
+
rescue Forgejo::ApiError => e
|
231
|
+
puts "Error when calling NotificationApi->notify_get_thread_with_http_info: #{e}"
|
232
|
+
end
|
233
|
+
```
|
234
|
+
|
235
|
+
### Parameters
|
236
|
+
|
237
|
+
| Name | Type | Description | Notes |
|
238
|
+
| ---- | ---- | ----------- | ----- |
|
239
|
+
| **id** | **String** | id of notification thread | |
|
240
|
+
|
241
|
+
### Return type
|
242
|
+
|
243
|
+
[**NotificationThread**](NotificationThread.md)
|
244
|
+
|
245
|
+
### Authorization
|
246
|
+
|
247
|
+
[AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken)
|
248
|
+
|
249
|
+
### HTTP request headers
|
250
|
+
|
251
|
+
- **Content-Type**: Not defined
|
252
|
+
- **Accept**: application/json
|
253
|
+
|
254
|
+
|
255
|
+
## notify_new_available
|
256
|
+
|
257
|
+
> <NotificationCount> notify_new_available
|
258
|
+
|
259
|
+
Check if unread notifications exist
|
260
|
+
|
261
|
+
### Examples
|
262
|
+
|
263
|
+
```ruby
|
264
|
+
require 'time'
|
265
|
+
require 'forgejo'
|
266
|
+
# setup authorization
|
267
|
+
Forgejo.configure do |config|
|
268
|
+
# Configure API key authorization: AuthorizationHeaderToken
|
269
|
+
config.api_key['Authorization'] = 'YOUR API KEY'
|
270
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
271
|
+
# config.api_key_prefix['Authorization'] = 'Bearer'
|
272
|
+
end
|
273
|
+
|
274
|
+
api_instance = Forgejo::NotificationApi.new
|
275
|
+
|
276
|
+
begin
|
277
|
+
# Check if unread notifications exist
|
278
|
+
result = api_instance.notify_new_available
|
279
|
+
p result
|
280
|
+
rescue Forgejo::ApiError => e
|
281
|
+
puts "Error when calling NotificationApi->notify_new_available: #{e}"
|
282
|
+
end
|
283
|
+
```
|
284
|
+
|
285
|
+
#### Using the notify_new_available_with_http_info variant
|
286
|
+
|
287
|
+
This returns an Array which contains the response data, status code and headers.
|
288
|
+
|
289
|
+
> <Array(<NotificationCount>, Integer, Hash)> notify_new_available_with_http_info
|
290
|
+
|
291
|
+
```ruby
|
292
|
+
begin
|
293
|
+
# Check if unread notifications exist
|
294
|
+
data, status_code, headers = api_instance.notify_new_available_with_http_info
|
295
|
+
p status_code # => 2xx
|
296
|
+
p headers # => { ... }
|
297
|
+
p data # => <NotificationCount>
|
298
|
+
rescue Forgejo::ApiError => e
|
299
|
+
puts "Error when calling NotificationApi->notify_new_available_with_http_info: #{e}"
|
300
|
+
end
|
301
|
+
```
|
302
|
+
|
303
|
+
### Parameters
|
304
|
+
|
305
|
+
This endpoint does not need any parameter.
|
306
|
+
|
307
|
+
### Return type
|
308
|
+
|
309
|
+
[**NotificationCount**](NotificationCount.md)
|
310
|
+
|
311
|
+
### Authorization
|
312
|
+
|
313
|
+
[AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken)
|
314
|
+
|
315
|
+
### HTTP request headers
|
316
|
+
|
317
|
+
- **Content-Type**: Not defined
|
318
|
+
- **Accept**: application/json, text/html
|
319
|
+
|
320
|
+
|
321
|
+
## notify_read_list
|
322
|
+
|
323
|
+
> <Array<NotificationThread>> notify_read_list(opts)
|
324
|
+
|
325
|
+
Mark notification threads as read, pinned or unread
|
326
|
+
|
327
|
+
### Examples
|
328
|
+
|
329
|
+
```ruby
|
330
|
+
require 'time'
|
331
|
+
require 'forgejo'
|
332
|
+
# setup authorization
|
333
|
+
Forgejo.configure do |config|
|
334
|
+
# Configure API key authorization: AuthorizationHeaderToken
|
335
|
+
config.api_key['Authorization'] = 'YOUR API KEY'
|
336
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
337
|
+
# config.api_key_prefix['Authorization'] = 'Bearer'
|
338
|
+
end
|
339
|
+
|
340
|
+
api_instance = Forgejo::NotificationApi.new
|
341
|
+
opts = {
|
342
|
+
last_read_at: Time.parse('2013-10-20T19:20:30+01:00'), # Time | Describes the last point that notifications were checked. Anything updated since this time will not be updated.
|
343
|
+
all: 'all_example', # String | If true, mark all notifications on this repo. Default value is false
|
344
|
+
status_types: ['inner_example'], # Array<String> | Mark notifications with the provided status types. Options are: unread, read and/or pinned. Defaults to unread.
|
345
|
+
to_status: 'to_status_example' # String | Status to mark notifications as, Defaults to read.
|
346
|
+
}
|
347
|
+
|
348
|
+
begin
|
349
|
+
# Mark notification threads as read, pinned or unread
|
350
|
+
result = api_instance.notify_read_list(opts)
|
351
|
+
p result
|
352
|
+
rescue Forgejo::ApiError => e
|
353
|
+
puts "Error when calling NotificationApi->notify_read_list: #{e}"
|
354
|
+
end
|
355
|
+
```
|
356
|
+
|
357
|
+
#### Using the notify_read_list_with_http_info variant
|
358
|
+
|
359
|
+
This returns an Array which contains the response data, status code and headers.
|
360
|
+
|
361
|
+
> <Array(<Array<NotificationThread>>, Integer, Hash)> notify_read_list_with_http_info(opts)
|
362
|
+
|
363
|
+
```ruby
|
364
|
+
begin
|
365
|
+
# Mark notification threads as read, pinned or unread
|
366
|
+
data, status_code, headers = api_instance.notify_read_list_with_http_info(opts)
|
367
|
+
p status_code # => 2xx
|
368
|
+
p headers # => { ... }
|
369
|
+
p data # => <Array<NotificationThread>>
|
370
|
+
rescue Forgejo::ApiError => e
|
371
|
+
puts "Error when calling NotificationApi->notify_read_list_with_http_info: #{e}"
|
372
|
+
end
|
373
|
+
```
|
374
|
+
|
375
|
+
### Parameters
|
376
|
+
|
377
|
+
| Name | Type | Description | Notes |
|
378
|
+
| ---- | ---- | ----------- | ----- |
|
379
|
+
| **last_read_at** | **Time** | Describes the last point that notifications were checked. Anything updated since this time will not be updated. | [optional] |
|
380
|
+
| **all** | **String** | If true, mark all notifications on this repo. Default value is false | [optional] |
|
381
|
+
| **status_types** | [**Array<String>**](String.md) | Mark notifications with the provided status types. Options are: unread, read and/or pinned. Defaults to unread. | [optional] |
|
382
|
+
| **to_status** | **String** | Status to mark notifications as, Defaults to read. | [optional] |
|
383
|
+
|
384
|
+
### Return type
|
385
|
+
|
386
|
+
[**Array<NotificationThread>**](NotificationThread.md)
|
387
|
+
|
388
|
+
### Authorization
|
389
|
+
|
390
|
+
[AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken)
|
391
|
+
|
392
|
+
### HTTP request headers
|
393
|
+
|
394
|
+
- **Content-Type**: Not defined
|
395
|
+
- **Accept**: application/json
|
396
|
+
|
397
|
+
|
398
|
+
## notify_read_repo_list
|
399
|
+
|
400
|
+
> <Array<NotificationThread>> notify_read_repo_list(owner, repo, opts)
|
401
|
+
|
402
|
+
Mark notification threads as read, pinned or unread on a specific repo
|
403
|
+
|
404
|
+
### Examples
|
405
|
+
|
406
|
+
```ruby
|
407
|
+
require 'time'
|
408
|
+
require 'forgejo'
|
409
|
+
# setup authorization
|
410
|
+
Forgejo.configure do |config|
|
411
|
+
# Configure API key authorization: AuthorizationHeaderToken
|
412
|
+
config.api_key['Authorization'] = 'YOUR API KEY'
|
413
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
414
|
+
# config.api_key_prefix['Authorization'] = 'Bearer'
|
415
|
+
end
|
416
|
+
|
417
|
+
api_instance = Forgejo::NotificationApi.new
|
418
|
+
owner = 'owner_example' # String | owner of the repo
|
419
|
+
repo = 'repo_example' # String | name of the repo
|
420
|
+
opts = {
|
421
|
+
all: 'all_example', # String | If true, mark all notifications on this repo. Default value is false
|
422
|
+
status_types: ['inner_example'], # Array<String> | Mark notifications with the provided status types. Options are: unread, read and/or pinned. Defaults to unread.
|
423
|
+
to_status: 'to_status_example', # String | Status to mark notifications as. Defaults to read.
|
424
|
+
last_read_at: Time.parse('2013-10-20T19:20:30+01:00') # Time | Describes the last point that notifications were checked. Anything updated since this time will not be updated.
|
425
|
+
}
|
426
|
+
|
427
|
+
begin
|
428
|
+
# Mark notification threads as read, pinned or unread on a specific repo
|
429
|
+
result = api_instance.notify_read_repo_list(owner, repo, opts)
|
430
|
+
p result
|
431
|
+
rescue Forgejo::ApiError => e
|
432
|
+
puts "Error when calling NotificationApi->notify_read_repo_list: #{e}"
|
433
|
+
end
|
434
|
+
```
|
435
|
+
|
436
|
+
#### Using the notify_read_repo_list_with_http_info variant
|
437
|
+
|
438
|
+
This returns an Array which contains the response data, status code and headers.
|
439
|
+
|
440
|
+
> <Array(<Array<NotificationThread>>, Integer, Hash)> notify_read_repo_list_with_http_info(owner, repo, opts)
|
441
|
+
|
442
|
+
```ruby
|
443
|
+
begin
|
444
|
+
# Mark notification threads as read, pinned or unread on a specific repo
|
445
|
+
data, status_code, headers = api_instance.notify_read_repo_list_with_http_info(owner, repo, opts)
|
446
|
+
p status_code # => 2xx
|
447
|
+
p headers # => { ... }
|
448
|
+
p data # => <Array<NotificationThread>>
|
449
|
+
rescue Forgejo::ApiError => e
|
450
|
+
puts "Error when calling NotificationApi->notify_read_repo_list_with_http_info: #{e}"
|
451
|
+
end
|
452
|
+
```
|
453
|
+
|
454
|
+
### Parameters
|
455
|
+
|
456
|
+
| Name | Type | Description | Notes |
|
457
|
+
| ---- | ---- | ----------- | ----- |
|
458
|
+
| **owner** | **String** | owner of the repo | |
|
459
|
+
| **repo** | **String** | name of the repo | |
|
460
|
+
| **all** | **String** | If true, mark all notifications on this repo. Default value is false | [optional] |
|
461
|
+
| **status_types** | [**Array<String>**](String.md) | Mark notifications with the provided status types. Options are: unread, read and/or pinned. Defaults to unread. | [optional] |
|
462
|
+
| **to_status** | **String** | Status to mark notifications as. Defaults to read. | [optional] |
|
463
|
+
| **last_read_at** | **Time** | Describes the last point that notifications were checked. Anything updated since this time will not be updated. | [optional] |
|
464
|
+
|
465
|
+
### Return type
|
466
|
+
|
467
|
+
[**Array<NotificationThread>**](NotificationThread.md)
|
468
|
+
|
469
|
+
### Authorization
|
470
|
+
|
471
|
+
[AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken)
|
472
|
+
|
473
|
+
### HTTP request headers
|
474
|
+
|
475
|
+
- **Content-Type**: Not defined
|
476
|
+
- **Accept**: application/json
|
477
|
+
|
478
|
+
|
479
|
+
## notify_read_thread
|
480
|
+
|
481
|
+
> <NotificationThread> notify_read_thread(id, opts)
|
482
|
+
|
483
|
+
Mark notification thread as read by ID
|
484
|
+
|
485
|
+
### Examples
|
486
|
+
|
487
|
+
```ruby
|
488
|
+
require 'time'
|
489
|
+
require 'forgejo'
|
490
|
+
# setup authorization
|
491
|
+
Forgejo.configure do |config|
|
492
|
+
# Configure API key authorization: AuthorizationHeaderToken
|
493
|
+
config.api_key['Authorization'] = 'YOUR API KEY'
|
494
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
495
|
+
# config.api_key_prefix['Authorization'] = 'Bearer'
|
496
|
+
end
|
497
|
+
|
498
|
+
api_instance = Forgejo::NotificationApi.new
|
499
|
+
id = 'id_example' # String | id of notification thread
|
500
|
+
opts = {
|
501
|
+
to_status: 'to_status_example' # String | Status to mark notifications as
|
502
|
+
}
|
503
|
+
|
504
|
+
begin
|
505
|
+
# Mark notification thread as read by ID
|
506
|
+
result = api_instance.notify_read_thread(id, opts)
|
507
|
+
p result
|
508
|
+
rescue Forgejo::ApiError => e
|
509
|
+
puts "Error when calling NotificationApi->notify_read_thread: #{e}"
|
510
|
+
end
|
511
|
+
```
|
512
|
+
|
513
|
+
#### Using the notify_read_thread_with_http_info variant
|
514
|
+
|
515
|
+
This returns an Array which contains the response data, status code and headers.
|
516
|
+
|
517
|
+
> <Array(<NotificationThread>, Integer, Hash)> notify_read_thread_with_http_info(id, opts)
|
518
|
+
|
519
|
+
```ruby
|
520
|
+
begin
|
521
|
+
# Mark notification thread as read by ID
|
522
|
+
data, status_code, headers = api_instance.notify_read_thread_with_http_info(id, opts)
|
523
|
+
p status_code # => 2xx
|
524
|
+
p headers # => { ... }
|
525
|
+
p data # => <NotificationThread>
|
526
|
+
rescue Forgejo::ApiError => e
|
527
|
+
puts "Error when calling NotificationApi->notify_read_thread_with_http_info: #{e}"
|
528
|
+
end
|
529
|
+
```
|
530
|
+
|
531
|
+
### Parameters
|
532
|
+
|
533
|
+
| Name | Type | Description | Notes |
|
534
|
+
| ---- | ---- | ----------- | ----- |
|
535
|
+
| **id** | **String** | id of notification thread | |
|
536
|
+
| **to_status** | **String** | Status to mark notifications as | [optional][default to 'read'] |
|
537
|
+
|
538
|
+
### Return type
|
539
|
+
|
540
|
+
[**NotificationThread**](NotificationThread.md)
|
541
|
+
|
542
|
+
### Authorization
|
543
|
+
|
544
|
+
[AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken)
|
545
|
+
|
546
|
+
### HTTP request headers
|
547
|
+
|
548
|
+
- **Content-Type**: Not defined
|
549
|
+
- **Accept**: application/json
|
550
|
+
|
@@ -0,0 +1,18 @@
|
|
1
|
+
# Forgejo::NotificationCount
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **new** | **Integer** | | [optional] |
|
8
|
+
|
9
|
+
## Example
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
require 'forgejo'
|
13
|
+
|
14
|
+
instance = Forgejo::NotificationCount.new(
|
15
|
+
new: null
|
16
|
+
)
|
17
|
+
```
|
18
|
+
|
@@ -0,0 +1,30 @@
|
|
1
|
+
# Forgejo::NotificationSubject
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **html_url** | **String** | | [optional] |
|
8
|
+
| **latest_comment_html_url** | **String** | | [optional] |
|
9
|
+
| **latest_comment_url** | **String** | | [optional] |
|
10
|
+
| **state** | **String** | StateType issue state type | [optional] |
|
11
|
+
| **title** | **String** | | [optional] |
|
12
|
+
| **type** | **String** | NotifySubjectType represent type of notification subject | [optional] |
|
13
|
+
| **url** | **String** | | [optional] |
|
14
|
+
|
15
|
+
## Example
|
16
|
+
|
17
|
+
```ruby
|
18
|
+
require 'forgejo'
|
19
|
+
|
20
|
+
instance = Forgejo::NotificationSubject.new(
|
21
|
+
html_url: null,
|
22
|
+
latest_comment_html_url: null,
|
23
|
+
latest_comment_url: null,
|
24
|
+
state: null,
|
25
|
+
title: null,
|
26
|
+
type: null,
|
27
|
+
url: null
|
28
|
+
)
|
29
|
+
```
|
30
|
+
|
@@ -0,0 +1,30 @@
|
|
1
|
+
# Forgejo::NotificationThread
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **id** | **Integer** | | [optional] |
|
8
|
+
| **pinned** | **Boolean** | | [optional] |
|
9
|
+
| **repository** | [**Repository**](Repository.md) | | [optional] |
|
10
|
+
| **subject** | [**NotificationSubject**](NotificationSubject.md) | | [optional] |
|
11
|
+
| **unread** | **Boolean** | | [optional] |
|
12
|
+
| **updated_at** | **Time** | | [optional] |
|
13
|
+
| **url** | **String** | | [optional] |
|
14
|
+
|
15
|
+
## Example
|
16
|
+
|
17
|
+
```ruby
|
18
|
+
require 'forgejo'
|
19
|
+
|
20
|
+
instance = Forgejo::NotificationThread.new(
|
21
|
+
id: null,
|
22
|
+
pinned: null,
|
23
|
+
repository: null,
|
24
|
+
subject: null,
|
25
|
+
unread: null,
|
26
|
+
updated_at: null,
|
27
|
+
url: null
|
28
|
+
)
|
29
|
+
```
|
30
|
+
|
@@ -0,0 +1,30 @@
|
|
1
|
+
# Forgejo::OAuth2Application
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **client_id** | **String** | | [optional] |
|
8
|
+
| **client_secret** | **String** | | [optional] |
|
9
|
+
| **confidential_client** | **Boolean** | | [optional] |
|
10
|
+
| **created** | **Time** | | [optional] |
|
11
|
+
| **id** | **Integer** | | [optional] |
|
12
|
+
| **name** | **String** | | [optional] |
|
13
|
+
| **redirect_uris** | **Array<String>** | | [optional] |
|
14
|
+
|
15
|
+
## Example
|
16
|
+
|
17
|
+
```ruby
|
18
|
+
require 'forgejo'
|
19
|
+
|
20
|
+
instance = Forgejo::OAuth2Application.new(
|
21
|
+
client_id: null,
|
22
|
+
client_secret: null,
|
23
|
+
confidential_client: null,
|
24
|
+
created: null,
|
25
|
+
id: null,
|
26
|
+
name: null,
|
27
|
+
redirect_uris: null
|
28
|
+
)
|
29
|
+
```
|
30
|
+
|
@@ -0,0 +1,38 @@
|
|
1
|
+
# Forgejo::Organization
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **avatar_url** | **String** | | [optional] |
|
8
|
+
| **description** | **String** | | [optional] |
|
9
|
+
| **email** | **String** | | [optional] |
|
10
|
+
| **full_name** | **String** | | [optional] |
|
11
|
+
| **id** | **Integer** | | [optional] |
|
12
|
+
| **location** | **String** | | [optional] |
|
13
|
+
| **name** | **String** | | [optional] |
|
14
|
+
| **repo_admin_change_team_access** | **Boolean** | | [optional] |
|
15
|
+
| **username** | **String** | deprecated | [optional] |
|
16
|
+
| **visibility** | **String** | | [optional] |
|
17
|
+
| **website** | **String** | | [optional] |
|
18
|
+
|
19
|
+
## Example
|
20
|
+
|
21
|
+
```ruby
|
22
|
+
require 'forgejo'
|
23
|
+
|
24
|
+
instance = Forgejo::Organization.new(
|
25
|
+
avatar_url: null,
|
26
|
+
description: null,
|
27
|
+
email: null,
|
28
|
+
full_name: null,
|
29
|
+
id: null,
|
30
|
+
location: null,
|
31
|
+
name: null,
|
32
|
+
repo_admin_change_team_access: null,
|
33
|
+
username: null,
|
34
|
+
visibility: null,
|
35
|
+
website: null
|
36
|
+
)
|
37
|
+
```
|
38
|
+
|