Repository navigation
API Reference parrot_formdesigner.api.handlers
JSON REST API handlers for parrot-formdesigner.
Serves the form builder REST API: create, list, get schema, validate, load
from DB. HTML rendering moved to the render dispatcher in api/render.py.
All endpoints are protected by navigator-auth session authentication via
api/routes.py (hard import — see FEAT-152).
Re-exported from parrot_formdesigner.api.dialect.A2UI_LIST_MAX.
Re-exported from parrot_formdesigner.services.auth_context.AuthContext.
Serves JSON REST API endpoints for form management.
All API routes are protected by navigator-auth session authentication.
The decorators are applied at route-registration time in
api/routes.py.
User identity context (org_id, programs) is extracted from the
authenticated session via the :meth:_get_org_id and :meth:_get_programs
helper methods.
| Parameter | Type | Default | Description |
|---|---|---|---|
registry |
FormRegistry |
FormRegistry instance for storing and retrieving forms. | |
client |
'AbstractClient | None' |
None |
Optional LLM client for natural language form creation. |
submission_storage |
'FormSubmissionStorage | None' |
None |
Optional storage backend for form submissions. |
forwarder |
'SubmissionForwarder | None' |
None |
Optional submission forwarder for endpoint-bound submits. |
partial_store |
'PartialSaveStore | None' |
None |
Optional Redis-backed store for ephemeral partial form answers. When None, partial save endpoints return 503. |
org_graph_service |
'OrgGraphService | None' |
None |
Optional OrgGraphService for GET /org/graph. When None, the endpoint returns 501 Not Implemented. |
project_service |
'ProjectService | None' |
None |
Optional ProjectService for org project endpoints. |
rbac_service |
'RBACService | None' |
None |
Optional RBACService for policy management endpoints. |
workday_adapter |
'WorkdayIdentitySyncAdapter | None' |
None |
Optional WorkdayIdentitySyncAdapter for POST /org/sync/workday. |
venue_service |
'VenueService | None' |
None |
|
rbac_enforcing |
bool |
False |
When False (default), RBAC gate-keeping on existing form endpoints runs in shadow mode — it logs permission checks but never blocks requests. Set to True only when nav-auth policies are fully configured. Consistent with Policy.enforcing=False. |
sink_factory |
'SinkFactory | None' |
None |
Optional SinkFactory (FEAT-457). When set, a form declaring persistence writes exclusively to its own sink in :meth:submit_data instead of submission_storage. None (default) preserves today's behaviour exactly for every form. |
tenant_scoped_submissions |
bool |
False |
|
on_submitted |
'SubmittedCallback | None' |
None |
POST /api/v1/{tenant}/forms/{form_uid}/voice/optimize — voice hint proposals (never writes, FEAT-649).
optimize_voice(request: web.Request) -> web.Response
| Parameter | Type | Default | Description |
|---|---|---|---|
request |
web.Request |
Returns: web.Response
POST /api/v1/forms/{form_id}/partial — Save partial answers.
Merges the submitted answers into the cached partial for this
form+session. Each submitted field is validated individually via
FormValidator.validate_field() and per-field errors are returned
in the response.
Request body::
{"answers": {"field_id": <value>, ...}}
save_partial(request: web.Request) -> web.Response
| Parameter | Type | Default | Description |
|---|---|---|---|
request |
web.Request |
Incoming HTTP request. |
Returns: web.Response — 200 — full PartialFormData state as JSON, including field_errors. 400 — invalid JSON body or missing session_id. 404 — form not found in registry. 503 — partial save service not configured or Redis unavailable.
GET /api/v1/forms/{form_id}/partial — Retrieve cached partial answers.
get_partial(request: web.Request) -> web.Response
| Parameter | Type | Default | Description |
|---|---|---|---|
request |
web.Request |
Incoming HTTP request. |
Returns: web.Response — 200 — PartialFormData as JSON. 400 — missing session_id. 404 — no cached partial for this form+session. 503 — partial save service not configured.
DELETE /api/v1/forms/{form_id}/partial — Clear cached partial answers.
delete_partial(request: web.Request) -> web.Response
| Parameter | Type | Default | Description |
|---|---|---|---|
request |
web.Request |
Incoming HTTP request. |
Returns: web.Response — 204 — partial cleared (or did not exist). 400 — missing session_id. 503 — partial save service not configured.
GET /api/v1/forms — List all registered forms with rich metadata.
Merges in-memory FormRegistry entries with persisted FormStorage rows (when a storage backend is configured). Each entry includes form_uid, form_id, title, description, version, source ("memory" | "db"), and an ISO-8601 created_at (or None).
Supports ?slug=<form_id> (FEAT-389) to filter results down to
forms whose slug matches — resolved via
FormRegistry.get_by_slug() rather than scanning the full list.
?dialect=a2ui adds a surface URL manifest, while
?dialect=a2ui&include=surface also renders inline surfaces. The
optional locale query parameter selects the rendering locale.
list_forms(request: web.Request) -> web.Response
| Parameter | Type | Default | Description |
|---|---|---|---|
request |
web.Request |
Incoming HTTP request. |
Returns: web.Response — JSON response {"forms": [<descriptor>, ...]} sorted by form_id (slug — stable, human-meaningful ordering; form_uid is random and would not produce a stable order).
GET /{tenant}/forms/{form_uid}/availability — can this form take a response now? (FEAT-730)
get_availability(request: web.Request) -> web.Response
| Parameter | Type | Default | Description |
|---|---|---|---|
request |
web.Request |
Returns: web.Response
GET /api/v1/forms/{form_uid} — Get full FormSchema as JSON.
get_form(request: web.Request) -> web.Response
| Parameter | Type | Default | Description |
|---|---|---|---|
request |
web.Request |
Returns: web.Response
GET /api/v1/forms/{form_uid}/schema — Get the negotiated schema dialect.
get_schema(request: web.Request) -> web.Response
| Parameter | Type | Default | Description |
|---|---|---|---|
request |
web.Request |
Returns: web.Response
Stream one export row per form for the route tenant as NDJSON.
export_forms(request: web.Request) -> web.Response
| Parameter | Type | Default | Description |
|---|---|---|---|
request |
web.Request |
Request containing export dialect and filter options. |
Returns: web.Response — A streaming NDJSON response or a validation error response.
Translate a JSON Schema into a stateless A2UI surface.
translate_form(request: web.Request) -> web.Response
| Parameter | Type | Default | Description |
|---|---|---|---|
request |
web.Request |
Request containing schema and optional form metadata. |
Returns: web.Response — The translated createSurface envelope, or a validation error response.
GET /api/v1/forms/{form_uid}/style — Get style schema.
get_style(request: web.Request) -> web.Response
| Parameter | Type | Default | Description |
|---|---|---|---|
request |
web.Request |
Returns: web.Response
POST /api/v1/forms/{form_uid}/events/{event_name} — Remote event bridge.
Called by the HTML5 renderer when a binding declares remote: true.
Validates a per-session per-form CSRF token, dispatches the lifecycle
event, and returns the EventResolution as JSON.
remote_event(request: web.Request) -> web.Response
| Parameter | Type | Default | Description |
|---|---|---|---|
request |
web.Request |
Incoming POST request with form_uid and event_name in the URL, X-CSRF-Token header, and a JSON body optionally containing payload and schema_dump. |
Returns: web.Response — 200 — EventResolution JSON. 400 — Unknown event name or invalid JSON body. 403 — Missing or invalid CSRF token. 404 — Form not found. status from FormEventAbort.status_code — when a handler aborts.
POST /api/v1/forms/{form_uid}/validate — Validate form submission (dry-run).
FEAT-458: a reject form's undeclared payload keys are surfaced here
too, under the reserved errors["__unknown__"] key, so a client
pre-flighting a submission is not told 200 for a payload /submit
would then 422. drop and keep responses are unchanged — this
route never stores anything, so keep needs no cap check here.
FEAT-544: dual-wire — an A2UI v1.0 action envelope (form.validate
or form.submit; unwrap_action accepts both) is unwrapped into
plain field_id answers exactly like submit_data's A2UI branch; the
reply is then {"messages": []} (200, valid) or per-field
VALIDATION_FAILED envelopes (422, invalid) instead of plain JSON.
A legacy JSON caller is completely unaffected.
validate(request: web.Request) -> web.Response
| Parameter | Type | Default | Description |
|---|---|---|---|
request |
web.Request |
Returns: web.Response
POST /api/v1/forms/blank — Create an empty form without an LLM (FEAT-389).
Requires title in the JSON body. form_id (slug) is optional —
if omitted, one is derived from title via the same slugify
helper used by CreateFormTool. form_uid is always freshly
auto-generated by FormSchema's default factory.
Request body::
{"title": "My Form", "form_id": "my-form"} # form_id optional
create_blank_form(request: web.Request) -> web.Response
| Parameter | Type | Default | Description |
|---|---|---|---|
request |
web.Request |
Returns: web.Response — 201 — {"form_uid": str, "form_id": str, "title": str, "url": str}. 400 — invalid JSON body or missing title. 409 — form_id (slug) already exists in this tenant.
POST /api/v1/forms — Create a form from a natural language prompt.
create_form(request: web.Request) -> web.Response
| Parameter | Type | Default | Description |
|---|---|---|---|
request |
web.Request |
Returns: web.Response
POST /api/v1/forms/{form_uid}/edit — Edit a form using natural language.
Loads the existing form from the registry, passes its JSON schema to the LLM along with the user's edit prompt, and returns the updated form. The LLM is instructed to strictly preserve the FormSchema JSON structure.
edit_form(request: web.Request) -> web.Response
| Parameter | Type | Default | Description |
|---|---|---|---|
request |
web.Request |
Returns: web.Response
POST /api/v1/{tenant}/forms/{form_uid}/clone — Clone a form under a new slug.
Creates a deep copy of the source form identified by form_uid,
assigns new_form_id (slug) from the request body and a freshly
generated form_uid, optionally applies an RFC 7396 merge-patch,
validates the result, and persists it.
FEAT-421: the tenant is the URL-declared, decorator-validated value
(:meth:_get_tenant) — both the source lookup and the clone
registration happen within that tenant scope. A body tenant is
only ever an optional cross-check (spec §2); it is never trusted as
an override, closing what would otherwise be a cross-tenant read+
write via an unvalidated body field.
Request body (JSON): new_form_id (str): Required. Slug for the cloned form. patch (dict | None): Optional RFC 7396 merge-patch. tenant (str | None): Optional cross-check — must match the URL tenant if present.
clone_form(request: web.Request) -> web.Response
| Parameter | Type | Default | Description |
|---|---|---|---|
request |
web.Request |
Returns: web.Response — 201 Created with the full cloned FormSchema JSON body. 400 if new_form_id is missing or empty, or the body tenant
conflicts with the URL tenant. 404 if the source form is not found. 409 if new_form_id already exists. 422 if the patch produces an invalid schema.
PUT /api/v1/forms/{form_uid} — Fully replace a registered form.
Accepts a complete FormSchema JSON body. The form_uid in the
URL must match the form_uid in the body — the immutable identity
cannot change via PUT. The form_id (slug) MAY differ from the
existing form's slug — this is how a form is renamed (FEAT-389); the
registry's slug index is updated accordingly on re-registration. Runs
structural validation via FormValidator.check_schema() before
persisting. Automatically bumps the form version.
update_form(request: web.Request) -> web.Response
| Parameter | Type | Default | Description |
|---|---|---|---|
request |
web.Request |
Returns: web.Response
PATCH /api/v1/forms/{form_uid} — Partially update a registered form.
Applies RFC 7396 JSON merge-patch semantics to the existing form.
Arrays (sections, fields) are replaced entirely — not merged
element-by-element. Neither form_uid nor form_id (slug) can
be changed via PATCH (unchanged policy from before FEAT-389 — use
PUT for renames). Runs structural validation after merging.
Automatically bumps version.
patch_form(request: web.Request) -> web.Response
| Parameter | Type | Default | Description |
|---|---|---|---|
request |
web.Request |
Returns: web.Response
DELETE /api/v1/forms/{form_uid} — Remove a registered form.
Unregisters the form from the in-memory registry and, when a
FormStorage backend is configured, deletes the persisted row as
well (scoped by the form's tenant so per-tenant Postgres schemas
resolve correctly). Returns 204 No Content on success, 404
when no form with the given id exists.
delete_form(request: web.Request) -> web.Response
| Parameter | Type | Default | Description |
|---|---|---|---|
request |
web.Request |
Returns: web.Response
POST /api/v1/forms/{form_uid}/data — Receive and process a form submission.
Flow:
- Load the form from registry (404 if not found).
- Parse JSON body (400 if invalid).
1a. A2UI wire (FEAT-544): if the body is an A2UI v1.0
actionenvelope (api.a2ui_wire.is_a2ui_request), unwrap it into a plain field_id-keyed answers dict BEFORE step 3 and remember itssurfaceId. Every response below is then translated into A2UI envelopes (via the local_replyhelper) instead of plain JSON; a legacy JSON caller is completely unaffected. - If
?merge_partials=true, load cached partial and merge into data (submitted values override cached; skipped silently if no store or no cached partial). - Validate submission data (422 if invalid).
4a. Apply the
form.unknown_fieldspolicy (FEAT-458) toresult.extra_data— the undeclared top-level payload keys the validator reported but did not judge:rejectfails the submission with422(onErrordispatched best-effort first, nothing persisted);keepenforces the extras cap (422onExtrasCapExceeded) and attaches the extras to theFormSubmission(None, never{});dropdiscards them with a debug log recording the count — no longer silent. The forwarded body and theonAfterSubmitpayload are widened to{**sanitized_data, **extras}underkeep(declared answers win any collision);dropis untouched. - Persist the submission — EXCLUSIVELY (FEAT-457): when
form.persistenceis set, resolve the form's own sink viasink_factory,ensure_target()it, map the submission (nested for document-family sinks, flattened otherwise), andwrite()—submission_storageis never called for such a form. A sink failure returns503/422immediately, with nothing persisted anywhere. Otherwise (persistenceunset), store locally ifsubmission_storageis configured — today's behaviour, unchanged. - Forward to endpoint if form has an
endpointsubmit action andforwarderis configured. - If merge was performed, delete the cached partial on success.
- Return composite result — always 200, even when forwarding fails.
submit_data(request: web.Request) -> web.Response
| Parameter | Type | Default | Description |
|---|---|---|---|
request |
web.Request |
Returns: web.Response
POST /api/v1/forms/from-db — Load a form from database definition.
The orgid in the request body is optional. When omitted, the
org_id is extracted from the authenticated user's session via
:meth:_get_org_id. If neither the body nor the session provides an
org_id, the request is rejected with a 400 error.
load_from_db(request: web.Request) -> web.Response
| Parameter | Type | Default | Description |
|---|---|---|---|
request |
web.Request |
Returns: web.Response
POST /api/v1/forms/{form_uid}/publish — Publish current form as immutable snapshot.
FEAT-433 §8 Q5: promotes the CURRENT live version in place — it no
longer bumps to a new tag. Returns 409 when the live version is
ALREADY published (immutability guard). Returns 404 when the
form is not found.
publish_form(request: web.Request) -> web.Response
| Parameter | Type | Default | Description |
|---|---|---|---|
request |
web.Request |
Incoming HTTP request (path param: form_uid). |
Returns: web.Response — {"form_uid": str, "version": str} on success (200), {"error": str} on 404 (not found) or 409 (frozen conflict).
GET /api/v1/fields — List all reusable fields for the current tenant.
list_fields(request: web.Request) -> web.Response
| Parameter | Type | Default | Description |
|---|---|---|---|
request |
web.Request |
Incoming HTTP request. |
Returns: web.Response — {"fields": [<ReusableField>, ...]} (200).
POST /api/v1/fields — Add a field definition to the question bank.
create_field(request: web.Request) -> web.Response
| Parameter | Type | Default | Description |
|---|---|---|---|
request |
web.Request |
Incoming HTTP request with FormField JSON body. |
Returns: web.Response — ReusableField JSON (201 Created), 400 on bad JSON, 422 on validation errors.
GET /api/v1/forms/{form_uid}/versions — List a form's version history.
Each entry includes version, published_at (ISO-8601),
published_by (null when not tracked), is_current
(True for the form's active published version — unchanged
formula, form.published_version or form.version), and
is_published (FEAT-433 D1/D3) — every stored version is listed,
draft or published; is_published labels which is which.
is_current and is_published are independent — they need not
move together. In practice, because the editor's save handler
carries published_version forward unchanged (it never clears
it), is_current stays pinned to whichever tag the LAST
publish() call promoted until the NEXT publish() call moves
it — not to the newest draft. A newer, not-yet-published draft
reports is_current: false until it is itself published.
list_versions(request: web.Request) -> web.Response
| Parameter | Type | Default | Description |
|---|---|---|---|
request |
web.Request |
Incoming HTTP request (path param: form_uid). |
Returns: web.Response — {"form_uid": str, "versions": [...]} (200), 404 if not found.
GET /api/v1/forms/{form_uid}/versions/{version} — Retrieve a stored snapshot.
FEAT-433 Module 5: returns the stored FormSchema snapshot for
the requested version — draft OR published, no longer only frozen
(published) rows. The returned schema still carries its own
published_version, so a caller can tell the two apart. Returns
404 when the form or version is not found.
get_version(request: web.Request) -> web.Response
| Parameter | Type | Default | Description |
|---|---|---|---|
request |
web.Request |
Incoming HTTP request (path params: form_uid, version). |
Returns: web.Response — Full FormSchema JSON (200) or {"error": str} (404).
GET /api/v1/forms/{form_uid}/import-report — Latest ImportDiffReport.
Returns the per-field mapping report generated when this form was last
imported from an external source (e.g. Networkninja). Returns 404
when no import history exists for this form.
get_import_report(request: web.Request) -> web.Response
| Parameter | Type | Default | Description |
|---|---|---|---|
request |
web.Request |
Incoming HTTP request (path param: form_uid). |
Returns: web.Response — ImportDiffReport JSON (200) or {"error": str} (404).
Return the audit projection for one submission.
get_submission_audit(request: web.Request) -> web.Response
| Parameter | Type | Default | Description |
|---|---|---|---|
request |
web.Request |
Incoming authenticated aiohttp request. |
Returns: web.Response — The six-field audit projection, or a JSON error response when storage is unavailable or the submission cannot be read here.
Raises:
-
web.HTTPForbidden— If the caller lacksread_form_auditatCLIENTscope or wider.
GET /api/v1/org/graph — Return the org graph for the session's org.
Calls OrgGraphService.get_graph() with the caller's org, resolved
from request.user.organizations by :meth:_resolve_org_id.
get_org_graph(request: web.Request) -> web.Response
| Parameter | Type | Default | Description |
|---|---|---|---|
request |
web.Request |
Incoming HTTP request with navigator-auth session. Optional query org_id picks one of several memberships. |
Returns: web.Response — Serialized OrgGraph as JSON. A non-integer org_id, or several organizations and no selection. The user belongs to no organization, or not to org_id. OrgGraphService not configured.
POST /api/v1/org/projects — Create a fieldsync project.
Request body::
{
"accounting_code": "ACC-001",
"name": "Q1 Campaign",
"client_id": 42,
"org_id": 7
}
create_project(request: web.Request) -> web.Response
| Parameter | Type | Default | Description |
|---|---|---|---|
request |
web.Request |
Incoming HTTP request. |
Returns: web.Response — Created Project as JSON. Invalid/missing fields. Duplicate accounting_code for client. ProjectService not configured.
POST /api/v1/org/cost-centers/{project_id}/workday-map
Maps a fieldsync project to a Workday cost center code.
Request body::
{"workday_code": "WD-99001"}
map_project_workday(request: web.Request) -> web.Response
| Parameter | Type | Default | Description |
|---|---|---|---|
request |
web.Request |
Incoming HTTP request (path param: project_id). |
Returns: web.Response — WorkdayCostCenterMapping as JSON. Missing workday_code. Project not found. ProjectService not configured.
POST /api/v1/org/users/{user_id}/assign — Assign a role to a user.
Compiles the given scope + codename to an ABAC policy and persists it
in fieldsync.auth_policies. NEVER writes to auth.user_permissions.
Request body::
{
"codename": "edit_form",
"scope": "own",
"program_id": 7
}
assign_user_role(request: web.Request) -> web.Response
| Parameter | Type | Default | Description |
|---|---|---|---|
request |
web.Request |
Incoming HTTP request (path param: user_id). |
Returns: web.Response — PermissionRecord as JSON. Missing/invalid fields. RBACService not configured.
POST /api/v1/org/sync/workday — Trigger Workday identity sync (stub).
Calls WorkdayIdentitySyncAdapter.sync_user() which is a stub in
FEAT-302 (FEAT-026/027 not available). Always returns 202 Accepted.
Request body::
{"user_id": "user-abc", "action": "provision", "org_id": 7}
sync_workday_identities(request: web.Request) -> web.Response
| Parameter | Type | Default | Description |
|---|---|---|---|
request |
web.Request |
Incoming HTTP request. |
Returns: web.Response — Stub acceptance dict as JSON. Missing/invalid fields. WorkdayIdentitySyncAdapter not configured.
GET /api/v1/org/stores/{store_id}/sites — List sites under a store.
list_sites(request: web.Request) -> web.Response
| Parameter | Type | Default | Description |
|---|---|---|---|
request |
web.Request |
Incoming HTTP request (path param: store_id). |
Returns: web.Response — List of Site as JSON. Missing org_id in session. VenueService not configured.
POST /api/v1/org/stores/{store_id}/sites — Create a site.
Request body::
{"client_id": 42, "name": "Vending Zone"}
org_id is taken from the authenticated session, never the body.
create_site(request: web.Request) -> web.Response
| Parameter | Type | Default | Description |
|---|---|---|---|
request |
web.Request |
Returns: web.Response — Created Site as JSON. Invalid/missing fields. Duplicate site name in the store. VenueService not configured.
GET /api/v1/org/sites/{site_id}/locations — List locations in a site.
list_locations(request: web.Request) -> web.Response
| Parameter | Type | Default | Description |
|---|---|---|---|
request |
web.Request |
Returns: web.Response — List of Location as JSON. Invalid site_id or missing org_id. VenueService not configured.
POST /api/v1/org/sites/{site_id}/locations — Create a location.
Request body::
{
"client_id": 42,
"name": "Kiosk A-12",
"location_type": "kiosk",
"latitude": 34.0522,
"longitude": -118.2437,
"geofence_radius_m": 50
}
org_id is taken from the session, never the body.
create_location(request: web.Request) -> web.Response
| Parameter | Type | Default | Description |
|---|---|---|---|
request |
web.Request |
Returns: web.Response — Created Location as JSON. Invalid/missing fields. Duplicate location name in the site. VenueService not configured.
GET /api/v1/org/locations/{location_id} — Fetch one location.
get_location(request: web.Request) -> web.Response
| Parameter | Type | Default | Description |
|---|---|---|---|
request |
web.Request |
Returns: web.Response — Location as JSON (includes geofence params). Invalid location_id or missing org_id. Location not found in the session's org. VenueService not configured.
Re-exported from parrot_formdesigner.services.registry.FormAlreadyExistsError.
Re-exported from parrot_formdesigner.core.FormDialect.
Re-exported from parrot_formdesigner.core.events.FormEventAbort.
Re-exported from parrot_formdesigner.core.events.FormEventName.
Re-exported from parrot_formdesigner.core.schema.FormField.
Re-exported from parrot_formdesigner.services.registry.FormRegistry.
Re-exported from parrot_formdesigner.core.schema.FormSchema.
Re-exported from parrot_formdesigner.services.submissions.FormSubmissionStorage.
Re-exported from parrot_formdesigner.services.validators.FormValidator.
Re-exported from parrot_formdesigner.services.form_version.FormVersionService.
Re-exported from parrot_formdesigner.tools.services.networkninja.ImportDiffReport.
Re-exported from parrot_formdesigner.renderers.jsonschema.JsonSchemaRenderer.
Re-exported from parrot_formdesigner.services.llm_quota.LLMQuota.
Re-exported from parrot_formdesigner.services.org_graph.OrgGraphService.
Re-exported from parrot_formdesigner.core.partial.PartialFormData.
Re-exported from parrot_formdesigner.services.partial_saves.PartialSaveStore.
Re-exported from parrot_formdesigner.services.project_service.ProjectService.
Re-exported from parrot_formdesigner.services.question_bank.QuestionBankService.
Re-exported from parrot_formdesigner.services.rbac.RBACScope.
Re-exported from parrot_formdesigner.services.rbac.RBACService.
Re-exported from parrot_formdesigner.core.schema.RenderedForm.
Re-exported from parrot_formdesigner.services.sinks.factory.SinkFactory.
Re-exported from parrot_formdesigner.services.forwarder.SubmissionForwarder.
Re-exported from parrot_formdesigner.services.submission_pipeline.SubmissionPipeline.
Re-exported from parrot_formdesigner.api.submission_events.SubmittedCallback.
Re-exported from parrot_formdesigner.api.tenant.TenantForbiddenError.
Re-exported from parrot_formdesigner.services.venue_service.VenueService.
Re-exported from parrot_formdesigner.services.workday_sync.WorkdayIdentitySyncAdapter.
Re-exported from parrot_formdesigner.api.a2ui_wire.
Re-exported from parrot_formdesigner.services.event_dispatcher.apply_schema_overrides.
Re-exported from parrot_formdesigner.api.tenant.assert_body_tenant_matches.
Re-exported from parrot_formdesigner.api.tenant.declared_tenant.
Re-exported from parrot_formdesigner.services.event_dispatcher.dispatch.
Re-exported from parrot_formdesigner.api.tenant.enforce_membership_unless_public.
Extract and validate form_uid from the request path (FEAT-389).
extract_form_uid(request: web.Request) -> _uuid.UUID
| Parameter | Type | Default | Description |
|---|---|---|---|
request |
web.Request |
Incoming aiohttp request with form_uid in request.match_info (populated by the {form_uid} route pattern registered in api/routes.py). |
Returns: _uuid.UUID — The validated form_uid as a uuid.UUID.
Raises:
-
web.HTTPBadRequest— If the path segment is not a well-formed UUID. The response is JSON:{"error": "..."}.
Extract and validate a named UUID path param (FEAT-393).
Generalizes :func:extract_form_uid to any {param} path segment
(e.g. field_uid on the upload route).
extract_uid(request: web.Request, param: str) -> _uuid.UUID
| Parameter | Type | Default | Description |
|---|---|---|---|
request |
web.Request |
Incoming aiohttp request with param in request.match_info. |
|
param |
str |
Name of the path param to extract (e.g. "field_uid"). |
Returns: _uuid.UUID — The validated UUID.
Raises:
-
web.HTTPBadRequest— If the path segment is missing or not a well-formed UUID. The response is JSON:{"error": "..."}.
Re-exported from parrot_formdesigner.core.resolution.find_field_by_uid.
Re-exported from parrot_formdesigner.api.render.get_renderer.
Re-exported from parrot_formdesigner.services.csrf.issue_form_csrf_token.
Re-exported from parrot_formdesigner.api.dialect.render_a2ui_schema.
Re-exported from parrot_formdesigner.api.render.supported_formats.
Re-exported from parrot_formdesigner.services.csrf.validate_form_csrf_token.
Re-exported from parrot_formdesigner.core.llm_validation.wire_report.
- 1. MCP Server — exposing tools as a service
- 2. A2A — exposing agents and orchestrators as services
- 3. Toolkits for third party services and Cloud Security composition
- 4. Interaction surface — WebSockets, audio, integrations
- 5. Hardening — anti prompt injection, PBAC and tool gating
- 6. Cross cutting concerns and reference deployment
- 7. AgentCrew — Sequential, Parallel, Flow and Loop execution
- 8. AgentsFlow — DAG first orchestration with per node FSM
- 9. Ontologic RAG — graph first retrieval, intent routing & multi tenant knowledge
- 10. Observability — OpenLIT + OpenTelemetry
- Class Catalog by Module
- Module level Functions Catalog
- AI Parrot — Exposure, Interoperability & Hardening Architecture
- Agent Mesh
- AgentService — Standalone Runtime for Autonomous Agents
- AbstractClient: The Provider Client Family
- Anthropic client
- Bedrock Mantle Client
- TypeSafe System One Client (
JevClient) - Meta Model API Client (Muse Spark)
- OpenAI Compatible Client Base (
OpenAIBaseClient) - Per Loop LLM Client Cache
- Question Token Budgets (Bedrock Converse, Nova text, Bedrock Mantle)
- Agent Configure Lifecycle
- AgentTalk Integration Guide
- Agent Configuration via
agents.yaml - AgentFactory HTTP API
- Agent Studio — API Reference
- Agent CLI Daemon (agentd)
- FirefliesInsightsAgent
- Follow up Suggestion Chips (FEAT 752)
- Agents and Chatbots: The Bot Class Hierarchy
- Agent Studio — database storage (host guide)
- Ephemeral User Agents — Frontend Integration Handoff
parrot agent— Agent Terminal Workspace- Crew Handler
- Database Agent
- Running the CVE Experts
- Domain Experts (FEAT 778)
- FEAT 437
- Technical Voice Guide (AgentTalk Voice) for Frontend
- AgentDashboard — A2UI v1.0 Technical Reference for
navigator frontend next - Semantic UI Model → Adaptive Cards (FEAT 303)
- Exposing an AI Parrot Agent as an MCP Server
- AgentCrew User Guide
- AgentsFlow User Guide
- Crew Definition Storage
- A2UI Agent Functions Runtime — the v1.0 RPC leg (FEAT 469)
- Capabilities of an AI Parrot Analytical Agent (PandasAgent)
- Agent Security Guardrails (FEAT 761)
- SpawnSubAgentTool
- Testagent
- Agentic End to End Testing (FEAT 581)
- Uiagent
- WebAgent — Browser Interaction via Chrome DevTools
- WebNavigatorAgent — Catalogued Web Navigation on Your Chrome Profile
- ExecutionMemory Integration Guide
- Agent Brain
- Agent Memory
- Conversation History Ownership
- Conversation Memory Subsystem Overview
- Dream Cycle — episodic → wiki brain consolidation
- Durable Conversation Memory
- Memory Dynamics
- Per Turn Conversation Compaction
- Recoverable Task Memory (FEAT 538)
- Task Memory — Phase 0 Integration Map (FEAT 538 / TASK 2970)
- User Memory
- Bookstore Agentic Retrieval
- Bookstore in Codex
- Bookstore Conceptual Relations — the book graph (FEAT 533)
- Bookstore notebooks
- Contracts catalog performance (FEAT 539, AC14)
- Contracts pilot acceptance — Bob's twelve cases (FEAT 539, AC15)
- Contracts Card & Ontology (FEAT 539)
- Luau parser resource policy (FEAT 532 TASK 2896)
- Glossary of Terms (FEAT 917)
- GraphIndex core seams (FEAT 540)
- GraphIndex — Structured Knowledge Graph Indexing
- Local Knowledge Base
- Procedure Graph — Assembly Manuals (FEAT 601)
- Ontology backend programme
- Ontology vocabulary store
- PageIndex Agentic Retrieval and Citations
- PageIndex Generation Publication
- PageIndex Layout Structure Builder
- PageIndex Local MCP Toolkit
- PageIndex Segment Store
- PageIndex Tree Optimizer
- PageIndex — Tree Based RAG for Document Retrieval
- ArxivTool for AI Parrot
- Accounting metrics layer
- Tool Result Compression Pipeline (FEAT 380)
- DatasetManager Implementation Walkthrough
- FredAPITool Documentation
- EmployeesTool Employee Hierarchy Tool for AI Parrot
- HoobaToolkit
- Jira text templates (JiraToolkit)
- Expose Toolkits as Local MCP (
parrot mcp local) - MultiStoreSearch Toolkit — Multi Origin Retrieval for Agents
- Supervised Obscura Browser Integration
- OdooHelpdeskToolkit — Softhealer helpdesk on Odoo 19
- OdooToolkit Capabilities
- QuerysourceToolkit
- ReadOnlyRepoToolkit (FEAT 484)
- PythonREPLTool Sandbox: Worker Process Execution Model
- Research Tools for Agents
- gVisor Installation Guide for AI Parrot Secure Sandbox
- SDD Sandbox — OS Setup
- Governed semantic layer
- Tool optimizations for Claude Code and Codex (FEAT 543)
- AbstractTool Clone Method
- Toolbar API Documentation
- AudioNoteCaptureToolkit
- ExecutionPlanToolkit — Reference
- Host toolkits for Agent Studio
- Infographic Authoring for Data Agents (FEAT 326)
- InfographicToolkit — Reference
- Tool System Internals: Tools, Toolkits and ToolManager
- AI Parrot Tools Documentation
- What If Scenario Analysis
- Workday worker history
- DecisionFlowNode Usage Guide
- Multi Agent Orchestration: AgentCrew and AgentsFlow
- Docker Tool Executor & Execution Policy
- Generic Gate Host
- HeartbeatManager — Per Agent Autonomous Heartbeat Loop
- JobManager
- Node Types Reference
- OrchestratorAgent — Multi Party Conferencing (
confer) - Planogram compliance cycle (perceive → identify → compare)
- Planogram compliance — migrating configurations to the new cycle (FEAT 574, FEAT 612)
- Planogram perception spike — FEAT 574
- Scheduler backends in multi worker deployments
- Thales User Guide
- Per tenant skills (FEAT 707)
- Skill routing and trigger caching
- Skills system: discovery, toolkits and mixin
- Contextual Embedding Headers
- DocumentDB Usage Patterns
- DocumentDB Interface Guide
- DynamoDB Local (docker compose)
- Fully offline local agent with LanceDB (FEAT 542)
- LanceDB vector, full text and hybrid store (FEAT 542)
- Loader Metadata Standard
- Document Loaders for RAG
- Matryoshka Embedding Truncation
- Parent Child Retrieval (Small to Big)
- Storage Backends Guide
- User stores (Redis by default)
- Vector Stores and Embeddings Reference
- Vector Store Handler — API Reference
- A2A Secure Communication Demo
- Agent as a Local MCP Server (parrot toolkits install agent)
- add repository:
- GitHub MCP Installation and Usage
- MCP integration: client, server and agent tools
- Create and configure agent
- Roost — local inter agent sub protocol
- Roost carriers
- Roost performatives, protocols and obligations
- Simple Mcp Server
- SimpleMCPServer Configuration
- API Endpoints Reference
- Admin UI (FEAT 468)
- Infographic Render Endpoint — Reference
- EventBus v2 Configuration Reference (
[bus]/[bus.alerts]) - EventBus v2 Migration Notes (FEAT 310)
- EventBus v2 — Unified Event Fabric (FEAT 310)
- Session file store
- A2UI Dashboard + Widget Renderer — Frontend Build Guide
- Avatar Technical Guide (LiveAvatar Phase A) for Frontend
- Frontend Guide for SvelteKit: LiveAvatar FULL Mode and VoiceBot (FEAT 248)
- DEPRECATED: Native Voice Avatar (LiveAvatar Phase C) Technical Guide for Frontend
- Technical Guide to Structured Artifacts for Frontend
- VoiceBot · VoiceChatHandler · FEAT 245 — Frontend Guide for Realtime Conversation with Agents
- Server Layer: BotManager and HTTP Handlers
- Infographic Handler — Frontend API Contract
- Interactive Artifacts — Frontend API Contract
- Google Drive file manager
- SharePoint & OneDrive file managers
- WhatsApp Integration Implementation Summary
- WhatsApp Integration for AI Parrot
- P3 — parrot admin ui inventory (canvases / A2UI / infographic / builders)
- WhatsApp + AutonomousOrchestrator Integration
- Audio Form Voice Modes — Developer Guide
- Who owns an OAuth2 (3LO) credential
- CommCenter — Bulk Notification Sender (FEAT 417)
- FormDesigner → MS Teams: Adaptive Card renderer and bot submit path (FEAT 551)
- GitHub reviewer
- Google OAuth 2.0 — AI Parrot Integration
- Fireflies Agent Examples
- HITL Tool Call Confirmation (FEAT 235)
- Teams HITL Channel Setup Guide (FEAT 205)
- JiraSpecialist Prompt Layer Stack
- JiraSpecialist — Daily Standup Lanes
- Jira Transition Actions — Activating
TRIGGER_AGENTDispatch - Jupyter Output Mode Documentation
- Knowledge upload from chat (FEAT 647)
- LiveAvatar over your own LiveKit (Cloud or self hosted)
- Matrix Bridges for the AI Parrot Swarm (FEAT 463)
- Matrix Clients for the AI Parrot Swarm (FEAT 463)
- Migration Guide: FEAT 202 — ai parrot integrations
- Connections on Microsoft Teams
- MS Teams Toolkit for AI Parrot
- Nova Sonic Voice Protocol Reference
- Office 365 OAuth 2.0 (Delegated) — AI Parrot Integration
- PR Review Command — Setup Guide
- Queued chat commands
- Runbook — the
issuesnamespace (Jira ticket corpus) - Dev loop kick off from Slack (FEAT 555)
- Telegram Auth Open Mode (webview | browser)
- Telegram connections
- Telegram Bot Integration Guide
- FEAT 536 — VoiceBot Nova Dual Output + LiveAvatar: Real Live Operational Acceptance
- FEAT 537 — Nova VoiceBot avatar broadcast: operational acceptance
- FEAT 537 — Nova PCM → LiveAvatar LITE → LiveKit multi subscriber live gate
- speech_report TTS backends
- Nova VoiceBot avatar broadcast for multiple browsers (FEAT 537)
- 🦜 AI Parrot Voice Chat
- WhisperX Setup Guide for AI Parrot
- A2UI Linked Surfaces (FEAT 598)
- A2UI v1.0 Wire (FEAT 470)
- === D3.js ===
- Backend HTML Design System (FEAT 493)
- FEAT 488
- FormDesigner Audio Renderer
- Form Designer — Autonomous FormSchema Persistence (Standalone Forms)
- Form Designer — Conditional Sections: Pre/Post Dependencies
- FormBuilder — LLM answer plausibility enforcement
- FormDesigner — orphan upload cleanup (FEAT 731)
- FormDesigner — public response controls
- Form Designer — Relational Fields
- Serving FormDesigner forms from a Teams agent
- Form Designer — Unknown Field Capture Policy for Form Submissions
- FormDesigner — validation audit trail
- Infographic Recipes (FEAT 324)
- Inline A2UI Component Routing (FEAT 755)
- Metric Definition Registry (FEAT 756)
- Smart OutputFormatter Documentation
- N4 — navigator api backend inventory (dashboards / widgets / templates / modules / programs)
- P1 — ai parrot HTTP/WS endpoint inventory (report builder lens)
- P2 — ai parrot (Python) UI components, models, renderers, persistence — inventory for a REPORT BUILDER
- P4 — ai parrot prior art for a Report Builder (SDD inventory)
- ai parrot server — Admin / Bots / Studio / misc endpoint inventory
- P1 — ai parrot HTTP/WS endpoint inventory (report builder lens) ( core)
- parrot formdesigner — HTTP/WS endpoint inventory
- Report Builder — ai parrot inventory and analysis
- WeasyPrint 69.0 CSS Support — Empirical Findings
- Identity Capability User Guide
- Layers Reference
- Output Language (FEAT 638)
- PromptBuilder — User Modifiable Variables
- PromptBuilder User Guide
- Delegated OAuth2 connections
- Delegated OAuth2 connections on the web channel — deployment recipe and live harness
- Deterministic Groundedness Scoring
- ONNX Backend for the Prompt Injection Guardrail (FEAT 439)
- PBAC Guardrails — Policy Driven Tool Call Denial (FEAT 406)
- SecurityAdvisor — SOC2 Oriented Read Only Advisory Agent
- User Profile Management
- AI Parrot MCP Server AWS Deployment Guide
- Bot Cleanup Lifecycle
- Business Automation — Operator Runbook
parrot loginand connections- CompanyInfoToolkit
- Per component and per agent LLM defaults (FEAT 796, FEAT 882)
- Answer Accuracy Metrics for the Evaluation Harness (FEAT 652)
- Infographic CSP and Signed URLs — Operations Guide
- Global install: the parrot managed runtime (reference)
- Runbook — the Fireflies Meeting Registry
- Wiki standup briefs — runbook
parrot.finance— the finance satellite- Migration — FEAT 201: ai parrot embeddings
- Migration — FEAT 203: ai parrot server
- FEAT 223 — Structured Artifact Contract: Migration Guide
- FEAT 273 — Legacy output mode deprecations → A2UI
- Migration — FEAT 315: Unified NovaClient for all Amazon Nova models
- Migration — FEAT 421: Client declared tenant in the forms URL
- Migration — FEAT 446: SaaS Auth Hardening (S0 of Parrot Research Cloud)
- Migration — FEAT 473: A2UI v1.0 for STRUCTURED_CHART / STRUCTURED_TABLE / STRUCTURED_MAP
- Migration — FEAT 523: PEP 420 LLM Client Extraction
- Gemini 2.5 retirement (FEAT 798)
- Migration — FEAT 564: Reliable video reels with Gemini Omni and Veo 3.1
- Native Claude sandbox for SDD sessions (FEAT 768)
- Complementary (collaborative) research partner (FEAT 482)
- Dev flow per seat LLM configuration (
DevFlowModelPlan) - Dev loop
novabackend (AWS Bedrock) - sdd worker as orchestrator of parallel sdd coder seats (FEAT 549)
- SDD compaction capability record
- SDD execution optimization — operation and rollout
- Proposals to Reduce SDD Execution Time
- Dev flow / dev loop telemetry accounting
- Language Agnostic Validation Runners (FEAT 709)
- Spec Driven Development in Google Gemini / Antigravity CLI
- Guide to using the SDD slash commands
- AI Parrot Spec Driven Development (SDD) Platform
- SDD on Google Antigravity (agy)
/sdd donecloseout hooks- Decision Audit (FEAT 784)
- SDD experience memory
- SDD Expert Consult
- Ledger outbox (FEAT 758)
- FEAT 580 LSP Pilot — Live Evaluation Results
- SDD LSP research pilot (FEAT 580)
- Necessity Ladder (FEAT 908)
- Procedure Graph
- Test selection in the SDD flow — the Validation Contract (FEAT 699)
- wikitoolkit Cheatsheet
- wikitoolkit inbox
- wikitoolkit lint
- LLM Wiki — an agent maintained knowledge repository
- Schema Plane — Operator Guide (FEAT 600)
- SQLite concurrency for wiki and ledger
- wikitoolkit standup
- WikiToolkit as Claude Code infrastructure
- Authentication uses Navigator Auth
- AbstractClient base changes require a decision
- Clients are memory less
- Configuration uses NavConfig
- Graph backends — retire ArangoDB for PostgreSQL + SurrealDB
- Conversation history has one writer
- HTTP stack uses aiohttp
- LangChain is not part of the stack
- Async code remains non blocking
- Concrete tools live in ai parrot tools