API: add component update transactions

This commit is contained in:
faumaray committed 2026-07-29 00:33:26 +03:00
1 parent 14b6f7a046
commit a1ee8ef10b
2 files changed
+18 -4

No files matched your search

+12 -2
View File
@@ -217,6 +217,10 @@ namespace Echoion::Api
};
struct UpdateSourceConfig {
// "direct" addresses one feed document. "component-layout"
// addresses a channel root containing catalog.json and component
// discovery documents.
std::string kind = "direct";
// Empty is only meaningful for the built-in "official" source and
// resolves to the URL injected by the release build.
std::string url;
@@ -265,8 +269,14 @@ namespace Echoion::Api
// Number of previous healthy versions retained in addition to
// active.
uint32_t retainHealthyVersions = 2;
std::map<std::string, UpdateSourceConfig> sources = {
{"official", UpdateSourceConfig{}}};
std::map<std::string, UpdateSourceConfig> sources = {{
"official",
UpdateSourceConfig{.kind = "component-layout",
.url = {},
.publicKeys = {},
.allowUnsigned = false,
.bearerTokenEnv = {}},
}};
UpdateComponentConfig runtime;
UpdateComponentConfig core;
PluginUpdatesConfig plugins;
+6 -2
View File
@@ -119,14 +119,18 @@ namespace Echoion::Api
SendTeamSpeakChannelMessage,
SendTeamSpeakServerMessage,
// Component updater (append-only; values 89-95).
// Component updater (append-only; values 89-99).
GetUpdateStatus,
GetUpdateConfig,
SetUpdateConfig,
CheckForUpdates,
ApplyUpdate,
RollbackUpdate,
ConfirmUnsignedUpdate
ConfirmUnsignedUpdate,
PreviewUpdateTransaction,
ApplyUpdateTransaction,
RollbackUpdateGeneration,
GetUpdateHistory
};
struct RpcRequest {