Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
1 contributor

Users who have contributed to this file

32 lines (28 sloc) 1.21 KB
@0x805eb2f9d3deb354;
using D = import "data.capnp";
struct AssetPath {
id @0 :D.AssetUuid;
path @1 :Data;
}
struct PathAssets {
path @0 :Data;
assets @1 :List(D.AssetUuid);
}
interface AssetHub {
registerListener @0 (listener :Listener) -> ();
getSnapshot @1 () -> (snapshot :Snapshot);
interface Snapshot {
getAssetMetadata @0 (assets :List(D.AssetUuid)) -> (assets :List(D.AssetMetadata));
getAssetMetadataWithDependencies @1 (assets :List(D.AssetUuid)) -> (assets :List(D.AssetMetadata));
getAllAssetMetadata @2 () -> (assets :List(D.AssetMetadata));
getLatestAssetChange @3 () -> (num :UInt64);
getAssetChanges @4 (start :UInt64, count :UInt64) -> (changes :List(D.AssetChangeLogEntry));
getPathForAssets @5 (assets :List(D.AssetUuid)) -> (paths :List(AssetPath));
getAssetsForPaths @6 (paths :List(Data)) -> (assets :List(PathAssets));
getBuildArtifacts @7 (assets :List(D.AssetUuid), parameters :D.BuildParameters) -> (artifacts :List(D.Artifact));
}
interface Listener {
# Called on registration and when a batch of asset updates have been processed
update @0 (latestChange :UInt64, snapshot :Snapshot);
}
}
You can’t perform that action at this time.