CI / Build and test (push) Successful in 8m19s
CI / Windows tests and installer (push) Skipped
CI / YAML check (push) Successful in 7s
Release / Build, test and publish (push) Successful in 12m9s
CI / PostgreSQL 16 integration (push) Successful in 7m49s
CI / PostgreSQL 17 integration (push) Successful in 7m19s
CI / Docker image (push) Successful in 46s
Release / Server image (push) Successful in 1m14s
Owner review 1 R5 + R6. Camera rotation, mirror, flip, straighten and crop handles locked to the output; an Exposure Look group; Export output size ("proportions win"); settings format 2 with older-node gates. Also fixes project text and hashes differing between Windows and Linux.
Closes #19
Closes #20
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Alberto Balbo <alberto.balbo.96@gmail.com>
43 lines
1.9 KiB
C#
43 lines
1.9 KiB
C#
using System.Text.Json.Serialization;
|
|
|
|
namespace Chronos.Protocol;
|
|
|
|
/// <summary>Error body of every failed API call: <c>{ code, message, details }</c> (BRIEF §14.3).</summary>
|
|
public sealed record ApiError(string Code, string Message, string? Details = null);
|
|
|
|
/// <summary>Upload and account limits announced by the server.</summary>
|
|
public sealed record ServerLimits(long MaxUploadBytes, int ChunkSizeBytes, int PasswordMinLength = 10);
|
|
|
|
/// <summary><c>GET /api/v1/server/info</c>.</summary>
|
|
/// <param name="Extensions">
|
|
/// File extensions the archive files as photos (lower case, no dot): the admin panel's upload dialog offers and sends only
|
|
/// these (owner review 2, R3). Null from servers that do not announce them.
|
|
/// </param>
|
|
/// <param name="SettingsFormat">
|
|
/// The highest project settings format the server reads and renders (<c>ProjectSettings.CurrentVersion</c>, owner review 1,
|
|
/// phase 4); null from an older server, which reads format 1 only. The desktop holds back a push or a render that needs more.
|
|
/// </param>
|
|
public sealed record ServerInfo(
|
|
string Name,
|
|
string Version,
|
|
int ApiVersion,
|
|
IReadOnlyList<string> Capabilities,
|
|
string? TlsFingerprint,
|
|
IReadOnlyList<string> Formats,
|
|
ServerLimits Limits,
|
|
IReadOnlyList<string>? Extensions = null,
|
|
int? SettingsFormat = null);
|
|
|
|
/// <summary>Names of <see cref="ServerInfo.Capabilities"/> that clients act on.</summary>
|
|
public static class ServerCapabilities
|
|
{
|
|
/// <summary>
|
|
/// The server keeps its sequences' projects (owner review 2, R8): <c>/api/v1/sequences/{sid}/projects</c>, the
|
|
/// <c>projectChanged</c> event, renders of a project version. A server without it knows only the sequence's settings.
|
|
/// </summary>
|
|
public const string Projects = "projects";
|
|
}
|
|
|
|
/// <summary><c>GET /health</c>.</summary>
|
|
public sealed record HealthStatus(string Status, string Version, IReadOnlyDictionary<string, string> Checks);
|