backend
@fungi.computer/app-release / backend
backend
Section titled “backend”Variables
Section titled “Variables”durableBackendSchema
Section titled “durableBackendSchema”
constdurableBackendSchema:Struct<{runtime:Struct<{kind:Literal<["durable-facet"]>;stateSchema:filter<filter<typeofNumber$>>>>; }>;compatibilityDate:filter<typeofString$>>;exportName:filter<typeofString$>>;code:filter<typeofString$>>; }>
This immutable descriptor is stored inside the verified Release artifact.
backendMediaType
Section titled “backendMediaType”
constbackendMediaType:"application/vnd.fungi.app-backend+json"
Content type separating executable backend artifacts from website HTML.
backendJsonSchema
Section titled “backendJsonSchema”
constbackendJsonSchema:transform<SchemaClass<unknown,string,never>>,Struct<{runtime:Struct<{kind:Literal<["durable-facet"]>;stateSchema:filter<filter<typeofNumber$>>>>; }>;compatibilityDate:filter<typeofString$>>;exportName:filter<typeofString$>>;code:filter<typeofString$>>; }>>
Maintained JSON codec for immutable backend bytes.
Functions
Section titled “Functions”resolveDurableBackend()
Section titled “resolveDurableBackend()”resolveDurableBackend(
catalog,releaseId):Effect<{release:Release;digest:Sha256Digest;backend:Readonly<{runtime:Readonly<{kind:"durable-facet";stateSchema:number; }>;compatibilityDate:string;exportName:string;code:string; }>; },AppReleaseCoreFailure,never>>
Resolve through catalog eligibility and digest verification before decoding code.
Parameters
Section titled “Parameters”catalog
Section titled “catalog”Pick<AppReleaseCore, "resolveEligibleApp">
releaseId
Section titled “releaseId”Returns
Section titled “Returns”Effect<{ release: Release; digest:
Sha256Digest; backend: Readonly<{ runtime:
Readonly<{ kind: "durable-facet"; stateSchema: number; }>;
compatibilityDate: string; exportName: string; code: string; }>;
}, AppReleaseCoreFailure, never>
References
Section titled “References”DurableBackend
Section titled “DurableBackend”Re-exports DurableBackend