Skip to main content

Module json_commands

Module json_commands 

Source
Expand description

Exposes the json_commands runtime module.

§Examples

ⓘ
use pharos_native::runtime::json_commands;

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§

MultipartFilePart
MultipartPart 🔒

Enums§

ObjectBuildOp
Public enum ObjectBuildOp used by the runtime JSON-command surface.

Constants§

MAX_OUTPUT_ROWS_JSON 🔒
MAX_STATE_ROWS_JSON 🔒
MAX_TEXT_BYTES 🔒

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_id field.
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 limit UTF-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.