Skip to content

DownloadBenefit

Public download-eligibility schema with explicit asset revision and duration.

const DownloadBenefit: Schema.Struct<{
type: Schema.tag<"download">;
asset: Schema.Struct<{
key: Schema.brand<Schema.String, "DownloadAssetKey">;
revision: Schema.brand<Schema.Int, "DefinitionRevision">;
}>;
duration: Schema.Union<readonly [Schema.Literals<readonly ["perpetual", "purchased_period"]>, Schema.Struct<{
type: Schema.tag<"fixed">;
months: Schema.brand<Schema.Int, "BenefitDurationMonths">;
anchor: Schema.Literal<"settlement">;
calendar: Schema.Literal<"utc_clamped">;
}>]>;
}>;