//
// This code was generated by Refitter.
//
using Refit;
using System.Collections.Generic;
using System.IO;
using System.Text.Json.Serialization;
using System.Threading;
using System.Threading.Tasks;
using Flawless.Client.Models;
#nullable enable annotations
namespace Flawless.Client.Remote
{
[System.CodeDom.Compiler.GeneratedCode("Refitter", "1.5.5.0")]
public partial interface IFlawlessServer
{
/// A that completes when the request is finished.
/// Thrown when the request returns a non-success status code.
[Headers("Content-Type: application/json")]
[Post("/api/admin/add_user")]
Task AddUser([Body] RegisterRequest body, CancellationToken cancellationToken = default);
/// A that completes when the request is finished.
/// Thrown when the request returns a non-success status code.
[Post("/api/admin/superuser/{username}")]
Task SuperuserPost(string username, [Query] bool? toSuper, CancellationToken cancellationToken = default);
/// OK
/// Thrown when the request returns a non-success status code.
[Headers("Accept: text/plain, application/json, text/json")]
[Get("/api/admin/superuser/{username}")]
Task SuperuserGet(string username, CancellationToken cancellationToken = default);
/// OK
/// Thrown when the request returns a non-success status code.
[Headers("Accept: text/plain, application/json, text/json")]
[Get("/api/admin/user/list")]
Task> List(CancellationToken cancellationToken = default);
/// A that completes when the request is finished.
/// Thrown when the request returns a non-success status code.
[Post("/api/admin/user/delete/{username}")]
Task Delete(string username, CancellationToken cancellationToken = default);
/// A that completes when the request is finished.
/// Thrown when the request returns a non-success status code.
[Post("/api/admin/user/enable/{username}")]
Task Enable(string username, CancellationToken cancellationToken = default);
/// A that completes when the request is finished.
/// Thrown when the request returns a non-success status code.
[Post("/api/admin/user/disable/{username}")]
Task Disable(string username, CancellationToken cancellationToken = default);
/// A that completes when the request is finished.
/// Thrown when the request returns a non-success status code.
[Headers("Content-Type: application/json")]
[Post("/api/admin/user/reset_password")]
Task ResetPassword([Body] ResetPasswordRequest body, CancellationToken cancellationToken = default);
/// A that completes when the request is finished.
/// Thrown when the request returns a non-success status code.
[Headers("Content-Type: application/json")]
[Post("/api/admin/access_control/ip_whitelist")]
Task IpWhitelistPost([Body] IEnumerable body, CancellationToken cancellationToken = default);
/// OK
/// Thrown when the request returns a non-success status code.
[Headers("Accept: text/plain, application/json, text/json")]
[Get("/api/admin/access_control/ip_whitelist")]
Task> IpWhitelistGet(CancellationToken cancellationToken = default);
/// A that completes when the request is finished.
/// Thrown when the request returns a non-success status code.
[Headers("Content-Type: application/json")]
[Post("/api/admin/access_control/ip_blacklist")]
Task IpBlacklistPost([Body] IEnumerable body, CancellationToken cancellationToken = default);
/// OK
/// Thrown when the request returns a non-success status code.
[Headers("Accept: text/plain, application/json, text/json")]
[Get("/api/admin/access_control/ip_blacklist")]
Task> IpBlacklistGet(CancellationToken cancellationToken = default);
/// OK
/// Thrown when the request returns a non-success status code.
[Headers("Accept: text/plain, application/json, text/json")]
[Get("/api/admin/logs")]
Task> Logs([Query] System.DateTimeOffset startTime, [Query] System.DateTimeOffset endTime, [Query] int level, [Query] int page, [Query] int pageSize, CancellationToken cancellationToken = default);
/// OK
/// Thrown when the request returns a non-success status code.
[Headers("Accept: text/plain, application/json, text/json")]
[Get("/api/auth/status")]
Task Status(CancellationToken cancellationToken = default);
/// A that completes when the request is finished.
/// Thrown when the request returns a non-success status code.
[Headers("Content-Type: application/json")]
[Post("/api/auth/first-setup")]
Task FirstSetup([Body] FirstSetupRequest body, CancellationToken cancellationToken = default);
/// A that completes when the request is finished.
/// Thrown when the request returns a non-success status code.
[Headers("Content-Type: application/json")]
[Post("/api/auth/register")]
Task Register([Body] RegisterRequest body, CancellationToken cancellationToken = default);
/// OK
/// Thrown when the request returns a non-success status code.
[Headers("Accept: text/plain, application/json, text/json", "Content-Type: application/json")]
[Post("/api/auth/login")]
Task Login([Body] LoginRequest body, CancellationToken cancellationToken = default);
/// OK
/// Thrown when the request returns a non-success status code.
[Headers("Accept: text/plain, application/json, text/json", "Content-Type: application/json")]
[Post("/api/auth/refresh")]
Task Refresh([Body] TokenInfo body, CancellationToken cancellationToken = default);
/// A that completes when the request is finished.
/// Thrown when the request returns a non-success status code.
[Post("/api/auth/logout_all")]
Task LogoutAll(CancellationToken cancellationToken = default);
/// A that completes when the request is finished.
/// Thrown when the request returns a non-success status code.
[Headers("Content-Type: application/json")]
[Post("/api/auth/renew_password")]
Task RenewPassword([Body] ResetPasswordRequest body, CancellationToken cancellationToken = default);
/// A that completes when the request is finished.
/// Thrown when the request returns a non-success status code.
[Get("/")]
Task Index(CancellationToken cancellationToken = default);
/// OK
/// Thrown when the request returns a non-success status code.
[Headers("Accept: text/plain, application/json, text/json", "Content-Type: application/json")]
[Post("/api/issue/{userName}/{repositoryName}/create")]
Task Create(string userName, string repositoryName, [Body] CreateIssueRequest body, CancellationToken cancellationToken = default);
/// A that completes when the request is finished.
/// Thrown when the request returns a non-success status code.
[Headers("Content-Type: application/json")]
[Post("/api/issue/{userName}/{repositoryName}/{issueId}/comment")]
Task Comment(string userName, string repositoryName, int issueId, [Body] AddCommentRequest body, CancellationToken cancellationToken = default);
/// A that completes when the request is finished.
/// Thrown when the request returns a non-success status code.
[Post("/api/issue/{userName}/{repositoryName}/{issueId}/close")]
Task Close(string userName, string repositoryName, long issueId, CancellationToken cancellationToken = default);
/// OK
/// Thrown when the request returns a non-success status code.
[Headers("Accept: text/plain, application/json, text/json")]
[Get("/api/issue/{userName}/{repositoryName}/list")]
Task List(string userName, string repositoryName, CancellationToken cancellationToken = default);
/// OK
/// Thrown when the request returns a non-success status code.
[Headers("Accept: text/plain, application/json, text/json")]
[Get("/api/issue/{userName}/{repositoryName}/{issueId}")]
Task Issue(string userName, string repositoryName, int issueId, CancellationToken cancellationToken = default);
/// A that completes when the request is finished.
/// Thrown when the request returns a non-success status code.
[Headers("Content-Type: application/json")]
[Patch("/api/issue/{userName}/{repositoryName}/{issueId}/edit")]
Task Edit(string userName, string repositoryName, int issueId, [Body] UpdateIssueRequest body, CancellationToken cancellationToken = default);
/// A that completes when the request is finished.
/// Thrown when the request returns a non-success status code.
[Post("/api/issue/{userName}/{repositoryName}/{issueId}/reopen")]
Task Reopen(string userName, string repositoryName, long issueId, CancellationToken cancellationToken = default);
/// OK
/// Thrown when the request returns a non-success status code.
[Headers("Accept: text/plain, application/json, text/json")]
[Get("/api/issue/{userName}/{repositoryName}/{issueId}/comments")]
Task Comments(string userName, string repositoryName, int issueId, CancellationToken cancellationToken = default);
/// A that completes when the request is finished.
/// Thrown when the request returns a non-success status code.
[Post("/api/repo/{userName}/{repositoryName}/delete_repo")]
Task DeleteRepo(string userName, string repositoryName, CancellationToken cancellationToken = default);
/// OK
/// Thrown when the request returns a non-success status code.
[Headers("Accept: text/plain, application/json, text/json")]
[Get("/api/repo/{userName}/{repositoryName}/get_info")]
Task GetInfo(string userName, string repositoryName, CancellationToken cancellationToken = default);
/// A that completes when the request is finished.
/// Thrown when the request returns a non-success status code.
[Post("/api/repo/{userName}/{repositoryName}/archive_repo")]
Task ArchiveRepo(string userName, string repositoryName, CancellationToken cancellationToken = default);
/// A that completes when the request is finished.
/// Thrown when the request returns a non-success status code.
[Post("/api/repo/{userName}/{repositoryName}/unarchive_repo")]
Task UnarchiveRepo(string userName, string repositoryName, CancellationToken cancellationToken = default);
/// OK
/// Thrown when the request returns a non-success status code.
[Headers("Accept: text/plain, application/json, text/json")]
[Get("/api/repo/{userName}/{repositoryName}/get_users")]
Task GetUsers(string userName, string repositoryName, CancellationToken cancellationToken = default);
/// OK
/// Thrown when the request returns a non-success status code.
[Headers("Accept: text/plain, application/json, text/json")]
[Get("/api/repo/{userName}/{repositoryName}/stats")]
Task Stats(string userName, string repositoryName, CancellationToken cancellationToken = default);
/// A that completes when the request is finished.
/// Thrown when the request returns a non-success status code.
[Headers("Content-Type: application/json")]
[Post("/api/repo/{userName}/{repositoryName}/webhooks/create")]
Task Create(string userName, string repositoryName, [Body] WebhookCreateRequest body, CancellationToken cancellationToken = default);
/// OK
/// Thrown when the request returns a non-success status code.
[Headers("Accept: text/plain, application/json, text/json")]
[Get("/api/repo/{userName}/{repositoryName}/webhooks")]
Task> WebhooksGet(string userName, string repositoryName, CancellationToken cancellationToken = default);
/// A that completes when the request is finished.
/// Thrown when the request returns a non-success status code.
[Post("/api/repo/{userName}/{repositoryName}/webhooks/{webhookId}/toggle")]
Task Toggle(string userName, string repositoryName, int webhookId, [Query] bool? activate, CancellationToken cancellationToken = default);
/// A that completes when the request is finished.
/// Thrown when the request returns a non-success status code.
[Delete("/api/repo/{userName}/{repositoryName}/webhooks/{webhookId}")]
Task WebhooksDelete(string userName, string repositoryName, int webhookId, CancellationToken cancellationToken = default);
/// OK
/// Thrown when the request returns a non-success status code.
[Headers("Accept: text/plain, application/json, text/json")]
[Post("/api/repo/{userName}/{repositoryName}/fetch_manifest")]
Task FetchManifest(string userName, string repositoryName, [Query] string commitId, CancellationToken cancellationToken = default);
/// OK
/// Thrown when the request returns a non-success status code.
[Headers("Accept: text/plain, application/json, text/json")]
[Post("/api/repo/{userName}/{repositoryName}/fetch_depot")]
Task> FetchDepot(string userName, string repositoryName, [Query] string depotId, CancellationToken cancellationToken = default);
/// OK
/// Thrown when the request returns a non-success status code.
[Headers("Accept: text/plain, application/json, text/json")]
[Post("/api/repo/{userName}/{repositoryName}/list_commit")]
Task ListCommit(string userName, string repositoryName, CancellationToken cancellationToken = default);
/// OK
/// Thrown when the request returns a non-success status code.
[Headers("Accept: text/plain, application/json, text/json")]
[Post("/api/repo/{userName}/{repositoryName}/list_locked_files")]
Task ListLockedFiles(string userName, string repositoryName, CancellationToken cancellationToken = default);
/// OK
/// Thrown when the request returns a non-success status code.
[Headers("Accept: text/plain, application/json, text/json")]
[Get("/api/repo/{userName}/{repositoryName}/peek_commit")]
Task PeekCommit(string userName, string repositoryName, CancellationToken cancellationToken = default);
/// A that completes when the request is finished.
/// Thrown when the request returns a non-success status code.
[Post("/api/repo/{userName}/{repositoryName}/lock_file")]
Task LockFile(string userName, string repositoryName, [Query] string path, CancellationToken cancellationToken = default);
/// A that completes when the request is finished.
/// Thrown when the request returns a non-success status code.
[Post("/api/repo/{userName}/{repositoryName}/unlock_file")]
Task UnlockFile(string userName, string repositoryName, [Query] string path, CancellationToken cancellationToken = default);
/// OK
/// Thrown when the request returns a non-success status code.
[Multipart]
[Headers("Accept: text/plain, application/json, text/json")]
[Post("/api/repo/{userName}/{repositoryName}/create_commit")]
Task CreateCommit(string userName, string repositoryName, StreamPart depot, string message, IEnumerable workspaceSnapshot, IEnumerable requiredDepots, string mainDepotId, CancellationToken cancellationToken = default);
/// OK
/// Thrown when the request returns a non-success status code.
[Headers("Accept: text/plain, application/json, text/json")]
[Get("/api/repo_list")]
Task RepoList(CancellationToken cancellationToken = default);
/// OK
/// Thrown when the request returns a non-success status code.
[Headers("Accept: text/plain, application/json, text/json")]
[Post("/api/repo_create")]
Task RepoCreate([Query] string repositoryName, [Query] string description, CancellationToken cancellationToken = default);
/// A that completes when the request is finished.
/// Thrown when the request returns a non-success status code.
[Post("/api/update_user")]
Task UpdateUser([Query] string repositoryName, [Query] string modUser, [Query] RepositoryModel.RepositoryRole? role, CancellationToken cancellationToken = default);
/// A that completes when the request is finished.
/// Thrown when the request returns a non-success status code.
[Post("/api/delete_user")]
Task DeleteUser([Query] string repositoryName, [Query] string delUser, CancellationToken cancellationToken = default);
/// A that completes when the request is finished.
/// Thrown when the request returns a non-success status code.
[Headers("Content-Type: application/json")]
[Post("/api/user/update_info")]
Task UpdateInfo([Body] UserInfoModifyResponse body, CancellationToken cancellationToken = default);
/// A that completes when the request is finished.
/// Thrown when the request returns a non-success status code.
[Headers("Content-Type: application/json")]
[Post("/api/user/update_email")]
Task UpdateEmail([Body] UserContactModifyResponse body, CancellationToken cancellationToken = default);
/// A that completes when the request is finished.
/// Thrown when the request returns a non-success status code.
[Headers("Content-Type: application/json")]
[Post("/api/user/update_phone")]
Task UpdatePhone([Body] UserContactModifyResponse body, CancellationToken cancellationToken = default);
/// OK
/// Thrown when the request returns a non-success status code.
[Headers("Accept: text/plain, application/json, text/json")]
[Get("/api/user/get_info")]
Task GetInfo([Query] string username, CancellationToken cancellationToken = default);
/// OK
/// Thrown when the request returns a non-success status code.
[Headers("Accept: text/plain, application/json, text/json")]
[Get("/api/user/query_info")]
Task QueryInfo([Query] string keyword, CancellationToken cancellationToken = default);
/// A that completes when the request is finished.
/// Thrown when the request returns a non-success status code.
[Get("/api/user/delete")]
Task Delete(CancellationToken cancellationToken = default);
}
}
//----------------------
//
// Generated using the NSwag toolchain v14.4.0.0 (NJsonSchema v11.3.2.0 (Newtonsoft.Json v13.0.0.0)) (http://NSwag.org)
//
//----------------------
#pragma warning disable 108 // Disable "CS0108 '{derivedDto}.ToJson()' hides inherited member '{dtoBase}.ToJson()'. Use the new keyword if hiding was intended."
#pragma warning disable 114 // Disable "CS0114 '{derivedDto}.RaisePropertyChanged(String)' hides inherited member 'dtoBase.RaisePropertyChanged(String)'. To make the current member override that implementation, add the override keyword. Otherwise add the new keyword."
#pragma warning disable 472 // Disable "CS0472 The result of the expression is always 'false' since a value of type 'Int32' is never equal to 'null' of type 'Int32?'
#pragma warning disable 612 // Disable "CS0612 '...' is obsolete"
#pragma warning disable 649 // Disable "CS0649 Field is never assigned to, and will always have its default value null"
#pragma warning disable 1573 // Disable "CS1573 Parameter '...' has no matching param tag in the XML comment for ...
#pragma warning disable 1591 // Disable "CS1591 Missing XML comment for publicly visible type or member ..."
#pragma warning disable 8073 // Disable "CS8073 The result of the expression is always 'false' since a value of type 'T' is never equal to 'null' of type 'T?'"
#pragma warning disable 3016 // Disable "CS3016 Arrays as attribute arguments is not CLS-compliant"
#pragma warning disable 8600 // Disable "CS8600 Converting null literal or possible null value to non-nullable type"
#pragma warning disable 8602 // Disable "CS8602 Dereference of a possibly null reference"
#pragma warning disable 8603 // Disable "CS8603 Possible null reference return"
#pragma warning disable 8604 // Disable "CS8604 Possible null reference argument for parameter"
#pragma warning disable 8625 // Disable "CS8625 Cannot convert null literal to non-nullable reference type"
#pragma warning disable 8765 // Disable "CS8765 Nullability of type of parameter doesn't match overridden member (possibly because of nullability attributes)."
namespace Flawless.Client.Remote
{
using System = global::System;
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.4.0.0 (NJsonSchema v11.3.2.0 (Newtonsoft.Json v13.0.0.0))")]
public partial class AddCommentRequest
{
public string Content;
public int? ReplyTo;
}
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.4.0.0 (NJsonSchema v11.3.2.0 (Newtonsoft.Json v13.0.0.0))")]
public partial class CommentResponse
{
[JsonPropertyName("commentId")]
public int CommentId { get; set; }
[JsonPropertyName("author")]
public string Author { get; set; }
[JsonPropertyName("content")]
public string Content { get; set; }
[JsonPropertyName("createdAt")]
public System.DateTimeOffset CreatedAt { get; set; }
[JsonPropertyName("replyToId")]
public int? ReplyToId { get; set; }
}
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.4.0.0 (NJsonSchema v11.3.2.0 (Newtonsoft.Json v13.0.0.0))")]
public partial class CommentResponseListingResponse
{
[JsonPropertyName("result")]
public ICollection Result { get; set; }
}
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.4.0.0 (NJsonSchema v11.3.2.0 (Newtonsoft.Json v13.0.0.0))")]
public partial class CommitByDayDetail
{
[JsonPropertyName("day")]
public System.DateTimeOffset Day { get; set; }
[JsonPropertyName("count")]
public int Count { get; set; }
}
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.4.0.0 (NJsonSchema v11.3.2.0 (Newtonsoft.Json v13.0.0.0))")]
public partial class CommitByPersonDetail
{
[JsonPropertyName("username")]
public string Username { get; set; }
[JsonPropertyName("count")]
public int Count { get; set; }
}
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.4.0.0 (NJsonSchema v11.3.2.0 (Newtonsoft.Json v13.0.0.0))")]
public partial class CommitManifest
{
[JsonPropertyName("manifestId")]
public System.Guid ManifestId { get; set; }
[JsonPropertyName("depot")]
public ICollection Depot { get; set; }
[JsonPropertyName("filePaths")]
public ICollection FilePaths { get; set; }
}
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.4.0.0 (NJsonSchema v11.3.2.0 (Newtonsoft.Json v13.0.0.0))")]
public partial class CommitSuccessResponse
{
[JsonPropertyName("committedOn")]
public System.DateTimeOffset CommittedOn { get; set; }
[JsonPropertyName("commitId")]
public System.Guid CommitId { get; set; }
[JsonPropertyName("mainDepotId")]
public System.Guid MainDepotId { get; set; }
}
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.4.0.0 (NJsonSchema v11.3.2.0 (Newtonsoft.Json v13.0.0.0))")]
public partial class CreateIssueRequest
{
[JsonPropertyName("title")]
public string Title { get; set; }
[JsonPropertyName("description")]
public string Description { get; set; }
[JsonPropertyName("tag")]
public string Tag { get; set; }
}
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.4.0.0 (NJsonSchema v11.3.2.0 (Newtonsoft.Json v13.0.0.0))")]
public partial class DepotDetail
{
[JsonPropertyName("depotName")]
public string DepotName { get; set; }
[JsonPropertyName("depotSize")]
public long DepotSize { get; set; }
}
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.4.0.0 (NJsonSchema v11.3.2.0 (Newtonsoft.Json v13.0.0.0))")]
public partial class DepotLabel
{
[JsonPropertyName("id")]
public System.Guid Id { get; set; }
[JsonPropertyName("length")]
public long Length { get; set; }
}
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.4.0.0 (NJsonSchema v11.3.2.0 (Newtonsoft.Json v13.0.0.0))")]
public partial class FirstSetupRequest
{
[JsonPropertyName("adminEmail")]
public string AdminEmail { get; set; }
[JsonPropertyName("adminUsername")]
public string AdminUsername { get; set; }
[JsonPropertyName("adminPassword")]
public string AdminPassword { get; set; }
}
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.4.0.0 (NJsonSchema v11.3.2.0 (Newtonsoft.Json v13.0.0.0))")]
public partial class GuidPeekResponse
{
[JsonPropertyName("result")]
public System.Guid Result { get; set; }
}
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.4.0.0 (NJsonSchema v11.3.2.0 (Newtonsoft.Json v13.0.0.0))")]
public partial class IssueDetailInfo
{
[JsonPropertyName("id")]
public int Id { get; set; }
[JsonPropertyName("author")]
public string Author { get; set; }
[JsonPropertyName("title")]
public string Title { get; set; }
[JsonPropertyName("description")]
public string Description { get; set; }
[JsonPropertyName("createAt")]
public System.DateTimeOffset CreateAt { get; set; }
[JsonPropertyName("lastUpdate")]
public System.DateTimeOffset LastUpdate { get; set; }
[JsonPropertyName("closed")]
public bool Closed { get; set; }
[JsonPropertyName("tag")]
public string Tag { get; set; }
}
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.4.0.0 (NJsonSchema v11.3.2.0 (Newtonsoft.Json v13.0.0.0))")]
public partial class IssueInfo
{
[JsonPropertyName("id")]
public int Id { get; set; }
[JsonPropertyName("author")]
public string Author { get; set; }
[JsonPropertyName("title")]
public string Title { get; set; }
[JsonPropertyName("createAt")]
public System.DateTimeOffset CreateAt { get; set; }
[JsonPropertyName("lastUpdate")]
public System.DateTimeOffset LastUpdate { get; set; }
[JsonPropertyName("closed")]
public bool Closed { get; set; }
[JsonPropertyName("tag")]
public string Tag { get; set; }
}
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.4.0.0 (NJsonSchema v11.3.2.0 (Newtonsoft.Json v13.0.0.0))")]
public partial class IssueInfoListingResponse
{
[JsonPropertyName("result")]
public ICollection Result { get; set; }
}
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.4.0.0 (NJsonSchema v11.3.2.0 (Newtonsoft.Json v13.0.0.0))")]
public partial class LockFileInfo
{
[JsonPropertyName("path")]
public string Path { get; set; }
[JsonPropertyName("owner")]
public string Owner { get; set; }
}
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.4.0.0 (NJsonSchema v11.3.2.0 (Newtonsoft.Json v13.0.0.0))")]
public partial class LockFileInfoListingResponse
{
[JsonPropertyName("result")]
public ICollection Result { get; set; }
}
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.4.0.0 (NJsonSchema v11.3.2.0 (Newtonsoft.Json v13.0.0.0))")]
public partial class LogEntryResponse
{
[JsonPropertyName("timestamp")]
public System.DateTimeOffset Timestamp { get; set; }
[JsonPropertyName("level")]
public string Level { get; set; }
[JsonPropertyName("message")]
public string Message { get; set; }
[JsonPropertyName("exception")]
public string Exception { get; set; }
}
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.4.0.0 (NJsonSchema v11.3.2.0 (Newtonsoft.Json v13.0.0.0))")]
public partial class LoginRequest
{
[JsonPropertyName("username")]
[System.ComponentModel.DataAnnotations.Required(AllowEmptyStrings = true)]
public string Username { get; set; }
[JsonPropertyName("password")]
[System.ComponentModel.DataAnnotations.Required(AllowEmptyStrings = true)]
public string Password { get; set; }
}
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.4.0.0 (NJsonSchema v11.3.2.0 (Newtonsoft.Json v13.0.0.0))")]
public partial class RegisterRequest
{
[JsonPropertyName("email")]
[System.ComponentModel.DataAnnotations.Required(AllowEmptyStrings = true)]
public string Email { get; set; }
[JsonPropertyName("username")]
[System.ComponentModel.DataAnnotations.Required(AllowEmptyStrings = true)]
public string Username { get; set; }
[JsonPropertyName("password")]
[System.ComponentModel.DataAnnotations.Required(AllowEmptyStrings = true)]
public string Password { get; set; }
}
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.4.0.0 (NJsonSchema v11.3.2.0 (Newtonsoft.Json v13.0.0.0))")]
public partial class RepoStatisticResponse
{
[JsonPropertyName("depots")]
public ICollection Depots { get; set; }
[JsonPropertyName("commitByPerson")]
public ICollection CommitByPerson { get; set; }
[JsonPropertyName("commitByDay")]
public ICollection CommitByDay { get; set; }
}
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.4.0.0 (NJsonSchema v11.3.2.0 (Newtonsoft.Json v13.0.0.0))")]
public partial class RepoUserRole
{
[JsonPropertyName("username")]
[System.ComponentModel.DataAnnotations.Required(AllowEmptyStrings = true)]
public string Username { get; set; }
[JsonPropertyName("role")]
public RepositoryRole Role { get; set; }
}
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.4.0.0 (NJsonSchema v11.3.2.0 (Newtonsoft.Json v13.0.0.0))")]
public partial class RepoUserRoleListingResponse
{
[JsonPropertyName("result")]
public ICollection Result { get; set; }
}
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.4.0.0 (NJsonSchema v11.3.2.0 (Newtonsoft.Json v13.0.0.0))")]
public partial class RepositoryCommitResponse
{
[JsonPropertyName("id")]
public System.Guid Id { get; set; }
[JsonPropertyName("author")]
public string Author { get; set; }
[JsonPropertyName("commitedOn")]
public System.DateTimeOffset CommitedOn { get; set; }
[JsonPropertyName("message")]
public string Message { get; set; }
[JsonPropertyName("mainDepotId")]
public System.Guid MainDepotId { get; set; }
}
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.4.0.0 (NJsonSchema v11.3.2.0 (Newtonsoft.Json v13.0.0.0))")]
public partial class RepositoryCommitResponseListingResponse
{
[JsonPropertyName("result")]
public ICollection Result { get; set; }
}
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.4.0.0 (NJsonSchema v11.3.2.0 (Newtonsoft.Json v13.0.0.0))")]
public partial class RepositoryInfoResponse
{
[JsonPropertyName("repositoryName")]
[System.ComponentModel.DataAnnotations.Required(AllowEmptyStrings = true)]
public string RepositoryName { get; set; }
[JsonPropertyName("ownerUsername")]
[System.ComponentModel.DataAnnotations.Required(AllowEmptyStrings = true)]
public string OwnerUsername { get; set; }
[JsonPropertyName("description")]
public string Description { get; set; }
[JsonPropertyName("isArchived")]
public bool IsArchived { get; set; }
[JsonPropertyName("role")]
public RepositoryRole Role { get; set; }
}
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.4.0.0 (NJsonSchema v11.3.2.0 (Newtonsoft.Json v13.0.0.0))")]
public partial class RepositoryInfoResponseListingResponse
{
[JsonPropertyName("result")]
public ICollection Result { get; set; }
}
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.4.0.0 (NJsonSchema v11.3.2.0 (Newtonsoft.Json v13.0.0.0))")]
public enum RepositoryRole
{
_0 = 0,
_1 = 1,
_2 = 2,
_3 = 3,
}
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.4.0.0 (NJsonSchema v11.3.2.0 (Newtonsoft.Json v13.0.0.0))")]
public partial class ResetPasswordRequest
{
[JsonPropertyName("identity")]
public string Identity { get; set; }
[JsonPropertyName("oldPassword")]
public string OldPassword { get; set; }
[JsonPropertyName("newPassword")]
[System.ComponentModel.DataAnnotations.Required(AllowEmptyStrings = true)]
public string NewPassword { get; set; }
}
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.4.0.0 (NJsonSchema v11.3.2.0 (Newtonsoft.Json v13.0.0.0))")]
public partial class ServerStatusResponse
{
[JsonPropertyName("friendlyName")]
public string FriendlyName { get; set; }
[JsonPropertyName("allowPublicRegister")]
public bool AllowPublicRegister { get; set; }
[JsonPropertyName("allowWebHook")]
public bool AllowWebHook { get; set; }
[JsonPropertyName("requireInitialization")]
public bool RequireInitialization { get; set; }
}
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.4.0.0 (NJsonSchema v11.3.2.0 (Newtonsoft.Json v13.0.0.0))")]
public partial class TokenInfo
{
[JsonPropertyName("token")]
[System.ComponentModel.DataAnnotations.Required(AllowEmptyStrings = true)]
public string Token { get; set; }
[JsonPropertyName("expiration")]
public System.DateTimeOffset? Expiration { get; set; }
}
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.4.0.0 (NJsonSchema v11.3.2.0 (Newtonsoft.Json v13.0.0.0))")]
public partial class UpdateIssueRequest
{
[JsonPropertyName("title")]
public string Title { get; set; }
[JsonPropertyName("description")]
public string Description { get; set; }
[JsonPropertyName("tag")]
public string Tag { get; set; }
}
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.4.0.0 (NJsonSchema v11.3.2.0 (Newtonsoft.Json v13.0.0.0))")]
public partial class UserContactModifyResponse
{
[JsonPropertyName("email")]
public string Email { get; set; }
[JsonPropertyName("phone")]
public string Phone { get; set; }
}
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.4.0.0 (NJsonSchema v11.3.2.0 (Newtonsoft.Json v13.0.0.0))")]
public partial class UserInfoModifyResponse
{
[JsonPropertyName("nickName")]
public string NickName { get; set; }
[JsonPropertyName("gender")]
public int Gender { get; set; }
[JsonPropertyName("bio")]
public string Bio { get; set; }
[JsonPropertyName("publicEmail")]
public bool? PublicEmail { get; set; }
}
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.4.0.0 (NJsonSchema v11.3.2.0 (Newtonsoft.Json v13.0.0.0))")]
public partial class UserInfoResponse
{
[JsonPropertyName("authorized")]
public bool Authorized { get; set; }
[JsonPropertyName("username")]
public string Username { get; set; }
[JsonPropertyName("nickName")]
public string NickName { get; set; }
[JsonPropertyName("gender")]
public UserSex Gender { get; set; }
[JsonPropertyName("bio")]
public string Bio { get; set; }
[JsonPropertyName("email")]
public string Email { get; set; }
[JsonPropertyName("phone")]
public string Phone { get; set; }
[JsonPropertyName("publicEmail")]
public bool? PublicEmail { get; set; }
[JsonPropertyName("createdAt")]
public System.DateTimeOffset? CreatedAt { get; set; }
[JsonPropertyName("isAdmin")]
public bool? IsAdmin { get; set; }
[JsonPropertyName("isActive")]
public bool IsActive { get; set; }
}
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.4.0.0 (NJsonSchema v11.3.2.0 (Newtonsoft.Json v13.0.0.0))")]
public partial class UserInfoResponseListingResponse
{
[JsonPropertyName("result")]
public ICollection Result { get; set; }
}
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.4.0.0 (NJsonSchema v11.3.2.0 (Newtonsoft.Json v13.0.0.0))")]
public enum UserSex
{
_0 = 0,
_1 = 1,
_2 = 2,
_3 = 3,
}
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.4.0.0 (NJsonSchema v11.3.2.0 (Newtonsoft.Json v13.0.0.0))")]
public partial class WebhookCreateRequest
{
[JsonPropertyName("targetUrl")]
public string TargetUrl { get; set; }
[JsonPropertyName("eventType")]
public int EventType { get; set; }
[JsonPropertyName("secret")]
public string Secret { get; set; }
}
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.4.0.0 (NJsonSchema v11.3.2.0 (Newtonsoft.Json v13.0.0.0))")]
public partial class WebhookResponse
{
[JsonPropertyName("id")]
public int Id { get; set; }
[JsonPropertyName("targetUrl")]
public string TargetUrl { get; set; }
[JsonPropertyName("eventType")]
public int EventType { get; set; }
[JsonPropertyName("isActive")]
public bool IsActive { get; set; }
[JsonPropertyName("createdAt")]
public System.DateTimeOffset CreatedAt { get; set; }
}
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.4.0.0 (NJsonSchema v11.3.2.0 (Newtonsoft.Json v13.0.0.0))")]
public partial class WorkspaceFile
{
[JsonPropertyName("modifyTime")]
public System.DateTimeOffset ModifyTime { get; set; }
[JsonPropertyName("workPath")]
public string WorkPath { get; set; }
[JsonPropertyName("size")]
public long Size { get; set; }
}
[System.CodeDom.Compiler.GeneratedCode("NSwag", "14.4.0.0 (NJsonSchema v11.3.2.0 (Newtonsoft.Json v13.0.0.0))")]
public partial class FileParameter
{
public FileParameter(System.IO.Stream data)
: this (data, null, null)
{
}
public FileParameter(System.IO.Stream data, string fileName)
: this (data, fileName, null)
{
}
public FileParameter(System.IO.Stream data, string fileName, string contentType)
{
Data = data;
FileName = fileName;
ContentType = contentType;
}
public System.IO.Stream Data { get; private set; }
public string FileName { get; private set; }
public string ContentType { get; private set; }
}
[System.CodeDom.Compiler.GeneratedCode("NSwag", "14.4.0.0 (NJsonSchema v11.3.2.0 (Newtonsoft.Json v13.0.0.0))")]
public partial class FileResponse : System.IDisposable
{
private System.IDisposable _client;
private System.IDisposable _response;
public int StatusCode { get; private set; }
public IReadOnlyDictionary> Headers { get; private set; }
public System.IO.Stream Stream { get; private set; }
public bool IsPartial
{
get { return StatusCode == 206; }
}
public FileResponse(int statusCode, IReadOnlyDictionary> headers, System.IO.Stream stream, System.IDisposable client, System.IDisposable response)
{
StatusCode = statusCode;
Headers = headers;
Stream = stream;
_client = client;
_response = response;
}
public void Dispose()
{
Stream.Dispose();
if (_response != null)
_response.Dispose();
if (_client != null)
_client.Dispose();
}
}
}
#pragma warning restore 108
#pragma warning restore 114
#pragma warning restore 472
#pragma warning restore 612
#pragma warning restore 1573
#pragma warning restore 1591
#pragma warning restore 8073
#pragma warning restore 3016
#pragma warning restore 8600
#pragma warning restore 8602
#pragma warning restore 8603
#pragma warning restore 8604
#pragma warning restore 8625