Expand description
Exposes the json_commands runtime module.
§Examples
ⓘ
use pharos_native::runtime::json_commands;§Related
crate::runtimefor sibling modules in the same crate.
Re-exports§
pub use super::database::dynamic_relational_backend;pub use super::database::dynamic_relational_runtime_audit_count;pub use super::database::dynamic_relational_runtime_export_json;pub use super::database::dynamic_relational_runtime_import_state;pub use super::database::dynamic_runtime_prepare;pub use super::database::dynamic_runtime_ready;pub use super::database::load_cli_backend_config;
Structs§
Enums§
- Object
Build Op - Public enum
ObjectBuildOpused by the runtime JSON-command surface.
Constants§
Functions§
- add_
json_ string_ or_ null - Adds a nullable string field to an object.
- app_
navigation_ 🔒text - app_
root_ 🔒relative_ path - Performs app root relative path.
- append_
date_ business_ logic_ local - Appends an ISO date to a bounded string buffer.
- append_
event_ stream_ row - Appends one event-stream row to a bounded JSON array.
- append_
generated_ surface_ relation_ checkboxes_ html - Appends relation checkbox HTML using the app-owned generated fragment contract.
- append_
generated_ surface_ select_ options_ html - Appends generated select options using the app-owned fragment contract.
- append_
json_ item - Appends one serialized item to a JSON array under construction.
- append_
json_ string_ item - Serializes and appends one string item to a JSON array under construction.
- append_
validation_ 🔒error - Appends validation error.
- apply_
base_ path_ html - Applies a base path to root-relative HTML URLs without touching external URLs.
- appointment_
time_ 🔒plus_ minutes - audit_
event_ count - Returns the audit-event count for a state JSON document.
- bounded_
state_ 🔒array - Performs bounded state array.
- build_
explore_ page_ params - Builds explore-page parameters from the public business collection.
- build_
generated_ surface_ filter_ controls_ html - Builds a generated-surface filter control fragment from contract metadata.
- build_
generated_ surface_ form_ fields_ html - Builds generated-surface form fields from contract metadata.
- build_
generated_ surface_ manage_ table_ parts - Builds generated-surface management table parts from a bounded JSON value.
- build_
generated_ surface_ sort_ options_ html - Builds generated-surface sort options from contract metadata.
- build_
layout_ page_ params - Builds layout parameters from a bounded JSON document.
- build_
layout_ 🔒page_ params_ json - Builds layout page params JSON.
- bundle_
manifest_ layer_ for_ slice - Bundles manifest layer for slice.
- bundle_
manifest_ slice_ order_ lines - Bundles manifest slice order lines.
- business_
by_ 🔒slug - Performs business by slug.
- business_
day_ 🔒matches_ group - Performs business day matches group.
- business_
payment_ 🔒provider_ paths - business_
payment_ 🔒provider_ status - business_
payment_ 🔒provider_ ui_ config - bytes_
to_ hex_ logic_ local - Converts bytes to lowercase hexadecimal text.
- capture_
checksum_ output - Captures a stable checksum string using the configured native checksum tool.
- checksum_
string - Computes a SHA-256 checksum without invoking a host utility.
- collect_
event_ stream_ row - Converts one event row into the safe Rust event-stream representation.
- compact 🔒
- Performs compact.
- conf_
lookup_ value - Looks up a safe key in a line-oriented runtime configuration file.
- contains_
casefold - Performs a bounded case-insensitive substring test.
- content_
disposition_ param - Reads a content-disposition parameter using strict quoted-field parsing.
- contrast_
text_ color_ business_ logic_ local - Returns the calendar color contrast text.
- count_
segments - Counts slash-separated route segments.
- currency_
minor_ 🔒text - Formats exact integer minor units for supported currencies without floating-point rounding.
- day_
abbrev_ for_ ymd_ business_ logic_ local - Returns the weekday abbreviation for a validated ISO date.
- days_
from_ 🔒civil - Performs days from civil.
- days_
in_ month_ business_ logic_ local - Returns the number of days in a Gregorian month.
- declared_
page_ relative_ path - Resolves a page declaration by conventional filename or explicit
page_id. - declared_
page_ 🔒relative_ path_ by_ id - Finds one bounded page declaration by its explicit
page_idfield. - dispatch_
json_ command_ entries - Dispatches a named JSON command against a persisted state file.
- dup_
or_ default - Returns an owned non-empty value or the supplied default.
- dynamic_
appointment_ detail_ page_ params_ from_ root_ json - dynamic_
appointments_ page_ params_ from_ root_ json - Builds appointments page parameters from a state root.
- dynamic_
appointments_ page_ params_ json - Loads appointments page parameters from a state file.
- dynamic_
booking_ detail_ page_ params_ from_ root_ json - dynamic_
booking_ form_ page_ params_ json - Builds the booking form parameter document.
- dynamic_
bookings_ page_ params_ json - Builds bookings page parameters from state.
- dynamic_
build_ business_ admin_ availability_ rows_ html - Renders availability rows from persisted business state.
- dynamic_
business_ admin_ page_ params_ json - Builds the business admin page parameter document.
- dynamic_
business_ admin_ service_ cards_ html - Performs dynamic business admin service cards HTML.
- dynamic_
business_ availability_ edit_ page_ params_ json - Builds the availability edit page parameters from persisted state.
- dynamic_
business_ calendar_ page_ params_ from_ root_ json - Builds the business calendar page parameters.
- dynamic_
business_ calendar_ page_ params_ json - Loads business calendar parameters from state.
- dynamic_
business_ calendar_ template_ params_ from_ root_ json - Builds business calendar page params from a loaded state root.
- dynamic_
business_ create_ page_ params_ json - Builds the business create page parameters.
- dynamic_
business_ dashboard_ page_ params_ from_ root_ json - Builds the business dashboard page parameters.
- dynamic_
business_ dashboard_ page_ params_ json - Builds the business dashboard page parameters from state.
- dynamic_
business_ delete_ confirm_ page_ params_ json - Builds the business delete confirmation page parameters.
- dynamic_
business_ detail_ admin_ page_ params_ from_ root_ json - Performs dynamic business detail admin page params from root JSON.
- dynamic_
business_ edit_ external_ integrations_ html - dynamic_
business_ edit_ page_ params_ from_ root_ json_ dup_ local - Builds a business edit page parameter document.
- dynamic_
business_ edit_ page_ params_ json - Builds the business edit page parameters from state.
- dynamic_
business_ landing_ page_ params_ json - Builds the business landing page parameters.
- dynamic_
business_ media_ url - Resolves one business media URL under the app-owned media directory.
- dynamic_
config_ value - Performs dynamic config value.
- dynamic_
diagnostics_ page_ params_ json - Builds the diagnostics page parameters.
- dynamic_
dispatch_ match - Matches a dynamic dispatch request against an app-owned route contract.
- dynamic_
dispatch_ resolve_ route_ fixture - Resolves a route fixture path below an app root without traversal.
- dynamic_
dispatch_ response_ file - Reads a bounded response file below an app artifact root.
- dynamic_
ensure_ business_ media_ tree - Performs dynamic ensure business media tree.
- dynamic_
explore_ page_ params_ json - Builds the explore page parameters.
- dynamic_
file_ signature - Performs dynamic file signature.
- dynamic_
generated_ admin_ manage_ page_ params_ json - Builds generated-admin management page parameters from state.
- dynamic_
generated_ admin_ manage_ sections_ html - Builds business admin page params from a loaded state root.
- dynamic_
invite_ accept_ page_ params_ json - Builds the invite-accept page parameter document.
- dynamic_
job_ queue_ detail_ page_ params_ json - Builds a job-queue detail page parameter document.
- dynamic_
job_ queue_ list_ page_ params_ json - Builds bounded, app-fragment-backed job-queue list page parameters.
- dynamic_
media_ disk_ path - Performs dynamic media disk path.
- dynamic_
media_ is_ static_ path - Recognizes static media and static asset request paths.
- dynamic_
migration_ drift_ report - Reports declared, applied, interrupted, and live-schema migration drift.
- dynamic_
multipart_ boundary - Finds one multipart boundary parameter from a Content-Type header.
- dynamic_
multipart_ extract_ file - Performs dynamic multipart extract file.
- dynamic_
multipart_ extract_ text - Performs dynamic multipart extract text.
- dynamic_
multipart_ filename - Performs dynamic multipart filename.
- dynamic_
multipart_ find_ part - Finds a multipart field and returns filename plus content bytes.
- dynamic_
payment_ provider_ setup_ page_ params_ from_ root_ json - Builds payment provider setup page parameters for one business.
- dynamic_
profile_ page_ params_ json - Builds profile page parameters from persisted state.
- dynamic_
query_ value - Returns one query parameter value.
- dynamic_
relational_ file_ signature - Computes a bounded content signature for relational state synchronization.
- dynamic_
remove_ business_ media_ url_ file - Performs dynamic remove business media URL file.
- dynamic_
render_ business_ admin_ availability_ rows_ html - Renders availability rows from an app-owned state document.
- dynamic_
render_ business_ admin_ public_ state_ button_ html - Renders a public-state button fragment with HTML-escaped business context.
- dynamic_
render_ service_ visual_ html - Renders the declared service visual fragment with escaped data.
- dynamic_
runtime_ state_ export_ json_ runtime - Exports relational runtime state through the configured native adapter.
- dynamic_
runtime_ state_ import_ json_ runtime - Imports relational runtime state through the configured native adapter.
- dynamic_
safe_ upload_ filename - Performs dynamic safe upload filename.
- dynamic_
service_ abbreviation - Returns service-name initials, treating parentheses and whitespace as word separators.
- dynamic_
service_ badge_ color - Returns a safe service badge color.
- dynamic_
service_ book_ form_ page_ params_ from_ root_ json - Builds service booking form parameters from state.
- dynamic_
service_ book_ form_ page_ params_ json - Builds service booking form parameters from state file.
- dynamic_
service_ edit_ page_ params_ from_ root_ json - Builds service edit parameters from state.
- dynamic_
service_ edit_ page_ params_ json - Builds service edit parameters from state file.
- dynamic_
service_ media_ url - Renders a service media URL using the canonical media route.
- dynamic_
signup_ account_ type_ allowed - Returns whether a signup account type is allowed by the closed set.
- dynamic_
store_ uploaded_ media - Performs dynamic store uploaded media.
- dynamic_
store_ 🔒uploaded_ media_ bytes - Performs dynamic store uploaded media bytes.
- dynamic_
store_ uploaded_ media_ from_ body - Stores one uploaded media part from an in-memory multipart body.
- dynamic_
user_ bookings_ page_ params_ from_ root_ json - email_
body_ crlf_ dup - Normalizes an email body to CRLF line endings.
- email_
config_ key_ dup - Resolves a namespaced email configuration key.
- email_
date_ header_ dup - Returns a stable RFC-style date header value.
- email_
effective_ value - Resolves one email configuration value from app and runtime configuration.
- email_
has_ header_ breaks - Rejects CRLF header injection in email field values.
- email_
template_ lookup_ var - Looks up one bounded email template variable.
- email_
template_ unquote_ dup - Removes one layer of matching email-template quotes.
- email_
yaml_ append_ block_ line - Appends one YAML block line after removing the declared indentation.
- email_
yaml_ finalize_ block - Stores a completed YAML block in a mutable template object.
- email_
yaml_ store_ field - Stores a scalar YAML field in a mutable template object.
- email_
yaml_ template_ clear - Clears a parsed email YAML template.
- emit_
active_ tenant_ ids_ lines - Emits active tenant identifiers for one user as newline-delimited text.
- emit_
appointments_ page - Emits appointments visible to a user and selected tenant ids.
- emit_
business_ admin_ page - Emits the business administration page contract.
- emit_
business_ admin_ service_ rows - Emits service rows for a business administration page.
- emit_
business_ admin_ technician_ rows - Emits technician rows for a business administration page.
- emit_
business_ calendar_ page - Emits the business calendar page contract.
- emit_
business_ calendar_ render_ page - Emits the rendered business-calendar page contract.
- emit_
business_ dashboard_ page - Emits a business dashboard page scoped to tenant identifiers.
- emit_
business_ edit_ page - Emits the business edit-page JSON contract.
- emit_
business_ public_ page - Emits the public business page JSON contract.
- emit_
business_ public_ render_ page - Emits the business public page with its render context.
- emit_
compact_ json_ mut_ value - Emits a compact mutable JSON value and retains the caller’s mutation ownership.
- emit_
compact_ json_ value - Returns compact JSON text for a JSON value.
- emit_
compact_ mutable_ json_ doc - Compacts a mutable JSON document read from disk.
- emit_
digit_ bool - Serializes a boolean as the native numeric flag representation.
- emit_
explore_ page - Emits the explore page contract.
- emit_
json_ line - Emits one compact JSON value followed by a newline.
- emit_
json_ or_ empty - Returns compact JSON text or an empty object for invalid serialized input.
- emit_
json_ string - Serializes one string as a JSON string.
- emit_
json_ text - Returns compact JSON text or an empty object for invalid input.
- emit_
long - Serializes one signed integer as JSON text.
- emit_
manageable_ business_ cards - Emits business cards managed by one user.
- emit_
managed_ appointments - Emits appointments visible to a managed user, preserving state order.
- emit_
object_ string_ field - Returns a JSON object field as text.
- emit_
profile_ page - Emits a rendered profile page for one user.
- emit_
profile_ render_ page - Emits profile-page render context.
- emit_
public_ business_ cards - Emits public business cards from state.
- emit_
service_ book_ form_ page - Emits the service booking form contract.
- emit_
service_ edit_ page - Emits the service-edit page contract.
- emit_
sorted_ section_ lines - Emits an escaped text line without writing to a process-global stream.
- emit_
template - Returns a JSON value with its template text rendered from bounded parameters.
- emit_
template_ page_ params - Emits template page parameters as compact JSON.
- emit_
text_ line - Returns a bounded line with a trailing newline.
- emit_
text_ line_ to_ buffer - Appends a text line to a bounded output buffer.
- emit_
user_ appointments - Emits appointments visible to one user.
- emit_
user_ membership_ tenant_ ids - Emits the tenant ids associated with one user’s active memberships as JSON.
- encode_
json_ string_ literal - Serializes one JSON string using the canonical escaping policy.
- ensure_
mut_ array_ field - Adds an array field to an object if it is absent.
- error_
envelope - Performs error envelope.
- event_
stream_ allowed_ by_ scope - Checks whether one event row is visible within a user and tenant scope.
- event_
stream_ matches_ filters - Matches event-stream filters declared as a JSON object.
- event_
stream_ resource_ id - Returns a bounded event resource identifier.
- event_
stream_ tenant_ id - Returns a positive event tenant identifier.
- expand_
template_ 🔒includes - Expands app-owned HTML fragments before binding values, with bounded depth, reads and output. Canonical paths must stay within the templates directory.
- export_
runtime_ state_ json - Exports relational state through the selected backend contract.
- extract_
query - Extracts the query component without decoding its individual values.
- file_
compact_ object - Performs file compact object.
- file_
field_ number - Performs file field number.
- file_
field_ string - Performs file field string.
- file_
generated_ surface_ match - Matches one request against generated API/admin operation declarations in a contract file.
- file_
normalize_ runtime_ state - Performs file normalize runtime state.
- file_
section_ length - Performs file section length.
- find_
active_ token_ record - Finds an active token record for one user and token value.
- find_
array_ item_ by_ long_ field - Finds an array row by a positive integer field.
- find_
array_ item_ by_ string_ field - Finds an array item by a string field.
- find_
business_ by_ id_ runtime_ local - Finds a business by numeric identifier.
- find_
bytes 🔒 - Finds bytes.
- find_
form_ 🔒field_ value - Finds form field value.
- find_
mut_ array_ item_ by_ long_ field - Returns a mutable state row selected by a positive integer field.
- find_
technician_ for_ business_ logic_ local - Finds a technician row scoped to one business.
- find_
ui_ ledger_ element - Finds an element in a UI ledger by its stable element id.
- find_
user_ by_ id_ business_ logic_ local - Finds a user row by identifier.
- finish_
json_ array - Completes a JSON array under construction.
- form_
field_ json - Performs form field JSON.
- form_
field_ json_ lines - Performs form field JSON lines.
- form_
options_ csv - Performs form options csv.
- form_
options_ html - Performs form options HTML.
- formatted_
clock_ 🔒time_ business_ logic_ local - Formats a validated time range.
- formatted_
time_ range_ business_ logic_ local - Performs formatted time range business logic local.
- free_
event_ stream_ row - Releases one optional event-stream row.
- free_
event_ stream_ row_ list - Releases all event rows owned by a caller.
- free_
parsed_ http_ url_ logic_ local - Releases a parsed URL value by normal Rust ownership rules.
- free_
postgresql_ runtime_ config_ runtime_ local - Releases a PostgreSQL runtime configuration.
- generated_
admin_ operation_ path_ dup_ business_ logic_ local - Builds a validated generated-admin operation URL.
- generated_
surface_ api_ match - Matches one generated API/admin operation in a contract file.
- generated_
surface_ api_ match_ free - Releases an owned generated-surface match result.
- generated_
surface_ append_ audit_ event_ mut - Appends an audit event to a mutable generated-surface state document.
- generated_
surface_ array_ contains_ string - Tests whether an array contains an exact string value.
- generated_
surface_ context_ json - Resolves generated-surface context, tenant scope, and context record metadata.
- generated_
surface_ 🔒context_ value - Performs generated surface context value.
- generated_
surface_ default_ candidate_ json - Builds a default generated-surface candidate from existing, declared, and submitted values.
- generated_
surface_ delete_ strategy - Resolves the declared deletion strategy with a safe default.
- generated_
surface_ display_ value - Converts one generated-surface field value to the native display-text contract.
- generated_
surface_ display_ value_ runtime - Returns generated-surface display text for a field.
- generated_
surface_ edit_ page_ json - Builds the generated-admin edit-page JSON contract for one existing item.
- generated_
surface_ filter_ controls_ html - Renders generated-surface filter controls from a query string and declaration.
- generated_
surface_ 🔒filter_ matches - Performs generated surface filter matches.
- generated_
surface_ form_ fields_ html - Renders generated-surface form controls from the app-owned form declaration.
- generated_
surface_ 🔒label - Performs generated surface label.
- generated_
surface_ label_ from_ field - Produces the canonical generated-surface label for one field.
- generated_
surface_ list_ columns - Returns generated-admin list-column metadata, applying the native fallback contract.
- generated_
surface_ list_ columns_ runtime - Returns generated-surface list-column metadata.
- generated_
surface_ list_ result_ json - Builds a filtered, sorted, paginated generated-surface list result.
- generated_
surface_ manage_ page_ json - Builds the generated-admin manage-page JSON contract.
- generated_
surface_ manage_ table_ json - Builds the generated-admin table fragments and column count.
- generated_
surface_ normalize_ order_ mut - Normalizes generated-surface order values to stable positive integers.
- generated_
surface_ params - Builds the context and identity parameter object used by generated routes.
- generated_
surface_ params_ runtime - Returns generated-surface request parameters.
- generated_
surface_ relation_ array_ all_ integers - Validates that every relation value is an integer identifier.
- generated_
surface_ relation_ checkboxes_ html - Renders relation checkbox options and the app-owned checkbox group fragment.
- generated_
surface_ report_ add_ field_ error - Adds one field error to a mutable validation report.
- generated_
surface_ select_ options_ html - Renders select options from one generated-surface field declaration.
- generated_
surface_ sort_ options_ html - Renders generated-surface sort options using the native selected-sort rules.
- generated_
surface_ text_ is_ date - Validates the date text accepted by generated-surface filters.
- generated_
surface_ text_ is_ decimal - Validates a bounded decimal amount without accepting exponent syntax.
- generated_
surface_ text_ is_ email - Validates a basic user-facing email value.
- generated_
surface_ text_ is_ time - Validates an HH:MM or HH:MM:SS time value.
- get_
segment - Returns one slash-separated segment by index.
- handle_
action_ route - Handles one action route by returning its declared operation path.
- handle_
bundle_ manifest_ layer_ for_ slice_ command - Handles bundle manifest layer for slice command.
- handle_
bundle_ manifest_ slice_ order_ command - Handles bundle manifest slice order command.
- handle_
dynamic_ config_ value_ command - Handles dynamic config value command.
- handle_
dynamic_ ensure_ business_ media_ tree_ command - Handles dynamic ensure business media tree command.
- handle_
dynamic_ file_ signature_ command - Handles dynamic file signature command.
- handle_
dynamic_ media_ disk_ path_ command - Handles dynamic media disk path command.
- handle_
dynamic_ multipart_ extract_ file_ command - Handles dynamic multipart extract file command.
- handle_
dynamic_ multipart_ extract_ text_ command - Handles dynamic multipart extract text command.
- handle_
dynamic_ multipart_ filename_ command - Handles dynamic multipart filename command.
- handle_
dynamic_ relational_ backend_ command - Handles dynamic relational backend command.
- handle_
dynamic_ relational_ runtime_ audit_ count_ command - Handles dynamic relational runtime audit count command.
- handle_
dynamic_ relational_ runtime_ export_ json_ command - Handles dynamic relational runtime export JSON command.
- handle_
dynamic_ relational_ runtime_ import_ state_ command - Handles dynamic relational runtime import state command.
- handle_
dynamic_ remove_ media_ url_ file_ command - Handles dynamic remove media URL file command.
- handle_
dynamic_ safe_ upload_ filename_ command - Handles dynamic safe upload filename command.
- handle_
dynamic_ store_ uploaded_ media_ command - Handles dynamic store uploaded media command.
- handle_
error_ envelope_ command - Handles error envelope command.
- handle_
file_ compact_ object_ command - Handles file compact object command.
- handle_
file_ field_ number_ command - Handles file field number command.
- handle_
file_ field_ string_ command - Handles file field string command.
- handle_
file_ generated_ surface_ match_ command - Handles file generated surface match command.
- handle_
file_ normalize_ runtime_ state_ command - Normalizes one persisted runtime state file and returns its compact text.
- handle_
file_ section_ length_ command - Handles file section length command.
- handle_
form_ field_ json_ command - Handles form field JSON command.
- handle_
form_ field_ json_ lines_ command - Handles form field JSON lines command.
- handle_
form_ options_ csv_ command - Handles form options csv command.
- handle_
form_ options_ html_ command - Handles form options HTML command.
- handle_
framework_ webhook_ request - Handles a framework webhook request using the shared endpoint contract.
- handle_
generated_ surface_ api_ request - Handles one generated-surface API request from a route-match document.
- handle_
generated_ surface_ coerce_ candidate_ command - Validates a generated-surface candidate through the existing typed helper.
- handle_
generated_ surface_ context_ command - Handles generated surface context command.
- handle_
generated_ surface_ default_ candidate_ command - Handles generated surface default candidate command.
- handle_
generated_ surface_ display_ value_ command - Handles generated surface display value command.
- handle_
generated_ surface_ edit_ page_ json_ command - Builds the generated-surface edit page JSON.
- handle_
generated_ surface_ filter_ controls_ html_ command - Handles generated surface filter controls HTML command.
- handle_
generated_ surface_ form_ fields_ html_ command - Handles generated surface form fields HTML command.
- handle_
generated_ surface_ list_ columns_ json_ command - Handles generated surface list columns JSON command.
- handle_
generated_ surface_ list_ result_ command - Handles generated surface list result command.
- handle_
generated_ surface_ manage_ page_ json_ command - Builds the generated-surface management page JSON.
- handle_
generated_ surface_ manage_ table_ json_ command - Handles generated surface manage table JSON command.
- handle_
generated_ surface_ mutate_ command - Handles generated surface mutate command.
- handle_
generated_ surface_ params_ json_ command - Handles generated surface params JSON command.
- handle_
generated_ surface_ relation_ checkboxes_ html_ command - Handles generated surface relation checkboxes HTML command.
- handle_
generated_ surface_ select_ options_ html_ command - Handles generated surface select options HTML command.
- handle_
generated_ surface_ sort_ options_ html_ command - Handles generated surface sort options HTML command.
- handle_
generated_ surface_ submitted_ command - Handles generated surface submitted command.
- handle_
generated_ surface_ validation_ report_ command - Handles generated surface validation report command.
- handle_
json_ command - Dispatches the native JSON command surface without a shell bridge.
- handle_
manifest_ app_ root_ command - Handles manifest app root command.
- handle_
manifest_ fixture_ path_ raw_ command - Handles manifest fixture path raw command.
- handle_
object_ array_ all_ integers_ command - Handles object array all integers command.
- handle_
object_ array_ item_ json_ lines_ command - Handles object array item JSON lines command.
- handle_
object_ array_ length_ command - Handles object array length command.
- handle_
object_ array_ lines_ command - Handles object array lines command.
- handle_
object_ build_ command - Handles object build command.
- handle_
object_ field_ number_ command - Handles object field number command.
- handle_
object_ field_ string_ command - Handles object field string command.
- handle_
object_ field_ text_ command - Handles object field text command.
- handle_
object_ merge_ command - Handles object merge command.
- handle_
object_ path_ array_ length_ command - Handles object path array length command.
- handle_
object_ path_ bool_ command - Handles object path bool command.
- handle_
object_ path_ json_ command - Handles object path JSON command.
- handle_
object_ path_ number_ command - Handles object path number command.
- handle_
object_ path_ string_ command - Handles object path string command.
- handle_
object_ relative_ path_ array_ to_ absolute_ json_ command - Handles object relative path array to absolute JSON command.
- handle_
page_ route - Handles one page route by returning its declared template path.
- handle_
request_ booking_ options_ json_ from_ form_ command - Handles request booking options JSON from form command.
- handle_
request_ checkbox_ id_ array_ json_ command - Handles request checkbox ID array JSON command.
- handle_
request_ compact_ json_ command - Handles request compact JSON command.
- handle_
request_ compact_ object_ command - Handles request compact object command.
- handle_
request_ compact_ object_ strict_ command - Handles request compact object strict command.
- handle_
request_ cookie_ value_ command - Handles request cookie value command.
- handle_
request_ field_ command - Handles request field command.
- handle_
request_ form_ field_ command - Handles request form field command.
- handle_
request_ form_ value_ command - Handles request form value command.
- handle_
request_ lines_ to_ booking_ options_ json_ command - Handles request lines to booking options JSON command.
- handle_
request_ query_ value_ command - Handles request query value command.
- handle_
state_ event_ stream_ row_ json_ lines_ command - Handles the state event-row JSON command from an already-loaded row.
- handle_
state_ import_ row_ json_ lines_ command - Handles importing one bounded JSON row into a mutable state document.
- handle_
state_ named_ command - Handles state named command.
- handle_
template_ apply_ base_ path_ command - Applies a template base path to URL-bearing attributes.
- handle_
template_ declared_ fragment_ path_ command - Resolves a declared fragment path for a command caller.
- handle_
template_ declared_ page_ contract_ command - Resolves a declared page contract for a command caller.
- handle_
template_ invite_ accept_ page_ json_ command - Builds the invite-accept page parameter JSON.
- handle_
template_ invite_ created_ page_ json_ command - Builds the invite-created page parameter JSON.
- handle_
template_ layout_ page_ html_ command - Renders one named layout page as HTML from a parameter document.
- handle_
template_ layout_ page_ json_ command - Renders one named page JSON contract from a parameter document.
- handle_
template_ login_ page_ json_ command - Builds the login page parameter JSON for a command caller.
- handle_
template_ password_ reset_ complete_ page_ json_ command - Builds the password-reset complete page parameter JSON.
- handle_
template_ password_ reset_ request_ page_ json_ command - Builds the password-reset request page parameter JSON.
- handle_
template_ password_ reset_ sent_ page_ json_ command - Builds the password-reset sent page parameter JSON.
- handle_
template_ register_ page_ json_ command - Builds the registration page parameter JSON for a command caller.
- handle_
template_ render_ file_ command - Handles template render file command.
- handle_
template_ render_ path_ command - Handles template render path command.
- handle_
validation_ add_ field_ error_ command - Handles validation add field error command.
- handle_
validation_ add_ form_ error_ command - Handles validation add form error command.
- handle_
validation_ empty_ report_ command - Handles validation empty report command.
- handle_
validation_ error_ envelope_ command - Handles validation error envelope command.
- handle_
validation_ field_ list_ html_ command - Handles validation field list HTML command.
- handle_
validation_ has_ errors_ command - Handles validation has errors command.
- handle_
validation_ summary_ text_ command - Handles validation summary text command.
- hmac_
sha256_ logic_ local - Computes HMAC-SHA256 for a bounded message using the shared runtime primitive.
- html_
escape_ text - Performs HTML escape text.
- html_
escaped - Escapes runtime text for HTML.
- import_
runtime_ state_ file - Imports a validated relational state file through the selected backend contract.
- is_
nonempty_ ascii_ digits - Returns whether text is non-empty ASCII decimal digits.
- is_
safe_ sql_ identifier - Returns whether safe SQL identifier.
- join_
base_ relative_ path - Performs join base relative path.
- json_
array_ contains_ long - Tests whether an array contains a positive integer.
- json_
array_ contains_ long_ runtime_ local - Tests whether an array contains a numeric value.
- json_
doc_ free - Releases an optional JSON document.
- json_
doc_ load_ file - Loads a JSON document from disk with size and object-depth guards.
- json_
doc_ load_ text - Reads one JSON document from bounded text.
- json_
find_ migration_ by_ id - Finds a migration record by its stable migration id.
- json_
find_ object_ by_ string_ field - Returns a backend record from an array of JSON objects by exact string field.
- json_
find_ string - Finds a string field in a bounded JSON document.
- json_
find_ string_ after - Finds a string field after a caller-selected text offset.
- json_
find_ string_ in_ section - Finds a string field inside a named JSON section.
- json_
find_ 🔒string_ recursive - Performs JSON find string recursive.
- json_
literal - Returns a JSON literal string, preserving the caller-supplied literal text.
- json_
long_ from_ value - Reads a JSON integer value.
- json_
nullable_ string - Serializes an optional string as JSON, using the JSON null literal when absent.
- json_
obj_ get - Returns one object member without cloning it.
- json_
obj_ get_ array - Returns one object array member.
- json_
obj_ get_ long_ default - Reads one object integer member with a default.
- json_
obj_ get_ string - Duplicates one object string member.
- json_
object_ string_ json - Serializes an object string field with a plain-string fallback.
- json_
option_ value - Returns an optional string field from JSON text.
- json_
serialize_ compact - Serializes one JSON value compactly.
- json_
string 🔒 - Performs JSON string.
- json_
string_ array_ lines - Performs JSON string array lines.
- json_
value_ equals - Compares one JSON field with exact text.
- json_
value_ list_ append - Appends one JSON value to an owned list.
- json_
value_ list_ free - Frees all values from an owned JSON list.
- json_
value_ or_ literal - Serializes a JSON value or returns a validated fallback literal.
- json_
value_ tostring - Serializes one JSON value using the compact runtime policy.
- json_
value_ tostring_ dup_ runtime_ local - Converts a JSON value to its compact scalar representation.
- json_
value_ truthy - Applies the native truthiness contract to a JSON value.
- layout_
browser_ 🔒title - load_
root_ from - Loads a JSON root from bounded text.
- login_
page_ params_ json - Builds login page parameters from a validated error and next path.
- long_
from_ value_ runtime_ local - Converts a JSON value to an integer without panicking.
- long_
in_ array - Tests whether a bounded integer array contains one value.
- long_
json - Serializes an integer as JSON number text.
- manifest_
app_ root - Performs manifest app root.
- manifest_
database_ 🔒contract_ path - Performs manifest database contract path.
- manifest_
declares_ 🔒database - Declared database ownership never falls back to file state after a resolution failure.
- manifest_
fixture_ path_ raw - Performs manifest fixture path raw.
- max_
id_ in_ state_ section - Returns the greatest positive id in one state section.
- memmem
- Returns the first position of a byte needle in a bounded byte slice.
- merge_
patch_ into_ mut_ object - Merges an object patch into a mutable object document.
- migration_
checksum_ matches - Checks whether an applied migration checksum matches any accepted checksum.
- migration_
contract_ text_ dup_ runtime_ local - Returns a migration contract document as compact JSON.
- migration_
fixture_ path_ dup_ runtime_ local - Returns a migration contract path declared by an app manifest.
- migration_
sha256_ text - Computes a lowercase SHA-256 digest without invoking an external process.
- month_
name_ business_ logic_ local - Finds the named month.
- month_
shift_ business_ logic_ local - Shifts a year/month pair by a bounded number of months.
- multipart_
boundary 🔒 - Performs multipart boundary.
- multipart_
dup_ range - Copies one checked byte range.
- multipart_
extract_ text_ from_ bytes - Extracts one multipart text field from an in-memory request body as UTF-8.
- multipart_
find_ part - Finds a multipart text field using the existing bounded multipart parser.
- multipart_
find_ 🔒part_ from_ body - multipart_
header_ 🔒param - Performs multipart header param.
- multipart_
memmem - Finds a byte sequence in a bounded byte slice.
- multipart_
parts_ 🔒from_ body - Performs multipart find part from body.
- multipart_
uploaded_ 🔒file_ parts - Applies filename validation and the caller’s empty-file policy to bounded multipart parts.
- native_
file_ signature - Returns a stable file signature based on metadata and content hash.
- normalized_
payload_ object_ mut - Returns a mutable normalized payload object, rejecting non-object input.
- object_
array_ all_ integers - Performs object array all integers.
- object_
array_ item_ json_ lines - Performs object array item JSON lines.
- object_
array_ length - Performs object array length.
- object_
array_ lines - Performs object array lines.
- object_
build - Performs object build.
- object_
field_ number - Performs object field number.
- object_
field_ string - Performs object field string.
- object_
field_ text - Performs object field text.
- object_
from_ 🔒text - Performs object from text.
- object_
merge - Performs object merge.
- object_
path_ array_ length - Performs object path array length.
- object_
path_ bool - Performs object path bool.
- object_
path_ json - Performs object path JSON.
- object_
path_ number - Performs object path number.
- object_
path_ string - Performs object path string.
- object_
relative_ path_ array_ to_ absolute_ json - Performs object relative path array to absolute JSON.
- object_
value_ at_ path - Returns a JSON value at a dotted object path.
- object_
value_ 🔒at_ path_ in_ value - Performs object value at path in value.
- page_
params_ 🔒value - Performs page params value.
- password_
reset_ complete_ page_ params_ json - Builds password-reset completion page parameters.
- password_
reset_ request_ page_ params_ json - Builds password-reset request page parameters.
- payload_
first_ long - Returns the first positive integer in a payload.
- payload_
first_ string - Returns the first string value from a payload object or array.
- payment_
provider_ 🔒action_ button_ html - payment_
provider_ 🔒display_ label - profile_
render_ page_ params_ json - Builds profile page parameters from a state root.
- query_
value_ decoded - Returns the decoded value for one query key.
- rating_
score_ 🔒f64 - Performs rating score f64.
- rating_
score_ 🔒label - Performs rating score label.
- rating_
stars_ 🔒html - Performs rating stars HTML.
- read_
file_ bytes - Reads bounded file bytes for direct runtime consumers.
- read_
json_ 🔒file - Reads JSON file.
- read_
json_ 🔒or_ yaml_ file - Reads JSON or YAML file.
- register_
page_ params_ json - Builds registration page parameters.
- register_
page_ params_ with_ error_ json - Builds registration page parameters with one escaped error message.
- relational_
runtime_ 🔒authority_ enabled - Performs relational runtime authority enabled.
- relational_
runtime_ authority_ enabled_ runtime_ local - Returns whether the relational backend is authoritative for this app.
- render_
app_ empty_ fragment - Renders a shared empty fragment through the declared application template.
- render_
app_ fragment - Renders an app-owned JSON template fragment.
- render_
app_ fragment_ from_ doc - Renders an app-owned fragment from an in-memory parameter document.
- render_
business_ dashboard_ empty_ html - Returns the declared empty dashboard copy without embedding a page shell.
- render_
compact_ 🔒input_ fragment - Renders compact input fragment.
- render_
compact_ 🔒select_ fragment - Renders compact select fragment.
- render_
day_ 🔒select_ options - Renders day select options.
- render_
diagnostics_ page_ params - Renders diagnostics page params.
- render_
empty_ card_ list_ item - Renders empty card list item.
- render_
error_ 🔒alert_ html - Renders error alert HTML.
- render_
file_ template - Renders file template.
- render_
fragment_ 🔒with_ params - Renders fragment with params.
- render_
generated_ admin_ fragment_ from_ doc - Renders a generated admin fragment from an app-owned document.
- render_
generated_ surface_ action_ link - Renders one generated-surface action link from an app-owned fragment.
- render_
generated_ surface_ delete_ form - Renders one generated-surface delete form from a validated action path.
- render_
generated_ surface_ submit_ button - Renders a generated-surface submit button through the app-owned fragment.
- render_
generated_ surface_ table_ action_ cell - Renders the action cell of one generated-surface row.
- render_
generated_ surface_ table_ header_ cell - Renders a generated-surface table header cell.
- render_
generated_ surface_ table_ row - Renders one generated-surface table row from cell values.
- render_
generated_ surface_ table_ row_ cell - Renders a generated-surface table row cell.
- render_
hidden_ 🔒input_ fragment - Renders hidden input fragment.
- render_
hidden_ 🔒next_ input_ html_ inner - Renders hidden next input HTML inner.
- render_
icon_ 🔒button_ fragment - Renders icon button fragment.
- render_
path_ template_ text - Renders a bounded path template with explicit placeholder replacement.
- render_
select_ 🔒fragment - Renders select fragment.
- render_
shared_ asset_ fragment_ from_ doc - Renders an app-owned shared fragment from a parameter document.
- render_
shared_ asset_ fragment_ json - Returns a shared fragment’s rendered HTML.
- render_
template_ text_ with_ default_ kind - Renders template text with an explicit default placeholder kind.
- render_
textarea_ 🔒fragment - Renders textarea fragment.
- render_
ui_ 🔒element_ html - Renders UI element HTML.
- render_
workspace_ dialog_ html_ business_ logic_ local - Renders a workspace dialog with app-owned inner fragments.
- render_
workspace_ panel_ html_ business_ logic_ local - Renders a workspace panel.
- render_
workspace_ split_ grid_ html_ business_ logic_ local - Renders two workspace panels in a bounded grid.
- request_
booking_ options_ json_ from_ form - Performs request booking options JSON from form.
- request_
checkbox_ id_ array_ json - Performs request checkbox ID array JSON.
- request_
compact_ json - Performs request compact JSON.
- request_
compact_ object - Performs request compact object.
- request_
compact_ object_ strict - Performs request compact object strict.
- request_
cookie_ value - Performs request cookie value.
- request_
field - Performs request field.
- request_
form_ field_ value - Performs request form field value.
- request_
form_ value - Performs request form value.
- request_
lines_ to_ booking_ options_ json - Performs request lines to booking options JSON.
- request_
multipart_ field_ value - Extracts one text field from an in-memory multipart request body.
- request_
multipart_ file_ parts - Extracts all uploaded files for one multipart field from an in-memory request body.
- request_
multipart_ 🔒named_ parts - Parses bounded named parts for declared multipart actions using the shared parser.
- request_
multipart_ source_ file_ parts - Extracts bounded source uploads while preserving legitimate empty source files.
- request_
query_ value - Performs request query value.
- resource_
kind_ from_ resource_ id - Classifies a resource identifier by its stable prefix.
- route_
request_ path - Removes query and fragment components from a route request path.
- route_
template_ match_ into_ mut_ obj - Matches a route template and stores its path parameters in an object.
- route_
template_ 🔒params - Performs route template params.
- row_
date_ 🔒time - row_
i64_ 🔒value - rows_
as_ 🔒json - Performs rows as JSON.
- runtime_
declared_ page_ file_ matches_ id - Matches a declared page filename to a validated page identifier.
- runtime_
find_ 🔒declared_ fragment_ relative_ path_ in_ directory - Performs runtime find declared fragment relative path in directory.
- runtime_
find_ declared_ page_ relative_ path_ in_ directory - Finds a declared page file below an app directory.
- runtime_
generated_ surface_ admin_ composition_ path - Returns a path for a generated admin composition.
- runtime_
generated_ surface_ composition_ find_ section - Finds one named composition section.
- runtime_
generated_ surface_ composition_ section_ enabled - Returns whether a composition section is enabled.
- runtime_
generated_ surface_ composition_ string - Returns a bounded composition string from a surface value.
- runtime_
generated_ surface_ delete_ button_ label - Returns the generated delete-button label.
- runtime_
generated_ surface_ display_ value - Converts one display value to escaped text.
- runtime_
generated_ surface_ label - Returns a generated field label from a field declaration.
- runtime_
manage_ path_ segment - Returns a validated management path segment.
- runtime_
page_ params_ add_ escaped_ string - Adds an escaped string to a page parameter map.
- runtime_
page_ params_ add_ string - Adds an escaped string to a page parameter map.
- runtime_
page_ params_ write - Serializes a page parameter map.
- runtime_
path_ has_ suffix - Tests whether a path ends with a validated suffix.
- runtime_
surface_ find_ form - Finds a named form in a generated surface document.
- runtime_
text_ buffer_ append - Appends bounded text to a runtime buffer.
- runtime_
text_ buffer_ free - Clears a runtime text buffer.
- runtime_
text_ buffer_ reserve - Ensures a runtime text buffer has bounded capacity.
- runtime_
text_ buffer_ take - Takes a text buffer and leaves it empty.
- runtime_
ui_ attribute_ is_ valid - Checks whether a UI attribute name is safe.
- safe_
contract_ 🔒relative_ path - Performs safe contract relative path.
- seed_
expectation_ satisfied - Checks a seed row count against exact and minimum expectations.
- seen_
long_ pair - Records one pair in a bounded seen-pair set and reports whether it was new.
- segment_
length - Returns one segment’s byte length.
- service_
booking_ options_ editor_ html - Renders the booking-option editor from one service state record.
- service_
sort_ order_ options_ html - Renders service sort-order options through the shared select-option fragment.
- service_
visual_ html - Renders the service visual using the app-owned image or badge fragment.
- sha256_
final_ logic_ local - Finalizes an incremental SHA-256 context.
- sha256_
hex - Returns a lowercase SHA-256 hexadecimal digest.
- sha256_
init_ logic_ local - Initializes an incremental SHA-256 context.
- sha256_
rotr_ logic_ local - Rotates a 32-bit word right by a masked count.
- sha256_
transform_ logic_ local - Computes a one-block SHA-256 digest for the transform contract.
- sha256_
update_ logic_ local - Updates an incremental SHA-256 context.
- shared_
asset_ fragment_ path_ json - Resolves a shared JSON template fragment.
- state_
active_ 🔒token - Performs state active token.
- state_
array - Returns the JSON array for one state section.
- state_
array_ runtime_ local - Returns an array-valued runtime state section.
- state_
find_ appointment_ by_ id - Finds an appointment by numeric id.
- state_
find_ booking_ for_ user - Returns the JSON text for a user’s booking selected by user id.
- state_
find_ google_ calendar_ connection_ for_ business_ logic_ local - Finds a Google Calendar connection scoped to a business.
- state_
find_ payment_ provider_ account_ for_ business_ logic_ local - Finds one payment provider account row for a business and provider.
- state_
find_ user_ by_ email - Finds a user by case-insensitive email.
- state_
find_ user_ by_ id - Finds a state user by numeric id.
- state_
find_ user_ by_ username - Finds a user by exact username.
- state_
json_ 🔒or_ empty - Performs state JSON or empty.
- state_
lines 🔒 - Performs state lines.
- state_
named_ command - Executes one state JSON command against the persisted runtime-state contract.
- state_
next_ 🔒id - Performs state next ID.
- state_
option_ 🔒i64 - Performs state option i64.
- state_
option_ 🔒string - Performs state option string.
- state_
row_ 🔒by_ i64 - state_
row_ 🔒by_ id - Performs state row by ID.
- state_
row_ 🔒by_ text - Performs state row by text.
- state_
rows 🔒 - Performs state rows.
- state_
write 🔒 - Performs state write.
- strdup
- Copies a bounded string as an owned Rust value.
- streq
- Compares two strings exactly.
- streq_
casefold - Performs a case-insensitive equality check.
- strndup
- Returns at most
limitUTF-8 bytes from a string without splitting characters. - strtok_
r - Splits a bounded string into delimiter-separated owned fields.
- surface_
build_ active_ filters - Builds active filter state from a raw query string.
- surface_
build_ sort_ config - Builds stable sort configuration from a JSON contract and query string.
- surface_
compare_ sort_ values - Compares two surface values for stable sorting.
- surface_
context_ match - Matches a generated-surface context against a request context.
- surface_
filter_ item - Applies one generated-surface filter item to a record.
- surface_
find_ by_ id - Performs surface find by ID.
- surface_
find_ form - Finds one form declaration by its id.
- surface_
find_ record_ by_ string_ field - Returns the JSON text for a record selected by a string field.
- surface_
sort_ items - Sorts a bounded list using a declared string or numeric field.
- technician_
checkboxes_ html - Renders technician assignment checkbox fragments for one business/service.
- template_
apply_ base_ path - Performs template apply base path.
- template_
command_ 🔒params - Performs template command params.
- template_
declared_ fragment_ path - Performs template declared fragment path.
- template_
declared_ page_ contract - Performs template declared page contract.
- template_
error_ alert_ html - Renders the shared inline error fragment used by declarative form pages.
- template_
invite_ accept_ page_ json - Performs template invite accept page JSON.
- template_
invite_ created_ page_ json - Performs template invite created page JSON.
- template_
layout_ page_ html - Performs template layout page HTML.
- template_
layout_ page_ json - Performs template layout page JSON.
- template_
login_ page_ json - Performs template login page JSON.
- template_
page_ 🔒params_ json - Performs template page params JSON.
- template_
password_ reset_ complete_ page_ json - Performs template password reset complete page JSON.
- template_
password_ reset_ request_ page_ json - Performs template password reset request page JSON.
- template_
password_ reset_ sent_ page_ json - Performs template password reset sent page JSON.
- template_
path_ reference_ allowed - Performs template path reference allowed.
- template_
placeholder_ kind - Classifies a placeholder as text, path, URL, HTML, or formatted USD minor units.
- template_
reference_ 🔒contains_ unsafe_ char - Performs template reference contains unsafe char.
- template_
reference_ has_ allowed_ url_ scheme - Validates whether a template reference uses one approved URL scheme.
- template_
reference_ 🔒has_ scheme - Performs template reference has scheme.
- template_
register_ page_ json - Performs template register page JSON.
- template_
render_ file - Performs template render file.
- template_
render_ path - Performs template render path.
- template_
url_ reference_ allowed - Performs template URL reference allowed.
- template_
value_ text - Converts a JSON value to its template text representation.
- template_
value_ 🔒usd_ minor_ text - Performs template value usd minor text.
- text_
append_ format_ runtime_ local - Appends formatted text to a runtime buffer.
- text_
append_ runtime_ local - Appends bounded runtime text.
- text_
buffer_ append - Appends text to a bounded template buffer.
- text_
buffer_ append_ char - Appends one character to a bounded template buffer.
- text_
buffer_ append_ format - Appends a bounded formatted fragment to a text buffer.
- text_
buffer_ append_ html_ escaped - Escapes and appends one template value.
- text_
buffer_ append_ template_ value - Appends a JSON value after applying the placeholder kind security policy.
- text_
buffer_ free - Releases a template buffer.
- text_
buffer_ reserve - Reserves bounded template buffer capacity.
- text_
buffer_ take - Takes a template buffer’s contents.
- trim_
ascii_ whitespace_ range - Trims ascii whitespace range.
- url_
decode - Decodes one URL query component with plus and percent handling.
- url_
decode_ 🔒component - Performs URL decode component.
- url_
encode_ 🔒query_ component - Percent-encodes one bounded query value for safe reuse in generated links.
- valid_
date_ 🔒text - Performs valid date text.
- validation_
add_ field_ error - Performs validation add field error.
- validation_
add_ form_ error - Performs validation add form error.
- validation_
empty_ report - Performs validation empty report.
- validation_
error_ envelope - Performs validation error envelope.
- validation_
field_ list_ html - Performs validation field list HTML.
- validation_
has_ errors - Performs validation has errors.
- validation_
summary_ text - Performs validation summary text.
- value_
long_ equals - Tests one JSON value against a signed integer.
- value_
to_ 🔒text - Performs value to text.
- weekday_
monday_ index_ business_ logic_ local - Returns the Monday-based index of a weekday name.
- weekday_
rank - Returns the bounded weekday rank used by calendar sorting.
- write_
binary_ file - Writes bounded binary data to an app-owned file.
- write_
generated_ surface_ schema_ response - Emits a generated-surface schema response from contract JSON.
- write_
mutable_ json_ doc - Writes a bounded mutable JSON document through the native filesystem surface.
- yaml_
to_ 🔒json_ value - Performs YAML to JSON value.