API reference
backend
Import
Section titled “Import”import * as api from "@fungi.computer/puffball/backend";Exports
Section titled “Exports”| Kind | Export | Description |
|---|---|---|
| constant | durableBackendSchema | This immutable descriptor is stored inside the verified Release artifact. |
| constant | backendMediaType | Content type separating executable backend artifacts from website HTML. |
| constant | backendJsonSchema | Maintained JSON codec for immutable backend bytes. |
| function | resolveDurableBackend() | Resolve through catalog eligibility and digest verification before decoding code. |
durableBackendSchemaconstant
Section titled “durableBackendSchema”const durableBackendSchema: Struct<{ runtime: Struct<{ kind: Literal<"durable-facet">; stateSchema: Number; }>; compatibilityDate: String; exportName: String; code: String;}>;This immutable descriptor is stored inside the verified Release artifact.
backendMediaTypeconstant
Section titled “backendMediaType”const backendMediaType: "application/vnd.fungi.app-backend+json";Content type separating executable backend artifacts from website HTML.
backendJsonSchemaconstant
Section titled “backendJsonSchema”const backendJsonSchema: fromJsonString< Struct<{ runtime: Struct<{ kind: Literal<"durable-facet">; stateSchema: Number; }>; compatibilityDate: String; exportName: String; code: String; }>>;Maintained JSON codec for immutable backend bytes.
resolveDurableBackend()function
Section titled “resolveDurableBackend()”function 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”| Parameter | Type |
|---|---|
catalog |
Pick<AppReleaseCore, "resolveEligibleApp"> |
releaseId |
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