{"openapi":"3.1.0","info":{"title":"Plenex Spatial Engine","summary":"Stable /v1 spatial-intelligence API for apps built on the engine.","version":"1.0"},"paths":{"/v1/api-keys":{"post":{"tags":["api-keys"],"summary":"Create Api Key","operationId":"create_api_key_v1_api_keys_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiKeyCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiKeyCreated"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["api-keys"],"summary":"List Api Keys","operationId":"list_api_keys_v1_api_keys_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ApiKeyOut"},"title":"Response List Api Keys V1 Api Keys Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/api-keys/{key_id}":{"delete":{"tags":["api-keys"],"summary":"Revoke Api Key","operationId":"revoke_api_key_v1_api_keys__key_id__delete","parameters":[{"name":"key_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Key Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/me":{"get":{"tags":["identity"],"summary":"Me","operationId":"me_v1_me_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MeOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["identity"],"summary":"Update Me","description":"Set my own name. Without this the only source of a real name is the IdP's\n\"name\" claim, which the dev provider doesn't issue — so every dev/staging\naccount would be stuck on the email-derived fallback.","operationId":"update_me_v1_me_patch","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MeUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MeOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/me/project-org/{project_id}":{"get":{"tags":["identity"],"summary":"Project Org","description":"Which of MY organisations holds this project — so a link into another org\nI belong to switches the workspace there instead of 404ing (the console's\nProjectOrgGate). Answers only for an org where I hold a non-guest role\n(guests see shared reports, never projects); anything else is 404, so it\nnever reveals that another org's project exists. Staff \"Act as\" stays a\ndeliberate, audited action — this never starts one.","operationId":"project_org_v1_me_project_org__project_id__get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectOrgOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/plans":{"get":{"tags":["entitlements"],"summary":"List Plans","operationId":"list_plans_v1_plans_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/engine__api__entitlements__PlanOut"},"title":"Response List Plans V1 Plans Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/organisations/{org_id}/entitlements":{"get":{"tags":["entitlements"],"summary":"Get Org Entitlements","operationId":"get_org_entitlements_v1_organisations__org_id__entitlements_get","parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrgEntitlementsOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["entitlements"],"summary":"Put Org Entitlements","operationId":"put_org_entitlements_v1_organisations__org_id__entitlements_put","parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrgEntitlementsIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrgEntitlementsOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/members":{"get":{"tags":["members"],"summary":"List Members","operationId":"list_members_v1_members_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/MemberOut"},"title":"Response List Members V1 Members Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["members"],"summary":"Add Member","description":"Add someone to this org by email. An existing Plenex identity joins\nimmediately; an unknown address gets an invitation instead (see the module\ndocstring for why that asymmetry is structural, not a policy choice).","operationId":"add_member_v1_members_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddMemberIn"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddMemberOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/members/directory":{"get":{"tags":["members"],"summary":"Member Directory","description":"The colleagues this caller may see and address — the source for every\npeople picker (@mentions, send-to). The org owner decides who appears\n(``directory_visible``); the caller always sees themselves; guests are\nneither listed nor able to list (they hold no ``read`` scope).\n\nHidden means *not listed and not suggested*. It is not anonymity: a hidden\nperson who comments on a report is still named there.","operationId":"member_directory_v1_members_directory_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/DirectoryEntry"},"title":"Response Member Directory V1 Members Directory Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/members/directory-visibility":{"patch":{"tags":["members"],"summary":"Set Directory Visibility","description":"Show or hide people in the member directory. Owner (or staff acting as\nthe org) only. Ids that are not members of this org are ignored, never an\nerror — the answer is the org's list as it now stands.","operationId":"set_directory_visibility_v1_members_directory_visibility_patch","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DirectoryVisibilityIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/MemberOut"},"title":"Response Set Directory Visibility V1 Members Directory Visibility Patch"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/members/{user_id}":{"patch":{"tags":["members"],"summary":"Change Member Role","description":"Change a member's role within the current org. An admin may manage members\n(e.g. promote a member to admin); only the **owner** may change an existing\nadmin's role — an admin can't touch a peer admin (access-control.md §3). The\nowner seat and your own role aren't changed here. A staff user \"acting as\" the\norg (org_id differs from their own) gets owner-level reach, like org rename,\nand may additionally seat a new owner (promote a member/admin to owner).","operationId":"change_member_role_v1_members__user_id__patch","parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"User Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoleUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MemberOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["members"],"summary":"Remove Member","description":"Remove a member from the current org. Refuses to remove yourself or the\norg owner. An org admin only ever takes away THIS org (PLE-91): an additional\nmembership is dropped; a PRIMARY seat moves to the person's oldest other\nmembership. Only when this org was their last does the identity soft-disable —\nthere's nowhere left to sign in to, and ``_reprovision`` brings them back on\na fresh invite.","operationId":"remove_member_v1_members__user_id__delete","parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"User Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/memberships/new":{"get":{"tags":["members"],"summary":"New Memberships","description":"Orgs an admin added me to that I haven't been shown yet.","operationId":"new_memberships_v1_memberships_new_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AddedToOrgOut"},"title":"Response New Memberships V1 Memberships New Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/memberships/{org_id}/ack":{"post":{"tags":["members"],"summary":"Acknowledge Membership","description":"The notice has been shown — don't raise it again. Idempotent.","operationId":"acknowledge_membership_v1_memberships__org_id__ack_post","parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/memberships/{org_id}":{"delete":{"tags":["members"],"summary":"Leave Organisation","description":"Leave an org I'm a member of. This is the exit that makes adding someone\nwithout their consent acceptable, so it's deliberately unilateral — no admin\napproval, no cooling-off.","operationId":"leave_organisation_v1_memberships__org_id__delete","parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/notifications":{"get":{"tags":["notifications"],"summary":"List Notifications","operationId":"list_notifications_v1_notifications_get","parameters":[{"name":"before","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Before"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":30,"title":"Limit"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/NotificationOut"},"title":"Response List Notifications V1 Notifications Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["notifications"],"summary":"Delete All Notifications","operationId":"delete_all_notifications_v1_notifications_delete","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CountOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/notifications/unread-count":{"get":{"tags":["notifications"],"summary":"Unread Count","operationId":"unread_count_v1_notifications_unread_count_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CountOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/notifications/read-all":{"post":{"tags":["notifications"],"summary":"Mark All Read","operationId":"mark_all_read_v1_notifications_read_all_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CountOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/notifications/read-subject":{"post":{"tags":["notifications"],"summary":"Mark Subject Read","description":"Opening the thing a notification is about clears it — however the person\ngot there (the bell, the email link, the reports list). Returns how many\nrows that cleared.\n\nThe FIRST open of a report that was sent to someone is the \"delivered\" half\nof the send's audit record, so it is written here, once per send.","operationId":"mark_subject_read_v1_notifications_read_subject_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubjectIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CountOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/notifications/{notification_id}/read":{"post":{"tags":["notifications"],"summary":"Mark Read","operationId":"mark_read_v1_notifications__notification_id__read_post","parameters":[{"name":"notification_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Notification Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/notifications/{notification_id}":{"delete":{"tags":["notifications"],"summary":"Delete Notification","operationId":"delete_notification_v1_notifications__notification_id__delete","parameters":[{"name":"notification_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Notification Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/org":{"patch":{"tags":["organisation"],"summary":"Rename Org","description":"Rename the current organisation. Owner-only — admins and members get 403.\nA staff user acting as the org renames it through the impersonation grant\n(org_id differs from their own org only when get_current_org honoured a live\ngrant), so the owner check is skipped for them.","operationId":"rename_org_v1_org_patch","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrgRename"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/engine__api__org__OrgOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/invitations":{"post":{"tags":["invitations"],"summary":"Create Invitation","operationId":"create_invitation_v1_invitations_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InviteCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InviteCreated"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["invitations"],"summary":"List Invitations","operationId":"list_invitations_v1_invitations_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/InviteOut"},"title":"Response List Invitations V1 Invitations Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/invitations/{invite_id}/resend":{"post":{"tags":["invitations"],"summary":"Resend Invitation","operationId":"resend_invitation_v1_invitations__invite_id__resend_post","parameters":[{"name":"invite_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Invite Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InviteCreated"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/invitations/{invite_id}":{"delete":{"tags":["invitations"],"summary":"Revoke Invitation","operationId":"revoke_invitation_v1_invitations__invite_id__delete","parameters":[{"name":"invite_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Invite Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/invitations/lookup":{"get":{"tags":["invitations"],"summary":"Lookup Invitation","description":"Public: render the accept page. Returns 200 with the effective status for\na known token (so the page can show 'expired'/'revoked'/'accepted'); only a\nwholly unknown token is 404.","operationId":"lookup_invitation_v1_invitations_lookup_get","parameters":[{"name":"token","in":"query","required":true,"schema":{"type":"string","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InviteLookup"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/invitations/accept":{"post":{"tags":["invitations"],"summary":"Accept Invitation","description":"Bind a verified Identity Platform login to the invited org+role. The\ncaller has just set their password with Identity Platform (so we trust the\ntoken's subject/email); here we provision the org-bound ``User``. Idempotent\nfor the same identity re-accepting an invite it already accepted.","operationId":"accept_invitation_v1_invitations_accept_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AcceptIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AcceptOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/invitations/mine":{"get":{"tags":["invitations"],"summary":"My Invitations","description":"Pending invites addressed to the signed-in user, across all orgs — what\nthe console prompts with after sign-in. Expiry is filtered in Python (via\n``_effective_status``) rather than SQL so both dialects agree on the same\nnaive/aware comparison the rest of this module uses.","operationId":"my_invitations_v1_invitations_mine_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/MyInviteOut"},"title":"Response My Invitations V1 Invitations Mine Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/invitations/{invite_id}/accept":{"post":{"tags":["invitations"],"summary":"Accept My Invitation","description":"Accept one of my pending invites from inside the app — no token, no\npassword step: the caller is already signed in as the invited email.","operationId":"accept_my_invitation_v1_invitations__invite_id__accept_post","parameters":[{"name":"invite_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Invite Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AcceptOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/invitations/{invite_id}/decline":{"post":{"tags":["invitations"],"summary":"Decline My Invitation","description":"Decline one of my pending invites. The row stays for the admin to see\n(Members page) — declining stops the prompt, it doesn't hide the answer.","operationId":"decline_my_invitation_v1_invitations__invite_id__decline_post","parameters":[{"name":"invite_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Invite Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/join-requests":{"post":{"tags":["join-requests"],"summary":"Create Join Request","operationId":"create_join_request_v1_join_requests_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JoinRequestIn"}}},"required":true},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JoinRequestOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/auth/claim-password":{"post":{"tags":["auth"],"summary":"Claim Password","operationId":"claim_password_v1_auth_claim_password_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/engine__api__password_claim__ClaimIn"}}},"required":true},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/audit":{"get":{"tags":["admin"],"summary":"List Audit Events","operationId":"list_audit_events_v1_admin_audit_get","parameters":[{"name":"before","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Before"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"default":100,"title":"Limit"}},{"name":"event_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Event Type"}},{"name":"category","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Category"}},{"name":"org_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Org Id"}},{"name":"user_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"User Id"}},{"name":"target_kind","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Target Kind"}},{"name":"target_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Target Id"}},{"name":"email","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":320},{"type":"null"}],"title":"Email"}},{"name":"correlation_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Correlation Id"}},{"name":"success","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Success"}},{"name":"since","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Since"}},{"name":"until","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Until"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AuditEventOut"},"title":"Response List Audit Events V1 Admin Audit Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/audit/export":{"get":{"tags":["admin"],"summary":"Export Audit Events","description":"The filtered trail as CSV. Reading the audit log in bulk is itself an\nauditable act, so the export records what was asked for and how much left.","operationId":"export_audit_events_v1_admin_audit_export_get","parameters":[{"name":"event_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Event Type"}},{"name":"category","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Category"}},{"name":"org_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Org Id"}},{"name":"user_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"User Id"}},{"name":"target_kind","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Target Kind"}},{"name":"target_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Target Id"}},{"name":"email","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":320},{"type":"null"}],"title":"Email"}},{"name":"correlation_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Correlation Id"}},{"name":"success","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Success"}},{"name":"since","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Since"}},{"name":"until","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Until"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/organisations":{"post":{"tags":["organisations"],"summary":"Create Organisation","description":"Create an organisation and invite its first owner. The owner accepts the\nreturned link (sets a password) and can then invite their own members.","operationId":"create_organisation_v1_organisations_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrgCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrgCreated"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["organisations"],"summary":"List Organisations","operationId":"list_organisations_v1_organisations_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/engine__api__organisations__OrgOut"},"title":"Response List Organisations V1 Organisations Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/organisations/{org_id}":{"get":{"tags":["organisations"],"summary":"Get Organisation","operationId":"get_organisation_v1_organisations__org_id__get","parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/engine__api__organisations__OrgOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["organisations"],"summary":"Update Organisation","description":"Rename an organisation. Only the org's own name changes — report\nbranding keeps its separate ``company_name`` (org_settings.branding).","operationId":"update_organisation_v1_organisations__org_id__patch","parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrgPatch"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/engine__api__organisations__OrgOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["organisations"],"summary":"Delete Organisation","description":"Permanently purge an organisation and everything it owns (irreversible).\nRefuses the staff user's own org; the admin UI gates this behind a\ntype-the-name confirmation.\n\nPeople are not the org's to delete if they belong elsewhere: a user whose\nPRIMARY org this is but who has other memberships keeps their identity, with\nthe primary seat moved (core.memberships.move_primary_off). Only users with\nnowhere else to go are deleted. Rows and their dependents come from the FK\ngraph (core.purge); the org's bucket prefix is dropped after commit.","operationId":"delete_organisation_v1_organisations__org_id__delete","parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/organisations/{org_id}/users":{"get":{"tags":["organisations"],"summary":"List Org Users","description":"Everyone in the org — primary and additional-org members alike\n(core/memberships.py) — then the removed (disabled) primary accounts, so\nstaff can see who used to be here.","operationId":"list_org_users_v1_organisations__org_id__users_get","parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/OrgUserOut"},"title":"Response List Org Users V1 Organisations  Org Id  Users Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/organisations/{org_id}/invitations":{"get":{"tags":["organisations"],"summary":"List Org Invitations","operationId":"list_org_invitations_v1_organisations__org_id__invitations_get","parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/InviteOut"},"title":"Response List Org Invitations V1 Organisations  Org Id  Invitations Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/organisations/{org_id}/invitations/{invite_id}/renew":{"post":{"tags":["organisations"],"summary":"Renew Org Invitation","description":"A fresh single-use link with a fresh expiry. The old link stops working —\nonly the token's hash is stored, so the original can never be shown again.\n``email=false`` is the \"copy link\" path: staff paste it themselves.","operationId":"renew_org_invitation_v1_organisations__org_id__invitations__invite_id__renew_post","parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}},{"name":"invite_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Invite Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InviteRenew"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InviteCreated"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/organisations/{org_id}/invitations/{invite_id}":{"delete":{"tags":["organisations"],"summary":"Revoke Org Invitation","operationId":"revoke_org_invitation_v1_organisations__org_id__invitations__invite_id__delete","parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}},{"name":"invite_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Invite Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/organisations/{org_id}/projects":{"get":{"tags":["organisations"],"summary":"List Org Projects","description":"Every project of an org, INCLUDING soft-deleted ones (deleted_at set), so\nstaff can review, restore or purge them.","operationId":"list_org_projects_v1_organisations__org_id__projects_get","parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/StaffProjectOut"},"title":"Response List Org Projects V1 Organisations  Org Id  Projects Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/organisations/{org_id}/projects/{project_id}/restore":{"post":{"tags":["organisations"],"summary":"Restore Org Project","description":"Un-delete a soft-deleted project — it reappears in the org's lists.\nIdempotent for an already-active project.","operationId":"restore_org_project_v1_organisations__org_id__projects__project_id__restore_post","parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StaffProjectOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/organisations/{org_id}/projects/{project_id}":{"delete":{"tags":["organisations"],"summary":"Purge Org Project","description":"Permanently purge one project and all its data (irreversible).","operationId":"purge_org_project_v1_organisations__org_id__projects__project_id__delete","parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/env-copy":{"get":{"tags":["env-copy"],"summary":"Get Config","operationId":"get_config_v1_env_copy_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConfigOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/organisations/{org_id}/projects/{project_id}/copy-scenes":{"get":{"tags":["env-copy"],"summary":"List Copy Scenes","operationId":"list_copy_scenes_v1_organisations__org_id__projects__project_id__copy_scenes_get","parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CopySceneOut"},"title":"Response List Copy Scenes V1 Organisations  Org Id  Projects  Project Id  Copy Scenes Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/organisations/{org_id}/projects/{project_id}/copy-uploads":{"get":{"tags":["env-copy"],"summary":"List Copy Uploads","description":"The project's raw uploads (what a customer sent), for copying to the\nother environment to be processed there.","operationId":"list_copy_uploads_v1_organisations__org_id__projects__project_id__copy_uploads_get","parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CopyUploadOut"},"title":"Response List Copy Uploads V1 Organisations  Org Id  Projects  Project Id  Copy Uploads Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/organisations/{org_id}/projects/{project_id}/copy-out":{"post":{"tags":["env-copy"],"summary":"Copy Out","operationId":"copy_out_v1_organisations__org_id__projects__project_id__copy_out_post","parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CopyOutIn"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/engine__api__env_copy__RunOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/env-copy/incoming":{"get":{"tags":["env-copy"],"summary":"List Incoming","operationId":"list_incoming_v1_env_copy_incoming_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response List Incoming V1 Env Copy Incoming Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/env-copy/incoming/{bundle_id}/preview":{"post":{"tags":["env-copy"],"summary":"Preview Import","operationId":"preview_import_v1_env_copy_incoming__bundle_id__preview_post","parameters":[{"name":"bundle_id","in":"path","required":true,"schema":{"type":"string","title":"Bundle Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PreviewIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PreviewOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/env-copy/incoming/{bundle_id}/import":{"post":{"tags":["env-copy"],"summary":"Import Bundle","operationId":"import_bundle_v1_env_copy_incoming__bundle_id__import_post","parameters":[{"name":"bundle_id","in":"path","required":true,"schema":{"type":"string","title":"Bundle Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/engine__api__env_copy__ImportIn"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/engine__api__env_copy__RunOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/impersonation":{"post":{"tags":["admin"],"summary":"Begin Impersonation","operationId":"begin_impersonation_v1_admin_impersonation_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImpersonateStart"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/engine__api__admin__GrantOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["admin"],"summary":"List Impersonations","operationId":"list_impersonations_v1_admin_impersonation_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/engine__api__admin__GrantOut"},"title":"Response List Impersonations V1 Admin Impersonation Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/impersonation/current":{"delete":{"tags":["admin"],"summary":"End Impersonation","description":"End the staff user's active Act-as (idempotent — no-op if none).","operationId":"end_impersonation_v1_admin_impersonation_current_delete","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/staff":{"get":{"tags":["admin"],"summary":"List Staff","operationId":"list_staff_v1_admin_staff_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/StaffUserOut"},"title":"Response List Staff V1 Admin Staff Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["admin"],"summary":"Grant Staff","description":"Give an existing Plenex identity the staff flag. Idempotent: re-granting\nsomeone who already has it returns the row without a second audit entry.","operationId":"grant_staff_v1_admin_staff_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StaffGrant"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StaffUserOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/staff/{user_id}":{"delete":{"tags":["admin"],"summary":"Revoke Staff","description":"Take the flag away. Refuses self-revocation — the last thing a staff user\nshould be able to do by accident is lock themselves out of the admin plane.","operationId":"revoke_staff_v1_admin_staff__user_id__delete","parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"User Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/usage":{"get":{"tags":["admin"],"summary":"Usage By Org","operationId":"usage_by_org_v1_admin_usage_get","parameters":[{"name":"days","in":"query","required":false,"schema":{"type":"integer","maximum":365,"minimum":1,"default":30,"title":"Days"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UsageOverview"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/demo-videos":{"post":{"tags":["demo-videos"],"summary":"Create Video","description":"Reserve the row and hand back two signed PUT URLs — the mp4 and its\nposter. The browser uploads both straight to GCS (no bytes touch the app)\nand then calls ``/register``.","operationId":"create_video_v1_demo_videos_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VideoCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VideoCreated"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["demo-videos"],"summary":"List Videos","description":"Every live video across the platform, pending ones included — this is the\nstaff library, so upload failures have to be visible.","operationId":"list_videos_v1_demo_videos_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/StaffVideoOut"},"title":"Response List Videos V1 Demo Videos Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/demo-videos/{video_id}/register":{"post":{"tags":["demo-videos"],"summary":"Register Video","operationId":"register_video_v1_demo_videos__video_id__register_post","parameters":[{"name":"video_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Video Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VideoRegister"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StaffVideoOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/demo-videos/{video_id}":{"patch":{"tags":["demo-videos"],"summary":"Patch Video","operationId":"patch_video_v1_demo_videos__video_id__patch","parameters":[{"name":"video_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Video Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VideoPatch"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StaffVideoOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["demo-videos"],"summary":"Delete Video","description":"Soft delete. The media bucket's 30-day WORM retention usually refuses the\nobject delete, so the row — not the bucket — is the authority on what is\ngone; the placements go with it.","operationId":"delete_video_v1_demo_videos__video_id__delete","parameters":[{"name":"video_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Video Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/demo-videos/placements/{org_id}":{"put":{"tags":["demo-videos"],"summary":"Set Org Placements","description":"Replace one organisation's whole placement set. Org-first because that is\nhow staff think about it (\"what does this customer see?\") and because it\nmakes the save one request no matter how many videos moved.","operationId":"set_org_placements_v1_demo_videos_placements__org_id__put","parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Placement"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"string"},"title":"Response Set Org Placements V1 Demo Videos Placements  Org Id  Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/demo-videos/{video_id}/watch-url":{"get":{"tags":["demo-videos"],"summary":"Staff Watch Url","description":"Staff preview — unscoped by design, so a video can be checked before it\nis placed anywhere.","operationId":"staff_watch_url_v1_demo_videos__video_id__watch_url_get","parameters":[{"name":"video_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Video Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Staff Watch Url V1 Demo Videos  Video Id  Watch Url Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/demos":{"get":{"tags":["demos"],"summary":"List Demos","operationId":"list_demos_v1_demos_get","parameters":[{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DemoList"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/demos/{video_id}/watch-url":{"post":{"tags":["demos"],"summary":"Watch Url","description":"Mint a short-lived playback URL, re-checking visibility for THIS caller.\n404 (not 403) on a miss: whether a video exists is itself org information.","operationId":"watch_url_v1_demos__video_id__watch_url_post","parameters":[{"name":"video_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Video Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Watch Url V1 Demos  Video Id  Watch Url Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/playgrounds":{"get":{"tags":["playgrounds"],"summary":"List Playgrounds","description":"The playgrounds shared with me (published ones; staff see drafts too),\neach with the state of my copy.","operationId":"list_playgrounds_v1_playgrounds_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/PlaygroundCardOut"},"title":"Response List Playgrounds V1 Playgrounds Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/playgrounds/{playground_id}/open":{"post":{"tags":["playgrounds"],"summary":"Open Playground","description":"My private copy of this playground — made from the latest published\nversion the first time I open it (about a second: the scan is shared).","operationId":"open_playground_v1_playgrounds__playground_id__open_post","parameters":[{"name":"playground_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Playground Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpenOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/playgrounds/copies/{scene_id}":{"get":{"tags":["playgrounds"],"summary":"Get Copy","description":"What the viewer's playground bar shows: version, an update, what's\nnew, and the published examples and lessons (read live).","operationId":"get_copy_v1_playgrounds_copies__scene_id__get","parameters":[{"name":"scene_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Scene Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CopyOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/playgrounds/copies/{scene_id}/reset":{"post":{"tags":["playgrounds"],"summary":"Reset My Copy","description":"Put my copy back to the latest published version. My chats, my own\nreports and my lesson progress stay unless ``fresh``.","operationId":"reset_my_copy_v1_playgrounds_copies__scene_id__reset_post","parameters":[{"name":"scene_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Scene Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResetIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResetOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/playgrounds/copies/{scene_id}/reports/{report_id}/restore":{"post":{"tags":["playgrounds"],"summary":"Restore Example Report","description":"Put one example report in my copy back to how Plenex published it.","operationId":"restore_example_report_v1_playgrounds_copies__scene_id__reports__report_id__restore_post","parameters":[{"name":"scene_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Scene Id"}},{"name":"report_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Report Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RestoredOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/playgrounds/copies/{scene_id}/state":{"patch":{"tags":["playgrounds"],"summary":"Patch Copy State","operationId":"patch_copy_state_v1_playgrounds_copies__scene_id__state_patch","parameters":[{"name":"scene_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Scene Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StateIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Patch Copy State V1 Playgrounds Copies  Scene Id  State Patch"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/playgrounds/copies/{scene_id}/examples":{"get":{"tags":["playgrounds"],"summary":"List Copy Examples","operationId":"list_copy_examples_v1_playgrounds_copies__scene_id__examples_get","parameters":[{"name":"scene_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Scene Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ExampleCardOut"},"title":"Response List Copy Examples V1 Playgrounds Copies  Scene Id  Examples Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/playgrounds/copies/{scene_id}/examples/{key}":{"get":{"tags":["playgrounds"],"summary":"Get Copy Example","description":"A recorded example, ready to replay in my copy: entity ids in its\nviewer commands mapped to my copy's own, and the ones I deleted flagged.","operationId":"get_copy_example_v1_playgrounds_copies__scene_id__examples__key__get","parameters":[{"name":"scene_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Scene Id"}},{"name":"key","in":"path","required":true,"schema":{"type":"string","title":"Key"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Copy Example V1 Playgrounds Copies  Scene Id  Examples  Key  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/playgrounds/copies/{scene_id}/lessons":{"get":{"tags":["playgrounds"],"summary":"List Copy Lessons","operationId":"list_copy_lessons_v1_playgrounds_copies__scene_id__lessons_get","parameters":[{"name":"scene_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Scene Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Copy Lessons V1 Playgrounds Copies  Scene Id  Lessons Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/playgrounds/copies/{scene_id}/lessons/{key}/check":{"post":{"tags":["playgrounds"],"summary":"Check Copy Lesson","operationId":"check_copy_lesson_v1_playgrounds_copies__scene_id__lessons__key__check_post","parameters":[{"name":"scene_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Scene Id"}},{"name":"key","in":"path","required":true,"schema":{"type":"string","title":"Key"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Check Copy Lesson V1 Playgrounds Copies  Scene Id  Lessons  Key  Check Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/playgrounds/copies/{scene_id}/events":{"post":{"tags":["playgrounds"],"summary":"Post Copy Event","description":"A learner event: lesson opened, step shown, Show me, a viewer milestone\n(map opened, layer toggled …), Was this helpful?. Only from copies.","operationId":"post_copy_event_v1_playgrounds_copies__scene_id__events_post","parameters":[{"name":"scene_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Scene Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EventIn"}}}},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/playgrounds/copies/{scene_id}/recording/start":{"post":{"tags":["playgrounds"],"summary":"Start Recording","operationId":"start_recording_v1_playgrounds_copies__scene_id__recording_start_post","parameters":[{"name":"scene_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Scene Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecordStartIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Start Recording V1 Playgrounds Copies  Scene Id  Recording Start Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/playgrounds/copies/{scene_id}/recording":{"get":{"tags":["playgrounds"],"summary":"Get Recording","operationId":"get_recording_v1_playgrounds_copies__scene_id__recording_get","parameters":[{"name":"scene_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Scene Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Recording V1 Playgrounds Copies  Scene Id  Recording Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/playgrounds/copies/{scene_id}/recording/camera-stop":{"post":{"tags":["playgrounds"],"summary":"Add Camera Stop","operationId":"add_camera_stop_v1_playgrounds_copies__scene_id__recording_camera_stop_post","parameters":[{"name":"scene_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Scene Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CameraStopIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Add Camera Stop V1 Playgrounds Copies  Scene Id  Recording Camera Stop Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/playgrounds/copies/{scene_id}/recording/ui-events":{"post":{"tags":["playgrounds"],"summary":"Add Ui Events","description":"Pointer events captured while recording (stage 7): anchor clicks, chat\ntyping, world-space scene clicks — appended to the current step.","operationId":"add_ui_events_v1_playgrounds_copies__scene_id__recording_ui_events_post","parameters":[{"name":"scene_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Scene Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UiEventsIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Add Ui Events V1 Playgrounds Copies  Scene Id  Recording Ui Events Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/playgrounds/copies/{scene_id}/recording/undo":{"post":{"tags":["playgrounds"],"summary":"Undo Recording Step","operationId":"undo_recording_step_v1_playgrounds_copies__scene_id__recording_undo_post","parameters":[{"name":"scene_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Scene Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Undo Recording Step V1 Playgrounds Copies  Scene Id  Recording Undo Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/playgrounds/copies/{scene_id}/recording/stop":{"post":{"tags":["playgrounds"],"summary":"Stop Recording","operationId":"stop_recording_v1_playgrounds_copies__scene_id__recording_stop_post","parameters":[{"name":"scene_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Scene Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Stop Recording V1 Playgrounds Copies  Scene Id  Recording Stop Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/playgrounds":{"get":{"tags":["playgrounds"],"summary":"Staff List","operationId":"staff_list_v1_admin_playgrounds_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/StaffPlaygroundOut"},"title":"Response Staff List V1 Admin Playgrounds Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["playgrounds"],"summary":"Staff Create","description":"New playground from any scene: the scene is copied ONCE into a new\nproject in the playground org as the master (draft). Nobody sees it until\nit is published and shared.","operationId":"staff_create_v1_admin_playgrounds_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateIn"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StaffPlaygroundOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/playgrounds/sources":{"get":{"tags":["playgrounds"],"summary":"Staff Sources","description":"Scenes a playground can be made from (any org but the playground org),\nmatched on org, project or scene name.","operationId":"staff_sources_v1_admin_playgrounds_sources_get","parameters":[{"name":"q","in":"query","required":false,"schema":{"type":"string","default":"","title":"Q"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SourceSceneOut"},"title":"Response Staff Sources V1 Admin Playgrounds Sources Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/playgrounds/report-sources":{"get":{"tags":["playgrounds"],"summary":"Staff Report Sources","description":"Reports that can be imported as examples (any org but the playground\norg), matched on title, project or org name.","operationId":"staff_report_sources_v1_admin_playgrounds_report_sources_get","parameters":[{"name":"q","in":"query","required":false,"schema":{"type":"string","default":"","title":"Q"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ReportSourceOut"},"title":"Response Staff Report Sources V1 Admin Playgrounds Report Sources Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/playgrounds/{playground_id}":{"get":{"tags":["playgrounds"],"summary":"Staff Get","operationId":"staff_get_v1_admin_playgrounds__playground_id__get","parameters":[{"name":"playground_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Playground Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StaffPlaygroundOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["playgrounds"],"summary":"Staff Patch","operationId":"staff_patch_v1_admin_playgrounds__playground_id__patch","parameters":[{"name":"playground_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Playground Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PatchIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StaffPlaygroundOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["playgrounds"],"summary":"Staff Delete","description":"Withdraw a playground: nobody can open it or their copy any more. The\ncopies are kept for ``playground_retention_days`` then removed.","operationId":"staff_delete_v1_admin_playgrounds__playground_id__delete","parameters":[{"name":"playground_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Playground Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/playgrounds/{playground_id}/publish":{"post":{"tags":["playgrounds"],"summary":"Staff Publish","description":"Publish the draft. CONTENT (lessons, examples) reaches every copy at\nonce; the SCENE baseline becomes a new version that new copies start from\nand existing ones reset into when their owner chooses. A lesson whose\nhealth check fails blocks the content publish.","operationId":"staff_publish_v1_admin_playgrounds__playground_id__publish_post","parameters":[{"name":"playground_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Playground Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublishIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublishOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/playgrounds/{playground_id}/source/preview":{"post":{"tags":["playgrounds"],"summary":"Staff Source Preview","description":"What \"Refresh from source\" would change in the master — nothing written.","operationId":"staff_source_preview_v1_admin_playgrounds__playground_id__source_preview_post","parameters":[{"name":"playground_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Playground Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Staff Source Preview V1 Admin Playgrounds  Playground Id  Source Preview Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/playgrounds/{playground_id}/source/refresh":{"post":{"tags":["playgrounds"],"summary":"Staff Source Refresh","description":"Make the master's entities, maps and scene settings the source scene's,\nkeeping the ids of what it already has. Lands in the draft: learners see\nit only after Publish.","operationId":"staff_source_refresh_v1_admin_playgrounds__playground_id__source_refresh_post","parameters":[{"name":"playground_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Playground Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Staff Source Refresh V1 Admin Playgrounds  Playground Id  Source Refresh Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/playgrounds/{playground_id}/rollback":{"post":{"tags":["playgrounds"],"summary":"Staff Rollback","operationId":"staff_rollback_v1_admin_playgrounds__playground_id__rollback_post","parameters":[{"name":"playground_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Playground Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RollbackIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StaffPlaygroundOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/playgrounds/{playground_id}/grants":{"put":{"tags":["playgrounds"],"summary":"Staff Set Grants","description":"Replace who may open this playground (when its audience is \"listed\").\nAn email that belongs to nobody yet gets a playground-only invitation:\ntheir account will hold no seat in any customer org.","operationId":"staff_set_grants_v1_admin_playgrounds__playground_id__grants_put","parameters":[{"name":"playground_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Playground Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GrantsIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/engine__api__playgrounds__GrantOut"},"title":"Response Staff Set Grants V1 Admin Playgrounds  Playground Id  Grants Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/playgrounds/{playground_id}/copies":{"get":{"tags":["playgrounds"],"summary":"Staff Copies","description":"Everyone's copy. Also sweeps: a copy whose owner lost access is marked\nclosed, and removed once closed for ``playground_retention_days``.","operationId":"staff_copies_v1_admin_playgrounds__playground_id__copies_get","parameters":[{"name":"playground_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Playground Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CopyRowOut"},"title":"Response Staff Copies V1 Admin Playgrounds  Playground Id  Copies Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/playgrounds/{playground_id}/copies/{scene_id}/reset":{"post":{"tags":["playgrounds"],"summary":"Staff Reset Copy","operationId":"staff_reset_copy_v1_admin_playgrounds__playground_id__copies__scene_id__reset_post","parameters":[{"name":"playground_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Playground Id"}},{"name":"scene_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Scene Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResetIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResetOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/playgrounds/{playground_id}/copies/{scene_id}":{"delete":{"tags":["playgrounds"],"summary":"Staff Remove Copy","operationId":"staff_remove_copy_v1_admin_playgrounds__playground_id__copies__scene_id__delete","parameters":[{"name":"playground_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Playground Id"}},{"name":"scene_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Scene Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/playgrounds/{playground_id}/copies/{scene_id}/support":{"post":{"tags":["playgrounds"],"summary":"Staff Support Open","description":"Record that staff are opening someone's copy for support (read-only:\na copy accepts writes from its owner alone). The admin app then acts as\nthe playground org to open it.","operationId":"staff_support_open_v1_admin_playgrounds__playground_id__copies__scene_id__support_post","parameters":[{"name":"playground_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Playground Id"}},{"name":"scene_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Scene Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SupportOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/playgrounds/{playground_id}/preview":{"post":{"tags":["playgrounds"],"summary":"Staff Open Preview","description":"My preview copy of the DRAFT — where staff record examples and write\nexample reports without touching the master.","operationId":"staff_open_preview_v1_admin_playgrounds__playground_id__preview_post","parameters":[{"name":"playground_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Playground Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpenOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/playgrounds/{playground_id}/preview/reset":{"post":{"tags":["playgrounds"],"summary":"Staff Reset Preview","description":"Bring my preview copy up to the current draft.","operationId":"staff_reset_preview_v1_admin_playgrounds__playground_id__preview_reset_post","parameters":[{"name":"playground_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Playground Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResetIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResetOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/playgrounds/{playground_id}/reports":{"get":{"tags":["playgrounds"],"summary":"Staff Example Reports","operationId":"staff_example_reports_v1_admin_playgrounds__playground_id__reports_get","parameters":[{"name":"playground_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Playground Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ExampleReportOut"},"title":"Response Staff Example Reports V1 Admin Playgrounds  Playground Id  Reports Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/playgrounds/{playground_id}/reports/on-master":{"get":{"tags":["playgrounds"],"summary":"Staff Master Reports","description":"Reports written on the master that are not examples yet (no key).","operationId":"staff_master_reports_v1_admin_playgrounds__playground_id__reports_on_master_get","parameters":[{"name":"playground_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Playground Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ExampleReportOut"},"title":"Response Staff Master Reports V1 Admin Playgrounds  Playground Id  Reports On Master Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/playgrounds/{playground_id}/reports/{report_id}/make-example":{"post":{"tags":["playgrounds"],"summary":"Staff Make Example","description":"A report written on the master becomes a draft example report.","operationId":"staff_make_example_v1_admin_playgrounds__playground_id__reports__report_id__make_example_post","parameters":[{"name":"playground_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Playground Id"}},{"name":"report_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Report Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExampleReportOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/playgrounds/{playground_id}/reports/import":{"post":{"tags":["playgrounds"],"summary":"Staff Import Report","description":"Bring a report from any project into this playground as a draft example.\nFrom a customer org it needs the owner's permission (playground users will\nsee it) and is audited either way.","operationId":"staff_import_report_v1_admin_playgrounds__playground_id__reports_import_post","parameters":[{"name":"playground_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Playground Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImportReportIn"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExampleReportOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/playgrounds/{playground_id}/reports/from-preview":{"post":{"tags":["playgrounds"],"summary":"Staff Report From Preview","description":"A report written in my preview copy becomes (or replaces) a draft\nexample on the master.","operationId":"staff_report_from_preview_v1_admin_playgrounds__playground_id__reports_from_preview_post","parameters":[{"name":"playground_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Playground Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FromPreviewIn"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExampleReportOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/playgrounds/{playground_id}/reports/{example_key}":{"delete":{"tags":["playgrounds"],"summary":"Staff Remove Example Report","description":"Take a report out of the examples (from the next published version).","operationId":"staff_remove_example_report_v1_admin_playgrounds__playground_id__reports__example_key__delete","parameters":[{"name":"playground_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Playground Id"}},{"name":"example_key","in":"path","required":true,"schema":{"type":"string","title":"Example Key"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/playgrounds/{playground_id}/examples":{"get":{"tags":["playgrounds"],"summary":"Staff Examples","operationId":"staff_examples_v1_admin_playgrounds__playground_id__examples_get","parameters":[{"name":"playground_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Playground Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response Staff Examples V1 Admin Playgrounds  Playground Id  Examples Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/playgrounds/{playground_id}/examples/{key}":{"get":{"tags":["playgrounds"],"summary":"Staff Example","operationId":"staff_example_v1_admin_playgrounds__playground_id__examples__key__get","parameters":[{"name":"playground_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Playground Id"}},{"name":"key","in":"path","required":true,"schema":{"type":"string","title":"Key"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Staff Example V1 Admin Playgrounds  Playground Id  Examples  Key  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["playgrounds"],"summary":"Staff Patch Example","operationId":"staff_patch_example_v1_admin_playgrounds__playground_id__examples__key__patch","parameters":[{"name":"playground_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Playground Id"}},{"name":"key","in":"path","required":true,"schema":{"type":"string","title":"Key"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExamplePatchIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Staff Patch Example V1 Admin Playgrounds  Playground Id  Examples  Key  Patch"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["playgrounds"],"summary":"Staff Delete Example","operationId":"staff_delete_example_v1_admin_playgrounds__playground_id__examples__key__delete","parameters":[{"name":"playground_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Playground Id"}},{"name":"key","in":"path","required":true,"schema":{"type":"string","title":"Key"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/playgrounds/{playground_id}/examples/{key}/save":{"post":{"tags":["playgrounds"],"summary":"Staff Save Example","description":"Freeze the reviewed recording into its self-contained blob and add it\nto the DRAFT content's examples (users see it after the next publish).","operationId":"staff_save_example_v1_admin_playgrounds__playground_id__examples__key__save_post","parameters":[{"name":"playground_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Playground Id"}},{"name":"key","in":"path","required":true,"schema":{"type":"string","title":"Key"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Staff Save Example V1 Admin Playgrounds  Playground Id  Examples  Key  Save Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/playgrounds/{playground_id}/lessons/propose":{"post":{"tags":["playgrounds"],"summary":"Staff Propose Lesson","description":"A lesson drafted from a recording: steps from its turns, Show me ranges,\nchecks from what changed in the preview copy, needs from what it used.","operationId":"staff_propose_lesson_v1_admin_playgrounds__playground_id__lessons_propose_post","parameters":[{"name":"playground_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Playground Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProposeIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Staff Propose Lesson V1 Admin Playgrounds  Playground Id  Lessons Propose Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/playgrounds/{playground_id}/lessons/health":{"post":{"tags":["playgrounds"],"summary":"Staff Lesson Health","operationId":"staff_lesson_health_v1_admin_playgrounds__playground_id__lessons_health_post","parameters":[{"name":"playground_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Playground Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HealthIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response Staff Lesson Health V1 Admin Playgrounds  Playground Id  Lessons Health Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/playgrounds/{playground_id}/analytics":{"get":{"tags":["playgrounds"],"summary":"Staff Analytics","operationId":"staff_analytics_v1_admin_playgrounds__playground_id__analytics_get","parameters":[{"name":"playground_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Playground Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Staff Analytics V1 Admin Playgrounds  Playground Id  Analytics Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/playgrounds/{playground_id}/lessons/copy-from":{"post":{"tags":["playgrounds"],"summary":"Staff Copy Lessons","description":"Copy lessons from another playground into this one's draft. Their checks\ncome along; lesson health then shows what doesn't fit this scan.","operationId":"staff_copy_lessons_v1_admin_playgrounds__playground_id__lessons_copy_from_post","parameters":[{"name":"playground_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Playground Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CopyLessonsIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StaffPlaygroundOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/playgrounds/{playground_id}/copy-out":{"post":{"tags":["playgrounds"],"summary":"Staff Copy Out","description":"Pack this playground for the other environment (staging → prod): the\nmaster scene, its example reports, the published lessons and examples.\nPeople's copies and grants never travel.","operationId":"staff_copy_out_v1_admin_playgrounds__playground_id__copy_out_post","parameters":[{"name":"playground_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Playground Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TransferRunOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/playgrounds/transfers/incoming":{"get":{"tags":["playgrounds"],"summary":"Staff Incoming","description":"Playgrounds packed in the other environment, ready to import here.","operationId":"staff_incoming_v1_admin_playgrounds_transfers_incoming_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response Staff Incoming V1 Admin Playgrounds Transfers Incoming Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/playgrounds/transfers/{run_id}":{"get":{"tags":["playgrounds"],"summary":"Staff Transfer Run","operationId":"staff_transfer_run_v1_admin_playgrounds_transfers__run_id__get","parameters":[{"name":"run_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Run Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TransferRunOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/playgrounds/transfers/incoming/{bundle_id}/preview":{"post":{"tags":["playgrounds"],"summary":"Staff Incoming Preview","description":"What importing this playground would do here: new or an update (and\nhow many people's copies the updated playground has), what it carries,\nand the title to type back on production.","operationId":"staff_incoming_preview_v1_admin_playgrounds_transfers_incoming__bundle_id__preview_post","parameters":[{"name":"bundle_id","in":"path","required":true,"schema":{"type":"string","title":"Bundle Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Staff Incoming Preview V1 Admin Playgrounds Transfers Incoming  Bundle Id  Preview Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/playgrounds/transfers/incoming/{bundle_id}/import":{"post":{"tags":["playgrounds"],"summary":"Staff Incoming Import","description":"Import a playground here as a DRAFT (new, or updating the one it came\nfrom). Production asks for the title typed back.","operationId":"staff_incoming_import_v1_admin_playgrounds_transfers_incoming__bundle_id__import_post","parameters":[{"name":"bundle_id","in":"path","required":true,"schema":{"type":"string","title":"Bundle Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IncomingImportIn"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TransferRunOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/playgrounds/copies/{scene_id}/templates":{"get":{"tags":["playgrounds"],"summary":"List Copy Templates","description":"Templates I can start a report from in my copy.","operationId":"list_copy_templates_v1_playgrounds_copies__scene_id__templates_get","parameters":[{"name":"scene_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Scene Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/services__reports__playground__TemplateOut"},"title":"Response List Copy Templates V1 Playgrounds Copies  Scene Id  Templates Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/playgrounds/copies/{scene_id}/reports":{"get":{"tags":["playgrounds"],"summary":"List Copy Reports","description":"Examples from Plenex (my editable copies) first, then my own.","operationId":"list_copy_reports_v1_playgrounds_copies__scene_id__reports_get","parameters":[{"name":"scene_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Scene Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CopyReportOut"},"title":"Response List Copy Reports V1 Playgrounds Copies  Scene Id  Reports Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["playgrounds"],"summary":"Create Copy Report","description":"A new report of my own in my playground copy — private, like every\nreport in the playground.","operationId":"create_copy_report_v1_playgrounds_copies__scene_id__reports_post","parameters":[{"name":"scene_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Scene Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CopyReportIn"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CopyReportOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/playgrounds/{playground_id}/templates":{"get":{"tags":["playgrounds"],"summary":"Staff Available Templates","description":"Every template the playground's copies could use — the playground org's\ntemplates plus its project's own (example reports bring theirs). Staff pick\nfrom these; the picks live in the playground's content as ``templates``.","operationId":"staff_available_templates_v1_admin_playgrounds__playground_id__templates_get","parameters":[{"name":"playground_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Playground Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AvailableTemplateOut"},"title":"Response Staff Available Templates V1 Admin Playgrounds  Playground Id  Templates Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/playgrounds/{playground_id}/copies/{scene_id}/history":{"get":{"tags":["playgrounds"],"summary":"Copy History","description":"Everything this person has had in their copy, newest first.","operationId":"copy_history_v1_admin_playgrounds__playground_id__copies__scene_id__history_get","parameters":[{"name":"playground_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Playground Id"}},{"name":"scene_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Scene Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HistoryOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/playgrounds/{playground_id}/copies/{scene_id}/history/chats/{item_id}":{"get":{"tags":["playgrounds"],"summary":"Copy History Chat","description":"One chat, every turn — cleared ones included and marked.","operationId":"copy_history_chat_v1_admin_playgrounds__playground_id__copies__scene_id__history_chats__item_id__get","parameters":[{"name":"playground_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Playground Id"}},{"name":"scene_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Scene Id"}},{"name":"item_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Item Id"}},{"name":"archived","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Archived"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/playgrounds/{playground_id}/copies/{scene_id}/history/reports/{item_id}":{"get":{"tags":["playgrounds"],"summary":"Copy History Report","description":"One report's text as the person left it.","operationId":"copy_history_report_v1_admin_playgrounds__playground_id__copies__scene_id__history_reports__item_id__get","parameters":[{"name":"playground_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Playground Id"}},{"name":"scene_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Scene Id"}},{"name":"item_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Item Id"}},{"name":"archived","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Archived"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/services__reports__playground_history__ReportOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/playgrounds/copies/{scene_id}/documents":{"get":{"tags":["playgrounds"],"summary":"List Copy Documents","description":"The documents my copy's chat and report agent can read.","operationId":"list_copy_documents_v1_playgrounds_copies__scene_id__documents_get","parameters":[{"name":"scene_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Scene Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CopyDocumentsOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["playgrounds"],"summary":"Upload Copy Document","description":"Add one of my own documents (pdf, docx, md, txt) — from the bar's\nDocuments dialog or dropped on the chat. It is read, summarised and indexed\nin the background; only my copy's agents read it. ``send_whole`` tells the\nchat to also attach a short PDF to the turn.","operationId":"upload_copy_document_v1_playgrounds_copies__scene_id__documents_post","parameters":[{"name":"scene_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Scene Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_copy_document_v1_playgrounds_copies__scene_id__documents_post"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/services__policies__playground__DocumentOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/playgrounds/copies/{scene_id}/documents/{document_id}":{"delete":{"tags":["playgrounds"],"summary":"Delete Copy Document","operationId":"delete_copy_document_v1_playgrounds_copies__scene_id__documents__document_id__delete","parameters":[{"name":"scene_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Scene Id"}},{"name":"document_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Document Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/playgrounds/{playground_id}/documents":{"get":{"tags":["playgrounds"],"summary":"Staff Documents","description":"Every staff document in the playground, ticked or not.","operationId":"staff_documents_v1_admin_playgrounds__playground_id__documents_get","parameters":[{"name":"playground_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Playground Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/StaffDocumentOut"},"title":"Response Staff Documents V1 Admin Playgrounds  Playground Id  Documents Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["playgrounds"],"summary":"Staff Upload Document","description":"Upload a document into the playground; it is ticked in the draft.","operationId":"staff_upload_document_v1_admin_playgrounds__playground_id__documents_post","parameters":[{"name":"playground_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Playground Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_staff_upload_document_v1_admin_playgrounds__playground_id__documents_post"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StaffDocumentOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/playgrounds/documents/sources":{"get":{"tags":["playgrounds"],"summary":"Staff Document Sources","description":"Ready documents that can be copied into a playground: any organisation's\nlibrary or project documents, outside the playground org.","operationId":"staff_document_sources_v1_admin_playgrounds_documents_sources_get","parameters":[{"name":"q","in":"query","required":false,"schema":{"type":"string","default":"","title":"Q"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/DocumentSourceOut"},"title":"Response Staff Document Sources V1 Admin Playgrounds Documents Sources Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/playgrounds/{playground_id}/documents/import":{"post":{"tags":["playgrounds"],"summary":"Staff Import Document","description":"Copy a document from any organisation into the playground, ticked in the\ndraft. A customer's document needs the owner's permission (playground\nusers will read it) and is audited either way.","operationId":"staff_import_document_v1_admin_playgrounds__playground_id__documents_import_post","parameters":[{"name":"playground_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Playground Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImportDocumentIn"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StaffDocumentOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/playgrounds/{playground_id}/documents/{document_id}":{"delete":{"tags":["playgrounds"],"summary":"Staff Delete Document","description":"Remove a document from the playground. One people's copies read now\n(published) stays until it is unticked and published.","operationId":"staff_delete_document_v1_admin_playgrounds__playground_id__documents__document_id__delete","parameters":[{"name":"playground_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Playground Id"}},{"name":"document_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Document Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/projects":{"post":{"tags":["projects"],"summary":"Create Project","description":"Create a project. Open to everyone in the organisation — a member\nstarts one to upload a scan into (engine/scan_intake.py); every other\nproject setting stays admin-only.","operationId":"create_project_v1_projects_post","parameters":[{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["projects"],"summary":"List Projects","operationId":"list_projects_v1_projects_get","parameters":[{"name":"q","in":"query","required":false,"schema":{"type":"string","default":"","title":"Q"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ProjectOut"},"title":"Response List Projects V1 Projects Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/projects/{project_id}":{"patch":{"tags":["projects"],"summary":"Rename Project","description":"Edit project details through the same service as the bound agent tool.","operationId":"rename_project_v1_projects__project_id__patch","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["projects"],"summary":"Get Project","description":"One project. Open to every member — the console reads `production_scene_id`\nfrom here to mark and open the published scene.","operationId":"get_project_v1_projects__project_id__get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["projects"],"summary":"Delete Project","description":"Soft-delete a project — owner-only (a staff user acting as the org also\nqualifies, like org rename). It disappears from the org's lists but its data\nis kept; Plenex staff can restore or permanently purge it from the admin\nconsole.","operationId":"delete_project_v1_projects__project_id__delete","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/projects/{project_id}/access":{"post":{"tags":["projects"],"summary":"Record Access","operationId":"record_access_v1_projects__project_id__access_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Record Access V1 Projects  Project Id  Access Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/projects/{project_id}/home":{"get":{"tags":["projects"],"summary":"Project Home","operationId":"project_home_v1_projects__project_id__home_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Project Home V1 Projects  Project Id  Home Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/projects/{project_id}/production-scene":{"put":{"tags":["projects"],"summary":"Set Production Scene","description":"Publish a scene: members opening this project land straight in it, instead\nof the project page (which is admin-only). Admin-only, like every other\nproject setting; `scene_id: null` un-publishes. Publishing a different\nscene emails and notifies everyone in the organisation (`notify: false`\nskips that) — engine/scan_intake.py.","operationId":"set_production_scene_v1_projects__project_id__production_scene_put","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductionScene"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/projects/{project_id}/scan-exports":{"get":{"tags":["projects"],"summary":"List Scan Exports","description":"What the project's uploaded LCC2 exports and E57s hold — splats and\ndetail levels, points, photo stations and their spacing — read from their\nheaders, each with a problem or warning to act on before a scene is made\nfrom it (engine/scan_exports.py: the New scene form's check lines).","operationId":"list_scan_exports_v1_projects__project_id__scan_exports_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Scan Exports V1 Projects  Project Id  Scan Exports Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/projects/{project_id}/scan-uploads":{"get":{"tags":["projects"],"summary":"List Scan Uploads","description":"The scan files uploaded into this project — what the uploader sees\nwhile the scene is being prepared, each marked sent or not yet. Open to\nevery member (names and sizes only; the full file list with download\nlinks stays admin-only).","operationId":"list_scan_uploads_v1_projects__project_id__scan_uploads_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ScanUploadOut"},"title":"Response List Scan Uploads V1 Projects  Project Id  Scan Uploads Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["projects"],"summary":"Submit Scan Uploads","description":"\"Send for processing\": these uploaded scans are everything — emails\nPlenex staff at once and marks the files sent. The console then tells the\nuploader an email follows when the scene is ready (sent by publishing —\nPUT production-scene).","operationId":"submit_scan_uploads_v1_projects__project_id__scan_uploads_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScanSubmission"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ScanUploadOut"},"title":"Response Submit Scan Uploads V1 Projects  Project Id  Scan Uploads Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/projects/{project_id}/scan-uploads/unfinished":{"get":{"tags":["projects"],"summary":"List Unfinished Scan Uploads","description":"The scan files whose upload never finished — the upload card asks for\nthe folder again (files already uploaded are skipped, these carry on).\nOpen to every member, names and sizes only, like the list above.","operationId":"list_unfinished_scan_uploads_v1_projects__project_id__scan_uploads_unfinished_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ScanUploadOut"},"title":"Response List Unfinished Scan Uploads V1 Projects  Project Id  Scan Uploads Unfinished Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/projects/{project_id}/captures":{"get":{"tags":["projects"],"summary":"List Project Captures","description":"Saved-region crops across a project's scenes (the captures gallery): every\nscene_object that carries a linked image, newest first.","operationId":"list_project_captures_v1_projects__project_id__captures_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CaptureOut"},"title":"Response List Project Captures V1 Projects  Project Id  Captures Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/projects/{project_id}/icon":{"put":{"tags":["projects"],"summary":"Set Project Icon","description":"Keep the first cover for the currently published scene. Opening or\nclosing a scene never changes its cover again or its modification date.","operationId":"set_project_icon_v1_projects__project_id__icon_put","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IconUpload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/projects/{project_id}/files":{"post":{"tags":["projects"],"summary":"Create File Upload","operationId":"create_file_upload_v1_projects__project_id__files_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FileCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FileCreated"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["projects"],"summary":"List Files","description":"List a project's files, optionally filtered by provenance (`kind=upload`\nfor the project page, `kind=generated` for the generated-files page) and/or\nowning scene (`scene_id` — the per-scene files page).\n\n`urls=false` leaves `download_url` empty: on Cloud Run each signed URL is\none IAM signBlob call (~40 ms), so a scan folder of 5,000 files took\nminutes to list. The Files panel lists without them and signs one on click\n(`open-url`); with them, the signing runs in parallel.\n\nAdmin-only: a project's raw captures, meshes and derived assets are operator\nmaterial, not member-facing. Members reach scene assets through the scene's\nown signed URLs, never this inventory.","operationId":"list_files_v1_projects__project_id__files_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"kind","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Kind"}},{"name":"scene_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Scene Id"}},{"name":"urls","in":"query","required":false,"schema":{"type":"boolean","default":true,"title":"Urls"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/FileOut"},"title":"Response List Files V1 Projects  Project Id  Files Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/projects/{project_id}/files/{file_id}/parts":{"get":{"tags":["projects"],"summary":"List Upload Parts","description":"Which parts of an unfinished multipart upload have landed — how the\nbrowser carries on after a dropped connection or a reload.","operationId":"list_upload_parts_v1_projects__project_id__files__file_id__parts_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"file_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"File Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartsOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["projects"],"summary":"Sign Upload Parts","description":"Signed PUT URLs for these parts of an unfinished multipart upload.","operationId":"sign_upload_parts_v1_projects__project_id__files__file_id__parts_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"file_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"File Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartUrlsIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartUrlsOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/projects/{project_id}/files/{file_id}/complete":{"post":{"tags":["projects"],"summary":"Complete Upload","description":"Join a multipart upload's parts into the file (register it next).\nRefuses (409) while the landed parts do not add up to the file's size.","operationId":"complete_upload_v1_projects__project_id__files__file_id__complete_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"file_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"File Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/projects/{project_id}/files/{file_id}/register":{"post":{"tags":["projects"],"summary":"Register File","operationId":"register_file_v1_projects__project_id__files__file_id__register_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"file_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"File Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FileOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/projects/{project_id}/files/{file_id}":{"patch":{"tags":["projects"],"summary":"Rename File","description":"Rename a file's display name — owner-only (a staff user acting as the org\nalso qualifies, like project delete). Only the display `filename` changes; the\nstored object (`storage_path`) is untouched, so two files may still share a\nname — this lets the owner disambiguate same-named uploads. Staff may also\nsay whose an upload is (`owner`): the customer's, or Plenex working data.","operationId":"rename_file_v1_projects__project_id__files__file_id__patch","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"file_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"File Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FileRename"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FileOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["projects"],"summary":"Delete File","description":"Delete a file's bytes and metadata. Refuses (409) while any scene still\nreferences it as its splat/mesh/context — delete those scenes first.","operationId":"delete_file_v1_projects__project_id__files__file_id__delete","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"file_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"File Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/projects/{project_id}/files/{file_id}/open-url":{"get":{"tags":["projects"],"summary":"File Open Url","description":"A FRESH signed URL for viewing the file in a browser tab (no forced\ndownload — GCS serves the stored content type, so PDFs/images/text render\ninline; formats browsers can't render fall back to downloading). Minted on\ndemand so view links never carry an expired URL.","operationId":"file_open_url_v1_projects__project_id__files__file_id__open_url_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"file_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"File Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response File Open Url V1 Projects  Project Id  Files  File Id  Open Url Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/projects/{project_id}/scenes":{"post":{"tags":["scenes"],"summary":"Create Scene","operationId":"create_scene_v1_projects__project_id__scenes_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SceneCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SceneOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["scenes"],"summary":"List Scenes","description":"A project's scenes — for a customer, only the published one\n(``_sees_unpublished``).","operationId":"list_scenes_v1_projects__project_id__scenes_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SceneOut"},"title":"Response List Scenes V1 Projects  Project Id  Scenes Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/scenes/{scene_id}":{"get":{"tags":["scenes"],"summary":"Get Scene","operationId":"get_scene_v1_scenes__scene_id__get","parameters":[{"name":"scene_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Scene Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SceneOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["scenes"],"summary":"Rename Scene","description":"Rename a scene. Admin-only (owners and admins); members are query-only. A\nproject can hold several scenes built from same-named files, so renaming is\nhow they're told apart in the list.","operationId":"rename_scene_v1_scenes__scene_id__patch","parameters":[{"name":"scene_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Scene Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SceneNamePatch"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SceneOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["scenes"],"summary":"Delete Scene","description":"Delete a scene and everything scoped to it — object registry, map,\ncapture-gallery frames, and chat threads all cascade at the DB level\n(ON DELETE CASCADE); a report's optional active-scene pointer is nulled\n(ON DELETE SET NULL), since reports are project-level and outlive the scene.\nThe underlying project files (splat/mesh uploads) are left intact —\nthey are independent and may be reused by other scenes; delete them via the\nfiles endpoint.","operationId":"delete_scene_v1_scenes__scene_id__delete","parameters":[{"name":"scene_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Scene Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/scenes/{scene_id}/processing":{"get":{"tags":["scenes"],"summary":"Get Processing Status","description":"The scene's heavy work with the processing worker (engine/processing.\nscene_status — the agents' ``get_processing_status`` returns the same):\nthe mode; in worker mode the up workers (capabilities, tasks running now —\nanother org's ids hidden), when a worker last beat, and the scene's queued\nsteps, each running, queued, or waiting for a processor that can run it.","operationId":"get_processing_status_v1_scenes__scene_id__processing_get","parameters":[{"name":"scene_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Scene Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Processing Status V1 Scenes  Scene Id  Processing Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/scenes/{scene_id}/paged-splat/{file_id}/url":{"get":{"tags":["scenes"],"summary":"Refresh Paged Splat Url","operationId":"refresh_paged_splat_url_v1_scenes__scene_id__paged_splat__file_id__url_get","parameters":[{"name":"scene_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Scene Id"}},{"name":"file_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"File Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Refresh Paged Splat Url V1 Scenes  Scene Id  Paged Splat  File Id  Url Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/scenes/{scene_id}/panoramas":{"post":{"tags":["scenes"],"summary":"Extract Panoramas","description":"Lift the scene's embedded E57 panoramas into ``kind=\"panorama\"`` frames.\n\nAnswers immediately with how many stations the E57 declares (a cheap read of\nits XML footer) and schedules the extraction; the client watches\n``GET /scenes/{id}/frames`` fill up. Admin-only — it writes a few hundred\nobjects into the tenant's bucket.","operationId":"extract_panoramas_v1_scenes__scene_id__panoramas_post","parameters":[{"name":"scene_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Scene Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PanoramaOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/scenes/{scene_id}/panoramas/select":{"post":{"tags":["scenes"],"summary":"Select Panorama Keyframes","description":"Mark the panorama keyframes the VLM walkthrough examines.\n\nOcclusion-aware greedy coverage against the coarse-points sidecar (spacing\nfallback until the scene is reprocessed); writes ``meta[\"select\"]`` on the\nchosen frames, or with ``dry_run`` only measures. Synchronous: cold\n~10–30 s at plant scale (cable-plan precedent), warm re-runs answer in\nmilliseconds off the visibility cache. Admin-only like the extraction it\nfollows.","operationId":"select_panorama_keyframes_v1_scenes__scene_id__panoramas_select_post","parameters":[{"name":"scene_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Scene Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PanoramaSelectIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PanoramaSelectOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/scenes/{scene_id}/generate_mesh":{"post":{"tags":["scenes"],"summary":"Generate Mesh","description":"TSDF-fuse the scene's point cloud into collision/occlusion mesh tiles\n(engine/pointcloud/meshing.py). Needs the derived COPC and an .e57 source\nwhose panorama stations provide the sensor trajectory. Answers immediately\nwith the station count (a cheap XML-footer read) and schedules the fusion;\nthe client watches mesh_gen_status on the scene. Admin-only — minutes of CPU\nand a few hundred MB written to the tenant's bucket.","operationId":"generate_mesh_v1_scenes__scene_id__generate_mesh_post","parameters":[{"name":"scene_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Scene Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MeshGenOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/scenes/{scene_id}/reprocess":{"post":{"tags":["scenes"],"summary":"Reprocess Scene","description":"Re-run the scene's ingest after a failure or orphaned task: the point-cloud\nCOPC conversion for point-cloud scenes, the derived-stream conversion for\nsplat scenes (stream only — scene.status is untouched there), and a failed\nmesh-bundle conversion (in addition to either).","operationId":"reprocess_scene_v1_scenes__scene_id__reprocess_post","parameters":[{"name":"scene_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Scene Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SceneOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/scenes/{scene_id}/splat":{"post":{"tags":["scenes"],"summary":"Attach Splat","description":"Select the scene's splat — any registered splat file in the project (e.g. a\ndifferent LoD). Keeps mesh/objects/camera track/calibration; the LoD\nfamily is re-discovered from the chosen file's stem (so picking a `_<n>`\nmember keeps the whole family switchable in the viewer) and the stale\nserver-render .ply and derived stream from the previous splat are dropped.","operationId":"attach_splat_v1_scenes__scene_id__splat_post","parameters":[{"name":"scene_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Scene Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AttachFile"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SceneOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/scenes/{scene_id}/mesh":{"post":{"tags":["scenes"],"summary":"Attach Mesh","description":"Add a mesh to the scene (additive — a scene can hold several mesh chunks;\nattaching an already-attached file is a no-op). Evicts the server mesh cache\nso raycast tools see the new set. A .zip is a tiled mesh bundle: it becomes\nthe scene's mesh_bundle source and its background ingest appends the derived\nGLB tiles to the mesh set when ready.","operationId":"attach_mesh_v1_scenes__scene_id__mesh_post","parameters":[{"name":"scene_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Scene Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AttachFile"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SceneOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/scenes/{scene_id}/mesh/{file_id}":{"delete":{"tags":["scenes"],"summary":"Detach Mesh","description":"Remove one mesh from the scene's set (the file itself is untouched).","operationId":"detach_mesh_v1_scenes__scene_id__mesh__file_id__delete","parameters":[{"name":"scene_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Scene Id"}},{"name":"file_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"File Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SceneOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/scenes/{scene_id}/camera-track":{"post":{"tags":["scenes"],"summary":"Attach Camera Track","description":"Attach a Lixelstudio camera-pose / trajectory file (CSV/TXT) to the scene.\nParsed on read and frame-baked into the scene's COPC frame via recenter_offset.\nValidates that it parses into at least one pose before persisting the ref.","operationId":"attach_camera_track_v1_scenes__scene_id__camera_track_post","parameters":[{"name":"scene_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Scene Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AttachFile"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SceneOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["scenes"],"summary":"Get Camera Track","description":"Camera poses (frame-baked, scene units) for the overlay layer, plus the\nwalkthrough capture stops when ``interval_m`` is given — novelty-selected\noriginal poses at least ``interval_m`` apart (``angle_deg``, default 45°,\nkeeps differently-aimed views at the same spot). ``selection=coverage``\npicks the stops by coverage instead, at the scene's saved Frames settings\n(``GET …/camera-track/coverage`` explains the numbers). ``views=360``\nreturns the rendered 360 stations as the stops instead, at the scene's\nsaved 360 view settings (``interval_m``, ``selection`` and the coverage\nrule's ``coverage_target``, ``min_object_m``, ``min_object_px`` override\nthem, and ``balance=true`` clears a saved coverage target: a preview of\nsettings not saved yet),\nwith the bake ``digest``, the ``sphere`` and ``face_px`` sizes\n(views360_service.track); ``reach=true`` adds the plan's floor reach\n(views360_service.reach, None without a floor map) and ``stored``, how\nmany of the plan's stations are stored already.","operationId":"get_camera_track_v1_scenes__scene_id__camera_track_get","parameters":[{"name":"scene_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Scene Id"}},{"name":"interval_m","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Interval M"}},{"name":"angle_deg","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Angle Deg"}},{"name":"selection","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Selection"}},{"name":"views","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Views"}},{"name":"reach","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Reach"}},{"name":"coverage_target","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Coverage Target"}},{"name":"balance","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Balance"}},{"name":"min_object_m","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Min Object M"}},{"name":"min_object_px","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Min Object Px"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Camera Track V1 Scenes  Scene Id  Camera Track Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/scenes/{scene_id}/camera-track/coverage":{"get":{"tags":["scenes"],"summary":"Get Camera Track Coverage","description":"How much of the scene the walkthrough stops show, for the scene's saved\nFrames settings with any of them overridden by the query — the number\nbeside the settings, re-read as they change. ``views=360`` measures the\nrendered 360 stations at the saved 360 view settings instead (``fov`` and\n``aspect`` do not apply; ``balance=true`` clears a saved coverage target).\nNeeds a camera track and a reference mesh.","operationId":"get_camera_track_coverage_v1_scenes__scene_id__camera_track_coverage_get","parameters":[{"name":"scene_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Scene Id"}},{"name":"selection","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Selection"}},{"name":"interval_m","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Interval M"}},{"name":"fov","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Fov"}},{"name":"aspect","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Aspect"}},{"name":"min_object_m","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Min Object M"}},{"name":"min_object_px","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Min Object Px"}},{"name":"coverage_target","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Coverage Target"}},{"name":"views","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Views"}},{"name":"balance","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Balance"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Camera Track Coverage V1 Scenes  Scene Id  Camera Track Coverage Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/scenes/{scene_id}/objects":{"post":{"tags":["scenes"],"summary":"Create Scene Object","description":"Create a registry object from a centre + extent box (scene units).\nManual box creation from the Admin tab; the DB is the source of truth.","operationId":"create_scene_object_v1_scenes__scene_id__objects_post","parameters":[{"name":"scene_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Scene Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SceneObjectCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SceneObjectOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["scenes"],"summary":"List Scene Objects","description":"The scene's objects. Those the scene's detection threshold hides\n(frame_features.below_threshold) are left out; ``hidden=include`` lists\nthem too, flagged — the staff threshold control's reading.","operationId":"list_scene_objects_v1_scenes__scene_id__objects_get","parameters":[{"name":"scene_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Scene Id"}},{"name":"hidden","in":"query","required":false,"schema":{"enum":["exclude","include"],"type":"string","default":"exclude","title":"Hidden"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SceneObjectOut"},"title":"Response List Scene Objects V1 Scenes  Scene Id  Objects Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["scenes"],"summary":"Delete All Scene Objects","description":"Clear the object registry for a scene. User-authored saves in the same\ntable (surfaces, lengths, measured regions — USER_SAVE_KINDS) are NOT\nregistry objects and survive.","operationId":"delete_all_scene_objects_v1_scenes__scene_id__objects_delete","parameters":[{"name":"scene_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Scene Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/scenes/{scene_id}/regions":{"post":{"tags":["scenes"],"summary":"Save Scene Region","description":"Persist a measured region/segment drawn in the viewer as a registry object:\nbbox from its 3D points, geometry + value in attrs. If a frame is supplied it\nis cropped to the polygon, stored as a project asset and linked; if no name is\ngiven the crop is labelled by the vision model.","operationId":"save_scene_region_v1_scenes__scene_id__regions_post","parameters":[{"name":"scene_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Scene Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegionCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SceneObjectOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/scenes/{scene_id}/annotations":{"post":{"tags":["scenes"],"summary":"Create Scene Annotation","description":"Persist a geo-tagged inspection annotation measured/drawn in the viewer:\nthe value in metres, the 3D anchor + geometry (scene units), the capture pose\nfor fly-back, and an optional cropped evidence image. This is what makes a\nclearance/measurement durable, retrievable and navigable by the agent.","operationId":"create_scene_annotation_v1_scenes__scene_id__annotations_post","parameters":[{"name":"scene_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Scene Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AnnotationCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AnnotationOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["scenes"],"summary":"List Scene Annotations","operationId":"list_scene_annotations_v1_scenes__scene_id__annotations_get","parameters":[{"name":"scene_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Scene Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AnnotationOut"},"title":"Response List Scene Annotations V1 Scenes  Scene Id  Annotations Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/scenes/{scene_id}/level-links":{"post":{"tags":["scenes"],"summary":"Create Level Link","description":"Save a stair / lift / ramp that joins floors — a lift serving every\nfloor in one call.","operationId":"create_level_link_v1_scenes__scene_id__level_links_post","parameters":[{"name":"scene_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Scene Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LevelLinkCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AnnotationOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/scenes/{scene_id}/annotations/{annotation_id}":{"patch":{"tags":["scenes"],"summary":"Patch Scene Annotation","operationId":"patch_scene_annotation_v1_scenes__scene_id__annotations__annotation_id__patch","parameters":[{"name":"scene_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Scene Id"}},{"name":"annotation_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Annotation Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AnnotationPatch"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AnnotationOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["scenes"],"summary":"Delete Scene Annotation","operationId":"delete_scene_annotation_v1_scenes__scene_id__annotations__annotation_id__delete","parameters":[{"name":"scene_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Scene Id"}},{"name":"annotation_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Annotation Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/scenes/{scene_id}/objects/{object_id}/debug":{"get":{"tags":["scenes"],"summary":"Debug Scene Object","description":"DEBUG (temporary): print + return the full geometry of a saved surface/object\n— bbox, extent, centroid, area, the normal computed from its stored per-cell /\npolygon geometry, and cell/face counts. Wired to the viewer's Surfaces \"Show\"\nbutton so the backend console shows exactly what a surface carries, for\ncamera-pose debugging.","operationId":"debug_scene_object_v1_scenes__scene_id__objects__object_id__debug_get","parameters":[{"name":"scene_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Scene Id"}},{"name":"object_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Object Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Debug Scene Object V1 Scenes  Scene Id  Objects  Object Id  Debug Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/scenes/{scene_id}/objects/export":{"get":{"tags":["scenes"],"summary":"Export Scene Objects","description":"Download scene registry as JSON.","operationId":"export_scene_objects_v1_scenes__scene_id__objects_export_get","parameters":[{"name":"scene_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Scene Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/scenes/{scene_id}/objects/{object_id}":{"patch":{"tags":["scenes"],"summary":"Patch Scene Object","operationId":"patch_scene_object_v1_scenes__scene_id__objects__object_id__patch","parameters":[{"name":"scene_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Scene Id"}},{"name":"object_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Object Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SceneObjectPatch"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SceneObjectOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["scenes"],"summary":"Delete Scene Object","operationId":"delete_scene_object_v1_scenes__scene_id__objects__object_id__delete","parameters":[{"name":"scene_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Scene Id"}},{"name":"object_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Object Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/scenes/{scene_id}/objects/{object_id}/fit-check":{"post":{"tags":["scenes"],"summary":"Fit Check Scene Object","description":"3D fit check of a PLACED object against the scan (the placed-shape\ndock's \"3D check\") — the same function as the check_fit_3d agent tool\n(engine/api/space_service.check_object_3d). ``floorplan`` names the \"as\nplanned\" floorplan(s) on show: the objects cleared by name on them are\ntreated as gone. 422 when the object is not placed or the scene has no\npoint cloud or mesh.","operationId":"fit_check_scene_object_v1_scenes__scene_id__objects__object_id__fit_check_post","parameters":[{"name":"scene_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Scene Id"}},{"name":"object_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Object Id"}},{"name":"clearance_m","in":"query","required":false,"schema":{"type":"number","default":0.0,"title":"Clearance M"}},{"name":"floorplan","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"title":"Floorplan"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Fit Check Scene Object V1 Scenes  Scene Id  Objects  Object Id  Fit Check Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/scenes/{scene_id}/objects/{object_id}/extract":{"post":{"tags":["scenes"],"summary":"Extract Scene Object","description":"Extract the scan inside the object's 3D box (the spakai \"Extract OBJ\"\nport, engine/spatial/object_extract.py): the COPC points and the reference\nmesh faces inside the padded box → one GLB in the box's local frame, stored\nas a generated project file and recorded on the row as ``attrs.model``\n(``model_url`` on every object response). Re-extracting replaces the\nprevious model. 409 when the scene has neither a point cloud nor a mesh;\n422 when the box is missing or empty.","operationId":"extract_scene_object_v1_scenes__scene_id__objects__object_id__extract_post","parameters":[{"name":"scene_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Scene Id"}},{"name":"object_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Object Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ObjectExtractIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SceneObjectOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/scenes/{scene_id}/objects/{object_id}/points":{"post":{"tags":["scenes"],"summary":"Put Scene Object Points","description":"Attach the lifted surface points of a detection row (System › Object\ndetection step 4 saves each cluster's points with its candidate box) so the\nreview can redraw the labelled cloud after a reload and a later merge can\npool point groups. Stored as one Float32 LE blob (x,y,z triplets) — never\nin the row — and recorded as ``attrs.detect.points_path``/``point_count``\n(``points_url`` on every object response). Replaces a previous upload.","operationId":"put_scene_object_points_v1_scenes__scene_id__objects__object_id__points_post","parameters":[{"name":"scene_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Scene Id"}},{"name":"object_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Object Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ObjectPointsIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SceneObjectOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/scenes/{scene_id}/unit-scale":{"patch":{"tags":["scenes"],"summary":"Patch Unit Scale","description":"Update the scene's metres-per-unit calibration.","operationId":"patch_unit_scale_v1_scenes__scene_id__unit_scale_patch","parameters":[{"name":"scene_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Scene Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SceneUnitScalePatch"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SceneOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/scenes/{scene_id}/source-frame":{"patch":{"tags":["scenes"],"summary":"Patch Source Frame","description":"Update the scene's splat/mesh source frame (y_up | y_down). Evicts the\nmesh cache so the next raycast reloads in the corrected frame.","operationId":"patch_source_frame_v1_scenes__scene_id__source_frame_patch","parameters":[{"name":"scene_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Scene Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SceneSourceFramePatch"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SceneOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/scenes/{scene_id}/north":{"patch":{"tags":["scenes"],"summary":"Patch North","description":"Set or clear the scene's true north (scenes.north_deg). Scene-wide and\nserver-owned like source_frame: the agent's compass answers and the plan\nPNG's north arrow read it for every user.","operationId":"patch_north_v1_scenes__scene_id__north_patch","parameters":[{"name":"scene_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Scene Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SceneNorthPatch"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SceneOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/scenes/{scene_id}/capture-date":{"patch":{"tags":["scenes"],"summary":"Patch Capture Date","description":"Set the scene's capture date, or clear it to read it from the scan's\nfiles again (engine/capture_date.py — the agents' ``set_capture_date`` calls\nthe same service). Owners, admins, staff, ingest keys, and a member who\nuploaded one of the scene's files.","operationId":"patch_capture_date_v1_scenes__scene_id__capture_date_patch","parameters":[{"name":"scene_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Scene Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SceneCaptureDatePatch"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SceneOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/scenes/{scene_id}/up-lock":{"patch":{"tags":["scenes"],"summary":"Patch Up Lock","description":"Set the scene's camera up-axis lock (staff-set in the System tab, applied\nto every viewer). None clears it. Purely a viewer-camera constraint — no\nmesh-cache impact, unlike source-frame.","operationId":"patch_up_lock_v1_scenes__scene_id__up_lock_patch","parameters":[{"name":"scene_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Scene Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SceneUpLockPatch"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SceneOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/scenes/{scene_id}/home-camera":{"patch":{"tags":["scenes"],"summary":"Patch Home Camera","description":"Pin (or clear, with None) the scene's home camera view — staff-set in the\nSystem tab, applied to every viewer. The pose is the viewer's rendered world\nframe, stored verbatim; the viewer only reads it back.","operationId":"patch_home_camera_v1_scenes__scene_id__home_camera_patch","parameters":[{"name":"scene_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Scene Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SceneHomeCameraPatch"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SceneOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/scenes/{scene_id}/roof-cut":{"patch":{"tags":["scenes"],"summary":"Patch Roof Cut","description":"Set (or clear, with None) the scene's DEFAULT roof cut — every viewer\nstarts from it: splats/points above height_m (canonical Y-up metres) are\nhidden so the scene reads from a bird's-eye view. Owner or staff only (the\nviewer's ⌂ toolbar chip \"Save for everyone\"); any member can still change\nthe cut for their own view, which stays in their browser. Display-only; no\nmesh-cache or planning impact.","operationId":"patch_roof_cut_v1_scenes__scene_id__roof_cut_patch","parameters":[{"name":"scene_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Scene Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SceneRoofCutPatch"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SceneOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/scenes/{scene_id}/maps":{"get":{"tags":["scenes"],"summary":"List Scene Maps","description":"The scene's floorplans (one per floor level), lowest floor first. Metadata\nonly — call GET /maps/{id} for a map's grids.","operationId":"list_scene_maps_v1_scenes__scene_id__maps_get","parameters":[{"name":"scene_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Scene Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/MapSummary"},"title":"Response List Scene Maps V1 Scenes  Scene Id  Maps Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["scenes"],"summary":"Generate Scene Map","description":"Generate (or regenerate) a named floorplan from the mesh at ``floor_y_m``\n(blank = the lowest detected floor; ``eye_y_m`` = the floor under that\nviewpoint — the viewer's \"floor at the camera\"). Upserts by (scene_id, name); the\nsame-named map's manual annotations are preserved unless\nkeep_annotations=false.","operationId":"generate_scene_map_v1_scenes__scene_id__maps_post","parameters":[{"name":"scene_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Scene Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MapGenerateRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MapOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/scenes/{scene_id}/clearout":{"get":{"tags":["scenes"],"summary":"Scene Clearout","description":"Erase prisms for the viewer's \"as planned\" mode: every floor level's\n``clear_object`` brush regions as canonical-metre boxes (exact row-run\nrectangle cover × floor→remaining-headroom height), and — for each object\ncleared BY NAME — that object's own box instead of a column. The renderers\nhide scanned content inside them — splats via box-SDF opacity edits, COPC\nvia per-node point filtering. Derived on read from the stored annotations\nand the objects' current boxes; nothing extra persists.","operationId":"scene_clearout_v1_scenes__scene_id__clearout_get","parameters":[{"name":"scene_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Scene Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClearoutOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/scenes/{scene_id}/maps/{map_id}/ramps":{"post":{"tags":["scenes"],"summary":"Detect Map Ramps","description":"Find the ramps on this floorplan again and save them as zones — the\n``detect_ramps`` tool's REST twin (one ``ramp_service.detect``).","operationId":"detect_map_ramps_v1_scenes__scene_id__maps__map_id__ramps_post","parameters":[{"name":"scene_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Scene Id"}},{"name":"map_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Map Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Detect Map Ramps V1 Scenes  Scene Id  Maps  Map Id  Ramps Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/scenes/{scene_id}/maps/{map_id}":{"get":{"tags":["scenes"],"summary":"Get Scene Map","operationId":"get_scene_map_v1_scenes__scene_id__maps__map_id__get","parameters":[{"name":"scene_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Scene Id"}},{"name":"map_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Map Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MapOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["scenes"],"summary":"Update Scene Map","description":"Rename a floorplan, set its description (the LLM reads the\ndescription) and/or tick it for path planning — ticking unticks the other\nfloorplans on the same floor level, so each level has at most one. 409 if\nthe scene already has another map by that name.","operationId":"update_scene_map_v1_scenes__scene_id__maps__map_id__patch","parameters":[{"name":"scene_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Scene Id"}},{"name":"map_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Map Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MapUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MapOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["scenes"],"summary":"Delete Scene Map","operationId":"delete_scene_map_v1_scenes__scene_id__maps__map_id__delete","parameters":[{"name":"scene_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Scene Id"}},{"name":"map_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Map Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/scenes/{scene_id}/maps/{map_id}/grid":{"get":{"tags":["scenes"],"summary":"Get Scene Map Grid","description":"The floorplan's cells for the Map's grid brush (``_grid_out``). The\nfull ``GET …/maps/{id}`` carries six more grids and the level's entities;\nthis reads only the columns an edit session draws.","operationId":"get_scene_map_grid_v1_scenes__scene_id__maps__map_id__grid_get","parameters":[{"name":"scene_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Scene Id"}},{"name":"map_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Map Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Scene Map Grid V1 Scenes  Scene Id  Maps  Map Id  Grid Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/building-features":{"get":{"tags":["scenes"],"summary":"Get Building Features","description":"The common-building-feature catalog (engine/entities/\nbuilding_features.py): the map's picker, the tag form's \"Mark as\" and the\ndetection preset all read it from here — the client keeps no copy.","operationId":"get_building_features_v1_building_features_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Get Building Features V1 Building Features Get"}}}}}}},"/v1/scenes/{scene_id}/maps/{map_id}/plan":{"get":{"tags":["scenes"],"summary":"Get Scene Map Plan","description":"The level as a VECTOR plan (engine/spatial/plan_vector.py): ``json`` =\nthe PlanDocument the map panel draws; ``svg`` / ``pdf`` / ``png`` = the\nsheet at paper + scale (title block, legend, north arrow, scale bar);\n``dxf`` = CAD layers in metres. ``layers`` = comma list of layer ids to\nkeep. ``features`` = comma list of building-feature keys to keep on the\n``features`` layer (omitted = every catalog match; \"\" = none);\n``custom`` = comma list of name keys of OTHER objects/tags to draw as\ngeneric markers (omitted = none). ``feature_ids`` = exact visible marker IDs,\nreplacing category selection when supplied (empty = no markers).\n``path_ids`` / ``cable_ids`` = saved path / cable route ids to keep on\n``paths`` / ``cables`` (omitted = all; empty = none).\nUnreviewed candidates always draw, dashed. ``store=true`` persists the export as a\ngenerated ProjectFile on the scene and returns its id (the report\nblock-plan insert).","operationId":"get_scene_map_plan_v1_scenes__scene_id__maps__map_id__plan_get","parameters":[{"name":"scene_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Scene Id"}},{"name":"map_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Map Id"}},{"name":"format","in":"query","required":false,"schema":{"type":"string","default":"json","title":"Format"}},{"name":"layers","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Layers"}},{"name":"scale","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","maximum":5000,"minimum":1},{"type":"null"}],"title":"Scale"}},{"name":"paper","in":"query","required":false,"schema":{"type":"string","pattern":"^(?i)A[0-4]$","default":"A3","title":"Paper"}},{"name":"orientation","in":"query","required":false,"schema":{"type":"string","pattern":"^(landscape|portrait)$","default":"landscape","title":"Orientation"}},{"name":"store","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Store"}},{"name":"features","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Features"}},{"name":"custom","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Custom"}},{"name":"feature_ids","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Feature Ids"}},{"name":"path_ids","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Path Ids"}},{"name":"cable_ids","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cable Ids"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/scenes/{scene_id}/maps/{map_id}/birdseye":{"put":{"tags":["scenes"],"summary":"Put Map Birdseye","description":"Store this level's bird's-eye photo — rendered by the viewer from the\nscan (roof cut, straight down, aligned to the plan through the viewer's\nown map↔world transform; ``below_y_m`` = the lower cut when the capture\nkept only a band). The body is the image; the query places it:\n``x0..x1`` / ``z0..z1`` metres in the GRID frame of ``grid_yaw_deg``.","operationId":"put_map_birdseye_v1_scenes__scene_id__maps__map_id__birdseye_put","parameters":[{"name":"scene_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Scene Id"}},{"name":"map_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Map Id"}},{"name":"x0","in":"query","required":true,"schema":{"type":"number","title":"X0"}},{"name":"z0","in":"query","required":true,"schema":{"type":"number","title":"Z0"}},{"name":"x1","in":"query","required":true,"schema":{"type":"number","title":"X1"}},{"name":"z1","in":"query","required":true,"schema":{"type":"number","title":"Z1"}},{"name":"grid_yaw_deg","in":"query","required":true,"schema":{"type":"number","title":"Grid Yaw Deg"}},{"name":"m_per_px","in":"query","required":true,"schema":{"type":"number","maximum":1.0,"exclusiveMinimum":0,"title":"M Per Px"}},{"name":"cut_y_m","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Cut Y M"}},{"name":"below_y_m","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Below Y M"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MapSummary"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["scenes"],"summary":"Get Map Birdseye","description":"The level's bird's-eye photo bytes (404 when none is rendered yet).","operationId":"get_map_birdseye_v1_scenes__scene_id__maps__map_id__birdseye_get","parameters":[{"name":"scene_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Scene Id"}},{"name":"map_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Map Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/scenes/{scene_id}/maps/{map_id}/duplicate":{"post":{"tags":["scenes"],"summary":"Duplicate Scene Map","description":"Copy a floorplan verbatim under a new name — grids, clearance and manual\nedits included. Use it to keep the as-scanned map and edit the copy for\nspace planning (paint fixtures 'free' to open the floor). 409 on a\nduplicate name. Does NOT re-sample the mesh, so the snapshot is exact.","operationId":"duplicate_scene_map_v1_scenes__scene_id__maps__map_id__duplicate_post","parameters":[{"name":"scene_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Scene Id"}},{"name":"map_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Map Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MapDuplicate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MapOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/scenes/{scene_id}/maps/{map_id}/annotations":{"patch":{"tags":["scenes"],"summary":"Patch Map Annotations","description":"Merge brush edits and regenerate this floorplan. Annotations are upserted\nby (row,col) unless replace=true; a ``restore`` entry removes the cell's\nsaved edit. Re-samples so edits compose with geometry; keeps the map's own\nfloor level and name. ``view=grid`` answers with the brush's cells only\n(``GET …/grid`` plus ``hidden_entities`` and ``warnings``) — what the\nMap's edit session redraws from — instead of the full map.","operationId":"patch_map_annotations_v1_scenes__scene_id__maps__map_id__annotations_patch","parameters":[{"name":"scene_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Scene Id"}},{"name":"map_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Map Id"}},{"name":"view","in":"query","required":false,"schema":{"anyOf":[{"type":"string","pattern":"^grid$"},{"type":"null"}],"title":"View"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AnnotationsPatch"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/scenes/{scene_id}/maps/{map_id}/clear-objects":{"post":{"tags":["scenes"],"summary":"Clear Map Objects","description":"Clear scanned objects off this floorplan BY NAME, or put them back —\nthe Map's object pop; the same logic as the agents'\n``clear_from_floorplan(objects=)`` (space_service.clear_objects, then the\none annotations write path). The plan frees the floor under each object's\nbox and treats it as gone; the viewer hides the scan inside that box while\nthe plan is shown (``GET /clearout``). 422 when nothing changes.","operationId":"clear_map_objects_v1_scenes__scene_id__maps__map_id__clear_objects_post","parameters":[{"name":"scene_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Scene Id"}},{"name":"map_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Map Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClearObjectsIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/scenes/{scene_id}/objects/{object_id}/clear":{"post":{"tags":["scenes"],"summary":"Clear Object As Planned","description":"Clear ONE scanned object as planned, or put it back — the Objects\nlist's row icon; the agents' ``clear_from_floorplan(objects=[name])`` with\nno floorplan named, on the same rules: the plan is the as-planned copy of\nthe level the object stands on (\"<plan> as planned\", made on the first\nclear), never the as-scanned plan. ``restore`` puts it back on every\nfloorplan it is cleared on. 422 when nothing changes.","operationId":"clear_object_as_planned_v1_scenes__scene_id__objects__object_id__clear_post","parameters":[{"name":"scene_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Scene Id"}},{"name":"object_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Object Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClearObjectIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/scenes/{scene_id}/path":{"post":{"tags":["scenes"],"summary":"Plan Scene Path","description":"Plan a floor path A→B for the ``body`` traveler box (default: an\naverage adult woman) — the route checks the oriented rectangular footprint\nplus side margin throughout translations and rotations, with height + top\nmargin of overhead headroom. An explicit clearance_m uses the legacy disk\nmodel instead. Each endpoint is an object tag, a saved annotation name\n(tagged location, measurement pin, finding) or an (x_m, z_m) point;\n``ignore`` treats named objects / wall ids as passable (renovation\nwhat-if). Auto-generates the map if the scene has none. Returns waypoints +\ndistance in metres plus the effective clearance/headroom requirements.","operationId":"plan_scene_path_v1_scenes__scene_id__path_post","parameters":[{"name":"scene_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Scene Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PathRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PathResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/scenes/{scene_id}/path/fit":{"post":{"tags":["scenes"],"summary":"Check Scene Route Fit","description":"Does a planned route fit another traveller as it stands? — the tour\nbar's avatar switch (the check_route_fit tool's REST twin, ONE service\nfunction: path_service.check_route_fit). Nothing is re-planned.","operationId":"check_scene_route_fit_v1_scenes__scene_id__path_fit_post","parameters":[{"name":"scene_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Scene Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RouteFitRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RouteFitResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/scenes/{scene_id}/coverage":{"post":{"tags":["scenes"],"summary":"Plan Scene Coverage","description":"Plan the coverage (sweep) route(s) of one level — the route a cleaner\nor ride-on scrubber takes to pass over every reachable part of the floor\nwith the least walking. Obstacles are composed as for ``/path``; the\nresult carries the lanes, per-worker routes, metrics and the coverage\nraster the viewer draws (``docs/algorithms/floor_coverage.md``).","operationId":"plan_scene_coverage_v1_scenes__scene_id__coverage_post","parameters":[{"name":"scene_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Scene Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CoverageRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CoverageResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/scenes/{scene_id}/analysis":{"post":{"tags":["scenes"],"summary":"Analyse Scene Floor","description":"Analyse one level's floor: areas, clear width, walking reach from a\nset of sources, or the floor a body can work. The floor is composed as\nfor ``/path``. Returns the table per space, the exceptions, the display\nraster and ``viewer`` — the ``show_analysis`` payload the agent tool\n``analyse_floor`` returns too.","operationId":"analyse_scene_floor_v1_scenes__scene_id__analysis_post","parameters":[{"name":"scene_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Scene Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AnalysisRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/scenes/{scene_id}/units":{"get":{"tags":["scenes"],"summary":"Get Measurement Units","operationId":"get_measurement_units_v1_scenes__scene_id__units_get","parameters":[{"name":"scene_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Scene Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectUnitsOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["scenes"],"summary":"Set Measurement Units","operationId":"set_measurement_units_v1_scenes__scene_id__units_put","parameters":[{"name":"scene_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Scene Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MeasurementUnits"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectUnitsOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/splat-preparation/capabilities":{"get":{"tags":["splat preparation"],"summary":"Capabilities","operationId":"capabilities_v1_splat_preparation_capabilities_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Capabilities V1 Splat Preparation Capabilities Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/scenes/{scene_id}/splat-preparation":{"get":{"tags":["splat preparation"],"summary":"Get Preparation","operationId":"get_preparation_v1_scenes__scene_id__splat_preparation_get","parameters":[{"name":"scene_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Scene Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Preparation V1 Scenes  Scene Id  Splat Preparation Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["splat preparation"],"summary":"Prepare","operationId":"prepare_v1_scenes__scene_id__splat_preparation_post","parameters":[{"name":"scene_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Scene Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/engine__api__splat_preparation__PrepareIn"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Prepare V1 Scenes  Scene Id  Splat Preparation Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/scenes/{scene_id}/frames":{"post":{"tags":["frames"],"summary":"Save Scene Frames","description":"Persist a batch of capture frames. ``replace_kinds`` clears those kinds\nfirst (declarative re-sync of a capture/segment pass); every frame upserts on\n(scene, kind, frame_key) so a re-capture replaces the same slot's bytes.\nA ``render360`` frame's image is the station's equirect sphere\n(views360_service.store_station): 422 when it is not one, 409 when it was\nbaked for settings that are no longer the scene's.","operationId":"save_scene_frames_v1_scenes__scene_id__frames_post","parameters":[{"name":"scene_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Scene Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FramesIn"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/FrameOut"},"title":"Response Save Scene Frames V1 Scenes  Scene Id  Frames Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["frames"],"summary":"List Scene Frames","description":"All persisted frames for the scene (optionally one kind), ordered so the\nclient can rebuild the gallery + segment overlays directly. Rendered 360\nstations only come back when asked for (``?kind=render360``); with\n``current`` only the bake a device viewing the scene as 360 views shows\n(views360_service.shown_digest).","operationId":"list_scene_frames_v1_scenes__scene_id__frames_get","parameters":[{"name":"scene_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Scene Id"}},{"name":"kind","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Kind"}},{"name":"current","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Current"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/FrameOut"},"title":"Response List Scene Frames V1 Scenes  Scene Id  Frames Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["frames"],"summary":"Delete All Scene Frames","description":"Clear the capture gallery (no ``kind`` → every frame incl. overlays, but\nnot the rendered 360 stations) or a single kind (``?kind=segment`` for the\nobject-detection overlays; ``?kind=render360`` for the stations, with\n``keep_digest`` only those baked for another digest — 409 unless it is\nthe saved settings' digest). Frees the GCS bytes. Idempotent.","operationId":"delete_all_scene_frames_v1_scenes__scene_id__frames_delete","parameters":[{"name":"scene_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Scene Id"}},{"name":"kind","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Kind"}},{"name":"keep_digest","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Keep Digest"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/scenes/{scene_id}/frames/{frame_key}":{"delete":{"tags":["frames"],"summary":"Delete Scene Frame","description":"Delete every frame with this key (gallery frame + its segment overlay), so\nremoving a gallery frame drops its derived overlay too. Idempotent.","operationId":"delete_scene_frame_v1_scenes__scene_id__frames__frame_key__delete","parameters":[{"name":"scene_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Scene Id"}},{"name":"frame_key","in":"path","required":true,"schema":{"type":"string","title":"Frame Key"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/scenes/{scene_id}/frames/captions":{"post":{"tags":["frames"],"summary":"Caption Frames","description":"Send gallery frames to the vision model and persist each description as\nthe frame's caption (``meta[\"caption\"]``, shown on gallery hover and read by\nthe chat agent's caption tools) plus the object kinds it saw\n(``meta[\"objects\"]`` — merged into the object index by\n``build_object_index``). A vision failure on one frame is reported\nbut never persisted, so a retry re-captions it. A frame already captioned\nwith matching image bytes, model, schema and prompt (whitespace-normalised)\nis returned without a VLM call. Explicit experimental models use the\nmulti-image seam rather than the configured default vision tier.","operationId":"caption_frames_v1_scenes__scene_id__frames_captions_post","parameters":[{"name":"scene_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Scene Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CaptionsIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CaptionOut"},"title":"Response Caption Frames V1 Scenes  Scene Id  Frames Captions Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/scenes/{scene_id}/frames/inspections":{"post":{"tags":["frames"],"summary":"Save Frame Inspections","description":"Persist per-frame VLM inspection results (``meta[\"inspect\"]`` =\n{question, findings}) so a repeated risk walkthrough asking the same\nquestion reuses them instead of re-inspecting every frame. One inspection\nper frame — a new question overwrites the old one. Unknown frame keys are\nskipped (the frame may have been deleted mid-flight).","operationId":"save_frame_inspections_v1_scenes__scene_id__frames_inspections_post","parameters":[{"name":"scene_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Scene Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InspectionsIn"}}}},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/scenes/{scene_id}/summary":{"get":{"tags":["frames"],"summary":"Get Scene Summary","description":"The stored scene summary (null until generated).","operationId":"get_scene_summary_v1_scenes__scene_id__summary_get","parameters":[{"name":"scene_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Scene Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SummaryOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["frames"],"summary":"Generate Scene Summary","description":"Summarise the stored frame captions into the scene summary (persisted on\nthe scene, fed to the chat agent's system prompt). 422 until at least one\nframe has been captioned.","operationId":"generate_scene_summary_v1_scenes__scene_id__summary_post","parameters":[{"name":"scene_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Scene Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SummarizeIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SummaryOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/scenes/{scene_id}/frames/object-index":{"get":{"tags":["frames"],"summary":"Get Object Index","description":"The stored object→frames index (null until built).","operationId":"get_object_index_v1_scenes__scene_id__frames_object_index_get","parameters":[{"name":"scene_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Scene Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ObjectIndexOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["frames"],"summary":"Build Object Index","description":"Distil the per-frame object lists into an object→frames index (persisted\nin scenes.object_index under sources.captions) so the chat agent can jump\nstraight to the frames showing a named object instead of scanning every\ncaption. Rebuilding replaces only the captions source — other index sources\n(e.g. future manual tags) are preserved. 422 until at least one frame has\nbeen captioned with object extraction.","operationId":"build_object_index_v1_scenes__scene_id__frames_object_index_post","parameters":[{"name":"scene_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Scene Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ObjectIndexIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ObjectIndexOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/scenes/{scene_id}/frames/detection-vocabulary":{"get":{"tags":["frames"],"summary":"Get Detection Vocabulary","description":"The stored detection vocabulary, or extracted object names, and the\nprompt that produced it — the System tab prefills its prompt box from\nthis so the user always sees the text that made the list.","operationId":"get_detection_vocabulary_v1_scenes__scene_id__frames_detection_vocabulary_get","parameters":[{"name":"scene_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Scene Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VocabularyOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["frames"],"summary":"Suggest Detection Vocabulary","description":"Turn the object index into a comma-separated open-vocabulary detection\nlist with the (user-visible, editable) prompt. Builds the captions index\nfirst when the scene has none (or ``rebuild_index``). One small text call\non the fast model; the result is persisted under\n``scene.object_index[\"detection_vocabulary\"]`` so it survives reloads and\na later pipeline step can read it.","operationId":"suggest_detection_vocabulary_v1_scenes__scene_id__frames_detection_vocabulary_post","parameters":[{"name":"scene_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Scene Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VocabularyIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VocabularyOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/scenes/{scene_id}/frames/validate-candidates":{"post":{"tags":["frames"],"summary":"Validate Candidates","description":"Cross-check every detection candidate against the per-frame object\nlists of the frames that look at it. Stores on each candidate row\n``attrs.validation = {tier: \"captions\", verdict, frames, matched, at}``\nwith verdict ``supported`` (a consulted frame lists the label),\n``unsupported`` (frames see it, none lists it) or ``unseen`` (no frame's\ngaze lands on it). 422 until frames carry object lists.","operationId":"validate_candidates_v1_scenes__scene_id__frames_validate_candidates_post","parameters":[{"name":"scene_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Scene Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidateCandidatesIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidateCandidatesOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/scenes/{scene_id}/setup":{"get":{"tags":["scene-setup"],"summary":"Get Setup","operationId":"get_setup_v1_scenes__scene_id__setup_get","parameters":[{"name":"scene_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Scene Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetupOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["scene-setup"],"summary":"Put Setup","description":"Replace the whole config (the stage sections send the document they\nhold; a loaded file is validated the same way — a typo is a 422 naming the\nkey, never a silent default).","operationId":"put_setup_v1_scenes__scene_id__setup_put","parameters":[{"name":"scene_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Scene Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetupConfig"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetupOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/scenes/{scene_id}/setup/run":{"post":{"tags":["scene-setup"],"summary":"Start Run","description":"Open a run record. ``mode: viewer`` — the viewer executes the stages and\nPATCHes progress. ``mode: server`` — a background task runs the server-side\nstages and marks the browser ones ``needs_viewer``. 409 while a run is\nstill going (cancel it with PATCH run_status=cancelled first).","operationId":"start_run_v1_scenes__scene_id__setup_run_post","parameters":[{"name":"scene_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Scene Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunIn"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetupOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["scene-setup"],"summary":"Patch Run","description":"The viewer's progress report: one stage's status (+counts / error), and\nat the end the run's status. 404 when the scene has no run yet.","operationId":"patch_run_v1_scenes__scene_id__setup_run_patch","parameters":[{"name":"scene_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Scene Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunPatch"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetupOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/scenes/{scene_id}/pipeline":{"get":{"tags":["scene-pipeline"],"summary":"Get Pipeline","operationId":"get_pipeline_v1_scenes__scene_id__pipeline_get","parameters":[{"name":"scene_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Scene Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Pipeline V1 Scenes  Scene Id  Pipeline Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/scenes/{scene_id}/process":{"post":{"tags":["scene-pipeline"],"summary":"Process","operationId":"process_v1_scenes__scene_id__process_post","parameters":[{"name":"scene_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Scene Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProcessIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Process V1 Scenes  Scene Id  Process Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/scenes/{scene_id}/process/stop":{"post":{"tags":["scene-pipeline"],"summary":"Stop","operationId":"stop_v1_scenes__scene_id__process_stop_post","parameters":[{"name":"scene_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Scene Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Stop V1 Scenes  Scene Id  Process Stop Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/scenes/{scene_id}/frame-features/runs":{"get":{"tags":["frame-features"],"summary":"List Runs","operationId":"list_runs_v1_scenes__scene_id__frame_features_runs_get","parameters":[{"name":"scene_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Scene Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["frame-features"],"summary":"Start","operationId":"start_v1_scenes__scene_id__frame_features_runs_post","parameters":[{"name":"scene_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Scene Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StartIn"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/scenes/{scene_id}/frame-features/runs/{job_id}":{"get":{"tags":["frame-features"],"summary":"Get Run","operationId":"get_run_v1_scenes__scene_id__frame_features_runs__job_id__get","parameters":[{"name":"scene_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Scene Id"}},{"name":"job_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Job Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/scenes/{scene_id}/frame-features/runs/{job_id}/control":{"post":{"tags":["frame-features"],"summary":"Control","operationId":"control_v1_scenes__scene_id__frame_features_runs__job_id__control_post","parameters":[{"name":"scene_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Scene Id"}},{"name":"job_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Job Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ControlIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/scenes/{scene_id}/frame-features/accept-candidates":{"post":{"tags":["frame-features"],"summary":"Accept Candidates","description":"The review's \"Accept all\": every candidate object becomes detected or\nproposed (the ``accept_candidates`` tool calls the same function).","operationId":"accept_candidates_v1_scenes__scene_id__frame_features_accept_candidates_post","parameters":[{"name":"scene_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Scene Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/scenes/{scene_id}/frame-features/threshold":{"get":{"tags":["frame-features"],"summary":"Detection Threshold","description":"The scene's detection threshold and how many objects it shows and hides.","operationId":"detection_threshold_v1_scenes__scene_id__frame_features_threshold_get","parameters":[{"name":"scene_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Scene Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/scenes/{scene_id}/frame-features/discard-hidden":{"post":{"tags":["frame-features"],"summary":"Discard Hidden","description":"Delete for good the objects the scene's detection threshold hides (the\n``discard_hidden_detections`` tool calls the same function).","operationId":"discard_hidden_v1_scenes__scene_id__frame_features_discard_hidden_post","parameters":[{"name":"scene_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Scene Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/scenes/{scene_id}/query":{"post":{"tags":["query"],"summary":"Query Scene","operationId":"query_scene_v1_scenes__scene_id__query_post","parameters":[{"name":"scene_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Scene Id"}},{"name":"session_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Session Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QueryIn"}}}},"responses":{"200":{"description":"SSE stream of `token` / `tool_call` / `viewer_command` / `done` / `error` events (one chat turn); a turn that folds `camera_results` first emits one `continuation` event carrying the synthetic user turn the client must persist and resend.","content":{"application/json":{"schema":{}},"text/event-stream":{}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/scenes/{scene_id}/warm":{"post":{"tags":["query"],"summary":"Warm Scene","description":"Pre-pay what the first chat turn on this scene would otherwise pay\ncold: the mesh (2–3 s for a 23 MB OBJ, far more for a tiled scene — it is\ndownloaded and parsed into the process mesh cache), the provider model\ncatalogue (~1.4 s, cached hourly) and, for a self-hosted chat model, its\nprompt cache (~3.5 s of prefill for the scene's ~40K-token prompt; the body\ncarries the app context the turn will send, so the prompt matches). The\nviewer fires this when a scene opens, fire-and-forget; the work runs AFTER\nthe 202 so opening never waits, and it is idempotent and deduplicated per\nscene. Process-local:\non a multi-instance deployment the chat may land on an instance this did\nnot warm (staging runs one), in which case that turn pays cold as before.","operationId":"warm_scene_v1_scenes__scene_id__warm_post","parameters":[{"name":"scene_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Scene Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/WarmIn"},{"type":"null"}],"title":"Body"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Warm Scene V1 Scenes  Scene Id  Warm Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/llm/models":{"get":{"tags":["query"],"summary":"List Llm Models","description":"Models the client may select for chat. Gemini entries are discovered from\nthe Vertex models API (latest exact-versioned flash + pro, major version >=\n3) unless overridden via PLENEX_GEMINI_MODELS; Claude and the\nOpenAI-compatible providers append their static allow-lists after it\n(PLENEX_CLAUDE_MODELS / PLENEX_OPENAI_MODELS / PLENEX_MOONSHOT_MODELS —\nunset means that provider is off and never appears here), and the first\nPLENEX_SELF_HOSTED_MODELS id moves to the top. Read `default` explicitly;\nthe first entry of `models` need not be it. `default_reasoning`\nis the reasoning-tier default for the default model's family.","operationId":"list_llm_models_v1_llm_models_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response List Llm Models V1 Llm Models Get"}}}}}}},"/v1/llm/self-hosted":{"get":{"tags":["query"],"summary":"Self Hosted Status","description":"The self-hosted VM's phase (serving | starting | off | stopping | failed\n| unknown | unreachable), the ids it serves, and the expected boot time,\nfor the model pickers on Organisation → Platform (core/self_hosted.status).","operationId":"self_hosted_status_v1_llm_self_hosted_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Self Hosted Status V1 Llm Self Hosted Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/llm/self-hosted/start":{"post":{"tags":["query"],"summary":"Start Self Hosted","description":"Power the self-hosted VM on now (Plenex staff; start only, never a\nmodel swap). Returns the new status.","operationId":"start_self_hosted_v1_llm_self_hosted_start_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Start Self Hosted V1 Llm Self Hosted Start Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/usage/conversation/{conversation_id}":{"get":{"tags":["query"],"summary":"Conversation Usage","description":"Token totals for ONE conversation (a scene ChatSession.id or a Report.id),\nfor the in-chat live readout. Org-fenced (any member of the org may read\ntheir own conversation's counts — token tallies, not chat content).\n``last_call.context_tokens`` is a measured single request. Legacy per-leg\ntotals have unknown occupancy and never masquerade as a single prompt.\n``turns`` is a deprecated alias for usage_records, not a count of user turns.","operationId":"conversation_usage_v1_usage_conversation__conversation_id__get","parameters":[{"name":"conversation_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Conversation Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Conversation Usage V1 Usage Conversation  Conversation Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/scenes/{scene_id}/placement":{"get":{"tags":["query"],"summary":"Placement Candidates","description":"Open floor positions that fit a footprint_width_m × footprint_depth_m box\n(the Tools › Placement card) — the SAME search as the\nfind_placement_candidates agent tool (engine/api/space_service.find_space)\nwithout the viewer-command envelope: candidates in canonical map metres,\neach with ``remove`` (objects that must go for it); the client issues the\nshow_candidates command itself. ``view_pose`` (the card's \"Near my view\"):\nthe viewer camera as six comma-separated numbers — position x,y,z then\nforward x,y,z, RAW scene units, the chat turn's ``view_pose`` — ranks the\nfits from the floor in front of it, nearest first, on the level the camera\nstands on unless ``floorplan`` names one.","operationId":"placement_candidates_v1_scenes__scene_id__placement_get","parameters":[{"name":"scene_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Scene Id"}},{"name":"footprint_width_m","in":"query","required":true,"schema":{"type":"number","title":"Footprint Width M"}},{"name":"footprint_depth_m","in":"query","required":true,"schema":{"type":"number","title":"Footprint Depth M"}},{"name":"clearance_height_m","in":"query","required":false,"schema":{"type":"number","default":2.0,"title":"Clearance Height M"}},{"name":"clearance_m","in":"query","required":false,"schema":{"type":"number","default":0.0,"title":"Clearance M"}},{"name":"allow_removing","in":"query","required":false,"schema":{"type":"string","default":"planned","title":"Allow Removing"}},{"name":"floorplan","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Floorplan"}},{"name":"view_pose","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"View Pose"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Placement Candidates V1 Scenes  Scene Id  Placement Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/scenes/{scene_id}/clearance":{"get":{"tags":["query"],"summary":"Object Clearance","description":"Clearance for one object (UI probe button — same data the probe_object\nagent tool returns, without the viewer-command envelope). `object_id`\npicks ONE row exactly — detection candidates all share a label, so a name\nlookup would always probe the first of them.","operationId":"object_clearance_v1_scenes__scene_id__clearance_get","parameters":[{"name":"scene_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Scene Id"}},{"name":"object_name","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Object Name"}},{"name":"object_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Object Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Object Clearance V1 Scenes  Scene Id  Clearance Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/scenes/{scene_id}/tools":{"get":{"tags":["tools"],"summary":"List Scene Tools","description":"The spatial tools available for this scene, as JSON-Schema declarations.\nEmpty until a context is attached. Mesh tools appear only when a mesh is\nattached; registry-mutating tools only with the write scope; the region\nselection tool only when segmentation is enabled.","operationId":"list_scene_tools_v1_scenes__scene_id__tools_get","parameters":[{"name":"scene_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Scene Id"}},{"name":"app","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"App"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ToolListOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/scenes/{scene_id}/tools/{name}":{"post":{"tags":["tools"],"summary":"Invoke Scene Tool","description":"Invoke one spatial tool by name. Tool-level failures (e.g. unknown\nobject) return 200 with the error inside ``result`` — the same value the\nagent loop sees. A ``viewer_command`` is surfaced separately for clients\nembedding the viewer; headless clients use ``result``.","operationId":"invoke_scene_tool_v1_scenes__scene_id__tools__name__post","parameters":[{"name":"scene_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Scene Id"}},{"name":"name","in":"path","required":true,"schema":{"type":"string","title":"Name"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvokeIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvokeOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/scenes/{scene_id}/entities":{"get":{"tags":["entities"],"summary":"List Scene Entities","description":"Everything saved in the scene, raw per-type dicts tagged with\n``entity_type`` (geometry included — the viewer overlay source of truth).\n``type`` filters by a comma-separated entity-type list.","operationId":"list_scene_entities_v1_scenes__scene_id__entities_get","parameters":[{"name":"scene_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Scene Id"}},{"name":"type","in":"query","required":false,"schema":{"type":"string","default":"","title":"Type"}},{"name":"min_confidence","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Min Confidence"}},{"name":"max_confidence","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Max Confidence"}},{"name":"include_unknown","in":"query","required":false,"schema":{"type":"boolean","default":true,"title":"Include Unknown"}},{"name":"sort","in":"query","required":false,"schema":{"type":"string","default":"default","title":"Sort"}},{"name":"q","in":"query","required":false,"schema":{"type":"string","default":"","title":"Q"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Scene Entities V1 Scenes  Scene Id  Entities Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["entities"],"summary":"Create Scene Entity","description":"Commit a reviewed illustrative draft; id updates an existing drawing.","operationId":"create_scene_entity_v1_scenes__scene_id__entities_post","parameters":[{"name":"scene_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Scene Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Create Scene Entity V1 Scenes  Scene Id  Entities Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/scenes/{scene_id}/entities/search":{"get":{"tags":["entities"],"summary":"Search Scene Entities","description":"Cross-type name search — the same tiered resolver (exact → substring →\nfuzzy, id wins) the agent's find_entity uses. ``autocomplete`` instead\nreturns prefix-first substring suggestions, including longer names and\nall types for an empty query.","operationId":"search_scene_entities_v1_scenes__scene_id__entities_search_get","parameters":[{"name":"scene_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Scene Id"}},{"name":"q","in":"query","required":true,"schema":{"type":"string","title":"Q"}},{"name":"type","in":"query","required":false,"schema":{"type":"string","default":"","title":"Type"}},{"name":"autocomplete","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Autocomplete"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Search Scene Entities V1 Scenes  Scene Id  Entities Search Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/scenes/{scene_id}/entities/deleted":{"get":{"tags":["entities"],"summary":"List Deleted Entities","description":"Deleted entities that can still be restored, most recent first — the\nEntities window's \"Recently deleted\" list (agents: ``restore_entity()``).","operationId":"list_deleted_entities_v1_scenes__scene_id__entities_deleted_get","parameters":[{"name":"scene_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Scene Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Deleted Entities V1 Scenes  Scene Id  Entities Deleted Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/scenes/{scene_id}/entities/deleted/{record_id}/restore":{"post":{"tags":["entities"],"summary":"Restore Deleted Entity","description":"Put a deleted entity back under its own id — the same service call as\nthe agents' ``restore_entity``. 409 when that id exists again.","operationId":"restore_deleted_entity_v1_scenes__scene_id__entities_deleted__record_id__restore_post","parameters":[{"name":"scene_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Scene Id"}},{"name":"record_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Record Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Restore Deleted Entity V1 Scenes  Scene Id  Entities Deleted  Record Id  Restore Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/scenes/{scene_id}/entities/batch-delete":{"post":{"tags":["entities"],"summary":"Delete Scene Entities","operationId":"delete_scene_entities_v1_scenes__scene_id__entities_batch_delete_post","parameters":[{"name":"scene_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Scene Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityBatchDelete"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Delete Scene Entities V1 Scenes  Scene Id  Entities Batch Delete Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/scenes/{scene_id}/entities/{entity_id}":{"get":{"tags":["entities"],"summary":"Describe Scene Entity","description":"ONE entity's properties by row id — the compact row plus the same\ndescriptor ``describe`` the agent's describe_entity returns (the viewer's\ndouble-click properties card).","operationId":"describe_scene_entity_v1_scenes__scene_id__entities__entity_id__get","parameters":[{"name":"scene_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Scene Id"}},{"name":"entity_id","in":"path","required":true,"schema":{"type":"string","title":"Entity Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Describe Scene Entity V1 Scenes  Scene Id  Entities  Entity Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["entities"],"summary":"Patch Scene Entity","description":"Rename ANY saved entity by row id (per-type policy rides the service —\ncable routes/paths keep their per-scene unique-name 409); a scene NOTE\nadditionally takes claim/status/confirmation edits (409 on a stale\n``expected_revision``).","operationId":"patch_scene_entity_v1_scenes__scene_id__entities__entity_id__patch","parameters":[{"name":"scene_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Scene Id"}},{"name":"entity_id","in":"path","required":true,"schema":{"type":"string","title":"Entity Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityPatch"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Patch Scene Entity V1 Scenes  Scene Id  Entities  Entity Id  Patch"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["entities"],"summary":"Delete Scene Entity","description":"Delete ANY saved entity by row id. The row is held for\n``Settings.entity_trash_days`` (``POST /entities/deleted/{id}/restore``\nputs it back); its files go when that record expires.","operationId":"delete_scene_entity_v1_scenes__scene_id__entities__entity_id__delete","parameters":[{"name":"scene_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Scene Id"}},{"name":"entity_id","in":"path","required":true,"schema":{"type":"string","title":"Entity Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/scenes/{scene_id}/entities/merge":{"post":{"tags":["entities"],"summary":"Merge Scene Entities","operationId":"merge_scene_entities_v1_scenes__scene_id__entities_merge_post","parameters":[{"name":"scene_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Scene Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityMergeIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Merge Scene Entities V1 Scenes  Scene Id  Entities Merge Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/scenes/{scene_id}/entities/{entity_id}/unmerge":{"post":{"tags":["entities"],"summary":"Unmerge Scene Entity","description":"Restore merge sources; feature pins retain their original primary ID.","operationId":"unmerge_scene_entity_v1_scenes__scene_id__entities__entity_id__unmerge_post","parameters":[{"name":"scene_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Scene Id"}},{"name":"entity_id","in":"path","required":true,"schema":{"type":"string","title":"Entity Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/EntityUnmergeIn"},{"type":"null"}],"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Unmerge Scene Entity V1 Scenes  Scene Id  Entities  Entity Id  Unmerge Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/scenes/{scene_id}/entities/groups/rename":{"post":{"tags":["entities"],"summary":"Rename Object Group","description":"Rename every object of a group — the same service call as the agents'\n``rename_entity(group=True)``.","operationId":"rename_object_group_v1_scenes__scene_id__entities_groups_rename_post","parameters":[{"name":"scene_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Scene Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ObjectGroupIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Rename Object Group V1 Scenes  Scene Id  Entities Groups Rename Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/scenes/{scene_id}/entities/groups/delete":{"post":{"tags":["entities"],"summary":"Delete Object Group","description":"Delete every object of a group (each restorable) — the same service call as\nthe agents' ``delete_entity(group=True)``.","operationId":"delete_object_group_v1_scenes__scene_id__entities_groups_delete_post","parameters":[{"name":"scene_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Scene Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ObjectGroupIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Delete Object Group V1 Scenes  Scene Id  Entities Groups Delete Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/scenes/{scene_id}/documents":{"get":{"tags":["documents"],"summary":"Scene Documents","description":"Documents and folders this scene's chat may tag.\n\n- `ids` (comma-separated document or folder ids): those still readable, in\n  order — the picker's \"Recently used\".\n- `folder`: the documents filed directly in that folder.\n- `q`: name matches (prefix first), then with `content` the documents whose\n  text matches (the agent's retrieval), each with its best passage.\n- neither: the first `limit` documents by name.\n\nFolders are listed with how many readable documents they hold (subfolders\nincluded), filtered by `q` when given. `total` is every readable document.","operationId":"scene_documents_v1_scenes__scene_id__documents_get","parameters":[{"name":"scene_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Scene Id"}},{"name":"q","in":"query","required":false,"schema":{"type":"string","default":"","title":"Q"}},{"name":"folder","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Folder"}},{"name":"ids","in":"query","required":false,"schema":{"type":"string","default":"","title":"Ids"}},{"name":"content","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Content"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":20,"title":"Limit"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Scene Documents V1 Scenes  Scene Id  Documents Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/scenes/{scene_id}/uploaded-documents":{"get":{"tags":["documents"],"summary":"Listed","operationId":"listed_v1_scenes__scene_id__uploaded_documents_get","parameters":[{"name":"scene_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Scene Id"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Offset"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":50,"title":"Limit"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/scenes/{scene_id}/uploaded-documents/{document_id}":{"post":{"tags":["documents"],"summary":"Change","operationId":"change_v1_scenes__scene_id__uploaded_documents__document_id__post","parameters":[{"name":"scene_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Scene Id"}},{"name":"document_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Document Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ManageIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/scenes/{scene_id}/uploaded-documents/{document_id}/inspect":{"post":{"tags":["documents"],"summary":"Inspect","operationId":"inspect_v1_scenes__scene_id__uploaded_documents__document_id__inspect_post","parameters":[{"name":"scene_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Scene Id"}},{"name":"document_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Document Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/engine__api__document_tools__InspectIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/scenes/{scene_id}/cable-routes/plan":{"post":{"tags":["cable-routes"],"summary":"Plan Cable Route","description":"Plan a 3D cable route A→B avoiding obstacles with cable-diameter\nclearance. Endpoints are an object/tagged-location name or a scene-unit\npoint; ``ignore``\ncarves named objects out of the occupancy and ``zones`` are exclude / block\n/ prefer boxes; saved zones' cable rules always apply and ``avoid_zones``\nadds more. Nothing is persisted.","operationId":"plan_cable_route_v1_scenes__scene_id__cable_routes_plan_post","parameters":[{"name":"scene_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Scene Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CablePlanRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CablePlanResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/scenes/{scene_id}/cable-routes":{"post":{"tags":["cable-routes"],"summary":"Save Cable Route","description":"Persist a planned (possibly hand-edited) route. The server recomputes\nlength_m/per-kind numerically from the geometry and runs the SOFT clearance\nre-check (warns via `validation`, never rejects).","operationId":"save_cable_route_v1_scenes__scene_id__cable_routes_post","parameters":[{"name":"scene_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Scene Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CableRouteSave"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CableRouteOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["cable-routes"],"summary":"List Cable Routes","operationId":"list_cable_routes_v1_scenes__scene_id__cable_routes_get","parameters":[{"name":"scene_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Scene Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CableRouteOut"},"title":"Response List Cable Routes V1 Scenes  Scene Id  Cable Routes Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/scenes/{scene_id}/cable-routes/{route_id}":{"get":{"tags":["cable-routes"],"summary":"Get Cable Route","operationId":"get_cable_route_v1_scenes__scene_id__cable_routes__route_id__get","parameters":[{"name":"scene_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Scene Id"}},{"name":"route_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Route Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CableRouteOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["cable-routes"],"summary":"Patch Cable Route","description":"Rename / annotate / replace the geometry. A geometry replace recomputes\nlength + validation from the edited polyline (no automatic re-sag — the\nedited geometry is authoritative).","operationId":"patch_cable_route_v1_scenes__scene_id__cable_routes__route_id__patch","parameters":[{"name":"scene_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Scene Id"}},{"name":"route_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Route Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CableRoutePatch"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CableRouteOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["cable-routes"],"summary":"Delete Cable Route","operationId":"delete_cable_route_v1_scenes__scene_id__cable_routes__route_id__delete","parameters":[{"name":"scene_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Scene Id"}},{"name":"route_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Route Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/scenes/{scene_id}/zones":{"get":{"tags":["zones"],"summary":"List Zones","operationId":"list_zones_v1_scenes__scene_id__zones_get","parameters":[{"name":"scene_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Scene Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ZoneOut"},"title":"Response List Zones V1 Scenes  Scene Id  Zones Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["zones"],"summary":"Create Zone","description":"Save a drawn zone: an outline on one level, optionally with rules.","operationId":"create_zone_v1_scenes__scene_id__zones_post","parameters":[{"name":"scene_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Scene Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZoneCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZoneOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/scenes/{scene_id}/zones/{zone_id}":{"patch":{"tags":["zones"],"summary":"Patch Zone","description":"Reshape a zone (new outline, optionally on another level) and/or change\nits rules. Rename / delete: the generic ``/entities`` endpoints.","operationId":"patch_zone_v1_scenes__scene_id__zones__zone_id__patch","parameters":[{"name":"scene_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Scene Id"}},{"name":"zone_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Zone Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZonePatch"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZoneOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/floor-types":{"get":{"tags":["zones"],"summary":"List Floor Types","description":"The floor types a zone can carry: key, label and display colour.","operationId":"list_floor_types_v1_floor_types_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Response List Floor Types V1 Floor Types Get"}}}}}}},"/v1/scenes/{scene_id}/floor-types/propose":{"post":{"tags":["zones"],"summary":"Propose Floor Types","description":"Ask the vision model which floor finish each zone's photos show and\nsave the answers as PROPOSED types (a confirmed type is never touched).\nThe agent twin is ``propose_floor_types``.","operationId":"propose_floor_types_v1_scenes__scene_id__floor_types_propose_post","parameters":[{"name":"scene_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Scene Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FloorTypeProposeIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Propose Floor Types V1 Scenes  Scene Id  Floor Types Propose Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/scenes/{scene_id}/levels":{"get":{"tags":["levels"],"summary":"List Levels","description":"The scene's floor levels, lowest first: floors, candidates (detected,\njudged not a floor) and rejected ones.","operationId":"list_levels_v1_scenes__scene_id__levels_get","parameters":[{"name":"scene_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Scene Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response List Levels V1 Scenes  Scene Id  Levels Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["levels"],"summary":"Edit Level","operationId":"edit_level_v1_scenes__scene_id__levels_post","parameters":[{"name":"scene_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Scene Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LevelEdit"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Edit Level V1 Scenes  Scene Id  Levels Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/scenes/{scene_id}/paths":{"post":{"tags":["saved-paths"],"summary":"Save Scene Path","description":"Persist a planned path (the waypoints the viewer is displaying).","operationId":"save_scene_path_v1_scenes__scene_id__paths_post","parameters":[{"name":"scene_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Scene Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SavedPathCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SavedPathOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["saved-paths"],"summary":"List Scene Paths","operationId":"list_scene_paths_v1_scenes__scene_id__paths_get","parameters":[{"name":"scene_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Scene Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SavedPathOut"},"title":"Response List Scene Paths V1 Scenes  Scene Id  Paths Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/scenes/{scene_id}/paths/{path_id}":{"get":{"tags":["saved-paths"],"summary":"Get Scene Path","operationId":"get_scene_path_v1_scenes__scene_id__paths__path_id__get","parameters":[{"name":"scene_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Scene Id"}},{"name":"path_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Path Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SavedPathOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["saved-paths"],"summary":"Patch Scene Path","description":"Rename or re-annotate a saved path (geometry is immutable — re-plan and\nsave a new one to change the route).","operationId":"patch_scene_path_v1_scenes__scene_id__paths__path_id__patch","parameters":[{"name":"scene_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Scene Id"}},{"name":"path_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Path Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SavedPathPatch"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SavedPathOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["saved-paths"],"summary":"Delete Scene Path","description":"Delete the path row. A generated walkthrough video's ProjectFiles are\ndeliberately left in place (same policy as report images on report delete):\nreports may embed the video by file id and must keep resolving it.","operationId":"delete_scene_path_v1_scenes__scene_id__paths__path_id__delete","parameters":[{"name":"scene_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Scene Id"}},{"name":"path_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Path Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/scenes/{scene_id}/paths/{path_id}/video":{"post":{"tags":["saved-paths"],"summary":"Upload Path Video","description":"Attach a recorded walkthrough video to a saved path (multipart `file`,\nWebM or MP4). Transcodes to H.264 MP4 + poster JPEG and stores both.","operationId":"upload_path_video_v1_scenes__scene_id__paths__path_id__video_post","parameters":[{"name":"scene_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Scene Id"}},{"name":"path_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Path Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_path_video_v1_scenes__scene_id__paths__path_id__video_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SavedPathOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["saved-paths"],"summary":"Get Path Video","description":"The path's walkthrough video with fresh signed URLs (404 when none).","operationId":"get_path_video_v1_scenes__scene_id__paths__path_id__video_get","parameters":[{"name":"scene_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Scene Id"}},{"name":"path_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Path Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Path Video V1 Scenes  Scene Id  Paths  Path Id  Video Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/scenes/{scene_id}/layouts":{"get":{"tags":["layouts"],"summary":"List Layouts","operationId":"list_layouts_v1_scenes__scene_id__layouts_get","parameters":[{"name":"scene_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Scene Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response List Layouts V1 Scenes  Scene Id  Layouts Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["layouts"],"summary":"Save Layout","description":"Persist the preview by re-executing its spec with ``save_as`` — the\nsame code path as the agent's ``plan_layout save_as=``. Never overwrites:\nan existing name is a 409 (the agent's save_as upserts; a UI click must\nnot silently replace a saved plan).","operationId":"save_layout_v1_scenes__scene_id__layouts_post","parameters":[{"name":"scene_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Scene Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LayoutSaveIn"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Save Layout V1 Scenes  Scene Id  Layouts Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/scenes/{scene_id}/layouts/{layout_id}":{"patch":{"tags":["layouts"],"summary":"Patch Layout Boxes","description":"Replace the layout's boxes (manual edit commit). Geometry problems are\nRECORDED violations — the save proceeds with ``valid:false`` and the ⚠\nbadge; only structural garbage rejects (422).","operationId":"patch_layout_boxes_v1_scenes__scene_id__layouts__layout_id__patch","parameters":[{"name":"scene_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Scene Id"}},{"name":"layout_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Layout Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LayoutBoxesPatch"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Patch Layout Boxes V1 Scenes  Scene Id  Layouts  Layout Id  Patch"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/scenes/{scene_id}/layouts/{layout_id}/export":{"get":{"tags":["layouts"],"summary":"Export Layout","description":"Export the layout for external editing (Blender). GLB only for now:\ncanonical Y-up metres, ``plx_box_*`` nodes + ``ctx_*`` building context\n(docs/algorithms/storage_layout.md §Round-trip). Stored as a generated\nProjectFile; the signed URL downloads it.","operationId":"export_layout_v1_scenes__scene_id__layouts__layout_id__export_get","parameters":[{"name":"scene_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Scene Id"}},{"name":"layout_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Layout Id"}},{"name":"format","in":"query","required":false,"schema":{"type":"string","default":"glb","title":"Format"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Export Layout V1 Scenes  Scene Id  Layouts  Layout Id  Export Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/scenes/{scene_id}/layouts/{layout_id}/import":{"post":{"tags":["layouts"],"summary":"Import Layout","description":"Re-import an edited GLB (multipart ``file``). Nodes match by extras\nindex, then name; unmatched box nodes become ADDED boxes; nodes missing\nfrom the file are KEPT unless ``prune=true`` (Blender partial exports\nmust not silently delete the layout). Funnels through the same\n``update_layout_boxes`` as the viewer editor — geometry problems are\nrecorded violations, never import blockers.","operationId":"import_layout_v1_scenes__scene_id__layouts__layout_id__import_post","parameters":[{"name":"scene_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Scene Id"}},{"name":"layout_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Layout Id"}},{"name":"prune","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Prune"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_import_layout_v1_scenes__scene_id__layouts__layout_id__import_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Import Layout V1 Scenes  Scene Id  Layouts  Layout Id  Import Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/body-profiles":{"get":{"tags":["body-profiles"],"summary":"List Profiles","description":"Builtin presets first, then the org's custom profiles (name order).","operationId":"list_profiles_v1_body_profiles_get","parameters":[{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/BodyProfileOut"},"title":"Response List Profiles V1 Body Profiles Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["body-profiles"],"summary":"Save Profile","description":"Create or update (upsert by name, case-insensitive) an org profile.\nBuiltin names are reserved → 422.","operationId":"save_profile_v1_body_profiles_post","parameters":[{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BodyProfileIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BodyProfileOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/robots":{"get":{"tags":["body-profiles"],"summary":"List Robots","description":"The robot library with every published attribute — the same list as\n/body-profiles (archetypes, models, then the org's customs), each entry\nwith ``spec`` (the dataset row: weight, tool, rated/practical m²/h,\nspeeds, turning, battery, tanks, sensors, sources, provenance flags).\nApps show and pick robots from here; planners resolve the same names.","operationId":"list_robots_v1_robots_get","parameters":[{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response List Robots V1 Robots Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/body-profiles/{name}":{"delete":{"tags":["body-profiles"],"summary":"Delete Profile","operationId":"delete_profile_v1_body_profiles__name__delete","parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string","title":"Name"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Delete Profile V1 Body Profiles  Name  Delete"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/scenes/{scene_id}/segment":{"post":{"tags":["segment"],"summary":"Segment Scene View","description":"Segment the supplied frame for each prompt; return a colored-mask overlay\n+ per-region {label, score, polygon_norm}. Kinds listed in ``ground`` that\nthe text prompt found nothing of are grounded by the caption model.","operationId":"segment_scene_view_v1_scenes__scene_id__segment_post","parameters":[{"name":"scene_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Scene Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SegmentIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OverlayResult"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/scenes/{scene_id}/segment-boxes":{"post":{"tags":["segment"],"summary":"Ground Capture","description":"Direct grounding tied to a stored capture. Gallery filtering is untouched.\n\nThe stored image and pose travel together; callers must use this returned\npose for lifting, never whichever camera is live when the request finishes.","operationId":"ground_capture_v1_scenes__scene_id__segment_boxes_post","parameters":[{"name":"scene_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Scene Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GroundCaptureIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Ground Capture V1 Scenes  Scene Id  Segment Boxes Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/scenes/{scene_id}/segment-points":{"post":{"tags":["segment"],"summary":"Segment Scene Points","description":"Interactive click→mask: SAM point prompts on the supplied frame → the\nclicked region's polygon(s). The whole-scene surface tool back-projects them\nonto the mesh for area measurement.","operationId":"segment_scene_points_v1_scenes__scene_id__segment_points_post","parameters":[{"name":"scene_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Scene Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SegmentPointsIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Region"},"title":"Response Segment Scene Points V1 Scenes  Scene Id  Segment Points Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/scenes/{scene_id}/chat/sessions":{"get":{"tags":["chat-history"],"summary":"List Sessions","description":"The chat threads on this scene that the caller may read — their own, plus\nthe ones shared with the org (staff see every thread). Pinned first\n(most-recently-pinned first), then the rest most-recently-updated first —\nthe viewer's \"Recent\" order.","operationId":"list_sessions_v1_scenes__scene_id__chat_sessions_get","parameters":[{"name":"scene_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Scene Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SessionOut"},"title":"Response List Sessions V1 Scenes  Scene Id  Chat Sessions Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["chat-history"],"summary":"Create Session","description":"Start a new (empty, untitled) chat thread on the scene — PRIVATE to the\ncaller until they share it (PATCH visibility=\"org\").","operationId":"create_session_v1_scenes__scene_id__chat_sessions_post","parameters":[{"name":"scene_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Scene Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SessionOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/scenes/{scene_id}/chat/sessions/{session_id}":{"patch":{"tags":["chat-history"],"summary":"Update Session","description":"Rename a thread, pin it to the top of the list, and/or share it with the\norg (or pull it back to private). None of them touches ``updated_at`` — a\npin, a rename or a share must not reshuffle the recency order. Author or org\nadmin only; sharing is an access change, so it is audited.","operationId":"update_session_v1_scenes__scene_id__chat_sessions__session_id__patch","parameters":[{"name":"scene_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Scene Id"}},{"name":"session_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Session Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SessionUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SessionOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["chat-history"],"summary":"Get Chat","description":"The session's chat history, oldest first — with a freshly signed URL for\nevery image the turns carry, so a resumed thread shows its pictures again,\nand the author of each user turn so a shared thread reads as a conversation\nbetween named people. By default only the live turns (cleared_at IS NULL); a\nPlenex staff caller may pass ``include_cleared=true`` to load the full\nretained history including previously cleared turns.","operationId":"get_chat_v1_scenes__scene_id__chat_sessions__session_id__get","parameters":[{"name":"scene_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Scene Id"}},{"name":"session_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Session Id"}},{"name":"include_cleared","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Cleared"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/MessageOut"},"title":"Response Get Chat V1 Scenes  Scene Id  Chat Sessions  Session Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["chat-history"],"summary":"Append Chat","description":"Append new turns to the session's chat history. A turn's images are\nuploaded here and stored as refs on the message, so reopening the thread\nreplays them. User turns are stamped with their author: a shared thread\ntakes turns from anyone on the scene, and the transcript has to say who\nasked what. A private thread accepts turns only from its author — staff\nincluded, who can read it but do not write into it.","operationId":"append_chat_v1_scenes__scene_id__chat_sessions__session_id__post","parameters":[{"name":"scene_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Scene Id"}},{"name":"session_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Session Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AppendIn"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/MessageOut"},"title":"Response Append Chat V1 Scenes  Scene Id  Chat Sessions  Session Id  Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["chat-history"],"summary":"Clear Chat","description":"Soft-clear the session's chat: stamp cleared_at on every live turn so an\nordinary user never sees them again, while Plenex staff retain the full\nhistory. The session row is kept (deleting it breaks the messages FK). Turn\nimages are left in place — a cleared thread is still readable by staff. The\naction is recorded as a chat_cleared AuditEvent.\n\n``?purge=true`` instead DELETES the whole thread — its messages, their image\nfiles and the session row — so it disappears from the picker. This is\ndestructive (no staff-retained history).\n\nBoth are the thread author's to do, plus any org admin/owner: a shared\nthread cannot be wiped by every reader who can post into it.","operationId":"clear_chat_v1_scenes__scene_id__chat_sessions__session_id__delete","parameters":[{"name":"scene_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Scene Id"}},{"name":"session_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Session Id"}},{"name":"purge","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Purge"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/scenes/{scene_id}/chat/sessions/{session_id}/latest-assistant-metadata":{"patch":{"tags":["chat-history"],"summary":"Set Latest Assistant Metadata","description":"Attach completion facts to the last persisted assistant response.\n\nThe browser calls this only after its ordered append queue has drained, so\nmulti-leg report work is associated with the final assistant message.","operationId":"set_latest_assistant_metadata_v1_scenes__scene_id__chat_sessions__session_id__latest_assistant_metadata_patch","parameters":[{"name":"scene_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Scene Id"}},{"name":"session_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Session Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TurnMetadata"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/chat/attachment-limits":{"get":{"tags":["chat-attachments"],"summary":"Attachment Limits","operationId":"attachment_limits_v1_chat_attachment_limits_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Attachment Limits V1 Chat Attachment Limits Get"}}}}}}},"/v1/scenes/{scene_id}/chat/attachments/{file_id}/read":{"post":{"tags":["chat-attachments"],"summary":"Read Chat Attachment Route","operationId":"read_chat_attachment_route_v1_scenes__scene_id__chat_attachments__file_id__read_post","parameters":[{"name":"scene_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Scene Id"}},{"name":"file_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"File Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AttachmentReadIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Read Chat Attachment Route V1 Scenes  Scene Id  Chat Attachments  File Id  Read Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/scenes/{scene_id}/chat/sessions/{session_id}/attachments":{"post":{"tags":["chat-attachments"],"summary":"Upload","operationId":"upload_v1_scenes__scene_id__chat_sessions__session_id__attachments_post","parameters":[{"name":"scene_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Scene Id"}},{"name":"session_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Session Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_v1_scenes__scene_id__chat_sessions__session_id__attachments_post"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response Upload V1 Scenes  Scene Id  Chat Sessions  Session Id  Attachments Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/scenes/{scene_id}/chat/sessions/{session_id}/attachments/{file_id}":{"delete":{"tags":["chat-attachments"],"summary":"Remove","operationId":"remove_v1_scenes__scene_id__chat_sessions__session_id__attachments__file_id__delete","parameters":[{"name":"scene_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Scene Id"}},{"name":"session_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Session Id"}},{"name":"file_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"File Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/scenes/{scene_id}/vlm-inspect":{"post":{"tags":["vlm-inspect"],"summary":"Vlm Inspect","description":"Analyse captured views of objects via vision model, one result per target.","operationId":"vlm_inspect_v1_scenes__scene_id__vlm_inspect_post","parameters":[{"name":"scene_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Scene Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/engine__api__vlm_inspect__InspectIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/InspectResult"},"title":"Response Vlm Inspect V1 Scenes  Scene Id  Vlm Inspect Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/scenes/{scene_id}/camera-agent/step":{"post":{"tags":["camera-agent"],"summary":"Camera Agent Step","operationId":"camera_agent_step_v1_scenes__scene_id__camera_agent_step_post","parameters":[{"name":"scene_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Scene Id"}},{"name":"session_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Session Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CameraStepIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CameraStepOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/scenes/{scene_id}/level-links/verify":{"post":{"tags":["camera-agent"],"summary":"Level Link Verify","operationId":"level_link_verify_v1_scenes__scene_id__level_links_verify_post","parameters":[{"name":"scene_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Scene Id"}},{"name":"session_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Session Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LevelLinkVerifyIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LevelLinkVerifyOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/scenes/{scene_id}/locate-points":{"post":{"tags":["pointing"],"summary":"Locate Points","operationId":"locate_points_v1_scenes__scene_id__locate_points_post","parameters":[{"name":"scene_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Scene Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LocatePointsIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LocatePointsOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/apps/cleaning/plans":{"get":{"tags":["cleaning"],"summary":"List Plans","operationId":"list_plans_v1_apps_cleaning_plans_get","parameters":[{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/PlanSummary"},"title":"Response List Plans V1 Apps Cleaning Plans Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["cleaning"],"summary":"Create Plan","operationId":"create_plan_v1_apps_cleaning_plans_post","parameters":[{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlanIn"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__cleaning__router__PlanOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/apps/cleaning/plans/{plan_id}":{"get":{"tags":["cleaning"],"summary":"Get Plan","operationId":"get_plan_v1_apps_cleaning_plans__plan_id__get","parameters":[{"name":"plan_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Plan Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__cleaning__router__PlanOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["cleaning"],"summary":"Patch Plan","operationId":"patch_plan_v1_apps_cleaning_plans__plan_id__patch","parameters":[{"name":"plan_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Plan Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlanPatch"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__cleaning__router__PlanOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["cleaning"],"summary":"Delete Plan","operationId":"delete_plan_v1_apps_cleaning_plans__plan_id__delete","parameters":[{"name":"plan_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Plan Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/apps/cleaning/plans/{plan_id}/zones":{"put":{"tags":["cleaning"],"summary":"Put Zones","description":"Replace the plan's zone specs as a set (ids kept where given).","operationId":"put_zones_v1_apps_cleaning_plans__plan_id__zones_put","parameters":[{"name":"plan_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Plan Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZonesIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__cleaning__router__PlanOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/apps/cleaning/plans/{plan_id}/zones/import":{"post":{"tags":["cleaning"],"summary":"Import Zones","description":"Draft a zone spec for every named zone of the scene that the plan does\nnot have yet (the core entity service is the one source of zones).","operationId":"import_zones_v1_apps_cleaning_plans__plan_id__zones_import_post","parameters":[{"name":"plan_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Plan Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__cleaning__router__ImportIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__cleaning__router__PlanOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/apps/cleaning/plans/{plan_id}/documents":{"post":{"tags":["cleaning"],"summary":"Create Document","description":"A plan document on the report platform (one editor, one Documents index).","operationId":"create_document_v1_apps_cleaning_plans__plan_id__documents_post","parameters":[{"name":"plan_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Plan Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentIn"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__cleaning__router__DocumentOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/apps/cleaning/tasks":{"get":{"tags":["cleaning"],"summary":"List Tasks","operationId":"list_tasks_v1_apps_cleaning_tasks_get","parameters":[{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/TaskTypeOut"},"title":"Response List Tasks V1 Apps Cleaning Tasks Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["cleaning"],"summary":"Put Tasks","description":"Upsert task types by key (the library is the org's; nothing is deleted —\narchive instead so old plans keep their lines).","operationId":"put_tasks_v1_apps_cleaning_tasks_put","parameters":[{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/TaskTypeIn"},"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/TaskTypeOut"},"title":"Response Put Tasks V1 Apps Cleaning Tasks Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/apps/cleaning/rates":{"get":{"tags":["cleaning"],"summary":"List Rates","operationId":"list_rates_v1_apps_cleaning_rates_get","parameters":[{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/RateOut"},"title":"Response List Rates V1 Apps Cleaning Rates Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["cleaning"],"summary":"Put Rates","operationId":"put_rates_v1_apps_cleaning_rates_put","parameters":[{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/RateIn"},"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/RateOut"},"title":"Response Put Rates V1 Apps Cleaning Rates Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/apps/cleaning/catalog":{"get":{"tags":["cleaning"],"summary":"Get Catalog","description":"The vocabularies the pages offer: space and floor types, traffic, resource kinds.","operationId":"get_catalog_v1_apps_cleaning_catalog_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Catalog V1 Apps Cleaning Catalog Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/apps/cleaning/plans/{plan_id}/rounds":{"post":{"tags":["cleaning"],"summary":"Create Round","description":"Sequence the plan's zones and walk them on the path planner; the route\nis a core saved path, the run is recorded on the plan.","operationId":"create_round_v1_apps_cleaning_plans__plan_id__rounds_post","parameters":[{"name":"plan_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Plan Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoundIn"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__cleaning__router__PlanOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/apps/cleaning/plans/{plan_id}/sweeps":{"post":{"tags":["cleaning"],"summary":"Create Sweep","description":"Coverage route of one zone for a robot/machine profile (core coverage\nplanner, scoped to the zone's polygon); the measured m²/h joins the rate table.","operationId":"create_sweep_v1_apps_cleaning_plans__plan_id__sweeps_post","parameters":[{"name":"plan_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Plan Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SweepIn"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__cleaning__router__PlanOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/apps/cleaning/plans/{plan_id}/runs/{run_id}/path":{"get":{"tags":["cleaning"],"summary":"Run Path","description":"The run's saved path payload (the viewer's show_path contract).","operationId":"run_path_v1_apps_cleaning_plans__plan_id__runs__run_id__path_get","parameters":[{"name":"plan_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Plan Id"}},{"name":"run_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Run Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Run Path V1 Apps Cleaning Plans  Plan Id  Runs  Run Id  Path Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/apps/cleaning/plans/{plan_id}/runs/{run_id}":{"delete":{"tags":["cleaning"],"summary":"Delete Run","description":"Forget a run; its saved path stays a core entity (delete it there).","operationId":"delete_run_v1_apps_cleaning_plans__plan_id__runs__run_id__delete","parameters":[{"name":"plan_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Plan Id"}},{"name":"run_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Run Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/apps/cleaning/plans/{plan_id}/runs/record":{"post":{"tags":["cleaning"],"summary":"Record Run","description":"Record a viewer trial on the plan (platform rule §10: experiment in\ncore, record in the app). The recipe's digest is the trial's identity:\nrecording the same trial twice returns the existing run (200), a new\none is created (201). The saved path must belong to the plan's scene.","operationId":"record_run_v1_apps_cleaning_plans__plan_id__runs_record_post","parameters":[{"name":"plan_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Plan Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecordIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__cleaning__router__RunOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/apps/cleaning/resources":{"get":{"tags":["cleaning"],"summary":"List Resources","description":"People roles, equipment and (when the plan includes the feature) robots.","operationId":"list_resources_v1_apps_cleaning_resources_get","parameters":[{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ResourceOut"},"title":"Response List Resources V1 Apps Cleaning Resources Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["cleaning"],"summary":"Put Resources","description":"Upsert by key (a robot needs the robots feature).","operationId":"put_resources_v1_apps_cleaning_resources_put","parameters":[{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ResourceIn"},"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ResourceOut"},"title":"Response Put Resources V1 Apps Cleaning Resources Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/apps/cleaning/catalog/robots":{"get":{"tags":["cleaning"],"summary":"List Catalog Robots","description":"The shipped robot catalogue (cleaning classes), compact entries with\nprovenance flags; add one with POST /resources/from-catalog.","operationId":"list_catalog_robots_v1_apps_cleaning_catalog_robots_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response List Catalog Robots V1 Apps Cleaning Catalog Robots Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/apps/cleaning/resources/from-catalog":{"post":{"tags":["cleaning"],"summary":"Resource From Catalog","description":"Copy a catalogue robot into the organisation's resources and seed its\nproductivity rate for the task its class does (vendor practical figure,\nelse the rated figure derated — provenance kept).","operationId":"resource_from_catalog_v1_apps_cleaning_resources_from_catalog_post","parameters":[{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FromCatalogIn"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResourceOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/apps/cleaning/plans/{plan_id}/scenarios":{"get":{"tags":["cleaning"],"summary":"List Scenarios","operationId":"list_scenarios_v1_apps_cleaning_plans__plan_id__scenarios_get","parameters":[{"name":"plan_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Plan Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ScenarioOut"},"title":"Response List Scenarios V1 Apps Cleaning Plans  Plan Id  Scenarios Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["cleaning"],"summary":"Create Scenario","operationId":"create_scenario_v1_apps_cleaning_plans__plan_id__scenarios_post","parameters":[{"name":"plan_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Plan Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScenarioIn"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScenarioOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/apps/cleaning/plans/{plan_id}/scenarios/{scenario_id}":{"put":{"tags":["cleaning"],"summary":"Update Scenario","operationId":"update_scenario_v1_apps_cleaning_plans__plan_id__scenarios__scenario_id__put","parameters":[{"name":"plan_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Plan Id"}},{"name":"scenario_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Scenario Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScenarioIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScenarioOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["cleaning"],"summary":"Delete Scenario","operationId":"delete_scenario_v1_apps_cleaning_plans__plan_id__scenarios__scenario_id__delete","parameters":[{"name":"plan_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Plan Id"}},{"name":"scenario_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Scenario Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/apps/cleaning/plans/{plan_id}/scenarios/{scenario_id}/live":{"post":{"tags":["cleaning"],"summary":"Make Live","description":"Promote a scenario: it becomes the plan's live assignment (one at a time).","operationId":"make_live_v1_apps_cleaning_plans__plan_id__scenarios__scenario_id__live_post","parameters":[{"name":"plan_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Plan Id"}},{"name":"scenario_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Scenario Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ScenarioOut"},"title":"Response Make Live V1 Apps Cleaning Plans  Plan Id  Scenarios  Scenario Id  Live Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/claims":{"get":{"tags":["claims"],"summary":"List Claims","operationId":"list_claims_v1_claims_get","parameters":[{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ClaimSummaryOut"},"title":"Response List Claims V1 Claims Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["claims"],"summary":"Create Claim","operationId":"create_claim_v1_claims_post","parameters":[{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClaimCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClaimOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/claims/{claim_id}":{"get":{"tags":["claims"],"summary":"Get Claim","operationId":"get_claim_v1_claims__claim_id__get","parameters":[{"name":"claim_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Claim Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClaimOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["claims"],"summary":"Update Claim","operationId":"update_claim_v1_claims__claim_id__patch","parameters":[{"name":"claim_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Claim Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClaimPatch"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClaimOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/claims/{claim_id}/documents":{"post":{"tags":["claims"],"summary":"Create Document","description":"A new platform report on the claim's project, from the kind's template,\nlinked to the claim and granted to every party.","operationId":"create_document_v1_claims__claim_id__documents_post","parameters":[{"name":"claim_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Claim Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__insurance__claims__DocumentOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/claims/{claim_id}/attachable":{"get":{"tags":["claims"],"summary":"List Attachable","description":"Reports on the claim's SITE that are not yet part of the claim — the\n\"Attach existing…\" picker. Same-project only: a claim has one site.","operationId":"list_attachable_v1_claims__claim_id__attachable_get","parameters":[{"name":"claim_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Claim Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AttachableOut"},"title":"Response List Attachable V1 Claims  Claim Id  Attachable Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/claims/{claim_id}/documents/attach":{"post":{"tags":["claims"],"summary":"Attach Document","description":"Bring an EXISTING report into the claim. A link, not a copy: the report\nkeeps its template and vocabulary; it gains a claim, and every party on\nthe claim gains it. The report must sit on the claim's project.","operationId":"attach_document_v1_claims__claim_id__documents_attach_post","parameters":[{"name":"claim_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Claim Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AttachIn"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__insurance__claims__DocumentOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/claims/{claim_id}/documents/{link_id}":{"delete":{"tags":["claims"],"summary":"Detach Document","description":"Take a report out of the claim. The report and its participant grants\nare left alone — revoking someone's access to a document stays an\nexplicit act on that document (its Share dialog), never a side effect.","operationId":"detach_document_v1_claims__claim_id__documents__link_id__delete","parameters":[{"name":"claim_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Claim Id"}},{"name":"link_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Link Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/claims/{claim_id}/parties":{"post":{"tags":["claims"],"summary":"Add Party","description":"Put someone on the claim: a grant on every current document, and every\nfuture one. They must already hold a Plenex account (the platform is\ninvite-only — sharing never provisions an identity).","operationId":"add_party_v1_claims__claim_id__parties_post","parameters":[{"name":"claim_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Claim Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartyIn"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartyOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/claims/{claim_id}/parties/{party_id}":{"delete":{"tags":["claims"],"summary":"Remove Party","description":"Take someone off the claim, and off every one of its documents.","operationId":"remove_party_v1_claims__claim_id__parties__party_id__delete","parameters":[{"name":"claim_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Claim Id"}},{"name":"party_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Party Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/apps/substation/inventory":{"get":{"tags":["substation-inventory"],"summary":"List Inventory","operationId":"list_inventory_v1_apps_substation_inventory_get","parameters":[{"name":"kind","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Kind"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response List Inventory V1 Apps Substation Inventory Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["substation-inventory"],"summary":"Create Item","operationId":"create_item_v1_apps_substation_inventory_post","parameters":[{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemIn"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Create Item V1 Apps Substation Inventory Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/apps/substation/inventory/{item_id}":{"get":{"tags":["substation-inventory"],"summary":"Get Item","operationId":"get_item_v1_apps_substation_inventory__item_id__get","parameters":[{"name":"item_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Item Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Item V1 Apps Substation Inventory  Item Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["substation-inventory"],"summary":"Update Item","operationId":"update_item_v1_apps_substation_inventory__item_id__patch","parameters":[{"name":"item_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Item Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Update Item V1 Apps Substation Inventory  Item Id  Patch"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["substation-inventory"],"summary":"Delete Item","operationId":"delete_item_v1_apps_substation_inventory__item_id__delete","parameters":[{"name":"item_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Item Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/apps/substation/inventory/{item_id}/model":{"post":{"tags":["substation-inventory"],"summary":"Upload Model","description":"The item's own GLB: +Y up, metres, width along x and depth along z.","operationId":"upload_model_v1_apps_substation_inventory__item_id__model_post","parameters":[{"name":"item_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Item Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_model_v1_apps_substation_inventory__item_id__model_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Upload Model V1 Apps Substation Inventory  Item Id  Model Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/apps/substation/inventory/{item_id}/verify":{"post":{"tags":["substation-inventory"],"summary":"Verify Item","description":"A PERSON signs the dimensions off (or withdraws the sign-off). API\nkeys cannot: the record names who checked the numbers.","operationId":"verify_item_v1_apps_substation_inventory__item_id__verify_post","parameters":[{"name":"item_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Item Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VerifyIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Verify Item V1 Apps Substation Inventory  Item Id  Verify Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/projects/{project_id}/reports":{"post":{"tags":["reports"],"summary":"Create Report","operationId":"create_report_v1_projects__project_id__reports_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReportCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/services__reports__router__ReportOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/reports/{report_id}/save-as":{"post":{"tags":["reports"],"summary":"Save Report As","description":"\"Save as…\": a new report holding this one's document under a new name\n(services/reports/save_as.py). Anyone who can read the report and write\nreports in its organisation may copy it; the copy is theirs.","operationId":"save_report_as_v1_reports__report_id__save_as_post","parameters":[{"name":"report_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Report Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SaveAsIn"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/services__reports__router__ReportOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/reports":{"get":{"tags":["reports"],"summary":"List Reports","description":"The reports in this org this caller may read, or — with ``shared=true`` —\nthe reports in OTHER orgs shared with them (\"Shared with me\"). The two lists\nare deliberately disjoint: a grant on a report in your own org shows up in\nthe first list, alongside everything your org role already opens.","operationId":"list_reports_v1_reports_get","parameters":[{"name":"project_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Project Id"}},{"name":"shared","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Shared"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ReportSummaryOut"},"title":"Response List Reports V1 Reports Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/reports/{report_id}":{"get":{"tags":["reports"],"summary":"Get Report","operationId":"get_report_v1_reports__report_id__get","parameters":[{"name":"report_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Report Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/services__reports__router__ReportOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["reports"],"summary":"Update Report","operationId":"update_report_v1_reports__report_id__patch","parameters":[{"name":"report_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Report Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReportPatch"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/services__reports__router__ReportOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["reports"],"summary":"Delete Report","description":"Hard delete the row. Report images' ProjectFiles are left in place —\nthey belong to the project and may be referenced elsewhere. Participants and\ncomments cascade with it.","operationId":"delete_report_v1_reports__report_id__delete","parameters":[{"name":"report_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Report Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/reports/{report_id}/patches/{operation_id}":{"get":{"tags":["reports"],"summary":"Get Patch Operation","operationId":"get_patch_operation_v1_reports__report_id__patches__operation_id__get","parameters":[{"name":"report_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Report Id"}},{"name":"operation_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Operation Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Patch Operation V1 Reports  Report Id  Patches  Operation Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/reports/{report_id}/patches/{operation_id}/ack":{"post":{"tags":["reports"],"summary":"Acknowledge Patch Operation","operationId":"acknowledge_patch_operation_v1_reports__report_id__patches__operation_id__ack_post","parameters":[{"name":"report_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Report Id"}},{"name":"operation_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Operation Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PatchAcknowledgement"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Acknowledge Patch Operation V1 Reports  Report Id  Patches  Operation Id  Ack Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/reports/{report_id}/history":{"get":{"tags":["reports"],"summary":"Report History","description":"Chronological, append-only report provenance for platform and UI use.","operationId":"report_history_v1_reports__report_id__history_get","parameters":[{"name":"report_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Report Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ReportActivityOut"},"title":"Response Report History V1 Reports  Report Id  History Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/reports/{report_id}/history/generations":{"post":{"tags":["reports"],"summary":"Record Generation","description":"Record one complete browser-observed report-agent flow.","operationId":"record_generation_v1_reports__report_id__history_generations_post","parameters":[{"name":"report_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Report Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenerationActivityIn"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReportActivityOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/reports/{report_id}/images":{"post":{"tags":["reports"],"summary":"Upload Report Images","description":"Persist viewer captures (AI snapshot / walkthrough frames) as ProjectFiles\nunder the report's image prefix. Returns file ids + fresh signed URLs; the\ndoc stores the file_id, never the URL.","operationId":"upload_report_images_v1_reports__report_id__images_post","parameters":[{"name":"report_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Report Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImagesIn"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/services__reports__router__ImageOut"},"title":"Response Upload Report Images V1 Reports  Report Id  Images Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/reports/{report_id}/import-chat":{"post":{"tags":["reports"],"summary":"Import Chat","description":"Turn a scene's persisted chat history into report-ready markdown (the\nspakai adapt flow, whole-thread). Returns a PROPOSAL — the client previews\nand inserts; nothing is written server-side.\n\nHost org only: this reads the org's scenes and chat history, which a\ncross-org share grant deliberately does not open.","operationId":"import_chat_v1_reports__report_id__import_chat_post","parameters":[{"name":"report_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Report Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImportChatIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Import Chat V1 Reports  Report Id  Import Chat Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/reports/{report_id}/presentation":{"get":{"tags":["reports"],"summary":"Get Report Presentation","description":"Everything that decides how this report LOOKS — branding, DOCX themes,\nthe template's export footer and print profile — resolved in the REPORT's\norg, for anyone who can read it.\n\nThe console used to assemble these from ``GET /report-settings`` plus the\nresolved template, both scoped to the CALLER's org. That is right for a\ncolleague and wrong for a cross-org participant: the underwriter a report\nwas shared with would render and export someone else's survey under their\nOWN company's letterhead. One report-scoped endpoint, one answer.","operationId":"get_report_presentation_v1_reports__report_id__presentation_get","parameters":[{"name":"report_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Report Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Report Presentation V1 Reports  Report Id  Presentation Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/reports/{report_id}/image-urls":{"post":{"tags":["reports"],"summary":"Resolve Image Urls","description":"Batch signed-URL refresh for the doc's image file_ids (report uploads,\ngallery captures, its logo — ``report_files.showable_files``, never just\nany host-org file). Unknown or foreign ids are simply omitted, so an editor\nwith a stale ref degrades to a placeholder instead of failing the batch.","operationId":"resolve_image_urls_v1_reports__report_id__image_urls_post","parameters":[{"name":"report_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Report Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImageUrlsIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Resolve Image Urls V1 Reports  Report Id  Image Urls Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/reports/{report_id}/images/{file_id}/full":{"get":{"tags":["reports"],"summary":"Report Image Full","description":"A report image at full size, for \"Open full size\": a figure with an\nSVG source (a plan export, a drawn figure) re-renders at print\nresolution, through the same guarded renderer; anything else is the\nstored image.","operationId":"report_image_full_v1_reports__report_id__images__file_id__full_get","parameters":[{"name":"report_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Report Id"}},{"name":"file_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"File Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/reports/{report_id}/image-poses":{"post":{"tags":["reports"],"summary":"Resolve Image Poses","description":"Camera poses for report images that originated from scene-gallery\nframes — the figure \"Take me there\" fly-back. Every gallery frame persists\nits capture pose in scene_frames.meta (pos/forward/up, canonical Y-up\nscene units) and links to its report-image ProjectFile via\nmeta.inspect.file_id (walkthrough evidence) or meta.report_file_id\n(use_frame_image attachments). Images with no source frame (web images,\nad-hoc snapshots — those carry pose in their figure attrs instead) are\nsimply omitted. Floorplan exports (export_floorplan, meta.plan) have no\ncamera pose — they come back under ``maps`` and \"Take me there\" opens\nthe 2D Map on that level instead.","operationId":"resolve_image_poses_v1_reports__report_id__image_poses_post","parameters":[{"name":"report_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Report Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImageUrlsIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Resolve Image Poses V1 Reports  Report Id  Image Poses Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/reports/{report_id}/styles":{"get":{"tags":["reports"],"summary":"Report Styles","operationId":"report_styles_v1_reports__report_id__styles_get","parameters":[{"name":"report_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Report Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["reports"],"summary":"Save Report Style","operationId":"save_report_style_v1_reports__report_id__styles_post","parameters":[{"name":"report_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Report Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SaveStyleIn"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/reports/{report_id}/style":{"put":{"tags":["reports"],"summary":"Apply Report Style","operationId":"apply_report_style_v1_reports__report_id__style_put","parameters":[{"name":"report_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Report Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApplyStyleIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["reports"],"summary":"Customize Report Style","operationId":"customize_report_style_v1_reports__report_id__style_patch","parameters":[{"name":"report_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Report Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Theme"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/reports/{report_id}/styles/import":{"post":{"tags":["reports"],"summary":"Import Report Style","operationId":"import_report_style_v1_reports__report_id__styles_import_post","parameters":[{"name":"report_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Report Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_import_report_style_v1_reports__report_id__styles_import_post"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/reports/{report_id}/style/restore":{"post":{"tags":["reports"],"summary":"Restore Report Style","operationId":"restore_report_style_v1_reports__report_id__style_restore_post","parameters":[{"name":"report_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Report Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/reports/{report_id}/style/default":{"put":{"tags":["reports"],"summary":"Default Report Style","operationId":"default_report_style_v1_reports__report_id__style_default_put","parameters":[{"name":"report_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Report Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApplyStyleIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/reports/{report_id}/query":{"post":{"tags":["report-agent"],"summary":"Report Query","operationId":"report_query_v1_reports__report_id__query_post","parameters":[{"name":"report_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Report Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReportQueryIn"}}}},"responses":{"200":{"description":"SSE stream of `token` / `tool_call` / `viewer_command` / `done` / `error` events (one report-agent turn).","content":{"application/json":{"schema":{}},"text/event-stream":{}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/reports/{report_id}/walkthrough-inspect":{"post":{"tags":["report-agent"],"summary":"Walkthrough Inspect","description":"VLM-inspect persisted walkthrough frames (by file id) for problems.\nThe client calls this after uploading captured frames, then feeds the\nfindings back to the agent as the next turn's capture_results.\n\nThe VLM calls run CONCURRENTLY (bounded pool) with a per-frame timeout —\nsequentially, a 40-frame walkthrough took many minutes with the client's\nprogress bar apparently frozen, and one hung Gemini call stalled the whole\nassessment forever. A frame whose VLM call fails or times out degrades to\nno findings instead of failing the batch. Each task runs inside a COPY of\nthe request context (contextvars don't cross a bare threadpool submit), so\nthe metering context binds and every VLM call lands in LlmUsage.","operationId":"walkthrough_inspect_v1_reports__report_id__walkthrough_inspect_post","parameters":[{"name":"report_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Report Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WalkthroughInspectIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Walkthrough Inspect V1 Reports  Report Id  Walkthrough Inspect Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/reports/{report_id}/assist":{"post":{"tags":["report-assist"],"summary":"Assist","operationId":"assist_v1_reports__report_id__assist_post","parameters":[{"name":"report_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Report Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssistIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}},"text/event-stream":{}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/reports/{report_id}/export":{"post":{"tags":["report-export"],"summary":"Export Report","operationId":"export_report_v1_reports__report_id__export_post","parameters":[{"name":"report_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Report Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExportIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/reports/{report_id}/participants":{"get":{"tags":["report-participants"],"summary":"List Participants","description":"Everyone explicitly granted this report. Visible to anyone who can read\nit — a commenter needs to know who else is here to address them.","operationId":"list_participants_v1_reports__report_id__participants_get","parameters":[{"name":"report_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Report Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ParticipantOut"},"title":"Response List Participants V1 Reports  Report Id  Participants Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["report-participants"],"summary":"Add Participant","operationId":"add_participant_v1_reports__report_id__participants_post","parameters":[{"name":"report_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Report Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ParticipantIn"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ParticipantOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/reports/{report_id}/participants/{participant_id}":{"patch":{"tags":["report-participants"],"summary":"Update Participant","operationId":"update_participant_v1_reports__report_id__participants__participant_id__patch","parameters":[{"name":"report_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Report Id"}},{"name":"participant_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Participant Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ParticipantPatch"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ParticipantOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["report-participants"],"summary":"Remove Participant","description":"Revoke a grant. A host-org colleague keeps whatever their ORG role gives\nthem — removing the row drops the pinned role label and any raise, not\ntheir membership of the organisation.","operationId":"remove_participant_v1_reports__report_id__participants__participant_id__delete","parameters":[{"name":"report_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Report Id"}},{"name":"participant_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Participant Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/reports/{report_id}/send":{"post":{"tags":["report-participants"],"summary":"Send Report","description":"Send this report to several people at once. Each gets an email and a\nnotification behind the console's bell; whoever lacks access is granted it;\nwhoever lacks an ACCOUNT is invited, and the grant waits on their accepting.\n\nAn editor may nudge people who can already open the report. Opening it to\nsomeone new — or inviting anyone — is an access decision, so it needs a\nreport owner, and inviting additionally needs a member of the report's own\norganisation (a guest's seat is created there). One bad address never fails\nthe batch: every recipient gets their own outcome.","operationId":"send_report_v1_reports__report_id__send_post","parameters":[{"name":"report_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Report Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SendIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SendOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/reports/{report_id}/invitations":{"get":{"tags":["report-participants"],"summary":"List Report Invitations","description":"People this report was sent to who have not accepted yet — shown in the\naccess list so \"invited\" is visible rather than a silent gap.","operationId":"list_report_invitations_v1_reports__report_id__invitations_get","parameters":[{"name":"report_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Report Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ReportInviteOut"},"title":"Response List Report Invitations V1 Reports  Report Id  Invitations Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/reports/{report_id}/invitations/{invite_id}/resend":{"post":{"tags":["report-participants"],"summary":"Resend Report Invitation","operationId":"resend_report_invitation_v1_reports__report_id__invitations__invite_id__resend_post","parameters":[{"name":"report_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Report Id"}},{"name":"invite_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Invite Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReportInviteOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/reports/{report_id}/invitations/{invite_id}":{"delete":{"tags":["report-participants"],"summary":"Withdraw Report Invitation","description":"Take THIS report out of a pending invitation. A guest invitation left\nholding nothing is revoked with it — a guest seat that opens nothing is just\nan account nobody asked for. A member invitation stands: joining the\norganisation was its own decision.","operationId":"withdraw_report_invitation_v1_reports__report_id__invitations__invite_id__delete","parameters":[{"name":"report_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Report Id"}},{"name":"invite_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Invite Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/reports/{report_id}/comments":{"get":{"tags":["report-comments"],"summary":"List Comments","description":"Threads on this report, oldest root first, each carrying its replies.\n``state`` filters roots: open | resolved | all.","operationId":"list_comments_v1_reports__report_id__comments_get","parameters":[{"name":"report_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Report Id"}},{"name":"state","in":"query","required":false,"schema":{"type":"string","default":"all","title":"State"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CommentOut"},"title":"Response List Comments V1 Reports  Report Id  Comments Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["report-comments"],"summary":"Create Comment","operationId":"create_comment_v1_reports__report_id__comments_post","parameters":[{"name":"report_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Report Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommentIn"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommentOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/reports/{report_id}/comments/{comment_id}":{"patch":{"tags":["report-comments"],"summary":"Update Comment","description":"Edit your own words. Only the author — not even a report owner, who can\ndelete a comment but must not rewrite what someone else said.","operationId":"update_comment_v1_reports__report_id__comments__comment_id__patch","parameters":[{"name":"report_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Report Id"}},{"name":"comment_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Comment Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommentPatch"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommentOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["report-comments"],"summary":"Delete Comment","description":"The author, or a report owner moderating. Deleting a root takes its\nreplies with it (FK cascade).","operationId":"delete_comment_v1_reports__report_id__comments__comment_id__delete","parameters":[{"name":"report_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Report Id"}},{"name":"comment_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Comment Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/reports/{report_id}/comments/{comment_id}/resolve":{"post":{"tags":["report-comments"],"summary":"Resolve Comment","description":"Mark a thread done, or reopen it. Anyone who can comment may resolve —\na reviewer closes their own query once it has been answered.","operationId":"resolve_comment_v1_reports__report_id__comments__comment_id__resolve_post","parameters":[{"name":"report_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Report Id"}},{"name":"comment_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Comment Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResolveIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommentOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/reports/{report_id}/transition":{"post":{"tags":["report-lifecycle"],"summary":"Transition","operationId":"transition_v1_reports__report_id__transition_post","parameters":[{"name":"report_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Report Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TransitionIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/services__reports__router__ReportOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/reports/{report_id}/revise":{"post":{"tags":["report-lifecycle"],"summary":"Revise","description":"Start revision N+1 of an issued report: a NEW row with the same\ndocument, title and participants, pointing back at the record it replaces,\nwhich flips to ``superseded``. The issued text is never edited in place.","operationId":"revise_v1_reports__report_id__revise_post","parameters":[{"name":"report_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Report Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/services__reports__router__ReportOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/reports/{report_id}/signoffs":{"get":{"tags":["report-lifecycle"],"summary":"List Signoffs","operationId":"list_signoffs_v1_reports__report_id__signoffs_get","parameters":[{"name":"report_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Report Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SignoffOut"},"title":"Response List Signoffs V1 Reports  Report Id  Signoffs Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["report-lifecycle"],"summary":"Sign","description":"Sign as a role the template names. You sign as YOUR role; an owner may\nsign as any (the author of record signs the author line even when their\nparticipant row says nothing). Signing again replaces your earlier\nsignature — a re-sign after edits, over the new version.","operationId":"sign_v1_reports__report_id__signoffs_post","parameters":[{"name":"report_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Report Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SignIn"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SignoffOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/reports/{report_id}/signoffs/{signoff_id}":{"delete":{"tags":["report-lifecycle"],"summary":"Unsign","description":"Withdraw a signature — the signer's own, or any by an owner — while the\nreport is still unissued.","operationId":"unsign_v1_reports__report_id__signoffs__signoff_id__delete","parameters":[{"name":"report_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Report Id"}},{"name":"signoff_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Signoff Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/reports/{report_id}/vocabulary":{"get":{"tags":["report-lifecycle"],"summary":"Get Vocabulary","description":"The words this report runs under and what THIS caller may do with them:\nroles, state labels, signature lines, response statuses, export rules, plus\n``me`` — the caller's role/permission, the states they may move the report\nto from here, and the roles they may sign or respond as. One call the\nshare dialog, comment rail, lifecycle bar and register all read.","operationId":"get_vocabulary_v1_reports__report_id__vocabulary_get","parameters":[{"name":"report_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Report Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Vocabulary V1 Reports  Report Id  Vocabulary Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/reports/{report_id}/reviews":{"post":{"tags":["report-review"],"summary":"Request Review","description":"Send a draft for review. All-or-nothing: if any reviewer cannot be asked\n(not a person on Plenex, you yourself, or someone only an owner could open\nthe report to), nothing is sent.","operationId":"request_review_v1_reports__report_id__reviews_post","parameters":[{"name":"report_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Report Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReviewRequestIn"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ReviewOut"},"title":"Response Request Review V1 Reports  Report Id  Reviews Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["report-review"],"summary":"List Reviews","description":"Every review request on the report, newest first. Someone outside the\nreport's organisation sees only the ones addressed to them.","operationId":"list_reviews_v1_reports__report_id__reviews_get","parameters":[{"name":"report_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Report Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ReviewOut"},"title":"Response List Reviews V1 Reports  Report Id  Reviews Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/reports/{report_id}/reviews/{review_id}/decision":{"post":{"tags":["report-review"],"summary":"Decide","description":"The assigned reviewer approves, or returns the report with changes.","operationId":"decide_v1_reports__report_id__reviews__review_id__decision_post","parameters":[{"name":"report_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Report Id"}},{"name":"review_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Review Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DecisionIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReviewOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/reports/{report_id}/acknowledge":{"post":{"tags":["report-review"],"summary":"Acknowledge","description":"Confirm receipt of the issued report. Idempotent: acknowledging again\nreturns the first acknowledgement.","operationId":"acknowledge_v1_reports__report_id__acknowledge_post","parameters":[{"name":"report_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Report Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AcknowledgementOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/reports/{report_id}/acknowledgements":{"get":{"tags":["report-review"],"summary":"List Acknowledgements","operationId":"list_acknowledgements_v1_reports__report_id__acknowledgements_get","parameters":[{"name":"report_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Report Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AcknowledgementOut"},"title":"Response List Acknowledgements V1 Reports  Report Id  Acknowledgements Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/reports/{report_id}/lifecycle-history":{"get":{"tags":["report-review"],"summary":"Lifecycle History","operationId":"lifecycle_history_v1_reports__report_id__lifecycle_history_get","parameters":[{"name":"report_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Report Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/HistoryEntry"},"title":"Response Lifecycle History V1 Reports  Report Id  Lifecycle History Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/reports/{report_id}/access":{"get":{"tags":["report-access"],"summary":"Get Report Access","operationId":"get_report_access_v1_reports__report_id__access_get","parameters":[{"name":"report_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Report Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReportAccessOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/reports/{report_id}/access/{user_id}":{"put":{"tags":["report-access"],"summary":"Set Report Access","description":"Set one person's level on this report. A colleague may be set below\ntheir default; an owner by right cannot be changed; an outsider must\nalready be on the report (they come in through Send).","operationId":"set_report_access_v1_reports__report_id__access__user_id__put","parameters":[{"name":"report_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Report Id"}},{"name":"user_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"User Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LevelIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReportAccessOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["report-access"],"summary":"Reset Report Access","description":"Reset a colleague to their role's default — or, for someone outside the\norganisation, take their access away. Drops any role they held on it too.","operationId":"reset_report_access_v1_reports__report_id__access__user_id__delete","parameters":[{"name":"report_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Report Id"}},{"name":"user_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"User Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReportAccessOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/members/{user_id}/report-access":{"get":{"tags":["report-access"],"summary":"Person Report Access","operationId":"person_report_access_v1_members__user_id__report_access_get","parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"User Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PersonAccessOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/report-access/summary":{"get":{"tags":["report-access"],"summary":"Report Access Summary","description":"Per colleague, how many of the reports the caller can see they hold at\neach level (\"none\" = a restricted report they are not on) — the Members\nlist's \"Report access\" column in one call.","operationId":"report_access_summary_v1_report_access_summary_get","parameters":[{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Report Access Summary V1 Report Access Summary Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/reports/{report_id}/responses":{"get":{"tags":["report-responses"],"summary":"List Responses","operationId":"list_responses_v1_reports__report_id__responses_get","parameters":[{"name":"report_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Report Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ResponseOut"},"title":"Response List Responses V1 Reports  Report Id  Responses Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["report-responses"],"summary":"Record Response","operationId":"record_response_v1_reports__report_id__responses_put","parameters":[{"name":"report_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Report Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/reports/{report_id}/responses/{response_id}":{"delete":{"tags":["report-responses"],"summary":"Delete Response","operationId":"delete_response_v1_reports__report_id__responses__response_id__delete","parameters":[{"name":"report_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Report Id"}},{"name":"response_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Response Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/report-templates":{"get":{"tags":["report-templates"],"summary":"List Templates","description":"Built-ins ∪ this org's overrides (project overrides only when project_id\ngiven), minus what the staff catalogue hides from this org. One entry per\n(key, scope) so the UI can show what's customised.","operationId":"list_templates_v1_report_templates_get","parameters":[{"name":"project_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Project Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/TemplateListItem"},"title":"Response List Templates V1 Report Templates Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["report-templates"],"summary":"Create Template","operationId":"create_template_v1_report_templates_post","parameters":[{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TemplateCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/services__reports__templates__TemplateOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/report-templates/{key}/resolved":{"get":{"tags":["report-templates"],"summary":"Get Resolved","operationId":"get_resolved_v1_report_templates__key__resolved_get","parameters":[{"name":"key","in":"path","required":true,"schema":{"type":"string","title":"Key"}},{"name":"project_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Project Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TemplateResolvedOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/report-templates/{template_id}":{"patch":{"tags":["report-templates"],"summary":"Update Template","description":"Absent fields are untouched; an EXPLICIT null clears that field so the\nresolution falls back through to the built-in (\"reset to built-in\").\n\nRenaming is Plenex-staff-only (a template's name is catalogue-wide, not an\norg's to change); org admins keep the prompt/skeleton/DOCX customisation.","operationId":"update_template_v1_report_templates__template_id__patch","parameters":[{"name":"template_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Template Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TemplatePatch"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/services__reports__templates__TemplateOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["report-templates"],"summary":"Delete Template","description":"Drop one org/project override row (the key falls back to the built-in).\nStaff-only — deleting templates is not a tenant capability.","operationId":"delete_template_v1_report_templates__template_id__delete","parameters":[{"name":"template_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Template Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/report-templates/{template_id}/assets":{"get":{"tags":["report-templates"],"summary":"Get Template Asset","description":"Signed download URL for this template's Word reference DOCX — the\n\"what's actually in this template\" counterpart to the upload.","operationId":"get_template_asset_v1_report_templates__template_id__assets_get","parameters":[{"name":"template_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Template Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Template Asset V1 Report Templates  Template Id  Assets Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["report-templates"],"summary":"Upload Template Asset","description":"Per-template DOCX reference (the only template asset kind): styles this\ntemplate's Word exports, overriding the org-wide default.","operationId":"upload_template_asset_v1_report_templates__template_id__assets_post","parameters":[{"name":"template_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Template Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_template_asset_v1_report_templates__template_id__assets_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Upload Template Asset V1 Report Templates  Template Id  Assets Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/report-templates/catalog":{"get":{"tags":["report-templates"],"summary":"List Catalog","description":"Every template, hidden and private included — the staff view of the\ncatalogue, with `visible_here` computed for the active organisation.","operationId":"list_catalog_v1_report_templates_catalog_get","parameters":[{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CatalogItem"},"title":"Response List Catalog V1 Report Templates Catalog Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/report-templates/catalog/{key}":{"patch":{"tags":["report-templates"],"summary":"Update Catalog","description":"Rename a template catalogue-wide, or flip it public/private. Going\nprivate keeps whatever org placements exist — an unplaced private template\nis visible to nobody until it is shown in an org.","operationId":"update_catalog_v1_report_templates_catalog__key__patch","parameters":[{"name":"key","in":"path","required":true,"schema":{"type":"string","title":"Key"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CatalogPatch"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CatalogItem"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/report-templates/catalog/visibility":{"post":{"tags":["report-templates"],"summary":"Set Visibility","description":"Show/hide the named templates in ONE organisation (the active org unless\n`org_id` says otherwise) — the per-org checkbox and its bulk actions.\n\nThis writes an explicit per-org row, so it works in both directions and on\nany template: hiding a public one takes it away from this org alone (every\nother org still lists it), showing a private one places it here. The\npublic/private flag stays what it is — it is only the default for orgs with\nno explicit answer.","operationId":"set_visibility_v1_report_templates_catalog_visibility_post","parameters":[{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VisibilityIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CatalogItem"},"title":"Response Set Visibility V1 Report Templates Catalog Visibility Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/report-templates/catalog/delete":{"post":{"tags":["report-templates"],"summary":"Delete From Catalog","description":"Delete templates: hide them from every org AND purge every org's\ncustomisation of them (prompt overrides, skeletons, uploaded DOCX pointers).\n\nThe brief/skeleton are repo files, so the hide is a soft delete — the row is\nthe authority on what is gone, and `restore` brings the built-in back (the\npurged customisations do not come back). Reports already written from the\ntemplate keep opening and exporting; only new ones are blocked. The uploaded\nDOCX blobs stay in the bucket, unreferenced.","operationId":"delete_from_catalog_v1_report_templates_catalog_delete_post","parameters":[{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CatalogKeys"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CatalogItem"},"title":"Response Delete From Catalog V1 Report Templates Catalog Delete Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/report-templates/catalog/restore":{"post":{"tags":["report-templates"],"summary":"Restore In Catalog","description":"Un-hide deleted templates. The built-in brief/skeleton return; the org\ncustomisations purged at delete do not.","operationId":"restore_in_catalog_v1_report_templates_catalog_restore_post","parameters":[{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CatalogKeys"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CatalogItem"},"title":"Response Restore In Catalog V1 Report Templates Catalog Restore Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/org/settings":{"get":{"tags":["org-settings"],"summary":"Get Settings Endpoint","operationId":"get_settings_endpoint_v1_org_settings_get","parameters":[{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrgSettingsOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["org-settings"],"summary":"Put Settings","description":"Full replace of the three blocks (the UI edits them as whole forms).\nUploaded asset paths live inside the blocks — the client must send them\nback unchanged (GET → edit → PUT).","operationId":"put_settings_v1_org_settings_put","parameters":[{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrgSettingsIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrgSettingsOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/org/settings/llm-defaults":{"get":{"tags":["org-settings"],"summary":"Get Llm Defaults","description":"Model selection needs only this column, never branding URLs or usage.","operationId":"get_llm_defaults_v1_org_settings_llm_defaults_get","parameters":[{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Llm Defaults V1 Org Settings Llm Defaults Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["org-settings"],"summary":"Put Llm Defaults","description":"Set the org's LLM defaults (Plenex staff only). Writes ONLY the\nllm_defaults column so it never clobbers branding/report_defaults. Model\npicks are validated against the live allowed list here (422); temperature is\nrange-checked by the schema.\n\nPARTIAL: fields the caller OMITS keep their stored value; a field sent as\nnull is cleared (back to \"inherit the deployment default\"). Two clients edit\nslices of this one block (Organisation → Platform, and older viewers that\nstill send their own fields), and a full replace meant whichever saved\nlast silently nulled the other's settings.","operationId":"put_llm_defaults_v1_org_settings_llm_defaults_put","parameters":[{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LlmDefaultsIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrgSettingsOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/org/settings/usage":{"get":{"tags":["org-settings"],"summary":"Get Usage","description":"Aggregate LLM token usage + estimated cost for this org over the trailing\n`days` window, grouped by feature / model / channel / user, plus a daily series for the\nstaff dashboard. Staff-gated; scoped to the active org (impersonation-aware).\nEstimated cost uses the core.usage price table — the provider invoice is the\nsource of truth (PLE-48 building block for billing).","operationId":"get_usage_v1_org_settings_usage_get","parameters":[{"name":"days","in":"query","required":false,"schema":{"type":"integer","maximum":365,"minimum":1,"default":30,"title":"Days"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Usage V1 Org Settings Usage Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/org/settings/assets":{"post":{"tags":["org-settings"],"summary":"Upload Asset","description":"Store a branding asset and record its path in the settings row.","operationId":"upload_asset_v1_org_settings_assets_post","parameters":[{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_asset_v1_org_settings_assets_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Upload Asset V1 Org Settings Assets Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/scenes/{scene_id}/chat/sessions/{session_id}/documents/uploads":{"post":{"tags":["document-uploads"],"summary":"Begin","operationId":"begin_v1_scenes__scene_id__chat_sessions__session_id__documents_uploads_post","parameters":[{"name":"scene_id","in":"path","required":true,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Scene Id"}},{"name":"session_id","in":"path","required":true,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Session Id"}},{"name":"copy_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Copy Id"}},{"name":"playground_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Playground Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UploadIn"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/playgrounds/{playground_id}/documents/uploads":{"post":{"tags":["document-uploads"],"summary":"Begin","operationId":"begin_v1_admin_playgrounds__playground_id__documents_uploads_post","parameters":[{"name":"playground_id","in":"path","required":true,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Playground Id"}},{"name":"scene_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Scene Id"}},{"name":"copy_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Copy Id"}},{"name":"session_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Session Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UploadIn"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/playgrounds/copies/{copy_id}/documents/uploads":{"post":{"tags":["document-uploads"],"summary":"Begin","operationId":"begin_v1_playgrounds_copies__copy_id__documents_uploads_post","parameters":[{"name":"copy_id","in":"path","required":true,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Copy Id"}},{"name":"scene_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Scene Id"}},{"name":"session_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Session Id"}},{"name":"playground_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Playground Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UploadIn"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/policies/uploads":{"post":{"tags":["document-uploads"],"summary":"Begin","operationId":"begin_v1_policies_uploads_post","parameters":[{"name":"scene_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Scene Id"}},{"name":"copy_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Copy Id"}},{"name":"session_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Session Id"}},{"name":"playground_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Playground Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UploadIn"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/scenes/{scene_id}/chat/sessions/{session_id}/documents/uploads/{document_id}/complete":{"post":{"tags":["document-uploads"],"summary":"Complete","operationId":"complete_v1_scenes__scene_id__chat_sessions__session_id__documents_uploads__document_id__complete_post","parameters":[{"name":"document_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Document Id"}},{"name":"scene_id","in":"path","required":true,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Scene Id"}},{"name":"session_id","in":"path","required":true,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Session Id"}},{"name":"copy_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Copy Id"}},{"name":"playground_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Playground Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/playgrounds/{playground_id}/documents/uploads/{document_id}/complete":{"post":{"tags":["document-uploads"],"summary":"Complete","operationId":"complete_v1_admin_playgrounds__playground_id__documents_uploads__document_id__complete_post","parameters":[{"name":"document_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Document Id"}},{"name":"playground_id","in":"path","required":true,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Playground Id"}},{"name":"scene_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Scene Id"}},{"name":"copy_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Copy Id"}},{"name":"session_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Session Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/playgrounds/copies/{copy_id}/documents/uploads/{document_id}/complete":{"post":{"tags":["document-uploads"],"summary":"Complete","operationId":"complete_v1_playgrounds_copies__copy_id__documents_uploads__document_id__complete_post","parameters":[{"name":"document_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Document Id"}},{"name":"copy_id","in":"path","required":true,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Copy Id"}},{"name":"scene_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Scene Id"}},{"name":"session_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Session Id"}},{"name":"playground_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Playground Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/policies/uploads/{document_id}/complete":{"post":{"tags":["document-uploads"],"summary":"Complete","operationId":"complete_v1_policies_uploads__document_id__complete_post","parameters":[{"name":"document_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Document Id"}},{"name":"scene_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Scene Id"}},{"name":"copy_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Copy Id"}},{"name":"session_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Session Id"}},{"name":"playground_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Playground Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/scenes/{scene_id}/chat/sessions/{session_id}/documents":{"get":{"tags":["document-uploads"],"summary":"Chat Documents","operationId":"chat_documents_v1_scenes__scene_id__chat_sessions__session_id__documents_get","parameters":[{"name":"scene_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Scene Id"}},{"name":"session_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Session Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/scenes/{scene_id}/uploaded-documents/{document_id}/retry":{"post":{"tags":["document-uploads"],"summary":"Retry Document","operationId":"retry_document_v1_scenes__scene_id__uploaded_documents__document_id__retry_post","parameters":[{"name":"scene_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Scene Id"}},{"name":"document_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Document Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/policies":{"get":{"tags":["policies"],"summary":"List Policies","operationId":"list_policies_v1_policies_get","parameters":[{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/PolicyOut"},"title":"Response List Policies V1 Policies Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["policies"],"summary":"Upload Policy","description":"Accept one document and index it in the background. Returns immediately\nwith a `pending` row so the tab can upload a whole folder's worth at once;\nparse/OCR/summary/embed happen in services/policies/library.py and land on the\nrow's status. Failure leaves a `failed` row carrying the reason rather\nthan making the upload vanish.","operationId":"upload_policy_v1_policies_post","parameters":[{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_policy_v1_policies_post"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PolicyOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/policies/folders":{"get":{"tags":["policies"],"summary":"List Folders","description":"Folders in path order — which is also tree order, since a child's path\nstarts with its parent's. `document_count` INCLUDES subfolders, matching\nboth what clicking the folder lists and what retrieve_policy(folder=…)\nsearches; a parent showing 0 while its children hold documents would read\nas an empty folder.","operationId":"list_folders_v1_policies_folders_get","parameters":[{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/FolderOut"},"title":"Response List Folders V1 Policies Folders Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["policies"],"summary":"Create Folder","description":"Create an empty folder. It persists with no documents in it — the whole\npoint of a folder table rather than a path string on each document. A\nnested path creates its missing ancestors too (\"SOP/Sodexo\" makes \"SOP\").","operationId":"create_folder_v1_policies_folders_post","parameters":[{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FolderIn"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FolderOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/policies/folders/{folder_id}":{"patch":{"tags":["policies"],"summary":"Rename Folder","description":"Rename/move a folder. Descendants follow by prefix — nesting is\npresentational, so \"SOP\" → \"Procedures\" carries \"SOP/Sodexo\" with it.","operationId":"rename_folder_v1_policies_folders__folder_id__patch","parameters":[{"name":"folder_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Folder Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FolderIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FolderOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["policies"],"summary":"Delete Folder","description":"Delete a folder and its subfolders. Documents inside are UNFILED, never\ndeleted — losing an embedded regulation to a folder tidy-up would be a\nnasty surprise. (Explicit UPDATE, not the FK's ON DELETE SET NULL: SQLite\nhas FK enforcement off, so the tests would diverge from Postgres.)","operationId":"delete_folder_v1_policies_folders__folder_id__delete","parameters":[{"name":"folder_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Folder Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/policies/move":{"post":{"tags":["policies"],"summary":"Move Policies","description":"Move documents into a folder (null = unfiled). Bulk, because the ask is\n\"move all the regulations there\", not one at a time.","operationId":"move_policies_v1_policies_move_post","parameters":[{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PolicyMove"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/PolicyOut"},"title":"Response Move Policies V1 Policies Move Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/policies/search":{"post":{"tags":["policies"],"summary":"Search Policies","description":"The same retrieval the report agent's retrieve_policy tool runs, exposed\nfor the UI (evidence preview, citation picker).","operationId":"search_policies_v1_policies_search_post","parameters":[{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PolicySearch"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Search Policies V1 Policies Search Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/policies/{policy_id}/open-url":{"get":{"tags":["policies"],"summary":"Policy Open Url","description":"A FRESH signed URL for the document's ORIGINAL bytes, for opening a\ncited source in a browser tab. Unlike the CRUD endpoints this spans BOTH\nflavours — org-library regulations AND prepared project documents — because\nreport citations reference either; org-fenced like retrieval.","operationId":"policy_open_url_v1_policies__policy_id__open_url_get","parameters":[{"name":"policy_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Policy Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Policy Open Url V1 Policies  Policy Id  Open Url Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/policies/{policy_id}/download":{"get":{"tags":["policies"],"summary":"Download Policy","description":"The document's ORIGINAL bytes as an attachment, under its uploaded\nfilename. Served through the API rather than the signed URL, which opens a\nPDF inline and carries no download name. Readable by any member, like the\nlist and open-url.","operationId":"download_policy_v1_policies__policy_id__download_get","parameters":[{"name":"policy_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Policy Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/policies/{policy_id}":{"patch":{"tags":["policies"],"summary":"Update Policy","description":"Rename and/or move one document. `move: true` applies `folder_id`,\nincluding null to unfile — without it a rename never touches the folder.","operationId":"update_policy_v1_policies__policy_id__patch","parameters":[{"name":"policy_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Policy Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PolicyPatch"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PolicyOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["policies"],"summary":"Delete Policy","operationId":"delete_policy_v1_policies__policy_id__delete","parameters":[{"name":"policy_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Policy Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/policies/{policy_id}/prepare":{"post":{"tags":["policies"],"summary":"Prepare Policy","description":"Re-run ingest for ONE document — the retry for a failed upload, and how\na scanned PDF gets a second attempt at OCR.","operationId":"prepare_policy_v1_policies__policy_id__prepare_post","parameters":[{"name":"policy_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Policy Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PolicyOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/policies/prepare-missing":{"post":{"tags":["policies"],"summary":"Prepare Missing","description":"Backfill parity for org-library rows uploaded before summaries/parsed\nmarkdown existed (or whose ingest failed): each gets the artifact + a\nfast-model summary/classification, and a scanned PDF gets OCR. Chunks\nalready embedded are kept. Queued, not synchronous — OCR made the old\nin-request loop untenable; the tab polls the rows' status.","operationId":"prepare_missing_v1_policies_prepare_missing_post","parameters":[{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Prepare Missing V1 Policies Prepare Missing Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/projects/{project_id}/documents/prepare":{"post":{"tags":["documents"],"summary":"Prepare Documents","description":"Index the project's uploaded reference documents (pdf/docx/md/txt):\nparse → visible .md artifact → summary + classification → chunk + embed.\nIdempotent: already-prepared files are skipped unless force; a running\nprep job for the project is returned instead of starting a second.","operationId":"prepare_documents_v1_projects__project_id__documents_prepare_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/services__policies__documents__PrepareIn"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PrepareOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/projects/{project_id}/documents":{"get":{"tags":["documents"],"summary":"List Documents","description":"The project's prepared documents — status, summary and passage count\nfor the Files-panel badges (humans read the same summary the agent sees).","operationId":"list_documents_v1_projects__project_id__documents_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/services__policies__documents__DocumentOut"},"title":"Response List Documents V1 Projects  Project Id  Documents Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/projects/{project_id}/documents/jobs/{job_id}":{"get":{"tags":["documents"],"summary":"Get Document Job","description":"Poll target for the Prepare-documents progress bar.","operationId":"get_document_job_v1_projects__project_id__documents_jobs__job_id__get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"job_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Job Id"}},{"name":"x-impersonate-org","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Impersonate-Org"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/health":{"get":{"summary":"Health","operationId":"health_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":{"type":"string"},"type":"object","title":"Response Health Health Get"}}}}}}},"/health/load":{"get":{"summary":"Health Load","description":"Load gauges for \"is this box busy / should I start another VM?\".\n\nDeliberately NOT folded into /health: that path is the load balancer's\nprobe and runs every few seconds, so it stays a constant-time literal.\nEverything here is a process-wide aggregate — no scene or tenant data —\nso it is as public as /health already is. ``conversions`` is THIS\nprocess; in worker mode the heavy work runs on the processing workers,\nso ``workers`` adds their gauge (engine/workers.load: up workers and\nthe kind/capability of each task they run).","operationId":"health_load_health_load_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Health Load Health Load Get"}}}}}}}},"components":{"schemas":{"AcceptIn":{"properties":{"token":{"type":"string","title":"Token"},"first_name":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"First Name"},"last_name":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Last Name"}},"type":"object","required":["token"],"title":"AcceptIn"},"AcceptOut":{"properties":{"user_id":{"type":"string","format":"uuid","title":"User Id"},"org_id":{"type":"string","format":"uuid","title":"Org Id"},"email":{"type":"string","title":"Email"},"role":{"type":"string","title":"Role"}},"type":"object","required":["user_id","org_id","email","role"],"title":"AcceptOut"},"AcknowledgementOut":{"properties":{"user_id":{"type":"string","format":"uuid","title":"User Id"},"name":{"type":"string","title":"Name"},"version":{"type":"integer","title":"Version"},"acknowledged_at":{"type":"string","format":"date-time","title":"Acknowledged At"}},"type":"object","required":["user_id","name","version","acknowledged_at"],"title":"AcknowledgementOut"},"AddMemberIn":{"properties":{"email":{"type":"string","maxLength":320,"minLength":3,"title":"Email"},"role":{"type":"string","title":"Role","default":"member"}},"type":"object","required":["email"],"title":"AddMemberIn"},"AddMemberOut":{"properties":{"outcome":{"type":"string","title":"Outcome"},"member":{"anyOf":[{"$ref":"#/components/schemas/MemberOut"},{"type":"null"}]},"invite":{"anyOf":[{"$ref":"#/components/schemas/InviteCreated"},{"type":"null"}]}},"type":"object","required":["outcome"],"title":"AddMemberOut","description":"What happened, because the caller can't know in advance. ``added`` — they\nhad an account and are in the org now (``member`` is set). ``invited`` — no\naccount yet, so a normal invite was minted (``invite`` is set, carrying the\nsingle-use link for the admin to pass on)."},"AddedToOrgOut":{"properties":{"org_id":{"type":"string","format":"uuid","title":"Org Id"},"org_name":{"type":"string","title":"Org Name"},"role":{"type":"string","title":"Role"},"added_by_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Added By Name"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["org_id","org_name","role","added_by_name","created_at"],"title":"AddedToOrgOut","description":"One \"you were added\" notice. ``added_by_name`` is a person's name, never\nan email address (core/people.py) — being told a stranger's address is worse\nthan being told a name, and the name is what the email said too."},"AnalysisRequest":{"properties":{"kind":{"type":"string","enum":["areas","floor_types","clear_width","reach","access","step_free","ramps"],"title":"Kind"},"map_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Map Name"},"scope":{"items":{"type":"string"},"type":"array","title":"Scope","default":[]},"by":{"type":"string","enum":["rooms","zones"],"title":"By","default":"rooms"},"sources":{"items":{"$ref":"#/components/schemas/AnalysisSource"},"type":"array","title":"Sources","default":[]},"start":{"anyOf":[{"$ref":"#/components/schemas/PathPoint"},{"type":"null"}]},"profile":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"},"body":{"anyOf":[{"$ref":"#/components/schemas/PathBodySpec"},{"type":"null"}]},"tool_width_m":{"anyOf":[{"type":"number","maximum":5.0,"exclusiveMinimum":0.0},{"type":"null"}],"title":"Tool Width M"},"limit_m":{"anyOf":[{"type":"number","maximum":10000.0,"exclusiveMinimum":0.0},{"type":"null"}],"title":"Limit M"},"min_width_m":{"anyOf":[{"type":"number","maximum":20.0,"exclusiveMinimum":0.0},{"type":"null"}],"title":"Min Width M"},"max_gradient":{"anyOf":[{"type":"number","maximum":2.0,"exclusiveMinimum":0.0},{"type":"null"}],"title":"Max Gradient"},"standard":{"anyOf":[{"type":"string","enum":["uk_adm","ada"]},{"type":"null"}],"title":"Standard"},"figure":{"type":"boolean","title":"Figure","default":false}},"type":"object","required":["kind"],"title":"AnalysisRequest","description":"One floor analysis of one level (docs/algorithms/floor_analysis.md).\n``kind``: areas | floor_types | clear_width | reach | access | step_free.\n``scope`` = room names / ids or zone names (default the whole level, a row per room; ``by`` =\n\"zones\" → a row per zone). reach needs ``sources``; access needs\n``start`` and takes ``profile`` (a body profile; default the walking\ncleaner) with ``body`` / ``tool_width_m`` overriding it. step_free needs\n``start`` and takes ``max_gradient`` (rise / run, default 1:12); ramps\ntakes ``standard`` (\"uk_adm\" default, \"ada\") and ``scope`` = ramp names."},"AnalysisSource":{"properties":{"object":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Object"},"x_m":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"X M"},"z_m":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Z M"},"y_m":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Y M"},"feature":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Feature"}},"type":"object","title":"AnalysisSource","description":"A reach source: an entity (``object`` = name or id), an explicit point\n(canonical map metres, as PathPoint), or ``feature`` = a building-feature\nkey or group — every saved entity of it on the level."},"AnnotationCreate":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Name"},"note":{"anyOf":[{"type":"string","maxLength":4000},{"type":"null"}],"title":"Note"},"category":{"type":"string","maxLength":50,"title":"Category","default":"measurement"},"kind":{"type":"string","pattern":"^(point|clearance|distance|area|box|note|level_link)$","title":"Kind","default":"point"},"feature":{"anyOf":[{"type":"string","maxLength":50},{"type":"null"}],"title":"Feature"},"status":{"anyOf":[{"type":"string","pattern":"^(open|proposed)$"},{"type":"null"}],"title":"Status"},"value_units":{"anyOf":[{"type":"number","minimum":0.0},{"type":"null"}],"title":"Value Units"},"orientation":{"anyOf":[{"type":"string","pattern":"^(vertical|horizontal)$"},{"type":"null"}],"title":"Orientation"},"anchor_3d":{"anyOf":[{"$ref":"#/components/schemas/Vec3In"},{"type":"null"}]},"points_3d":{"items":{"$ref":"#/components/schemas/Vec3In"},"type":"array","title":"Points 3D"},"center_3d":{"anyOf":[{"$ref":"#/components/schemas/Vec3In"},{"type":"null"}]},"extent_3d":{"anyOf":[{"$ref":"#/components/schemas/Vec3In"},{"type":"null"}]},"rotation_q":{"anyOf":[{"$ref":"#/components/schemas/engine__api__scenes__QuatIn__2"},{"type":"null"}]},"rotation_y":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Rotation Y"},"pose":{"anyOf":[{"$ref":"#/components/schemas/PoseIn"},{"type":"null"}]},"polygon_norm":{"items":{"$ref":"#/components/schemas/UVIn"},"type":"array","title":"Polygon Norm"},"current_view_image":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Current View Image"},"frame_keys":{"items":{"type":"string"},"type":"array","title":"Frame Keys"},"operation_id":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Operation Id"},"provenance":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Provenance"},"link":{"anyOf":[{"$ref":"#/components/schemas/LevelLinkIn"},{"type":"null"}]}},"type":"object","title":"AnnotationCreate","description":"A geo-tagged annotation saved from the viewer. points_3d + anchor_3d are\nscene units; value_units is raw scene units (metres via unit_scale; ² for\narea). polygon_norm + current_view_image (optional) crop an evidence image.\nkind=\"box\" uses center_3d/extent_3d/rotation_q instead of points_3d — a\nmeasured/tagged volume of space, not a point/line/polygon."},"AnnotationIn":{"properties":{"row":{"type":"integer","minimum":0.0,"title":"Row"},"col":{"type":"integer","minimum":0.0,"title":"Col"},"type":{"type":"string","pattern":"^(wall|free|door|no_go|oob|clear_object|restore)$","title":"Type"}},"type":"object","required":["row","col","type"],"title":"AnnotationIn"},"AnnotationOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note"},"category":{"type":"string","title":"Category"},"status":{"type":"string","title":"Status"},"kind":{"type":"string","title":"Kind"},"value_m":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Value M"},"area_m2":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Area M2"},"volume_m3":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Volume M3"},"dimensions_m":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Dimensions M"},"orientation":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Orientation"},"anchor_3d":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Anchor 3D"},"geometry_3d":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Geometry 3D"},"bbox_3d":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Bbox 3D"},"pose":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Pose"},"image_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Image Url"},"frame_keys":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Frame Keys"},"created_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created By"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"link":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Link"},"feature":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Feature"}},"type":"object","required":["id","name","category","status","kind","created_at","updated_at"],"title":"AnnotationOut"},"AnnotationPatch":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":200,"minLength":1},{"type":"null"}],"title":"Name"},"note":{"anyOf":[{"type":"string","maxLength":4000},{"type":"null"}],"title":"Note"},"category":{"anyOf":[{"type":"string","maxLength":50},{"type":"null"}],"title":"Category"},"status":{"anyOf":[{"type":"string","pattern":"^(open|resolved|disputed|retracted)$"},{"type":"null"}],"title":"Status"},"center_3d":{"anyOf":[{"$ref":"#/components/schemas/Vec3In"},{"type":"null"}]},"extent_3d":{"anyOf":[{"$ref":"#/components/schemas/Vec3In"},{"type":"null"}]},"rotation_q":{"anyOf":[{"$ref":"#/components/schemas/engine__api__scenes__QuatIn__2"},{"type":"null"}]},"rotation_y":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Rotation Y"},"feature":{"anyOf":[{"type":"string","maxLength":50},{"type":"null"}],"title":"Feature"},"anchor_3d":{"anyOf":[{"$ref":"#/components/schemas/Vec3In"},{"type":"null"}]},"pose":{"anyOf":[{"$ref":"#/components/schemas/PoseIn"},{"type":"null"}]}},"type":"object","title":"AnnotationPatch","description":"Edit an annotation in place — curate the note (\"clearance for scaffold\naccess\"), rename, recategorise, or mark it resolved (a proposed tag's\nConfirm sets status \"open\"). Geometry is otherwise immutable EXCEPT for\nkind=\"box\": center_3d/extent_3d/rotation_q may be resized/moved/rotated\nafter save (drag-editing a saved box in the viewer); any field omitted\nkeeps the box's current value for that property — and a tagged\nlocation's anchor_3d/pose (dragging its pin in the 📍 tool)."},"AnnotationsPatch":{"properties":{"annotations":{"items":{"$ref":"#/components/schemas/AnnotationIn"},"type":"array","title":"Annotations","default":[]},"replace":{"type":"boolean","title":"Replace","default":false}},"type":"object","title":"AnnotationsPatch","description":"Brush edits only. Named areas are zones (outlines, /scenes/{id}/zones),\nnever painted cells (docs/planning/zones-and-map-editing.md)."},"ApiKeyCreate":{"properties":{"name":{"type":"string","maxLength":200,"minLength":1,"title":"Name"},"scopes":{"items":{"type":"string"},"type":"array","title":"Scopes"}},"type":"object","required":["name"],"title":"ApiKeyCreate"},"ApiKeyCreated":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"prefix":{"type":"string","title":"Prefix"},"scopes":{"items":{"type":"string"},"type":"array","title":"Scopes"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"revoked_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Revoked At"},"key":{"type":"string","title":"Key"}},"type":"object","required":["id","name","prefix","scopes","created_at","key"],"title":"ApiKeyCreated"},"ApiKeyOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"prefix":{"type":"string","title":"Prefix"},"scopes":{"items":{"type":"string"},"type":"array","title":"Scopes"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"revoked_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Revoked At"}},"type":"object","required":["id","name","prefix","scopes","created_at"],"title":"ApiKeyOut"},"AppEntitlementOut":{"properties":{"key":{"type":"string","title":"Key"},"enabled":{"type":"boolean","title":"Enabled"},"features":{"items":{"type":"string"},"type":"array","title":"Features"},"settings":{"additionalProperties":true,"type":"object","title":"Settings"}},"type":"object","required":["key","enabled","features","settings"],"title":"AppEntitlementOut"},"AppendIn":{"properties":{"messages":{"items":{"$ref":"#/components/schemas/MessageIn"},"type":"array","minItems":1,"title":"Messages"}},"type":"object","required":["messages"],"title":"AppendIn"},"ApplyStyleIn":{"properties":{"style_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Style Id"}},"type":"object","title":"ApplyStyleIn"},"AssistIn":{"properties":{"action":{"type":"string","enum":["ask","rewrite","shorten","expand","tone","grammar","custom","transform_doc"],"title":"Action"},"instruction":{"type":"string","title":"Instruction","default":""},"tone":{"type":"string","title":"Tone","default":""},"scope":{"type":"string","enum":["selection","node","document"],"title":"Scope","default":"selection"},"selection_md":{"type":"string","title":"Selection Md","default":""},"surrounding_md":{"type":"string","title":"Surrounding Md","default":""},"node":{"anyOf":[{"$ref":"#/components/schemas/NodeScope"},{"type":"null"}]},"mini_history":{"items":{"$ref":"#/components/schemas/ChatTurn-Input"},"type":"array","title":"Mini History"},"use_policies":{"type":"boolean","title":"Use Policies","default":true},"model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model"}},"type":"object","required":["action"],"title":"AssistIn"},"AttachFile":{"properties":{"file_id":{"type":"string","format":"uuid","title":"File Id"}},"type":"object","required":["file_id"],"title":"AttachFile"},"AttachIn":{"properties":{"report_id":{"type":"string","format":"uuid","title":"Report Id"},"kind":{"type":"string","pattern":"^(site_survey|scope|reserve|loss_report|supporting)$","title":"Kind","default":"supporting"}},"type":"object","required":["report_id"],"title":"AttachIn"},"AttachableOut":{"properties":{"report_id":{"type":"string","format":"uuid","title":"Report Id"},"title":{"type":"string","title":"Title"},"scenario":{"type":"string","title":"Scenario"},"status":{"type":"string","title":"Status"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["report_id","title","scenario","status","updated_at"],"title":"AttachableOut"},"AttachmentReadIn":{"properties":{"page":{"type":"integer","minimum":1.0,"title":"Page","default":1},"cursor":{"type":"string","maxLength":2048,"title":"Cursor","default":""},"limit":{"type":"integer","maximum":16000.0,"minimum":1.0,"title":"Limit","default":12000},"query":{"type":"string","maxLength":2000,"title":"Query","default":""},"expected_revision":{"type":"string","maxLength":64,"title":"Expected Revision","default":""}},"type":"object","title":"AttachmentReadIn"},"AttentionOut":{"properties":{"kind":{"type":"string","title":"Kind"},"report_id":{"type":"string","format":"uuid","title":"Report Id"},"report_title":{"type":"string","title":"Report Title"},"text":{"type":"string","title":"Text"},"who":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Who"},"at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"At"}},"type":"object","required":["kind","report_id","report_title","text","who","at"],"title":"AttentionOut"},"AuditEventOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"event_type":{"type":"string","title":"Event Type"},"success":{"type":"boolean","title":"Success"},"user_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"User Id"},"org_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Org Id"},"org_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Org Name"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"},"target_kind":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Target Kind"},"target_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Target Id"},"target_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Target Email"},"details":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Details"},"correlation_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Correlation Id"},"acting_staff_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Acting Staff Id"},"client_ip":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Client Ip"},"user_agent":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User Agent"},"occurred_at":{"type":"string","format":"date-time","title":"Occurred At"}},"type":"object","required":["id","event_type","success","user_id","org_id","org_name","email","reason","target_kind","target_id","target_email","details","correlation_id","acting_staff_id","client_ip","user_agent","occurred_at"],"title":"AuditEventOut"},"AvailableTemplateOut":{"properties":{"key":{"type":"string","title":"Key"},"name":{"type":"string","title":"Name"},"scope":{"type":"string","title":"Scope"}},"type":"object","required":["key","name","scope"],"title":"AvailableTemplateOut"},"BodyProfileIn":{"properties":{"name":{"type":"string","maxLength":100,"minLength":1,"title":"Name"},"width_m":{"type":"number","maximum":100.0,"exclusiveMinimum":0.0,"title":"Width M"},"depth_m":{"type":"number","maximum":100.0,"exclusiveMinimum":0.0,"title":"Depth M"},"height_m":{"type":"number","maximum":100.0,"exclusiveMinimum":0.0,"title":"Height M"},"side_clearance_m":{"type":"number","maximum":2.0,"minimum":0.0,"title":"Side Clearance M"},"top_clearance_m":{"type":"number","maximum":2.0,"minimum":0.0,"title":"Top Clearance M"},"shape":{"type":"string","enum":["box","cylinder"],"title":"Shape","default":"box"},"avatar":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Avatar"},"coverage":{"anyOf":[{"additionalProperties":{"type":"number"},"type":"object"},{"type":"null"}],"title":"Coverage"}},"type":"object","required":["name","width_m","depth_m","height_m","side_clearance_m","top_clearance_m"],"title":"BodyProfileIn"},"BodyProfileOut":{"properties":{"name":{"type":"string","maxLength":100,"minLength":1,"title":"Name"},"width_m":{"type":"number","maximum":100.0,"exclusiveMinimum":0.0,"title":"Width M"},"depth_m":{"type":"number","maximum":100.0,"exclusiveMinimum":0.0,"title":"Depth M"},"height_m":{"type":"number","maximum":100.0,"exclusiveMinimum":0.0,"title":"Height M"},"side_clearance_m":{"type":"number","maximum":2.0,"minimum":0.0,"title":"Side Clearance M"},"top_clearance_m":{"type":"number","maximum":2.0,"minimum":0.0,"title":"Top Clearance M"},"shape":{"type":"string","enum":["box","cylinder"],"title":"Shape","default":"box"},"avatar":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Avatar"},"coverage":{"anyOf":[{"additionalProperties":{"type":"number"},"type":"object"},{"type":"null"}],"title":"Coverage"},"builtin":{"type":"boolean","title":"Builtin"},"id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Id"},"vendor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Vendor"},"kind":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Kind"},"catalogue":{"type":"string","title":"Catalogue","default":"org"},"source":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source"}},"type":"object","required":["name","width_m","depth_m","height_m","side_clearance_m","top_clearance_m","builtin"],"title":"BodyProfileOut"},"Body_import_layout_v1_scenes__scene_id__layouts__layout_id__import_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"}},"type":"object","required":["file"],"title":"Body_import_layout_v1_scenes__scene_id__layouts__layout_id__import_post"},"Body_import_report_style_v1_reports__report_id__styles_import_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"}},"type":"object","required":["file"],"title":"Body_import_report_style_v1_reports__report_id__styles_import_post"},"Body_staff_upload_document_v1_admin_playgrounds__playground_id__documents_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"}},"type":"object","required":["file"],"title":"Body_staff_upload_document_v1_admin_playgrounds__playground_id__documents_post"},"Body_upload_asset_v1_org_settings_assets_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"},"kind":{"type":"string","enum":["logo","docx_reference"],"title":"Kind"}},"type":"object","required":["file","kind"],"title":"Body_upload_asset_v1_org_settings_assets_post"},"Body_upload_copy_document_v1_playgrounds_copies__scene_id__documents_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"}},"type":"object","required":["file"],"title":"Body_upload_copy_document_v1_playgrounds_copies__scene_id__documents_post"},"Body_upload_model_v1_apps_substation_inventory__item_id__model_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"}},"type":"object","required":["file"],"title":"Body_upload_model_v1_apps_substation_inventory__item_id__model_post"},"Body_upload_path_video_v1_scenes__scene_id__paths__path_id__video_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"}},"type":"object","required":["file"],"title":"Body_upload_path_video_v1_scenes__scene_id__paths__path_id__video_post"},"Body_upload_policy_v1_policies_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"folder_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Folder Id"}},"type":"object","required":["file"],"title":"Body_upload_policy_v1_policies_post"},"Body_upload_template_asset_v1_report_templates__template_id__assets_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"}},"type":"object","required":["file"],"title":"Body_upload_template_asset_v1_report_templates__template_id__assets_post"},"Body_upload_v1_scenes__scene_id__chat_sessions__session_id__attachments_post":{"properties":{"files":{"items":{"type":"string","contentMediaType":"application/octet-stream"},"type":"array","title":"Files"},"capture":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Capture"},"operation_id":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Operation Id"}},"type":"object","required":["files"],"title":"Body_upload_v1_scenes__scene_id__chat_sessions__session_id__attachments_post"},"Box3":{"properties":{"min":{"$ref":"#/components/schemas/Vec3"},"max":{"$ref":"#/components/schemas/Vec3"}},"type":"object","required":["min","max"],"title":"Box3"},"CableEndpoint":{"properties":{"object":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Object"},"point":{"anyOf":[{"$ref":"#/components/schemas/Vec3"},{"type":"null"}]}},"type":"object","title":"CableEndpoint"},"CableGeometry":{"properties":{"points":{"items":{"$ref":"#/components/schemas/Vec3"},"type":"array","title":"Points"},"segments":{"items":{"$ref":"#/components/schemas/CableSegment"},"type":"array","title":"Segments"}},"type":"object","required":["points","segments"],"title":"CableGeometry"},"CablePlanRequest":{"properties":{"start":{"$ref":"#/components/schemas/CableEndpoint"},"end":{"$ref":"#/components/schemas/CableEndpoint"},"via":{"items":{"$ref":"#/components/schemas/Vec3"},"type":"array","maxItems":20,"title":"Via","default":[]},"diameter_mm":{"type":"number","maximum":200.0,"exclusiveMinimum":0.0,"title":"Diameter Mm","default":25.0},"clearance_mm":{"anyOf":[{"type":"number","maximum":500.0,"minimum":0.0},{"type":"null"}],"title":"Clearance Mm"},"slack":{"anyOf":[{"type":"number","maximum":0.2,"minimum":0.0},{"type":"null"}],"title":"Slack"},"ignore":{"items":{"type":"string"},"type":"array","title":"Ignore","default":[]},"zones":{"items":{"$ref":"#/components/schemas/CableZoneSpec"},"type":"array","title":"Zones","default":[]},"avoid_zones":{"items":{"type":"string"},"type":"array","title":"Avoid Zones","default":[]},"weights":{"anyOf":[{"additionalProperties":{"type":"number"},"type":"object"},{"type":"null"}],"title":"Weights"},"voxel_m":{"anyOf":[{"type":"number","maximum":0.2,"exclusiveMinimum":0.0},{"type":"null"}],"title":"Voxel M"}},"type":"object","required":["start","end"],"title":"CablePlanRequest"},"CablePlanResponse":{"properties":{"reachable":{"type":"boolean","title":"Reachable"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"},"length_m":{"type":"number","title":"Length M"},"per_kind_m":{"additionalProperties":{"type":"number"},"type":"object","title":"Per Kind M"},"geometry":{"$ref":"#/components/schemas/CableGeometry"},"start":{"additionalProperties":true,"type":"object","title":"Start"},"end":{"additionalProperties":true,"type":"object","title":"End"},"via":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Via","default":[]},"params":{"additionalProperties":true,"type":"object","title":"Params"},"warnings":{"items":{"type":"string"},"type":"array","title":"Warnings","default":[]},"ignored":{"items":{"type":"string"},"type":"array","title":"Ignored","default":[]},"failed_leg":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Failed Leg"},"zones_applied":{"items":{"type":"string"},"type":"array","title":"Zones Applied","default":[]},"zones_entered":{"items":{"type":"string"},"type":"array","title":"Zones Entered","default":[]}},"type":"object","required":["reachable","length_m","per_kind_m","geometry","start","end","params"],"title":"CablePlanResponse"},"CableRouteOut":{"properties":{"reachable":{"type":"boolean","title":"Reachable"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"},"length_m":{"type":"number","title":"Length M"},"per_kind_m":{"additionalProperties":{"type":"number"},"type":"object","title":"Per Kind M"},"geometry":{"$ref":"#/components/schemas/CableGeometry"},"start":{"additionalProperties":true,"type":"object","title":"Start"},"end":{"additionalProperties":true,"type":"object","title":"End"},"via":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Via","default":[]},"params":{"additionalProperties":true,"type":"object","title":"Params"},"warnings":{"items":{"type":"string"},"type":"array","title":"Warnings","default":[]},"ignored":{"items":{"type":"string"},"type":"array","title":"Ignored","default":[]},"failed_leg":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Failed Leg"},"zones_applied":{"items":{"type":"string"},"type":"array","title":"Zones Applied","default":[]},"zones_entered":{"items":{"type":"string"},"type":"array","title":"Zones Entered","default":[]},"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note"},"status":{"type":"string","title":"Status","default":"ready"},"validation":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Validation"}},"type":"object","required":["reachable","length_m","per_kind_m","geometry","start","end","params","id","name"],"title":"CableRouteOut"},"CableRoutePatch":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":200,"minLength":1},{"type":"null"}],"title":"Name"},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note"},"geometry":{"anyOf":[{"$ref":"#/components/schemas/CableGeometry"},{"type":"null"}]},"params":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Params"}},"type":"object","title":"CableRoutePatch"},"CableRouteSave":{"properties":{"name":{"type":"string","maxLength":200,"minLength":1,"title":"Name"},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note"},"diameter_mm":{"type":"number","maximum":200.0,"exclusiveMinimum":0.0,"title":"Diameter Mm","default":25.0},"clearance_mm":{"anyOf":[{"type":"number","maximum":500.0,"minimum":0.0},{"type":"null"}],"title":"Clearance Mm"},"slack":{"anyOf":[{"type":"number","maximum":0.2,"minimum":0.0},{"type":"null"}],"title":"Slack"},"start":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Start"},"end":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"End"},"geometry":{"$ref":"#/components/schemas/CableGeometry"},"params":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Params"}},"type":"object","required":["name","geometry"],"title":"CableRouteSave"},"CableSegment":{"properties":{"start":{"type":"integer","title":"Start"},"end":{"type":"integer","title":"End"},"kind":{"type":"string","title":"Kind"},"sag_m":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Sag M"}},"type":"object","required":["start","end","kind"],"title":"CableSegment"},"CableZoneSpec":{"properties":{"box":{"$ref":"#/components/schemas/Box3"},"role":{"type":"string","enum":["exclude","block","prefer"],"title":"Role"}},"type":"object","required":["box","role"],"title":"CableZoneSpec"},"CameraResults":{"properties":{"operation_id":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Operation Id"},"tasks":{"items":{"$ref":"#/components/schemas/CameraTaskResult"},"type":"array","maxItems":3,"title":"Tasks"},"measurements":{"items":{"$ref":"#/components/schemas/MeasureFromPixelsResult"},"type":"array","maxItems":4,"title":"Measurements"},"detections":{"items":{"$ref":"#/components/schemas/DetectionResult"},"type":"array","maxItems":1,"title":"Detections"}},"type":"object","title":"CameraResults"},"CameraStepIn":{"properties":{"task_id":{"type":"string","maxLength":64,"minLength":1,"title":"Task Id"},"goal":{"type":"string","maxLength":500,"minLength":1,"title":"Goal"},"subject":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"Subject"},"framing":{"type":"string","enum":["whole_subject","detail","context"],"title":"Framing","default":"whole_subject"},"step_index":{"type":"integer","minimum":0.0,"title":"Step Index"},"max_steps":{"anyOf":[{"type":"integer","maximum":16.0,"minimum":1.0},{"type":"null"}],"title":"Max Steps"},"image_b64":{"type":"string","minLength":1,"title":"Image B64"},"capture":{"$ref":"#/components/schemas/CaptureIn"},"history":{"items":{"$ref":"#/components/schemas/HistoryIn"},"type":"array","maxItems":16,"title":"History"},"expected_box":{"anyOf":[{"$ref":"#/components/schemas/RegionIn"},{"type":"null"}]},"last_move":{"anyOf":[{"$ref":"#/components/schemas/LastMoveIn"},{"type":"null"}]},"model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model"}},"type":"object","required":["task_id","goal","step_index","image_b64"],"title":"CameraStepIn"},"CameraStepOut":{"properties":{"task_id":{"type":"string","title":"Task Id"},"step_index":{"type":"integer","title":"Step Index"},"status":{"type":"string","enum":["observed","budget_exhausted","error"],"title":"Status"},"observation":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Observation"},"budget":{"additionalProperties":true,"type":"object","title":"Budget"},"validated":{"type":"boolean","title":"Validated","default":false},"repaired":{"type":"boolean","title":"Repaired","default":false},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"},"analysis":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Analysis"}},"type":"object","required":["task_id","step_index","status","budget"],"title":"CameraStepOut"},"CameraStepRecord":{"properties":{"step_index":{"type":"integer","minimum":0.0,"title":"Step Index"},"executed":{"additionalProperties":true,"type":"object","title":"Executed"},"visibility":{"anyOf":[{"type":"string","maxLength":12},{"type":"null"}],"title":"Visibility"},"assessment":{"anyOf":[{"type":"string","maxLength":300},{"type":"null"}],"title":"Assessment"}},"type":"object","required":["step_index"],"title":"CameraStepRecord"},"CameraStopIn":{"properties":{"pose":{"additionalProperties":true,"type":"object","title":"Pose"},"caption":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Caption"}},"type":"object","required":["pose"],"title":"CameraStopIn"},"CameraTaskResult":{"properties":{"task_id":{"type":"string","maxLength":64,"minLength":1,"title":"Task Id"},"kind":{"type":"string","enum":["look_around","move_camera","navigation"],"title":"Kind","default":"move_camera"},"goal":{"type":"string","maxLength":500,"title":"Goal","default":""},"subject":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"Subject"},"framing":{"anyOf":[{"type":"string","maxLength":20},{"type":"null"}],"title":"Framing"},"outcome":{"type":"string","enum":["done","aborted","cancelled","budget_exhausted","error"],"title":"Outcome"},"reason":{"anyOf":[{"type":"string","maxLength":300},{"type":"null"}],"title":"Reason"},"visibility":{"anyOf":[{"type":"string","maxLength":12},{"type":"null"}],"title":"Visibility"},"summary":{"type":"string","maxLength":600,"title":"Summary","default":""},"steps":{"items":{"$ref":"#/components/schemas/CameraStepRecord"},"type":"array","maxItems":8,"title":"Steps"},"capture_refs":{"items":{"$ref":"#/components/schemas/CaptureRef"},"type":"array","maxItems":2,"title":"Capture Refs"},"live_pose":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Live Pose"}},"type":"object","required":["task_id","outcome"],"title":"CameraTaskResult"},"CaptionOut":{"properties":{"frame_key":{"type":"string","title":"Frame Key"},"caption":{"type":"string","title":"Caption"},"objects":{"items":{"type":"string"},"type":"array","title":"Objects"},"instances":{"type":"integer","title":"Instances","default":0},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"cached":{"type":"boolean","title":"Cached","default":false}},"type":"object","required":["frame_key","caption"],"title":"CaptionOut"},"CaptionsConfig":{"properties":{"prompt":{"anyOf":[{"type":"string","maxLength":4000,"minLength":1},{"type":"null"}],"title":"Prompt"}},"additionalProperties":false,"type":"object","title":"CaptionsConfig"},"CaptionsIn":{"properties":{"frame_keys":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Frame Keys"},"prompt":{"type":"string","minLength":1,"title":"Prompt","default":"Describe what is visible in this view: the area type, objects and equipment, their approximate locations, surfaces and materials, and anything notable. Be factual and specific; do not speculate beyond the image. Write the description as plain prose — no headings, bullet lists or preamble — in at most 120 words. Separately list every distinct kind of object, equipment or building feature visible, as short generic nouns (lowercase, singular, one to three words — e.g. 'pallet rack', 'fire extinguisher', 'roller shutter door'); leave out surfaces, materials and people."},"model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model"},"force":{"type":"boolean","title":"Force","default":false}},"type":"object","title":"CaptionsIn"},"CaptureIn":{"properties":{"pose":{"additionalProperties":true,"type":"object","title":"Pose"},"fov":{"anyOf":[{"type":"number","exclusiveMaximum":180.0,"exclusiveMinimum":0.0},{"type":"null"}],"title":"Fov"},"aspect":{"anyOf":[{"type":"number","exclusiveMinimum":0.0},{"type":"null"}],"title":"Aspect"},"width":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Width"},"height":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Height"},"settled":{"type":"boolean","title":"Settled","default":true},"source":{"type":"string","enum":["scan","panorama"],"title":"Source","default":"scan"}},"type":"object","title":"CaptureIn"},"CaptureOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"scene_id":{"type":"string","format":"uuid","title":"Scene Id"},"scene_name":{"type":"string","title":"Scene Name"},"kind":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Kind"},"value_m":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Value M"},"image_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Image Url"},"file_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"File Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","name","scene_id","scene_name","created_at"],"title":"CaptureOut","description":"A saved-region crop (the captures gallery): a scene_object with a linked\nimage, flattened with its scene name + measured value for display."},"CaptureRef":{"properties":{"attachment_id":{"type":"string","format":"uuid","title":"Attachment Id"},"capture_id":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Capture Id"},"role":{"type":"string","enum":["final","best","verification"],"title":"Role","default":"final"},"pose":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Pose"},"report_file_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Report File Id"},"overlays":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Overlays"},"overlay_labels":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Overlay Labels"}},"type":"object","required":["attachment_id"],"title":"CaptureRef"},"CaptureResult":{"properties":{"file_id":{"type":"string","format":"uuid","title":"File Id"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"findings":{"anyOf":[{"items":{"$ref":"#/components/schemas/Finding"},"type":"array"},{"type":"null"}],"title":"Findings"},"overlays":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Overlays"},"overlay_labels":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Overlay Labels"}},"type":"object","required":["file_id"],"title":"CaptureResult","description":"A client-side capture completed between turns (AI snapshot or a\nwalkthrough frame), optionally with VLM findings from walkthrough-inspect."},"CatalogItem":{"properties":{"key":{"type":"string","title":"Key"},"name":{"type":"string","title":"Name"},"builtin_name":{"type":"string","title":"Builtin Name"},"is_public":{"type":"boolean","title":"Is Public"},"hidden":{"type":"boolean","title":"Hidden"},"visible_here":{"type":"boolean","title":"Visible Here"},"shown_org_count":{"type":"integer","title":"Shown Org Count"},"hidden_org_count":{"type":"integer","title":"Hidden Org Count"},"override_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Override Id"},"has_brief":{"type":"boolean","title":"Has Brief","default":false},"has_docx_reference":{"type":"boolean","title":"Has Docx Reference","default":false}},"type":"object","required":["key","name","builtin_name","is_public","hidden","visible_here","shown_org_count","hidden_org_count"],"title":"CatalogItem","description":"One template as Plenex staff see it — every key, whatever its\nvisibility, with the flags the catalogue table renders."},"CatalogKeys":{"properties":{"keys":{"items":{"type":"string"},"type":"array","maxItems":100,"minItems":1,"title":"Keys"}},"type":"object","required":["keys"],"title":"CatalogKeys"},"CatalogPatch":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Name"},"is_public":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Public"}},"type":"object","title":"CatalogPatch"},"ChatOut":{"properties":{"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"archived":{"type":"boolean","title":"Archived"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"},"messages":{"items":{"$ref":"#/components/schemas/ChatTurn-Output"},"type":"array","title":"Messages"}},"type":"object","required":["title","archived","reason","messages"],"title":"ChatOut"},"ChatTurn-Input":{"properties":{"role":{"type":"string","pattern":"^(user|assistant)$","title":"Role"},"content":{"type":"string","title":"Content"},"attachment_ids":{"items":{"type":"string","format":"uuid"},"type":"array","maxItems":100,"title":"Attachment Ids"},"meta":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Meta"}},"type":"object","required":["role","content"],"title":"ChatTurn"},"ChatTurn-Output":{"properties":{"seq":{"type":"integer","title":"Seq"},"role":{"type":"string","title":"Role"},"content":{"type":"string","title":"Content"},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created At"},"cleared_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cleared At"}},"type":"object","required":["seq","role","content","created_at","cleared_at"],"title":"ChatTurn"},"ClaimCreate":{"properties":{"claim_ref":{"type":"string","maxLength":60,"minLength":1,"title":"Claim Ref"},"policy_ref":{"anyOf":[{"type":"string","maxLength":60},{"type":"null"}],"title":"Policy Ref"},"insured_name":{"type":"string","maxLength":200,"minLength":1,"title":"Insured Name"},"peril":{"type":"string","maxLength":60,"minLength":1,"title":"Peril"},"loss_date":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}],"title":"Loss Date"},"project_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Project Id"},"new_project_name":{"anyOf":[{"type":"string","maxLength":200,"minLength":1},{"type":"null"}],"title":"New Project Name"}},"type":"object","required":["claim_ref","insured_name","peril"],"title":"ClaimCreate"},"ClaimOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"project_id":{"type":"string","format":"uuid","title":"Project Id"},"claim_ref":{"type":"string","title":"Claim Ref"},"policy_ref":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Policy Ref"},"insured_name":{"type":"string","title":"Insured Name"},"peril":{"type":"string","title":"Peril"},"loss_date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Loss Date"},"status":{"type":"string","title":"Status"},"reserve_amount":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Reserve Amount"},"reserve_currency":{"type":"string","title":"Reserve Currency"},"handler_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Handler Name"},"document_count":{"type":"integer","title":"Document Count"},"open_threads":{"type":"integer","title":"Open Threads"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"project_name":{"type":"string","title":"Project Name"},"documents":{"items":{"$ref":"#/components/schemas/app__insurance__claims__DocumentOut"},"type":"array","title":"Documents"},"parties":{"items":{"$ref":"#/components/schemas/PartyOut"},"type":"array","title":"Parties"},"attention":{"items":{"$ref":"#/components/schemas/AttentionOut"},"type":"array","title":"Attention"},"roles":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Roles"},"states":{"items":{"type":"string"},"type":"array","title":"States"},"document_kinds":{"items":{"type":"string"},"type":"array","title":"Document Kinds"},"attach_kinds":{"items":{"type":"string"},"type":"array","title":"Attach Kinds"}},"type":"object","required":["id","project_id","claim_ref","policy_ref","insured_name","peril","loss_date","status","reserve_amount","reserve_currency","handler_name","document_count","open_threads","updated_at","project_name","documents","parties","attention","roles","states","document_kinds","attach_kinds"],"title":"ClaimOut"},"ClaimPatch":{"properties":{"status":{"anyOf":[{"type":"string","pattern":"^(notified|visit_scheduled|surveyed|reported|reserved|settled|closed)$"},{"type":"null"}],"title":"Status"},"policy_ref":{"anyOf":[{"type":"string","maxLength":60},{"type":"null"}],"title":"Policy Ref"},"insured_name":{"anyOf":[{"type":"string","maxLength":200,"minLength":1},{"type":"null"}],"title":"Insured Name"},"peril":{"anyOf":[{"type":"string","maxLength":60},{"type":"null"}],"title":"Peril"},"loss_date":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}],"title":"Loss Date"},"reserve_amount":{"anyOf":[{"type":"number","minimum":0.0},{"type":"null"}],"title":"Reserve Amount"},"reserve_currency":{"anyOf":[{"type":"string","maxLength":3,"minLength":3},{"type":"null"}],"title":"Reserve Currency"},"handler_user_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Handler User Id"}},"type":"object","title":"ClaimPatch"},"ClaimRef":{"properties":{"id":{"type":"string","maxLength":64,"minLength":1,"title":"Id"},"name":{"type":"string","maxLength":200,"minLength":1,"title":"Name"},"status":{"type":"string","maxLength":20,"title":"Status","default":"open"},"claim":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Claim"},"source_kind":{"anyOf":[{"type":"string","maxLength":30},{"type":"null"}],"title":"Source Kind"},"image_file_id":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Image File Id"},"revision":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Revision"}},"type":"object","required":["id","name"],"title":"ClaimRef","description":"A shared-scene-knowledge claim this assistant turn published (engine/\napi/knowledge.py), persisted WITH the message so its Correct / Incorrect\ncard re-renders after reload. Live status comes from the entities API;\nthis is the pointer plus a display snapshot."},"ClaimSummaryOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"project_id":{"type":"string","format":"uuid","title":"Project Id"},"claim_ref":{"type":"string","title":"Claim Ref"},"policy_ref":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Policy Ref"},"insured_name":{"type":"string","title":"Insured Name"},"peril":{"type":"string","title":"Peril"},"loss_date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Loss Date"},"status":{"type":"string","title":"Status"},"reserve_amount":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Reserve Amount"},"reserve_currency":{"type":"string","title":"Reserve Currency"},"handler_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Handler Name"},"document_count":{"type":"integer","title":"Document Count"},"open_threads":{"type":"integer","title":"Open Threads"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","project_id","claim_ref","policy_ref","insured_name","peril","loss_date","status","reserve_amount","reserve_currency","handler_name","document_count","open_threads","updated_at"],"title":"ClaimSummaryOut"},"ClearObjectIn":{"properties":{"restore":{"type":"boolean","title":"Restore","default":false}},"type":"object","title":"ClearObjectIn"},"ClearObjectsIn":{"properties":{"objects":{"items":{"type":"string","format":"uuid"},"type":"array","maxItems":200,"minItems":1,"title":"Objects"},"restore":{"type":"boolean","title":"Restore","default":false},"save_as":{"anyOf":[{"type":"string","maxLength":120,"minLength":1},{"type":"null"}],"title":"Save As"}},"type":"object","required":["objects"],"title":"ClearObjectsIn","description":"Scanned objects (ids) to clear off this floorplan, or to put back."},"ClearoutOut":{"properties":{"prisms":{"items":{"$ref":"#/components/schemas/ClearoutPrism"},"type":"array","title":"Prisms"},"source_frame":{"type":"string","title":"Source Frame"}},"type":"object","required":["prisms","source_frame"],"title":"ClearoutOut"},"ClearoutPrism":{"properties":{"x_m":{"type":"number","title":"X M"},"z_m":{"type":"number","title":"Z M"},"w_m":{"type":"number","title":"W M"},"d_m":{"type":"number","title":"D M"},"y0_m":{"type":"number","title":"Y0 M"},"y1_m":{"type":"number","title":"Y1 M"},"yaw_deg":{"type":"number","title":"Yaw Deg"},"map":{"type":"string","title":"Map"},"coarse":{"type":"boolean","title":"Coarse","default":false},"object":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Object"},"object_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Object Id"},"elevated":{"type":"boolean","title":"Elevated","default":false}},"type":"object","required":["x_m","z_m","w_m","d_m","y0_m","y1_m","yaw_deg","map"],"title":"ClearoutPrism","description":"One erase box for the viewer's \"as planned\" mode — canonical map metres,\nsides building-aligned (rotate by yaw_deg about +Y, then ride the mesh\ntransform like every canonical overlay)."},"Colors":{"properties":{"accent":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Accent"},"body_text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Body Text"}},"additionalProperties":false,"type":"object","title":"Colors"},"CommentIn":{"properties":{"body":{"type":"string","maxLength":10000,"minLength":1,"title":"Body"},"parent_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Parent Id"},"anchor_kind":{"type":"string","pattern":"^(document|section|register_row)$","title":"Anchor Kind","default":"document"},"anchor_ref":{"type":"string","maxLength":300,"title":"Anchor Ref","default":""},"anchor_label":{"anyOf":[{"type":"string","maxLength":300},{"type":"null"}],"title":"Anchor Label"},"mentions":{"items":{"type":"string","format":"uuid"},"type":"array","maxItems":20,"title":"Mentions"}},"type":"object","required":["body"],"title":"CommentIn"},"CommentOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"parent_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Parent Id"},"anchor_kind":{"type":"string","title":"Anchor Kind"},"anchor_ref":{"type":"string","title":"Anchor Ref"},"anchor_label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Anchor Label"},"body":{"type":"string","title":"Body"},"author_user_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Author User Id"},"author_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Author Name"},"author_role":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Author Role"},"author_role_label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Author Role Label"},"mentions":{"items":{"type":"string","format":"uuid"},"type":"array","title":"Mentions"},"resolved_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Resolved At"},"resolved_by":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Resolved By"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"replies":{"items":{"$ref":"#/components/schemas/CommentOut"},"type":"array","title":"Replies"}},"type":"object","required":["id","parent_id","anchor_kind","anchor_ref","anchor_label","body","author_user_id","author_name","author_role","author_role_label","mentions","resolved_at","resolved_by","created_at","updated_at"],"title":"CommentOut"},"CommentPatch":{"properties":{"body":{"type":"string","maxLength":10000,"minLength":1,"title":"Body"}},"type":"object","required":["body"],"title":"CommentPatch"},"ConfigOut":{"properties":{"env":{"type":"string","title":"Env"},"peer":{"type":"string","title":"Peer"},"enabled":{"type":"boolean","title":"Enabled"},"console_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Console Url"},"runs":{"items":{"$ref":"#/components/schemas/engine__api__env_copy__RunOut"},"type":"array","title":"Runs"}},"type":"object","required":["env","peer","enabled","console_url","runs"],"title":"ConfigOut"},"ControlIn":{"properties":{"action":{"type":"string","enum":["pause","resume","cancel","retry","increase_budget"],"title":"Action"},"task_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Task Id"},"budget_usd":{"anyOf":[{"type":"number","exclusiveMinimum":0.0},{"type":"null"}],"title":"Budget Usd"}},"additionalProperties":false,"type":"object","required":["action"],"title":"ControlIn"},"CopyDocumentsOut":{"properties":{"playground":{"items":{"$ref":"#/components/schemas/services__policies__playground__DocumentOut"},"type":"array","title":"Playground"},"mine":{"items":{"$ref":"#/components/schemas/services__policies__playground__DocumentOut"},"type":"array","title":"Mine"}},"type":"object","required":["playground","mine"],"title":"CopyDocumentsOut"},"CopyLessonsIn":{"properties":{"from_playground_id":{"type":"string","format":"uuid","title":"From Playground Id"},"keys":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Keys"}},"type":"object","required":["from_playground_id"],"title":"CopyLessonsIn"},"CopyOut":{"properties":{"playground_id":{"type":"string","title":"Playground Id"},"title":{"type":"string","title":"Title"},"scene_id":{"type":"string","title":"Scene Id"},"kind":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Kind"},"fork_version":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Fork Version"},"latest_version":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Latest Version"},"update_available":{"type":"boolean","title":"Update Available"},"whats_new":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Whats New"},"is_owner":{"type":"boolean","title":"Is Owner"},"examples":{"items":{"$ref":"#/components/schemas/ExampleCardOut"},"type":"array","title":"Examples"},"lessons":{"items":{"$ref":"#/components/schemas/LessonCardOut"},"type":"array","title":"Lessons"},"state":{"additionalProperties":true,"type":"object","title":"State"}},"type":"object","required":["playground_id","title","scene_id","kind","fork_version","latest_version","update_available","whats_new","is_owner","examples","lessons","state"],"title":"CopyOut"},"CopyOutIn":{"properties":{"scene_ids":{"items":{"type":"string","format":"uuid"},"type":"array","maxItems":50,"title":"Scene Ids"},"upload_ids":{"items":{"type":"string","format":"uuid"},"type":"array","maxItems":10000,"title":"Upload Ids"}},"type":"object","title":"CopyOutIn"},"CopyReportIn":{"properties":{"title":{"type":"string","maxLength":300,"minLength":1,"title":"Title"},"scenario":{"type":"string","maxLength":50,"minLength":1,"title":"Scenario"},"operation_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Operation Id"}},"type":"object","required":["title","scenario"],"title":"CopyReportIn"},"CopyReportOut":{"properties":{"id":{"type":"string","title":"Id"},"title":{"type":"string","title":"Title"},"scenario":{"type":"string","title":"Scenario"},"example_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Example Key"},"edited":{"type":"boolean","title":"Edited"},"status":{"type":"string","title":"Status"},"updated_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Updated At"}},"type":"object","required":["id","title","scenario","example_key","edited","status","updated_at"],"title":"CopyReportOut"},"CopyRowOut":{"properties":{"scene_id":{"type":"string","title":"Scene Id"},"user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User Id"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"org_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Org Name"},"fork_version":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Fork Version"},"opened_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Opened At"},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created At"},"chats":{"type":"integer","title":"Chats"},"entities":{"type":"integer","title":"Entities"},"spend_usd":{"type":"number","title":"Spend Usd"},"granted":{"type":"boolean","title":"Granted"},"closed_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Closed At"},"archived":{"type":"integer","title":"Archived","default":0},"removed":{"type":"boolean","title":"Removed","default":false}},"type":"object","required":["scene_id","user_id","name","email","org_name","fork_version","opened_at","created_at","chats","entities","spend_usd","granted"],"title":"CopyRowOut"},"CopySceneOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"status":{"type":"string","title":"Status"},"entities":{"type":"integer","title":"Entities"},"maps":{"type":"integer","title":"Maps"},"frames":{"type":"integer","title":"Frames"},"copied_from":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Copied From"}},"type":"object","required":["id","name","status","entities","maps","frames","copied_from"],"title":"CopySceneOut"},"CopyUploadOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"filename":{"type":"string","title":"Filename"},"size_bytes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Size Bytes"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","filename","size_bytes","created_at"],"title":"CopyUploadOut"},"CountOut":{"properties":{"count":{"type":"integer","title":"Count"}},"type":"object","required":["count"],"title":"CountOut"},"CoverageRequest":{"properties":{"start":{"$ref":"#/components/schemas/PathPoint"},"end":{"anyOf":[{"$ref":"#/components/schemas/PathPoint"},{"type":"null"}]},"profile":{"type":"string","title":"Profile","default":"cleaner"},"tool_width_m":{"anyOf":[{"type":"number","maximum":5.0,"exclusiveMinimum":0.0},{"type":"null"}],"title":"Tool Width M"},"overlap":{"anyOf":[{"type":"number","exclusiveMaximum":0.9,"minimum":0.0},{"type":"null"}],"title":"Overlap"},"turn_radius_m":{"anyOf":[{"type":"number","maximum":10.0,"minimum":0.0},{"type":"null"}],"title":"Turn Radius M"},"body":{"anyOf":[{"$ref":"#/components/schemas/PathBodySpec"},{"type":"null"}]},"rooms":{"items":{"type":"string"},"type":"array","title":"Rooms","default":[]},"regions":{"items":{"type":"string"},"type":"array","title":"Regions","default":[]},"around":{"items":{"type":"string"},"type":"array","title":"Around","default":[]},"around_margin_m":{"type":"number","maximum":20.0,"exclusiveMinimum":0.0,"title":"Around Margin M","default":2.0},"exclude":{"items":{"type":"string"},"type":"array","title":"Exclude","default":[]},"direction":{"type":"string","title":"Direction","default":"auto"},"workers":{"type":"integer","maximum":20.0,"minimum":1.0,"title":"Workers","default":1},"work_speed_mps":{"anyOf":[{"type":"number","maximum":10.0,"exclusiveMinimum":0.0},{"type":"null"}],"title":"Work Speed Mps"},"transit_speed_mps":{"anyOf":[{"type":"number","maximum":10.0,"exclusiveMinimum":0.0},{"type":"null"}],"title":"Transit Speed Mps"},"turn_cost_s":{"anyOf":[{"type":"number","maximum":60.0,"minimum":0.0},{"type":"null"}],"title":"Turn Cost S"},"ignore":{"items":{"$ref":"#/components/schemas/IgnoreRef"},"type":"array","title":"Ignore","default":[]},"map_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Map Name"},"optimiser":{"type":"string","title":"Optimiser","default":"auto"},"avatar":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"title":"Avatar"},"avoid_zones":{"items":{"type":"string"},"type":"array","title":"Avoid Zones","default":[]},"max_gradient":{"anyOf":[{"type":"number","maximum":2.0,"minimum":0.0},{"type":"null"}],"title":"Max Gradient"}},"type":"object","required":["start"],"title":"CoverageRequest","description":"A coverage (sweep) route over one level: every aisle and bay the tool\ncan reach, lanes ordered for the least walking. ``start`` as PathPoint;\n``end`` optional. ``profile`` = a body profile (robot catalogue name or\nalias — \"cleaner\", \"scrubber\", \"robot vacuum\", \"Kärcher KIRA B 50\"… — or an\norg custom), with the explicit tool/body/speed fields overriding it."},"CoverageResponse":{"properties":{"reachable":{"type":"boolean","title":"Reachable"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"},"waypoints_m":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Waypoints M","default":[]},"total_distance_m":{"type":"number","title":"Total Distance M","default":0.0},"floor_y_m":{"type":"number","title":"Floor Y M"},"start_m":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Start M"},"end_m":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"End M"},"routes":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Routes","default":[]},"lanes":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Lanes","default":[]},"metrics":{"additionalProperties":true,"type":"object","title":"Metrics","default":{}},"body":{"additionalProperties":true,"type":"object","title":"Body","default":{}},"tool_width_m":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Tool Width M"},"overlap":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Overlap"},"turn_radius_m":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Turn Radius M"},"direction":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Direction"},"speeds":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Speeds"},"notes":{"items":{"type":"string"},"type":"array","title":"Notes","default":[]},"raster":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Raster"},"floorplan":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Floorplan"},"profile":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"},"avatar":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Avatar"},"optimiser":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Optimiser"},"scope":{"items":{"type":"string"},"type":"array","title":"Scope","default":[]},"ignored":{"items":{},"type":"array","title":"Ignored","default":[]},"recipe":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Recipe"},"viewer":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Viewer"},"layouts_applied":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Layouts Applied"},"objects_applied":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Objects Applied"},"features_applied":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Features Applied"},"openings_applied":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Openings Applied"},"zones_applied":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Zones Applied"},"zones_entered":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Zones Entered"}},"type":"object","required":["reachable","floor_y_m"],"title":"CoverageResponse"},"CreateIn":{"properties":{"source_scene_id":{"type":"string","format":"uuid","title":"Source Scene Id"},"title":{"type":"string","maxLength":200,"minLength":1,"title":"Title"},"description":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Description"},"include_reports":{"type":"boolean","title":"Include Reports","default":false},"audience":{"type":"string","pattern":"^(everyone|listed)$","title":"Audience","default":"listed"},"permission_confirmed":{"type":"boolean","title":"Permission Confirmed","default":false}},"type":"object","required":["source_scene_id","title"],"title":"CreateIn"},"DecisionIn":{"properties":{"decision":{"type":"string","pattern":"^(approve|changes)$","title":"Decision"},"note":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Note"}},"type":"object","required":["decision"],"title":"DecisionIn"},"DemoList":{"properties":{"general":{"items":{"$ref":"#/components/schemas/DemoOut"},"type":"array","title":"General"},"org":{"items":{"$ref":"#/components/schemas/DemoOut"},"type":"array","title":"Org"}},"type":"object","required":["general","org"],"title":"DemoList"},"DemoOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"title":{"type":"string","title":"Title"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"duration_s":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Duration S"},"width":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Width"},"height":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Height"},"poster_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Poster Url"}},"type":"object","required":["id","title","description","duration_s","width","height","poster_url"],"title":"DemoOut","description":"What a member sees. Note what is ABSENT: no storage path, no video URL.\nThose are minted per-play by ``/watch-url``."},"DetectionConfig":{"properties":{"score":{"type":"number","maximum":1.0,"minimum":0.0,"title":"Score","default":0.6},"grid_step":{"type":"number","maximum":0.2,"minimum":0.001,"title":"Grid Step","default":0.02},"erode":{"type":"integer","maximum":10.0,"minimum":0.0,"title":"Erode","default":1},"depth_gap_m":{"type":"number","maximum":10.0,"minimum":0.0,"title":"Depth Gap M","default":0.25},"radius":{"type":"number","maximum":5.0,"exclusiveMinimum":0.0,"title":"Radius","default":0.3},"min_points":{"type":"integer","maximum":1000000.0,"minimum":3.0,"title":"Min Points","default":100},"auto_accept":{"type":"boolean","title":"Auto Accept","default":true},"auto_accept_min_confidence":{"type":"number","maximum":1.0,"minimum":0.0,"title":"Auto Accept Min Confidence","default":0.7},"min_confidence":{"type":"number","maximum":1.0,"minimum":0.0,"title":"Min Confidence","default":0}},"additionalProperties":false,"type":"object","title":"DetectionConfig"},"DetectionFound":{"properties":{"name":{"type":"string","maxLength":120,"minLength":1,"title":"Name"},"count":{"type":"integer","minimum":0.0,"title":"Count"},"confidence_mean":{"anyOf":[{"type":"number","maximum":1.0,"minimum":0.0},{"type":"null"}],"title":"Confidence Mean"},"largest_m":{"anyOf":[{"type":"number","minimum":0.0},{"type":"null"}],"title":"Largest M"}},"type":"object","required":["name","count"],"title":"DetectionFound","description":"One label's share of a detection run, as the viewer counted it."},"DetectionResult":{"properties":{"task_id":{"type":"string","maxLength":64,"minLength":1,"title":"Task Id"},"outcome":{"type":"string","enum":["done","cancelled","error"],"title":"Outcome"},"reason":{"anyOf":[{"type":"string","maxLength":300},{"type":"null"}],"title":"Reason"},"run_id":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Run Id"},"frames":{"type":"integer","minimum":0.0,"title":"Frames","default":0},"frames_total":{"type":"integer","minimum":0.0,"title":"Frames Total","default":0},"masks":{"type":"integer","minimum":0.0,"title":"Masks","default":0},"total":{"type":"integer","minimum":0.0,"title":"Total","default":0},"found":{"items":{"$ref":"#/components/schemas/DetectionFound"},"type":"array","maxItems":50,"title":"Found"},"replaced_unsaved":{"type":"integer","minimum":0.0,"title":"Replaced Unsaved","default":0},"duplicates":{"type":"integer","minimum":0.0,"title":"Duplicates","default":0},"grounded":{"type":"integer","minimum":0.0,"title":"Grounded","default":0}},"type":"object","required":["task_id","outcome"],"title":"DetectionResult","description":"A detect_objects run the viewer executed (segment → lift → cluster &\nfit) — the boxes stay UNSAVED in the viewer's review strip; only the\ncounts come back here."},"DirectoryEntry":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"email":{"type":"string","title":"Email"},"role":{"type":"string","title":"Role"}},"type":"object","required":["id","name","email","role"],"title":"DirectoryEntry","description":"What one member may know about another: enough to pick them, no more.\nDeliberately no ``is_staff`` and no activity — those are the admin's view."},"DirectoryVisibilityIn":{"properties":{"user_ids":{"items":{"type":"string","format":"uuid"},"type":"array","maxItems":500,"minItems":1,"title":"User Ids"},"visible":{"type":"boolean","title":"Visible"}},"type":"object","required":["user_ids","visible"],"title":"DirectoryVisibilityIn"},"DispatchReceipt":{"properties":{"task_id":{"type":"string","maxLength":64,"minLength":1,"title":"Task Id"},"kind":{"type":"string","enum":["look_around","move_camera","navigation","measure","detect"],"title":"Kind"},"phase":{"anyOf":[{"type":"string","enum":["preview","commit","discard"]},{"type":"null"}],"title":"Phase"},"capture":{"type":"boolean","title":"Capture","default":true}},"type":"object","required":["task_id","kind"],"title":"DispatchReceipt","description":"One accepted camera dispatch, persisted on the assistant turn that made\nit (ChatMessage.meta.camera_dispatches) and resent with later requests."},"DocumentCreate":{"properties":{"kind":{"type":"string","pattern":"^(site_survey|scope|reserve|loss_report)$","title":"Kind"},"title":{"anyOf":[{"type":"string","maxLength":300,"minLength":1},{"type":"null"}],"title":"Title"},"scene_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Scene Id"}},"type":"object","required":["kind"],"title":"DocumentCreate"},"DocumentIn":{"properties":{"kind":{"type":"string","pattern":"^(site_plan|work_instruction|robot_proposal)$","title":"Kind"},"title":{"anyOf":[{"type":"string","maxLength":300},{"type":"null"}],"title":"Title"},"task_key":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"title":"Task Key"}},"type":"object","required":["kind"],"title":"DocumentIn"},"DocumentSourceOut":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"doc_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Doc Type"},"org_name":{"type":"string","title":"Org Name"},"project_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Project Name"},"is_plenex":{"type":"boolean","title":"Is Plenex"}},"type":"object","required":["id","name","doc_type","org_name","project_name","is_plenex"],"title":"DocumentSourceOut"},"EntitlementsOut":{"properties":{"plan_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Plan Code"},"core_visible":{"type":"boolean","title":"Core Visible"},"apps":{"items":{"$ref":"#/components/schemas/AppEntitlementOut"},"type":"array","title":"Apps"},"limits":{"additionalProperties":true,"type":"object","title":"Limits"}},"type":"object","required":["plan_code","core_visible","apps","limits"],"title":"EntitlementsOut"},"EntityBatchDelete":{"properties":{"ids":{"items":{"type":"string"},"type":"array","maxItems":500,"minItems":1,"title":"Ids"}},"type":"object","required":["ids"],"title":"EntityBatchDelete"},"EntityCreate":{"properties":{"entity_type":{"type":"string","pattern":"^drawing$","title":"Entity Type"},"draft":{"additionalProperties":true,"type":"object","title":"Draft"},"id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Id"}},"type":"object","required":["entity_type","draft"],"title":"EntityCreate"},"EntityMergeIn":{"properties":{"ids":{"items":{"type":"string"},"type":"array","maxItems":50,"minItems":2,"title":"Ids"},"mode":{"type":"string","pattern":"^(auto|points|hull)$","title":"Mode","default":"auto"},"reason":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Reason"},"expected_entity_revisions":{"anyOf":[{"additionalProperties":{"type":"string"},"type":"object"},{"type":"null"}],"title":"Expected Entity Revisions"}},"type":"object","required":["ids"],"title":"EntityMergeIn","description":"Merge objects (auto/points/hull) or evidence-backed pins (auto only).\n\nPins retain the first ID/position and require a reason and every source token.\nBoth paths share the agent's merge_entities service."},"EntityPatch":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":200,"minLength":1},{"type":"null"}],"title":"Name"},"note":{"anyOf":[{"type":"string","maxLength":4000},{"type":"null"}],"title":"Note"},"category":{"anyOf":[{"type":"string","maxLength":50},{"type":"null"}],"title":"Category"},"status":{"anyOf":[{"type":"string","pattern":"^(open|resolved|disputed|retracted)$"},{"type":"null"}],"title":"Status"},"claim":{"anyOf":[{"$ref":"#/components/schemas/engine__api__entities__ClaimIn"},{"type":"null"}]},"confirm":{"type":"boolean","title":"Confirm","default":false},"expected_revision":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Expected Revision"},"feature":{"anyOf":[{"type":"string","maxLength":50},{"type":"null"}],"title":"Feature"}},"type":"object","title":"EntityPatch","description":"Rename ANY entity (``name``); for a scene NOTE (shared knowledge) also\nedit the statement/claim, set its status (Incorrect = ``disputed``,\nwithdraw = ``retracted``), or record a member confirmation (Correct =\n``confirm``) — the same revision-checked edit the agent's update-by-id\npath uses (engine/api/knowledge.update_claim). On a PROPOSED tag,\n``confirm`` accepts it (EntityService.confirm, the agent's\nrename_entity(confirm=True))."},"EntityUnmergeIn":{"properties":{"reason":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Reason"},"expected_entity_revision":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Expected Entity Revision"}},"type":"object","title":"EntityUnmergeIn"},"EventIn":{"properties":{"kind":{"type":"string","maxLength":40,"title":"Kind"},"lesson_key":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Lesson Key"},"data":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Data"}},"type":"object","required":["kind"],"title":"EventIn"},"ExampleCardOut":{"properties":{"key":{"type":"string","title":"Key"},"title":{"type":"string","title":"Title"},"steps":{"type":"integer","title":"Steps"}},"type":"object","required":["key","title","steps"],"title":"ExampleCardOut"},"ExamplePatchIn":{"properties":{"title":{"anyOf":[{"type":"string","maxLength":200,"minLength":1},{"type":"null"}],"title":"Title"},"steps":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"title":"Steps"}},"type":"object","title":"ExamplePatchIn"},"ExampleReportOut":{"properties":{"report_id":{"type":"string","title":"Report Id"},"example_key":{"type":"string","title":"Example Key"},"title":{"type":"string","title":"Title"},"scenario":{"type":"string","title":"Scenario"},"updated_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Updated At"}},"type":"object","required":["report_id","example_key","title","scenario","updated_at"],"title":"ExampleReportOut"},"ExportIn":{"properties":{"format":{"type":"string","enum":["pdf","docx"],"title":"Format"},"html":{"type":"string","minLength":1,"title":"Html"}},"type":"object","required":["format","html"],"title":"ExportIn"},"FileCreate":{"properties":{"filename":{"type":"string","maxLength":500,"minLength":1,"title":"Filename"},"content_type":{"type":"string","maxLength":200,"title":"Content Type","default":"application/octet-stream"},"size_bytes":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Size Bytes"},"multipart":{"type":"boolean","title":"Multipart","default":false}},"type":"object","required":["filename"],"title":"FileCreate"},"FileCreated":{"properties":{"file_id":{"type":"string","format":"uuid","title":"File Id"},"upload_url":{"type":"string","title":"Upload Url"},"storage_path":{"type":"string","title":"Storage Path"},"multipart":{"type":"boolean","title":"Multipart","default":false}},"type":"object","required":["file_id","upload_url","storage_path"],"title":"FileCreated"},"FileOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"filename":{"type":"string","title":"Filename"},"content_type":{"type":"string","title":"Content Type"},"size_bytes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Size Bytes"},"status":{"type":"string","title":"Status"},"kind":{"type":"string","title":"Kind","default":"upload"},"owner":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Owner"},"scene_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Scene Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"download_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Download Url"}},"type":"object","required":["id","filename","content_type","size_bytes","status","created_at"],"title":"FileOut"},"FileRename":{"properties":{"filename":{"anyOf":[{"type":"string","maxLength":500,"minLength":1},{"type":"null"}],"title":"Filename"},"owner":{"anyOf":[{"type":"string","enum":["customer","plenex"]},{"type":"null"}],"title":"Owner"}},"type":"object","title":"FileRename"},"Finding":{"properties":{"title":{"type":"string","title":"Title","default":""},"severity":{"type":"string","title":"Severity","default":""},"observation":{"type":"string","title":"Observation","default":""},"recommendation_hint":{"type":"string","title":"Recommendation Hint","default":""}},"type":"object","title":"Finding"},"FloorTypeProposeIn":{"properties":{"map_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Map Id"},"zones":{"items":{"type":"string"},"type":"array","title":"Zones","default":[]},"redo":{"type":"boolean","title":"Redo","default":false}},"type":"object","title":"FloorTypeProposeIn"},"FloorplansConfig":{"properties":{"cell_m":{"type":"number","maximum":10.0,"exclusiveMinimum":0.0,"title":"Cell M","default":0.2},"headroom_m":{"type":"number","maximum":10.0,"exclusiveMinimum":0.0,"title":"Headroom M","default":1.5},"clear_zone_m":{"type":"number","maximum":20.0,"minimum":0.0,"title":"Clear Zone M","default":1.5},"ceiling_min_m":{"anyOf":[{"type":"number","maximum":50.0,"exclusiveMinimum":0.0},{"type":"null"}],"title":"Ceiling Min M"},"every_level":{"type":"boolean","title":"Every Level","default":true}},"additionalProperties":false,"type":"object","title":"FloorplansConfig"},"FlowTimeline":{"properties":{"v":{"type":"integer","maximum":100.0,"minimum":1.0,"title":"V"},"first_text_ms":{"anyOf":[{"type":"integer","maximum":86400000.0,"minimum":0.0},{"type":"null"}],"title":"First Text Ms"},"steps":{"items":{"$ref":"#/components/schemas/TimelineStep"},"type":"array","maxItems":300,"title":"Steps"}},"type":"object","required":["v"],"title":"FlowTimeline","description":"Where a chat flow's time went: browser steps and each agent call."},"FolderIn":{"properties":{"path":{"type":"string","maxLength":500,"minLength":1,"title":"Path"}},"type":"object","required":["path"],"title":"FolderIn"},"FolderOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"path":{"type":"string","title":"Path"},"document_count":{"type":"integer","title":"Document Count"}},"type":"object","required":["id","path","document_count"],"title":"FolderOut"},"Fonts":{"properties":{"body":{"anyOf":[{"type":"string","maxLength":60,"pattern":"^[\\w ,\\-]+$"},{"type":"null"}],"title":"Body"},"heading":{"anyOf":[{"type":"string","maxLength":60,"pattern":"^[\\w ,\\-]+$"},{"type":"null"}],"title":"Heading"}},"additionalProperties":false,"type":"object","title":"Fonts"},"FrameIn":{"properties":{"kind":{"type":"string","title":"Kind"},"frame_key":{"type":"string","maxLength":100,"minLength":1,"title":"Frame Key"},"seq":{"type":"integer","title":"Seq","default":0},"image":{"type":"string","minLength":1,"title":"Image"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["kind","frame_key","image"],"title":"FrameIn"},"FrameOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"kind":{"type":"string","title":"Kind"},"frame_key":{"type":"string","title":"Frame Key"},"seq":{"type":"integer","title":"Seq"},"meta":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Meta"},"image_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Image Url"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"pano_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pano Url"},"caption":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Caption"},"corrections":{"items":{"type":"string"},"type":"array","title":"Corrections"}},"type":"object","required":["id","kind","frame_key","seq","meta","image_url","created_at"],"title":"FrameOut"},"FramesConfig":{"properties":{"interval_m":{"type":"number","maximum":100.0,"exclusiveMinimum":0.0,"title":"Interval M","default":2.5},"selection":{"type":"string","enum":["spacing","coverage"],"title":"Selection","default":"spacing"},"coverage_target":{"anyOf":[{"type":"number","maximum":1.0,"exclusiveMinimum":0.0},{"type":"null"}],"title":"Coverage Target"},"min_object_m":{"type":"number","maximum":5.0,"exclusiveMinimum":0.0,"title":"Min Object M","default":0.3},"min_object_px":{"type":"number","maximum":1000.0,"exclusiveMinimum":0.0,"title":"Min Object Px","default":32},"fov":{"type":"number","maximum":130.0,"minimum":40.0,"title":"Fov","default":100},"aspect":{"type":"string","enum":["1:1","3:2","16:9"],"title":"Aspect","default":"1:1"},"keyframes":{"type":"integer","maximum":1000.0,"minimum":1.0,"title":"Keyframes","default":40},"plain_weight":{"type":"number","maximum":1.0,"minimum":0.0,"title":"Plain Weight","default":0.25}},"additionalProperties":false,"type":"object","title":"FramesConfig"},"FramesIn":{"properties":{"frames":{"items":{"$ref":"#/components/schemas/FrameIn"},"type":"array","title":"Frames"},"replace_kinds":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Replace Kinds"}},"type":"object","title":"FramesIn"},"FromCatalogIn":{"properties":{"catalog_id":{"type":"string","maxLength":80,"minLength":1,"title":"Catalog Id"},"count":{"type":"integer","maximum":99.0,"minimum":1.0,"title":"Count","default":1},"cost":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Cost"}},"type":"object","required":["catalog_id"],"title":"FromCatalogIn"},"FromPreviewIn":{"properties":{"report_id":{"type":"string","format":"uuid","title":"Report Id"}},"type":"object","required":["report_id"],"title":"FromPreviewIn"},"GenerationActivityIn":{"properties":{"duration_ms":{"type":"integer","maximum":86400000.0,"minimum":0.0,"title":"Duration Ms"},"started_at":{"type":"string","format":"date-time","title":"Started At"},"completed_at":{"type":"string","format":"date-time","title":"Completed At"},"model":{"anyOf":[{"type":"string","maxLength":80},{"type":"null"}],"title":"Model"},"reasoning_model":{"anyOf":[{"type":"string","maxLength":80},{"type":"null"}],"title":"Reasoning Model"},"used_reasoning":{"type":"boolean","title":"Used Reasoning","default":false},"tool_call_count":{"type":"integer","maximum":10000.0,"minimum":0.0,"title":"Tool Call Count","default":0},"chat_session_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Chat Session Id"}},"type":"object","required":["duration_ms","started_at","completed_at"],"title":"GenerationActivityIn"},"GrantsIn":{"properties":{"org_ids":{"items":{"type":"string","format":"uuid"},"type":"array","title":"Org Ids"},"user_ids":{"items":{"type":"string","format":"uuid"},"type":"array","title":"User Ids"},"emails":{"items":{"type":"string"},"type":"array","title":"Emails"}},"type":"object","title":"GrantsIn"},"GroundBox":{"properties":{"label":{"type":"string","maxLength":200,"minLength":1,"title":"Label"},"u0":{"type":"number","maximum":1.0,"minimum":0.0,"title":"U0"},"v0":{"type":"number","maximum":1.0,"minimum":0.0,"title":"V0"},"u1":{"type":"number","maximum":1.0,"minimum":0.0,"title":"U1"},"v1":{"type":"number","maximum":1.0,"minimum":0.0,"title":"V1"}},"additionalProperties":false,"type":"object","required":["label","u0","v0","u1","v1"],"title":"GroundBox"},"GroundCaptureIn":{"properties":{"frame_key":{"type":"string","minLength":1,"title":"Frame Key"},"labels":{"items":{"type":"string"},"type":"array","maxItems":4,"title":"Labels"},"boxes":{"items":{"$ref":"#/components/schemas/GroundBox"},"type":"array","maxItems":20,"title":"Boxes"}},"type":"object","required":["frame_key"],"title":"GroundCaptureIn"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"Heading":{"properties":{"size_pt":{"anyOf":[{"type":"number","maximum":72.0,"minimum":7.0},{"type":"null"}],"title":"Size Pt"},"color":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Color"},"bold":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Bold"}},"additionalProperties":false,"type":"object","title":"Heading"},"Headings":{"properties":{"h1":{"anyOf":[{"$ref":"#/components/schemas/Heading"},{"type":"null"}]},"h2":{"anyOf":[{"$ref":"#/components/schemas/Heading"},{"type":"null"}]},"h3":{"anyOf":[{"$ref":"#/components/schemas/Heading"},{"type":"null"}]}},"additionalProperties":false,"type":"object","title":"Headings"},"HealthIn":{"properties":{"lessons":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"title":"Lessons"}},"type":"object","title":"HealthIn"},"HistoryEntry":{"properties":{"at":{"type":"string","format":"date-time","title":"At"},"event":{"type":"string","title":"Event"},"actor_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Actor Name"},"subject_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subject Name"},"details":{"additionalProperties":true,"type":"object","title":"Details"}},"type":"object","required":["at","event","actor_name","details"],"title":"HistoryEntry"},"HistoryIn":{"properties":{"step_index":{"type":"integer","minimum":0.0,"title":"Step Index"},"executed":{"additionalProperties":true,"type":"object","title":"Executed"},"visibility":{"anyOf":[{"type":"string","maxLength":12},{"type":"null"}],"title":"Visibility"},"assessment":{"anyOf":[{"type":"string","maxLength":400},{"type":"null"}],"title":"Assessment"},"score":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Score"},"note":{"anyOf":[{"type":"string","maxLength":300},{"type":"null"}],"title":"Note"}},"type":"object","required":["step_index"],"title":"HistoryIn"},"HistoryItem":{"properties":{"id":{"type":"string","title":"Id"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"archived":{"type":"boolean","title":"Archived"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"},"at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"At"},"detail":{"type":"string","title":"Detail"}},"type":"object","required":["id","title","archived","reason","at","detail"],"title":"HistoryItem"},"HistoryOut":{"properties":{"chats":{"items":{"$ref":"#/components/schemas/HistoryItem"},"type":"array","title":"Chats"},"reports":{"items":{"$ref":"#/components/schemas/HistoryItem"},"type":"array","title":"Reports"}},"type":"object","required":["chats","reports"],"title":"HistoryOut"},"HomeCameraIn":{"properties":{"position":{"items":{"type":"number"},"type":"array","maxItems":3,"minItems":3,"title":"Position"},"quaternion":{"items":{"type":"number"},"type":"array","maxItems":4,"minItems":4,"title":"Quaternion"}},"type":"object","required":["position","quaternion"],"title":"HomeCameraIn"},"IconUpload":{"properties":{"scene_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Scene Id"},"image":{"type":"string","minLength":1,"title":"Image"}},"type":"object","required":["image"],"title":"IconUpload"},"IgnoreRef":{"properties":{"object":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Object"},"wall":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Wall"}},"type":"object","title":"IgnoreRef"},"ImageUrlsIn":{"properties":{"file_ids":{"items":{"type":"string","format":"uuid"},"type":"array","maxItems":200,"minItems":1,"title":"File Ids"}},"type":"object","required":["file_ids"],"title":"ImageUrlsIn"},"ImagesIn":{"properties":{"images":{"items":{"$ref":"#/components/schemas/services__reports__router__ImageIn"},"type":"array","maxItems":40,"minItems":1,"title":"Images"}},"type":"object","required":["images"],"title":"ImagesIn"},"ImpersonateStart":{"properties":{"target_org_id":{"type":"string","format":"uuid","title":"Target Org Id"},"reason":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Reason"}},"type":"object","required":["target_org_id"],"title":"ImpersonateStart"},"ImportChatIn":{"properties":{"scene_id":{"type":"string","format":"uuid","title":"Scene Id"},"mode":{"type":"string","pattern":"^(adapt|summary|transcript)$","title":"Mode","default":"adapt"},"max_turns":{"type":"integer","maximum":500.0,"minimum":1.0,"title":"Max Turns","default":100},"instruction":{"type":"string","title":"Instruction","default":""}},"type":"object","required":["scene_id"],"title":"ImportChatIn"},"ImportDocumentIn":{"properties":{"document_id":{"type":"string","format":"uuid","title":"Document Id"},"permission_confirmed":{"type":"boolean","title":"Permission Confirmed","default":false}},"type":"object","required":["document_id"],"title":"ImportDocumentIn"},"ImportReportIn":{"properties":{"report_id":{"type":"string","format":"uuid","title":"Report Id"},"permission_confirmed":{"type":"boolean","title":"Permission Confirmed","default":false}},"type":"object","required":["report_id"],"title":"ImportReportIn"},"IncomingImportIn":{"properties":{"confirm":{"type":"string","title":"Confirm","default":""}},"type":"object","title":"IncomingImportIn"},"InspectFrame":{"properties":{"file_id":{"type":"string","format":"uuid","title":"File Id"},"label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Label"}},"type":"object","required":["file_id"],"title":"InspectFrame"},"InspectResult":{"properties":{"name":{"type":"string","title":"Name"},"analysis":{"type":"string","title":"Analysis"}},"type":"object","required":["name","analysis"],"title":"InspectResult"},"InspectTarget":{"properties":{"name":{"type":"string","minLength":1,"title":"Name"},"image_b64":{"type":"string","minLength":1,"title":"Image B64"}},"type":"object","required":["name","image_b64"],"title":"InspectTarget"},"InspectionIn":{"properties":{"frame_key":{"type":"string","maxLength":100,"minLength":1,"title":"Frame Key"},"question":{"type":"string","minLength":1,"title":"Question"},"findings":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Findings"},"file_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"File Id"}},"type":"object","required":["frame_key","question"],"title":"InspectionIn"},"InspectionsIn":{"properties":{"inspections":{"items":{"$ref":"#/components/schemas/InspectionIn"},"type":"array","minItems":1,"title":"Inspections"}},"type":"object","required":["inspections"],"title":"InspectionsIn"},"InviteCreate":{"properties":{"email":{"type":"string","maxLength":320,"minLength":3,"title":"Email"},"role":{"type":"string","title":"Role","default":"member"}},"type":"object","required":["email"],"title":"InviteCreate"},"InviteCreated":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"email":{"type":"string","title":"Email"},"role":{"type":"string","title":"Role"},"status":{"type":"string","title":"Status"},"expires_at":{"type":"string","format":"date-time","title":"Expires At"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"accepted_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Accepted At"},"token":{"type":"string","title":"Token"},"accept_path":{"type":"string","title":"Accept Path"},"accept_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Accept Url"},"emailed":{"type":"boolean","title":"Emailed"}},"type":"object","required":["id","email","role","status","expires_at","created_at","token","accept_path","accept_url","emailed"],"title":"InviteCreated"},"InviteLookup":{"properties":{"email":{"type":"string","title":"Email"},"org_name":{"type":"string","title":"Org Name"},"role":{"type":"string","title":"Role"},"status":{"type":"string","title":"Status"},"grant_labels":{"items":{"type":"string"},"type":"array","title":"Grant Labels"}},"type":"object","required":["email","org_name","role","status"],"title":"InviteLookup"},"InviteOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"email":{"type":"string","title":"Email"},"role":{"type":"string","title":"Role"},"status":{"type":"string","title":"Status"},"expires_at":{"type":"string","format":"date-time","title":"Expires At"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"accepted_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Accepted At"}},"type":"object","required":["id","email","role","status","expires_at","created_at"],"title":"InviteOut"},"InviteRenew":{"properties":{"email":{"type":"boolean","title":"Email","default":true}},"type":"object","title":"InviteRenew"},"InvokeIn":{"properties":{"args":{"additionalProperties":true,"type":"object","title":"Args","default":{}},"operation_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Operation Id"},"current_view_image":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Current View Image"},"view_pose":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"View Pose"},"app":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"App"}},"type":"object","title":"InvokeIn"},"InvokeOut":{"properties":{"result":{"additionalProperties":true,"type":"object","title":"Result"},"viewer_command":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Viewer Command"}},"type":"object","required":["result"],"title":"InvokeOut"},"ItemIn":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Name"},"kind":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"title":"Kind"},"vendor":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Vendor"},"aliases":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Aliases"},"width_m":{"anyOf":[{"type":"number","maximum":200.0,"exclusiveMinimum":0.0},{"type":"null"}],"title":"Width M"},"depth_m":{"anyOf":[{"type":"number","maximum":200.0,"exclusiveMinimum":0.0},{"type":"null"}],"title":"Depth M"},"height_m":{"anyOf":[{"type":"number","maximum":200.0,"exclusiveMinimum":0.0},{"type":"null"}],"title":"Height M"},"spec":{"anyOf":[{"items":{"$ref":"#/components/schemas/SpecRow"},"type":"array"},{"type":"null"}],"title":"Spec"},"documents":{"anyOf":[{"items":{"type":"string","format":"uuid"},"type":"array"},{"type":"null"}],"title":"Documents"},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note"}},"type":"object","title":"ItemIn"},"JobOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"kind":{"type":"string","title":"Kind"},"status":{"type":"string","title":"Status"},"progress":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Progress"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"}},"type":"object","required":["id","kind","status","progress","error"],"title":"JobOut"},"JoinRequestIn":{"properties":{"name":{"type":"string","maxLength":200,"minLength":1,"title":"Name"},"email":{"type":"string","maxLength":320,"minLength":3,"title":"Email"},"organisation":{"type":"string","maxLength":200,"minLength":1,"title":"Organisation"}},"type":"object","required":["name","email","organisation"],"title":"JoinRequestIn"},"JoinRequestOut":{"properties":{"sent":{"type":"boolean","title":"Sent"}},"type":"object","required":["sent"],"title":"JoinRequestOut"},"LastMoveIn":{"properties":{"executed":{"additionalProperties":true,"type":"object","title":"Executed"},"note":{"anyOf":[{"type":"string","maxLength":300},{"type":"null"}],"title":"Note"}},"type":"object","title":"LastMoveIn","description":"The move that produced THIS capture (executed view + what failed on the way)."},"LayoutBoxesPatch":{"properties":{"boxes":{"items":{"additionalProperties":true,"type":"object"},"type":"array","minItems":1,"title":"Boxes"},"keep_clear":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"title":"Keep Clear"}},"type":"object","required":["boxes"],"title":"LayoutBoxesPatch","description":"Full-array replace (never deltas — coherent under concurrent edits).\nBox/keep-clear dicts are validated structurally by ``layout_edit``; the\npydantic layer stays permissive so the 422 messages come from one place."},"LayoutSaveIn":{"properties":{"spec":{"additionalProperties":true,"type":"object","title":"Spec"},"name":{"type":"string","maxLength":200,"title":"Name","default":""},"obstacle":{"type":"boolean","title":"Obstacle","default":false}},"type":"object","required":["spec"],"title":"LayoutSaveIn","description":"Save a live ``plan_layout`` preview (the viewer's 💾). ``spec`` is the\npreview payload's directive echo; a blank ``name`` auto-names it."},"LessonCardOut":{"properties":{"key":{"type":"string","title":"Key"},"title":{"type":"string","title":"Title"},"minutes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Minutes"}},"type":"object","required":["key","title"],"title":"LessonCardOut"},"LevelEdit":{"properties":{"level":{"type":"string","maxLength":200,"title":"Level","default":""},"floor_y_m":{"anyOf":[{"type":"number","maximum":10000.0,"minimum":-10000.0},{"type":"null"}],"title":"Floor Y M"},"under_m":{"anyOf":[{"items":{"type":"number"},"type":"array","maxItems":3,"minItems":3},{"type":"null"}],"title":"Under M"},"name":{"type":"string","maxLength":100,"title":"Name","default":""},"status":{"type":"string","pattern":"^(|floor|rejected)$","title":"Status","default":""},"confirm":{"type":"boolean","title":"Confirm","default":false}},"type":"object","title":"LevelEdit"},"LevelIn":{"properties":{"permission":{"type":"string","pattern":"^(viewer|commenter|editor|owner)$","title":"Permission"}},"type":"object","required":["permission"],"title":"LevelIn"},"LevelLinkCreate":{"properties":{"name":{"type":"string","maxLength":200,"minLength":1,"title":"Name"},"kind":{"type":"string","pattern":"^(stair|lift|ramp|door)$","title":"Kind","default":"lift"},"at":{"$ref":"#/components/schemas/Vec3In"},"to":{"anyOf":[{"$ref":"#/components/schemas/Vec3In"},{"type":"null"}]},"floors":{"items":{"type":"string"},"type":"array","title":"Floors","default":[]},"width_m":{"anyOf":[{"type":"number","maximum":20.0,"exclusiveMinimum":0.0},{"type":"null"}],"title":"Width M"},"travel_m":{"anyOf":[{"type":"number","maximum":200.0,"exclusiveMinimum":0.0},{"type":"null"}],"title":"Travel M"},"wait_s":{"anyOf":[{"type":"number","maximum":600.0,"minimum":0.0},{"type":"null"}],"title":"Wait S"},"speed_mps":{"anyOf":[{"type":"number","maximum":10.0,"exclusiveMinimum":0.0},{"type":"null"}],"title":"Speed Mps"}},"type":"object","required":["name","at"],"title":"LevelLinkCreate","description":"A level link from a position rather than two clicked ends — the REST\ntwin of the ``connect_levels`` tool (plan_service.connect_levels). ``at``\n/ ``to`` are RAW scene units. Without ``to`` the link is vertical: one\nstop at ``at``'s position on every floor in ``floors`` (floorplan names;\ndefault every floor)."},"LevelLinkIn":{"properties":{"kind":{"type":"string","pattern":"^(stair|lift|ramp|door)$","title":"Kind","default":"stair"},"width_m":{"anyOf":[{"type":"number","maximum":20.0,"exclusiveMinimum":0.0},{"type":"null"}],"title":"Width M"},"width_source":{"type":"string","pattern":"^(measured|geometric|typed)$","title":"Width Source","default":"typed"},"travel_m":{"anyOf":[{"type":"number","maximum":200.0,"exclusiveMinimum":0.0},{"type":"null"}],"title":"Travel M"},"travel_source":{"type":"string","pattern":"^(draped|geometric|typed)$","title":"Travel Source","default":"typed"},"confidence":{"anyOf":[{"type":"number","maximum":1.0,"minimum":0.0},{"type":"null"}],"title":"Confidence"},"verified_by":{"type":"string","pattern":"^(vlm|user)$","title":"Verified By","default":"user"},"candidate_id":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Candidate Id"},"steps":{"anyOf":[{"type":"integer","maximum":200.0,"minimum":0.0},{"type":"null"}],"title":"Steps"},"wait_s":{"anyOf":[{"type":"number","maximum":600.0,"minimum":0.0},{"type":"null"}],"title":"Wait S"},"speed_mps":{"anyOf":[{"type":"number","maximum":10.0,"exclusiveMinimum":0.0},{"type":"null"}],"title":"Speed Mps"}},"type":"object","title":"LevelLinkIn"},"LevelLinkVerifyIn":{"properties":{"candidate_id":{"type":"string","maxLength":64,"minLength":1,"title":"Candidate Id"},"kind_guess":{"type":"string","enum":["stair","lift","ramp"],"title":"Kind Guess","default":"stair"},"image_b64":{"type":"string","minLength":1,"title":"Image B64"},"model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model"}},"type":"object","required":["candidate_id","image_b64"],"title":"LevelLinkVerifyIn"},"LevelLinkVerifyOut":{"properties":{"candidate_id":{"type":"string","title":"Candidate Id"},"kind":{"type":"string","enum":["stair","lift","ramp","none"],"title":"Kind"},"direction":{"type":"string","enum":["up_away","up_toward","unclear"],"title":"Direction"},"confidence":{"type":"number","title":"Confidence"},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note"}},"type":"object","required":["candidate_id","kind","direction","confidence"],"title":"LevelLinkVerifyOut"},"LlmDefaultsIn":{"properties":{"model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model"},"reasoning_model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reasoning Model"},"complex_model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Complex Model"},"complex_effort":{"anyOf":[{"type":"string","enum":["low","medium","high","xhigh","max"]},{"type":"null"}],"title":"Complex Effort"},"vision_model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Vision Model"},"temperature":{"anyOf":[{"type":"number","maximum":2.0,"minimum":0.0},{"type":"null"}],"title":"Temperature"},"chat_history_max_tokens":{"anyOf":[{"type":"integer","maximum":2000000.0,"minimum":0.0},{"type":"null"}],"title":"Chat History Max Tokens"},"effort":{"anyOf":[{"type":"string","enum":["low","medium","high","xhigh","max"]},{"type":"null"}],"title":"Effort"},"thinking_level":{"anyOf":[{"type":"string","enum":["low","medium","high"]},{"type":"null"}],"title":"Thinking Level"}},"type":"object","title":"LlmDefaultsIn","description":"Staff-set org LLM defaults. null = fall through to the advertised model /\nmodel default. model/reasoning_model are validated against the live allowed\nlist on write (a stale pick is still tolerated at read time)."},"LocatePointsIn":{"properties":{"image_b64":{"type":"string","minLength":1,"title":"Image B64"},"features":{"items":{"type":"string"},"type":"array","maxItems":4,"minItems":1,"title":"Features"},"photo":{"type":"boolean","title":"Photo","default":false},"model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model"}},"type":"object","required":["image_b64","features"],"title":"LocatePointsIn"},"LocatePointsOut":{"properties":{"points":{"items":{"anyOf":[{"$ref":"#/components/schemas/LocatedPoint"},{"type":"null"}]},"type":"array","title":"Points"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"}},"type":"object","required":["points"],"title":"LocatePointsOut"},"LocatedPoint":{"properties":{"u":{"type":"number","title":"U"},"v":{"type":"number","title":"V"},"label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Label"}},"type":"object","required":["u","v"],"title":"LocatedPoint"},"LodLevel":{"properties":{"level":{"type":"integer","title":"Level"},"url":{"type":"string","title":"Url"},"filename":{"type":"string","title":"Filename"},"file_id":{"type":"string","title":"File Id"},"bytes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Bytes"}},"type":"object","required":["level","url","filename","file_id"],"title":"LodLevel"},"ManageIn":{"properties":{"action":{"type":"string","enum":["describe","share","delete"],"title":"Action"}},"type":"object","required":["action"],"title":"ManageIn"},"MapDuplicate":{"properties":{"name":{"type":"string","maxLength":100,"minLength":1,"title":"Name"}},"type":"object","required":["name"],"title":"MapDuplicate"},"MapGenerateRequest":{"properties":{"name":{"type":"string","maxLength":100,"minLength":1,"title":"Name","default":"Ground floor"},"cell_size_m":{"type":"number","maximum":10.0,"exclusiveMinimum":0.0,"title":"Cell Size M","default":0.2},"min_traversable_height_m":{"type":"number","maximum":10.0,"exclusiveMinimum":0.0,"title":"Min Traversable Height M","default":1.5},"n_samples":{"type":"integer","maximum":5.0,"minimum":1.0,"title":"N Samples","default":5},"floor_noise_margin_m":{"type":"number","maximum":1.0,"minimum":0.0,"title":"Floor Noise Margin M","default":0.02},"floor_y_m":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Floor Y M"},"eye_y_m":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Eye Y M"},"keep_annotations":{"type":"boolean","title":"Keep Annotations","default":true},"clear_ceiling_zone_m":{"type":"number","maximum":20.0,"minimum":0.0,"title":"Clear Ceiling Zone M","default":1.5},"clear_bridge_m":{"type":"number","maximum":5.0,"exclusiveMinimum":0.0,"title":"Clear Bridge M","default":0.35},"ceiling_min_head_m":{"anyOf":[{"type":"number","maximum":50.0,"exclusiveMinimum":0.0},{"type":"null"}],"title":"Ceiling Min Head M"},"slab_only":{"type":"boolean","title":"Slab Only","default":true}},"type":"object","title":"MapGenerateRequest"},"MapOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"use_for_paths":{"type":"boolean","title":"Use For Paths","default":false},"scene_id":{"type":"string","format":"uuid","title":"Scene Id"},"cell_size_m":{"type":"number","title":"Cell Size M"},"origin":{"additionalProperties":true,"type":"object","title":"Origin"},"rows":{"type":"integer","title":"Rows"},"cols":{"type":"integer","title":"Cols"},"floor_y_m":{"type":"number","title":"Floor Y M"},"grid_yaw_deg":{"type":"number","title":"Grid Yaw Deg","default":0.0},"grid":{"items":{},"type":"array","title":"Grid"},"clearance":{"items":{},"type":"array","title":"Clearance"},"ceiling":{"anyOf":[{"items":{},"type":"array"},{"type":"null"}],"title":"Ceiling"},"ceiling_src":{"anyOf":[{"items":{},"type":"array"},{"type":"null"}],"title":"Ceiling Src"},"room_grid":{"anyOf":[{"items":{},"type":"array"},{"type":"null"}],"title":"Room Grid"},"rooms":{"anyOf":[{"items":{},"type":"array"},{"type":"null"}],"title":"Rooms"},"passages":{"anyOf":[{"items":{},"type":"array"},{"type":"null"}],"title":"Passages"},"wall_grid":{"anyOf":[{"items":{},"type":"array"},{"type":"null"}],"title":"Wall Grid"},"walls":{"anyOf":[{"items":{},"type":"array"},{"type":"null"}],"title":"Walls"},"annotations":{"items":{},"type":"array","title":"Annotations"},"labels":{"items":{},"type":"array","title":"Labels","default":[]},"tags":{"items":{},"type":"array","title":"Tags","default":[]},"objects":{"items":{},"type":"array","title":"Objects","default":[]},"params":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Params"},"levels":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Levels","default":[]},"mesh_source_frame":{"type":"string","title":"Mesh Source Frame"},"warnings":{"items":{"type":"string"},"type":"array","title":"Warnings","default":[]},"hidden_entities":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Hidden Entities","default":[]}},"type":"object","required":["id","name","scene_id","cell_size_m","origin","rows","cols","floor_y_m","grid","clearance","room_grid","rooms","passages","annotations","params","mesh_source_frame"],"title":"MapOut"},"MapSummary":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"use_for_paths":{"type":"boolean","title":"Use For Paths","default":false},"floor_y_m":{"type":"number","title":"Floor Y M"},"cell_size_m":{"type":"number","title":"Cell Size M"},"rows":{"type":"integer","title":"Rows"},"cols":{"type":"integer","title":"Cols"},"rooms_count":{"type":"integer","title":"Rooms Count"},"levels":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Levels","default":[]},"computed_at":{"type":"string","format":"date-time","title":"Computed At"},"birdseye":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Birdseye"},"origin":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Origin"},"grid_yaw_deg":{"type":"number","title":"Grid Yaw Deg","default":0.0},"level_moved_to":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Level Moved To"}},"type":"object","required":["id","name","floor_y_m","cell_size_m","rows","cols","rooms_count","computed_at"],"title":"MapSummary","description":"Lightweight map metadata — the /maps list; NO grids (heavy JSON stays on\nthe single-map GET). ``levels`` is the generator's detected floor levels, so\nthe console can offer a \"create floorplan\" button per unmapped level."},"MapUpdate":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":100,"minLength":1},{"type":"null"}],"title":"Name"},"description":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Description"},"use_for_paths":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Use For Paths"}},"type":"object","title":"MapUpdate"},"Margins":{"properties":{"top":{"type":"number","maximum":80.0,"minimum":0.0,"title":"Top"},"right":{"type":"number","maximum":80.0,"minimum":0.0,"title":"Right"},"bottom":{"type":"number","maximum":80.0,"minimum":0.0,"title":"Bottom"},"left":{"type":"number","maximum":80.0,"minimum":0.0,"title":"Left"}},"additionalProperties":false,"type":"object","required":["top","right","bottom","left"],"title":"Margins"},"MeOut":{"properties":{"user_id":{"type":"string","format":"uuid","title":"User Id"},"org_id":{"type":"string","format":"uuid","title":"Org Id"},"org_name":{"type":"string","title":"Org Name"},"email":{"type":"string","title":"Email"},"name":{"type":"string","title":"Name"},"role":{"type":"string","title":"Role"},"scopes":{"items":{"type":"string"},"type":"array","title":"Scopes"},"is_staff":{"type":"boolean","title":"Is Staff"},"orgs":{"items":{"$ref":"#/components/schemas/OrgMembershipOut"},"type":"array","title":"Orgs"},"entitlements":{"$ref":"#/components/schemas/EntitlementsOut"}},"type":"object","required":["user_id","org_id","org_name","email","name","role","scopes","is_staff","orgs","entitlements"],"title":"MeOut"},"MeUpdate":{"properties":{"display_name":{"type":"string","maxLength":200,"minLength":1,"title":"Display Name"}},"type":"object","required":["display_name"],"title":"MeUpdate"},"MeasureFromPixelsResult":{"properties":{"task_id":{"type":"string","maxLength":64,"minLength":1,"title":"Task Id"},"phase":{"type":"string","enum":["preview","commit","discard"],"title":"Phase","default":"preview"},"outcome":{"type":"string","enum":["done","aborted","cancelled","budget_exhausted","error"],"title":"Outcome"},"reason":{"anyOf":[{"type":"string","maxLength":300},{"type":"null"}],"title":"Reason"},"draft_id":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Draft Id"},"draft_revision":{"type":"integer","minimum":0.0,"title":"Draft Revision","default":0},"kind":{"type":"string","maxLength":20,"title":"Kind","default":"distance"},"name":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Name"},"value_units":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Value Units"},"endpoints_units":{"items":{"additionalProperties":true,"type":"object"},"type":"array","maxItems":2,"title":"Endpoints Units"},"provenance":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Provenance"},"validation":{"anyOf":[{"type":"string","enum":["validated","visual_estimate","unverified","rejected"]},{"type":"null"}],"title":"Validation"},"annotation_id":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Annotation Id"},"annotation_name":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Annotation Name"},"capture_refs":{"items":{"$ref":"#/components/schemas/CaptureRef"},"type":"array","maxItems":1,"title":"Capture Refs"}},"type":"object","required":["task_id","outcome"],"title":"MeasureFromPixelsResult"},"MeasurementResult":{"properties":{"description":{"type":"string","title":"Description","default":""},"kind":{"type":"string","title":"Kind","default":""},"value_m":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Value M"},"skipped":{"type":"boolean","title":"Skipped","default":false},"estimate":{"type":"boolean","title":"Estimate","default":false},"flagged_text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Flagged Text"},"section":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Section"},"annotation_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Annotation Name"},"provenance":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provenance"}},"type":"object","title":"MeasurementResult","description":"A guided measurement (request_guided_measurement) the user completed —\nor skipped — in the viewer between turns. Echoes the request's context so\nthe agent can patch the exact flagged passage."},"MeasurementUnits":{"properties":{"length":{"type":"string","enum":["mm","cm","m","ft","ft-in"],"title":"Length","default":"m"},"area":{"type":"string","enum":["m2","ft2"],"title":"Area","default":"m2"},"volume":{"type":"string","enum":["m3","ft3"],"title":"Volume","default":"m3"},"decimals":{"type":"integer","maximum":3.0,"minimum":0.0,"title":"Decimals","default":2},"fraction":{"type":"integer","enum":[1,2,4,8,16],"title":"Fraction","default":8}},"additionalProperties":false,"type":"object","title":"MeasurementUnits"},"MemberAccess":{"properties":{"user_id":{"type":"string","format":"uuid","title":"User Id"},"name":{"type":"string","title":"Name"},"email":{"type":"string","title":"Email"},"org_role":{"type":"string","title":"Org Role"},"default":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Default"},"override":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Override"},"effective":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Effective"},"locked":{"type":"boolean","title":"Locked"},"lock_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lock Reason"},"role_label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Role Label"}},"type":"object","required":["user_id","name","email","org_role","default","override","effective","locked","lock_reason","role_label"],"title":"MemberAccess"},"MemberOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"email":{"type":"string","title":"Email"},"name":{"type":"string","title":"Name"},"role":{"type":"string","title":"Role"},"is_staff":{"type":"boolean","title":"Is Staff"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"last_active_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Active At"},"directory_visible":{"type":"boolean","title":"Directory Visible","default":true}},"type":"object","required":["id","email","name","role","is_staff","created_at"],"title":"MemberOut"},"MeshGenOut":{"properties":{"stations":{"type":"integer","title":"Stations"},"started":{"type":"boolean","title":"Started"}},"type":"object","required":["stations","started"],"title":"MeshGenOut"},"MeshOut":{"properties":{"file_id":{"type":"string","title":"File Id"},"url":{"type":"string","title":"Url"},"filename":{"type":"string","title":"Filename"}},"type":"object","required":["file_id","url","filename"],"title":"MeshOut"},"MessageIn":{"properties":{"role":{"type":"string","title":"Role"},"content":{"type":"string","title":"Content"},"attachment_ids":{"items":{"type":"string","format":"uuid"},"type":"array","maxItems":100,"title":"Attachment Ids"},"images":{"items":{"$ref":"#/components/schemas/engine__api__chat_history__ImageIn"},"type":"array","maxItems":8,"title":"Images"},"claims":{"items":{"$ref":"#/components/schemas/ClaimRef"},"type":"array","maxItems":50,"title":"Claims"},"camera_dispatches":{"items":{"$ref":"#/components/schemas/DispatchReceipt"},"type":"array","maxItems":8,"title":"Camera Dispatches"},"synthetic_kind":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"title":"Synthetic Kind"},"operation_id":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Operation Id"}},"type":"object","required":["role","content"],"title":"MessageIn"},"MessageOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"role":{"type":"string","title":"Role"},"content":{"type":"string","title":"Content"},"cleared_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Cleared At"},"images":{"items":{"$ref":"#/components/schemas/engine__api__chat_history__ImageOut"},"type":"array","title":"Images"},"attachments":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Attachments"},"author":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Author"},"is_mine":{"type":"boolean","title":"Is Mine","default":false},"metadata":{"anyOf":[{"$ref":"#/components/schemas/TurnMetadata"},{"type":"null"}]},"claims":{"items":{"$ref":"#/components/schemas/ClaimRef"},"type":"array","title":"Claims"},"camera_dispatches":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Camera Dispatches"},"synthetic_kind":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Synthetic Kind"},"operation_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Operation Id"}},"type":"object","required":["id","role","content"],"title":"MessageOut"},"MyCopyOut":{"properties":{"scene_id":{"type":"string","title":"Scene Id"},"project_id":{"type":"string","title":"Project Id"},"opened_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Opened At"},"fork_version":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Fork Version"},"update_available":{"type":"boolean","title":"Update Available"},"lessons_done":{"type":"integer","title":"Lessons Done"}},"type":"object","required":["scene_id","project_id","opened_at","fork_version","update_available","lessons_done"],"title":"MyCopyOut"},"MyInviteOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"org_id":{"type":"string","format":"uuid","title":"Org Id"},"org_name":{"type":"string","title":"Org Name"},"role":{"type":"string","title":"Role"},"invited_by_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Invited By Email"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"expires_at":{"type":"string","format":"date-time","title":"Expires At"},"grant_labels":{"items":{"type":"string"},"type":"array","title":"Grant Labels"}},"type":"object","required":["id","org_id","org_name","role","invited_by_email","created_at","expires_at"],"title":"MyInviteOut","description":"A pending invite addressed to the signed-in user — what the in-app prompt\nrenders. No token: this invite is accepted by id."},"NodeScope":{"properties":{"type":{"type":"string","title":"Type"},"node_id":{"type":"string","title":"Node Id"},"attrs":{"additionalProperties":true,"type":"object","title":"Attrs"}},"type":"object","required":["type","node_id","attrs"],"title":"NodeScope"},"NotificationOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"kind":{"type":"string","title":"Kind"},"subject_kind":{"type":"string","title":"Subject Kind"},"subject_id":{"type":"string","format":"uuid","title":"Subject Id"},"actor_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Actor Name"},"org_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Org Name"},"org_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Org Id"},"payload":{"additionalProperties":true,"type":"object","title":"Payload"},"read":{"type":"boolean","title":"Read"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","kind","subject_kind","subject_id","actor_name","org_name","org_id","payload","read","created_at"],"title":"NotificationOut"},"ObjectExtractIn":{"properties":{"pad":{"type":"number","maximum":1.0,"minimum":0.0,"title":"Pad","default":0.05},"max_points":{"type":"integer","maximum":5000000.0,"minimum":1000.0,"title":"Max Points","default":1000000}},"type":"object","title":"ObjectExtractIn"},"ObjectGroupIn":{"properties":{"group":{"type":"string","maxLength":200,"minLength":1,"title":"Group"},"new_name":{"anyOf":[{"type":"string","maxLength":200,"minLength":1},{"type":"null"}],"title":"New Name"}},"type":"object","required":["group"],"title":"ObjectGroupIn","description":"An object group = every object sharing a base name (\"Door\" ← Door 1,\nDoor 2, …); ``new_name`` for a rename (each member keeps its number)."},"ObjectIndexIn":{"properties":{"model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model"}},"type":"object","title":"ObjectIndexIn"},"ObjectIndexOut":{"properties":{"object_index":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Object Index"}},"type":"object","required":["object_index"],"title":"ObjectIndexOut"},"ObjectPointsIn":{"properties":{"points":{"items":{"prefixItems":[{"type":"number"},{"type":"number"},{"type":"number"}],"type":"array","maxItems":3,"minItems":3},"type":"array","maxItems":2000000,"minItems":1,"title":"Points"}},"type":"object","required":["points"],"title":"ObjectPointsIn"},"OpenOut":{"properties":{"scene_id":{"type":"string","title":"Scene Id"},"project_id":{"type":"string","title":"Project Id"},"org_id":{"type":"string","title":"Org Id"},"created":{"type":"boolean","title":"Created"}},"type":"object","required":["scene_id","project_id","org_id","created"],"title":"OpenOut"},"OrgAppIn":{"properties":{"key":{"type":"string","maxLength":40,"minLength":1,"title":"Key"},"enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Enabled"},"features":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Features"},"settings":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Settings"},"clear":{"type":"boolean","title":"Clear","default":false}},"type":"object","required":["key"],"title":"OrgAppIn"},"OrgCreate":{"properties":{"name":{"type":"string","maxLength":200,"minLength":1,"title":"Name"},"owner_email":{"type":"string","maxLength":320,"minLength":3,"title":"Owner Email"}},"type":"object","required":["name","owner_email"],"title":"OrgCreate"},"OrgCreated":{"properties":{"org":{"$ref":"#/components/schemas/engine__api__organisations__OrgOut"},"owner_invite":{"$ref":"#/components/schemas/InviteCreated"}},"type":"object","required":["org","owner_invite"],"title":"OrgCreated"},"OrgEntitlementsIn":{"properties":{"plan_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Plan Code"},"plan_overrides":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Plan Overrides"},"apps":{"items":{"$ref":"#/components/schemas/OrgAppIn"},"type":"array","title":"Apps"},"reason":{"anyOf":[{"type":"string","maxLength":300},{"type":"null"}],"title":"Reason"}},"type":"object","title":"OrgEntitlementsIn"},"OrgEntitlementsOut":{"properties":{"resolved":{"$ref":"#/components/schemas/EntitlementsOut"},"plan_overrides":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Plan Overrides"},"org_apps":{"items":{"$ref":"#/components/schemas/AppEntitlementOut"},"type":"array","title":"Org Apps"}},"type":"object","required":["resolved","plan_overrides","org_apps"],"title":"OrgEntitlementsOut"},"OrgMembershipOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"role":{"type":"string","title":"Role"}},"type":"object","required":["id","name","role"],"title":"OrgMembershipOut"},"OrgPatch":{"properties":{"name":{"type":"string","maxLength":200,"minLength":1,"title":"Name"}},"type":"object","required":["name"],"title":"OrgPatch"},"OrgRename":{"properties":{"name":{"type":"string","maxLength":200,"minLength":1,"title":"Name"}},"type":"object","required":["name"],"title":"OrgRename"},"OrgSettingsIn":{"properties":{"branding":{"additionalProperties":true,"type":"object","title":"Branding"},"rate_card":{"items":{"$ref":"#/components/schemas/RateCardItem"},"type":"array","title":"Rate Card"},"report_defaults":{"additionalProperties":true,"type":"object","title":"Report Defaults"}},"type":"object","title":"OrgSettingsIn"},"OrgSettingsOut":{"properties":{"branding":{"additionalProperties":true,"type":"object","title":"Branding"},"rate_card":{"items":{},"type":"array","title":"Rate Card"},"report_defaults":{"additionalProperties":true,"type":"object","title":"Report Defaults"},"llm_defaults":{"additionalProperties":true,"type":"object","title":"Llm Defaults"}},"type":"object","required":["branding","rate_card","report_defaults","llm_defaults"],"title":"OrgSettingsOut"},"OrgUsage":{"properties":{"org_id":{"type":"string","title":"Org Id"},"org_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Org Name"},"est_cost_usd":{"type":"number","title":"Est Cost Usd"},"turns":{"type":"integer","title":"Turns"},"input_tokens":{"type":"integer","title":"Input Tokens"},"output_tokens":{"type":"integer","title":"Output Tokens"},"cost_by_channel":{"additionalProperties":{"type":"number"},"type":"object","title":"Cost By Channel"},"last_used_at":{"type":"string","format":"date-time","title":"Last Used At"}},"type":"object","required":["org_id","org_name","est_cost_usd","turns","input_tokens","output_tokens","cost_by_channel","last_used_at"],"title":"OrgUsage"},"OrgUserOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"email":{"type":"string","title":"Email"},"name":{"type":"string","title":"Name"},"role":{"type":"string","title":"Role"},"is_staff":{"type":"boolean","title":"Is Staff"},"additional":{"type":"boolean","title":"Additional","default":false},"disabled_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Disabled At"},"last_login_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Login At"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","email","name","role","is_staff","created_at"],"title":"OrgUserOut"},"OutsideAccess":{"properties":{"user_id":{"type":"string","format":"uuid","title":"User Id"},"name":{"type":"string","title":"Name"},"email":{"type":"string","title":"Email"},"org_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Org Name"},"permission":{"type":"string","title":"Permission"},"role_label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Role Label"}},"type":"object","required":["user_id","name","email","org_name","permission","role_label"],"title":"OutsideAccess"},"OverlayResult":{"properties":{"overlay_jpeg_b64":{"type":"string","title":"Overlay Jpeg B64"},"image_w":{"type":"integer","title":"Image W"},"image_h":{"type":"integer","title":"Image H"},"regions":{"items":{"$ref":"#/components/schemas/Region"},"type":"array","title":"Regions"},"grounded_calls":{"type":"integer","title":"Grounded Calls"}},"type":"object","required":["overlay_jpeg_b64","image_w","image_h","regions"],"title":"OverlayResult","description":"Detailed segmentation for the Tools-panel tester: a debug overlay image\n(colored masks + label + confidence on the captured frame) for stage 1, and\nper-region polygons for stage 2 (send to the viewer's area tool)."},"Page":{"properties":{"size":{"anyOf":[{"type":"string","maxLength":20},{"type":"null"}],"title":"Size"},"width_mm":{"anyOf":[{"type":"number","maximum":500.0,"minimum":100.0},{"type":"null"}],"title":"Width Mm"},"height_mm":{"anyOf":[{"type":"number","maximum":500.0,"minimum":100.0},{"type":"null"}],"title":"Height Mm"},"margins_mm":{"anyOf":[{"$ref":"#/components/schemas/Margins"},{"type":"null"}]}},"additionalProperties":false,"type":"object","title":"Page"},"PagedStreamOut":{"properties":{"kind":{"type":"string","title":"Kind"},"url":{"type":"string","title":"Url"},"filename":{"type":"string","title":"Filename"},"bytes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Bytes"},"file_id":{"type":"string","title":"File Id"},"source_file_id":{"type":"string","title":"Source File Id"},"source_splats":{"type":"integer","title":"Source Splats"},"leaf_splats":{"type":"integer","title":"Leaf Splats"}},"type":"object","required":["kind","url","filename","file_id","source_file_id","source_splats","leaf_splats"],"title":"PagedStreamOut"},"PanoramaOut":{"properties":{"available":{"type":"integer","title":"Available"},"started":{"type":"boolean","title":"Started"}},"type":"object","required":["available","started"],"title":"PanoramaOut"},"PanoramaSelectIn":{"properties":{"max_stations":{"anyOf":[{"type":"integer","maximum":1000.0,"minimum":1.0},{"type":"null"}],"title":"Max Stations"},"coverage_target":{"anyOf":[{"type":"number","maximum":1.0,"exclusiveMinimum":0.0},{"type":"null"}],"title":"Coverage Target"},"min_object_m":{"anyOf":[{"type":"number","maximum":5.0,"exclusiveMinimum":0.0},{"type":"null"}],"title":"Min Object M"},"min_object_px":{"anyOf":[{"type":"number","maximum":1000.0,"exclusiveMinimum":0.0},{"type":"null"}],"title":"Min Object Px"},"plain_weight":{"anyOf":[{"type":"number","maximum":1.0,"minimum":0.0},{"type":"null"}],"title":"Plain Weight"},"dry_run":{"type":"boolean","title":"Dry Run","default":false}},"type":"object","title":"PanoramaSelectIn"},"PanoramaSelectOut":{"properties":{"total":{"type":"integer","title":"Total"},"stations":{"type":"integer","title":"Stations"},"frames":{"type":"integer","title":"Frames"},"selected":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Selected"},"algo":{"type":"string","title":"Algo"},"persisted":{"type":"boolean","title":"Persisted"},"coverage_pct":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Coverage Pct"},"achievable_pct":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Achievable Pct"},"balance":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Balance"},"milestones":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"title":"Milestones"},"full_stations":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Full Stations"},"capped":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Capped"},"curve":{"anyOf":[{"items":{"type":"number"},"type":"array"},{"type":"null"}],"title":"Curve"},"range_m":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Range M"},"plain_pct":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Plain Pct"},"params":{"additionalProperties":true,"type":"object","title":"Params"}},"type":"object","required":["total","stations","frames","selected","algo","persisted","coverage_pct","achievable_pct","params"],"title":"PanoramaSelectOut"},"PartUrlsIn":{"properties":{"part_numbers":{"items":{"type":"integer"},"type":"array","maxItems":32,"minItems":1,"title":"Part Numbers"}},"type":"object","required":["part_numbers"],"title":"PartUrlsIn"},"PartUrlsOut":{"properties":{"urls":{"additionalProperties":{"type":"string"},"type":"object","title":"Urls"}},"type":"object","required":["urls"],"title":"PartUrlsOut"},"ParticipantIn":{"properties":{"email":{"type":"string","maxLength":320,"minLength":3,"title":"Email"},"role_key":{"type":"string","maxLength":40,"minLength":1,"title":"Role Key"},"permission":{"type":"string","pattern":"^(viewer|commenter|editor|owner)$","title":"Permission"}},"type":"object","required":["email","role_key","permission"],"title":"ParticipantIn"},"ParticipantOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"user_id":{"type":"string","format":"uuid","title":"User Id"},"email":{"type":"string","title":"Email"},"name":{"type":"string","title":"Name"},"role_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Role Key"},"role_label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Role Label"},"permission":{"type":"string","title":"Permission"},"org_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Org Name"},"is_host_org":{"type":"boolean","title":"Is Host Org"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","user_id","email","name","role_key","role_label","permission","org_name","is_host_org","created_at"],"title":"ParticipantOut"},"ParticipantPatch":{"properties":{"role_key":{"anyOf":[{"type":"string","maxLength":40,"minLength":1},{"type":"null"}],"title":"Role Key"},"permission":{"anyOf":[{"type":"string","pattern":"^(viewer|commenter|editor|owner)$"},{"type":"null"}],"title":"Permission"}},"type":"object","title":"ParticipantPatch"},"PartsOut":{"properties":{"parts":{"additionalProperties":{"type":"integer"},"type":"object","title":"Parts"}},"type":"object","required":["parts"],"title":"PartsOut"},"PartyIn":{"properties":{"email":{"type":"string","maxLength":320,"minLength":3,"title":"Email"},"role_key":{"type":"string","maxLength":40,"minLength":1,"title":"Role Key"},"permission":{"type":"string","pattern":"^(viewer|commenter|editor|owner)$","title":"Permission"}},"type":"object","required":["email","role_key","permission"],"title":"PartyIn"},"PartyOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"user_id":{"type":"string","format":"uuid","title":"User Id"},"name":{"type":"string","title":"Name"},"email":{"type":"string","title":"Email"},"org_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Org Name"},"is_host_org":{"type":"boolean","title":"Is Host Org"},"role_key":{"type":"string","title":"Role Key"},"role_label":{"type":"string","title":"Role Label"},"permission":{"type":"string","title":"Permission"}},"type":"object","required":["id","user_id","name","email","org_name","is_host_org","role_key","role_label","permission"],"title":"PartyOut"},"PatchAcknowledgement":{"properties":{"phase":{"type":"string","pattern":"^(delivered|applied|conflict)$","title":"Phase"},"revision":{"anyOf":[{"type":"string","pattern":"^[a-f0-9]{64}$"},{"type":"null"}],"title":"Revision"}},"type":"object","required":["phase"],"title":"PatchAcknowledgement"},"PatchIn":{"properties":{"title":{"anyOf":[{"type":"string","maxLength":200,"minLength":1},{"type":"null"}],"title":"Title"},"description":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Description"},"audience":{"anyOf":[{"type":"string","pattern":"^(everyone|listed)$"},{"type":"null"}],"title":"Audience"},"sort_order":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Sort Order"},"site_name":{"anyOf":[{"type":"string","maxLength":200,"minLength":1},{"type":"null"}],"title":"Site Name"},"scene_name":{"anyOf":[{"type":"string","maxLength":200,"minLength":1},{"type":"null"}],"title":"Scene Name"},"content_draft":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Content Draft"}},"type":"object","title":"PatchIn"},"PathBodySpec":{"properties":{"width_m":{"type":"number","maximum":100.0,"exclusiveMinimum":0.0,"title":"Width M","default":0.45},"depth_m":{"type":"number","maximum":100.0,"exclusiveMinimum":0.0,"title":"Depth M","default":0.3},"height_m":{"type":"number","maximum":100.0,"exclusiveMinimum":0.0,"title":"Height M","default":1.55},"side_clearance_m":{"type":"number","maximum":2.0,"minimum":0.0,"title":"Side Clearance M","default":0.0},"top_clearance_m":{"type":"number","maximum":2.0,"minimum":0.0,"title":"Top Clearance M","default":0.0},"shape":{"anyOf":[{"type":"string","enum":["box","cylinder"]},{"type":"null"}],"title":"Shape"}},"type":"object","title":"PathBodySpec","description":"The traveler (person / robot / cart) modelled as a box — or, with\n``shape`` \"cylinder\", a round body of diameter ``width_m`` — plus manoeuvre\nmargins; defaults are an average adult woman. The full oriented width/depth\nfootprint plus side margin is checked; vertical = height + top margin."},"PathPoint":{"properties":{"object":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Object"},"x_m":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"X M"},"z_m":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Z M"},"y_m":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Y M"}},"type":"object","title":"PathPoint"},"PathRequest":{"properties":{"start":{"$ref":"#/components/schemas/PathPoint"},"end":{"$ref":"#/components/schemas/PathPoint"},"via":{"items":{"$ref":"#/components/schemas/PathPoint"},"type":"array","maxItems":20,"title":"Via","default":[]},"body":{"$ref":"#/components/schemas/PathBodySpec","default":{"width_m":0.45,"depth_m":0.3,"height_m":1.55,"side_clearance_m":0.0,"top_clearance_m":0.0}},"profile":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Profile"},"avatar":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"title":"Avatar"},"speed_mps":{"anyOf":[{"type":"number","maximum":10.0,"minimum":0.05},{"type":"null"}],"title":"Speed Mps"},"body_object":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Body Object"},"clearance_m":{"anyOf":[{"type":"number","maximum":10.0,"minimum":0.0},{"type":"null"}],"title":"Clearance M"},"ignore":{"items":{"$ref":"#/components/schemas/IgnoreRef"},"type":"array","title":"Ignore","default":[]},"map_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Map Name"},"endpoint_leeway_m":{"anyOf":[{"type":"number","maximum":10.0,"exclusiveMinimum":0.0},{"type":"null"}],"title":"Endpoint Leeway M"},"debug":{"type":"boolean","title":"Debug","default":false},"avoid_zones":{"items":{"type":"string"},"type":"array","title":"Avoid Zones","default":[]},"step_free":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Step Free"},"max_gradient":{"anyOf":[{"type":"number","maximum":2.0,"minimum":0.0},{"type":"null"}],"title":"Max Gradient"}},"type":"object","required":["start","end"],"title":"PathRequest"},"PathResponse":{"properties":{"reachable":{"type":"boolean","title":"Reachable"},"waypoints_m":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Waypoints M"},"total_distance_m":{"type":"number","title":"Total Distance M"},"floor_y_m":{"type":"number","title":"Floor Y M"},"clearance_m":{"type":"number","title":"Clearance M"},"height_clearance_m":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Height Clearance M"},"body":{"additionalProperties":true,"type":"object","title":"Body","default":{}},"profile":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"},"avatar":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Avatar"},"speed_mps":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Speed Mps"},"start_m":{"additionalProperties":true,"type":"object","title":"Start M"},"end_m":{"additionalProperties":true,"type":"object","title":"End M"},"via_m":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Via M","default":[]},"viewer":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Viewer"},"legs":{"items":{"type":"integer"},"type":"array","title":"Legs","default":[]},"ignored":{"items":{},"type":"array","title":"Ignored"},"start_snapped":{"type":"boolean","title":"Start Snapped","default":false},"end_snapped":{"type":"boolean","title":"End Snapped","default":false},"end_resnapped":{"type":"boolean","title":"End Resnapped","default":false},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"},"failed_leg":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Failed Leg"},"recipe":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Recipe"},"endpoint_diagnostics":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Endpoint Diagnostics"},"endpoint_adjustments":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Endpoint Adjustments"},"floorplan":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Floorplan"},"rise_m":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Rise M"},"gradient":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Gradient"},"steps":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Steps"},"limits":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Limits"},"limited_by":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Limited By"},"layouts_applied":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Layouts Applied"},"objects_applied":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Objects Applied"},"zones_applied":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Zones Applied"},"zones_entered":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Zones Entered"},"lattice":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Lattice"},"debug":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Debug"},"cross_level":{"type":"boolean","title":"Cross Level","default":false},"floorplans":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Floorplans"},"route":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"title":"Route"},"est_time_s":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Est Time S"}},"type":"object","required":["reachable","waypoints_m","total_distance_m","floor_y_m","clearance_m","start_m","end_m","ignored"],"title":"PathResponse"},"PersonAccessOut":{"properties":{"user_id":{"type":"string","format":"uuid","title":"User Id"},"name":{"type":"string","title":"Name"},"org_role":{"type":"string","title":"Org Role"},"projects":{"items":{"$ref":"#/components/schemas/PersonProject"},"type":"array","title":"Projects"}},"type":"object","required":["user_id","name","org_role","projects"],"title":"PersonAccessOut"},"PersonProject":{"properties":{"project_id":{"type":"string","format":"uuid","title":"Project Id"},"project_name":{"type":"string","title":"Project Name"},"reports":{"items":{"$ref":"#/components/schemas/PersonReport"},"type":"array","title":"Reports"}},"type":"object","required":["project_id","project_name","reports"],"title":"PersonProject"},"PersonReport":{"properties":{"report_id":{"type":"string","format":"uuid","title":"Report Id"},"title":{"type":"string","title":"Title"},"status":{"type":"string","title":"Status"},"visibility":{"type":"string","title":"Visibility"},"default":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Default"},"override":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Override"},"effective":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Effective"},"locked":{"type":"boolean","title":"Locked"},"lock_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lock Reason"},"can_manage":{"type":"boolean","title":"Can Manage"}},"type":"object","required":["report_id","title","status","visibility","default","override","effective","locked","lock_reason","can_manage"],"title":"PersonReport"},"Placement":{"properties":{"video_ids":{"items":{"type":"string","format":"uuid"},"type":"array","title":"Video Ids"}},"type":"object","required":["video_ids"],"title":"Placement"},"PlanIn":{"properties":{"project_id":{"type":"string","format":"uuid","title":"Project Id"},"scene_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Scene Id"},"name":{"type":"string","maxLength":200,"minLength":1,"title":"Name"},"client_name":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Client Name"}},"type":"object","required":["project_id","name"],"title":"PlanIn"},"PlanPatch":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":200,"minLength":1},{"type":"null"}],"title":"Name"},"scene_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Scene Id"},"status":{"anyOf":[{"type":"string","pattern":"^(draft|proposed|agreed|live)$"},{"type":"null"}],"title":"Status"},"client_name":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Client Name"},"shift_hours":{"anyOf":[{"type":"number","maximum":24.0,"exclusiveMinimum":0.0},{"type":"null"}],"title":"Shift Hours"},"days_per_week":{"anyOf":[{"type":"number","maximum":7.0,"exclusiveMinimum":0.0},{"type":"null"}],"title":"Days Per Week"},"utilisation":{"anyOf":[{"type":"number","maximum":1.0,"exclusiveMinimum":0.0},{"type":"null"}],"title":"Utilisation"},"labour_rate":{"anyOf":[{"type":"number","minimum":0.0},{"type":"null"}],"title":"Labour Rate"},"currency":{"anyOf":[{"type":"string","maxLength":3,"minLength":3},{"type":"null"}],"title":"Currency"},"shift_window":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"title":"Shift Window"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"stations":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"title":"Stations"},"schedule":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Schedule"}},"type":"object","title":"PlanPatch"},"PlanSummary":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"project_id":{"type":"string","format":"uuid","title":"Project Id"},"project_name":{"type":"string","title":"Project Name"},"scene_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Scene Id"},"name":{"type":"string","title":"Name"},"version":{"type":"integer","title":"Version"},"status":{"type":"string","title":"Status"},"zones":{"type":"integer","title":"Zones"},"hours_per_week":{"type":"number","title":"Hours Per Week"},"fte":{"type":"number","title":"Fte"},"updated_at":{"type":"string","title":"Updated At"}},"type":"object","required":["id","project_id","project_name","scene_id","name","version","status","zones","hours_per_week","fte","updated_at"],"title":"PlanSummary"},"PlaygroundCardOut":{"properties":{"id":{"type":"string","title":"Id"},"title":{"type":"string","title":"Title"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"image_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Image Url"},"version":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Version"},"lessons":{"type":"integer","title":"Lessons"},"examples":{"type":"integer","title":"Examples"},"my_copy":{"anyOf":[{"$ref":"#/components/schemas/MyCopyOut"},{"type":"null"}]},"whats_new":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Whats New"}},"type":"object","required":["id","title","description","image_url","version","lessons","examples","my_copy","whats_new"],"title":"PlaygroundCardOut"},"PointPrompt":{"properties":{"u":{"type":"number","title":"U"},"v":{"type":"number","title":"V"},"label":{"type":"integer","title":"Label","default":1}},"type":"object","required":["u","v"],"title":"PointPrompt"},"PolicyMove":{"properties":{"policy_ids":{"items":{"type":"string","format":"uuid"},"type":"array","minItems":1,"title":"Policy Ids"},"folder_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Folder Id"}},"type":"object","required":["policy_ids"],"title":"PolicyMove"},"PolicyOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"filename":{"type":"string","title":"Filename"},"ext":{"type":"string","title":"Ext"},"size_bytes":{"type":"integer","title":"Size Bytes"},"chunk_count":{"type":"integer","title":"Chunk Count"},"doc_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Doc Type"},"summary":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Summary"},"has_parsed":{"type":"boolean","title":"Has Parsed","default":false},"status":{"type":"string","title":"Status","default":"ready"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"ocr_pages":{"type":"integer","title":"Ocr Pages","default":0},"folder_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Folder Id"},"folder":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Folder"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","name","filename","ext","size_bytes","chunk_count","created_at"],"title":"PolicyOut"},"PolicyPatch":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":300,"minLength":1},{"type":"null"}],"title":"Name"},"folder_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Folder Id"},"move":{"type":"boolean","title":"Move","default":false}},"type":"object","title":"PolicyPatch","description":"Rename and/or move. Both optional; `folder_id` null moves to unfiled,\nso absent-vs-null matters — hence the sentinel-free explicit flags."},"PolicySearch":{"properties":{"query":{"type":"string","minLength":1,"title":"Query"},"top_k":{"type":"integer","maximum":10.0,"minimum":1.0,"title":"Top K","default":5},"policy_ids":{"anyOf":[{"items":{"type":"string","format":"uuid"},"type":"array"},{"type":"null"}],"title":"Policy Ids"}},"type":"object","required":["query"],"title":"PolicySearch"},"PoseIn":{"properties":{"pos":{"$ref":"#/components/schemas/Vec3In"},"forward":{"$ref":"#/components/schemas/Vec3In"},"up":{"$ref":"#/components/schemas/Vec3In"},"fov":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Fov"}},"type":"object","required":["pos","forward","up"],"title":"PoseIn"},"PrepareOut":{"properties":{"job_id":{"type":"string","format":"uuid","title":"Job Id"},"total":{"type":"integer","title":"Total"}},"type":"object","required":["job_id","total"],"title":"PrepareOut"},"PreviewIn":{"properties":{"org_id":{"type":"string","format":"uuid","title":"Org Id"},"project_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Project Id"}},"type":"object","required":["org_id"],"title":"PreviewIn"},"PreviewOut":{"properties":{"bundle":{"additionalProperties":true,"type":"object","title":"Bundle"},"env":{"type":"string","title":"Env"},"org_id":{"type":"string","format":"uuid","title":"Org Id"},"org_name":{"type":"string","title":"Org Name"},"project_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Project Id"},"project_name":{"type":"string","title":"Project Name"},"target_scenes":{"items":{"$ref":"#/components/schemas/TargetSceneOut"},"type":"array","title":"Target Scenes"},"defaults":{"additionalProperties":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}]},"type":"object","title":"Defaults"},"matched_by":{"additionalProperties":{"type":"string"},"type":"object","title":"Matched By"},"warnings":{"items":{"type":"string"},"type":"array","title":"Warnings"},"confirm_text":{"type":"string","title":"Confirm Text"}},"type":"object","required":["bundle","env","org_id","org_name","project_id","project_name","target_scenes","defaults","matched_by","warnings","confirm_text"],"title":"PreviewOut"},"ProcessIn":{"properties":{"include_llm":{"type":"boolean","title":"Include Llm","default":true}},"type":"object","title":"ProcessIn"},"ProductionScene":{"properties":{"scene_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Scene Id"},"notify":{"type":"boolean","title":"Notify","default":true}},"type":"object","title":"ProductionScene"},"ProjectCreate":{"properties":{"name":{"type":"string","maxLength":200,"minLength":1,"title":"Name"}},"type":"object","required":["name"],"title":"ProjectCreate"},"ProjectOrgOut":{"properties":{"org_id":{"type":"string","format":"uuid","title":"Org Id"}},"type":"object","required":["org_id"],"title":"ProjectOrgOut"},"ProjectOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"last_accessed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Accessed At"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"icon_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Icon Url"},"production_scene_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Production Scene Id"}},"type":"object","required":["id","name","created_at","updated_at"],"title":"ProjectOut"},"ProjectUnitsOut":{"properties":{"project_id":{"type":"string","format":"uuid","title":"Project Id"},"units":{"$ref":"#/components/schemas/MeasurementUnits"},"can_edit":{"type":"boolean","title":"Can Edit"}},"type":"object","required":["project_id","units","can_edit"],"title":"ProjectUnitsOut"},"ProjectUpdate":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":200,"minLength":1},{"type":"null"}],"title":"Name"},"description":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Description"}},"type":"object","title":"ProjectUpdate"},"ProposeIn":{"properties":{"example_key":{"type":"string","title":"Example Key"}},"type":"object","required":["example_key"],"title":"ProposeIn"},"PublishIn":{"properties":{"notes":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Notes"},"scene":{"type":"boolean","title":"Scene","default":true},"content":{"type":"boolean","title":"Content","default":true}},"type":"object","title":"PublishIn"},"PublishOut":{"properties":{"version":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Version"},"version_created":{"type":"boolean","title":"Version Created"},"content_published":{"type":"boolean","title":"Content Published"},"health":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Health"}},"type":"object","required":["version","version_created","content_published","health"],"title":"PublishOut"},"QueryIn":{"properties":{"messages":{"items":{"$ref":"#/components/schemas/ChatTurn-Input"},"type":"array","minItems":1,"title":"Messages"},"report_creation_receipts":{"type":"boolean","title":"Report Creation Receipts","default":false},"task_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Task Id"},"resume_task":{"type":"boolean","title":"Resume Task","default":false},"chat_session_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Chat Session Id"},"current_view_image":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Current View Image"},"view_pose":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"View Pose"},"model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model"},"reasoning_model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reasoning Model"},"temperature":{"anyOf":[{"type":"number","maximum":2.0,"minimum":0.0},{"type":"null"}],"title":"Temperature"},"view_measurements":{"anyOf":[{"items":{"$ref":"#/components/schemas/ViewMeasurement"},"type":"array"},{"type":"null"}],"title":"View Measurements"},"active_selection":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Active Selection"},"focus_current_view":{"type":"boolean","title":"Focus Current View","default":false},"app":{"anyOf":[{"type":"string","maxLength":40,"pattern":"^[a-z][a-z0-9_]*$"},{"type":"null"}],"title":"App"},"camera_results":{"anyOf":[{"$ref":"#/components/schemas/CameraResults"},{"type":"null"}]}},"type":"object","required":["messages"],"title":"QueryIn"},"QueuedStepOut":{"properties":{"step":{"type":"string","title":"Step"},"label":{"type":"string","title":"Label"},"job_id":{"type":"string","title":"Job Id"},"state":{"type":"string","title":"State"},"waiting":{"type":"boolean","title":"Waiting"},"queued_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Queued At"},"started_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Started At"},"last_seen_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Seen At"},"summary":{"type":"string","title":"Summary"}},"type":"object","required":["step","label","job_id","state","waiting","summary"],"title":"QueuedStepOut"},"RateCardItem":{"properties":{"code":{"type":"string","maxLength":50,"minLength":1,"title":"Code"},"description":{"type":"string","maxLength":300,"minLength":1,"title":"Description"},"unit":{"type":"string","maxLength":20,"minLength":1,"title":"Unit"},"unit_price":{"type":"number","minimum":0.0,"title":"Unit Price"},"currency":{"type":"string","maxLength":3,"minLength":3,"title":"Currency","default":"GBP"}},"type":"object","required":["code","description","unit","unit_price"],"title":"RateCardItem"},"RateIn":{"properties":{"task_key":{"type":"string","maxLength":40,"minLength":1,"title":"Task Key"},"resource_kind":{"type":"string","maxLength":60,"minLength":1,"title":"Resource Kind"},"rate_m2_per_h":{"anyOf":[{"type":"number","exclusiveMinimum":0.0},{"type":"null"}],"title":"Rate M2 Per H"},"minutes_per_unit":{"anyOf":[{"type":"number","exclusiveMinimum":0.0},{"type":"null"}],"title":"Minutes Per Unit"},"setup_min":{"type":"number","minimum":0.0,"title":"Setup Min","default":0},"provenance":{"type":"string","pattern":"^(estimate|standard|vendor|measured|user)$","title":"Provenance","default":"user"},"source":{"anyOf":[{"type":"string","maxLength":300},{"type":"null"}],"title":"Source"}},"type":"object","required":["task_key","resource_kind"],"title":"RateIn"},"RateOut":{"properties":{"task_key":{"type":"string","maxLength":40,"minLength":1,"title":"Task Key"},"resource_kind":{"type":"string","maxLength":60,"minLength":1,"title":"Resource Kind"},"rate_m2_per_h":{"anyOf":[{"type":"number","exclusiveMinimum":0.0},{"type":"null"}],"title":"Rate M2 Per H"},"minutes_per_unit":{"anyOf":[{"type":"number","exclusiveMinimum":0.0},{"type":"null"}],"title":"Minutes Per Unit"},"setup_min":{"type":"number","minimum":0.0,"title":"Setup Min","default":0},"provenance":{"type":"string","pattern":"^(estimate|standard|vendor|measured|user)$","title":"Provenance","default":"user"},"source":{"anyOf":[{"type":"string","maxLength":300},{"type":"null"}],"title":"Source"},"id":{"type":"string","format":"uuid","title":"Id"}},"type":"object","required":["task_key","resource_kind","id"],"title":"RateOut"},"RecipientIn":{"properties":{"user_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"User Id"},"email":{"anyOf":[{"type":"string","maxLength":320,"minLength":3},{"type":"null"}],"title":"Email"},"role_key":{"type":"string","maxLength":40,"minLength":1,"title":"Role Key"},"permission":{"type":"string","pattern":"^(viewer|commenter|editor|owner)$","title":"Permission"},"join_as":{"type":"string","pattern":"^(guest|member)$","title":"Join As","default":"guest"}},"type":"object","required":["role_key","permission"],"title":"RecipientIn","description":"One person to send to: someone already on Plenex (``user_id``, from the\ndirectory or the report's participants) or an address (``email``) — which\nmay turn out to have an account, or not."},"RecipientResult":{"properties":{"email":{"type":"string","title":"Email"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"user_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"User Id"},"outcome":{"type":"string","title":"Outcome"},"detail":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Detail"},"emailed":{"type":"boolean","title":"Emailed","default":false},"invitation_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Invitation Id"},"accept_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Accept Url"}},"type":"object","required":["email","outcome"],"title":"RecipientResult"},"RecordIn":{"properties":{"kind":{"type":"string","pattern":"^(round|sweep|path)$","title":"Kind"},"name":{"type":"string","maxLength":200,"minLength":1,"title":"Name"},"recipe":{"additionalProperties":true,"type":"object","title":"Recipe"},"result":{"additionalProperties":true,"type":"object","title":"Result"},"saved_path_id":{"type":"string","format":"uuid","title":"Saved Path Id"},"origin":{"type":"string","pattern":"^(chat|path_tab|card|matrix)$","title":"Origin","default":"chat"},"resource_kind":{"anyOf":[{"type":"string","maxLength":80},{"type":"null"}],"title":"Resource Kind"},"zone_spec_ids":{"items":{"type":"string","format":"uuid"},"type":"array","title":"Zone Spec Ids"}},"type":"object","required":["kind","name","recipe","saved_path_id"],"title":"RecordIn","description":"A trial from the viewer (chat, Path tab) recorded as a run: the recipe\nthe planner echoed, its metrics and the saved path the route became."},"RecordStartIn":{"properties":{"title":{"type":"string","maxLength":200,"minLength":1,"title":"Title"},"session_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Session Id"}},"type":"object","required":["title"],"title":"RecordStartIn"},"Region":{"properties":{"label":{"type":"string","title":"Label"},"score":{"type":"number","title":"Score"},"polygon_norm":{"items":{"additionalProperties":{"type":"number"},"type":"object"},"type":"array","title":"Polygon Norm"},"rings_norm":{"items":{"items":{"additionalProperties":{"type":"number"},"type":"object"},"type":"array"},"type":"array","title":"Rings Norm"},"grounded":{"type":"boolean","title":"Grounded"}},"type":"object","required":["label","score","polygon_norm"],"title":"Region","description":"One detected region (the Tools-panel/overlay path). polygon_norm is the\n[{u,v}] form the viewer command + measureAreaFromPixels consume directly —\na SINGLE ring (the mask's largest outer contour), because those consumers\nneed one draggable polygon.\n\nrings_norm, when present, is the FULL mask geometry: every outer contour\nAND hole ring, interpreted even-odd. The surface lift must use it — a mask\nsplit by an occluder (a railing crossing a wall) has several disjoint\nblobs, and polygon_norm alone silently drops all but the largest."},"RegionCreate":{"properties":{"kind":{"type":"string","pattern":"^(area|distance)$","title":"Kind"},"name":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Name"},"value_units":{"type":"number","minimum":0.0,"title":"Value Units"},"surface_units":{"anyOf":[{"type":"number","minimum":0.0},{"type":"null"}],"title":"Surface Units"},"points_3d":{"items":{"$ref":"#/components/schemas/Vec3In"},"type":"array","minItems":2,"title":"Points 3D"},"polygon_norm":{"items":{"$ref":"#/components/schemas/UVIn"},"type":"array","minItems":2,"title":"Polygon Norm"},"current_view_image":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Current View Image"}},"type":"object","required":["kind","value_units","points_3d","polygon_norm"],"title":"RegionCreate","description":"A measured region/segment drawn in the viewer, saved as a registry object.\npoints_3d are scene units; polygon_norm is the same ring in normalised [0,1]\nimage coords (for cropping the captured frame)."},"RegionIn":{"properties":{"x":{"type":"number","maximum":1.0,"minimum":0.0,"title":"X"},"y":{"type":"number","maximum":1.0,"minimum":0.0,"title":"Y"},"w":{"type":"number","maximum":1.0,"exclusiveMinimum":0.0,"title":"W"},"h":{"type":"number","maximum":1.0,"exclusiveMinimum":0.0,"title":"H"}},"type":"object","required":["x","y","w","h"],"title":"RegionIn","description":"A normalised image box (top-left origin)."},"ReportAccessOut":{"properties":{"visibility":{"type":"string","title":"Visibility"},"can_manage":{"type":"boolean","title":"Can Manage"},"members":{"items":{"$ref":"#/components/schemas/MemberAccess"},"type":"array","title":"Members"},"outside":{"items":{"$ref":"#/components/schemas/OutsideAccess"},"type":"array","title":"Outside"}},"type":"object","required":["visibility","can_manage","members","outside"],"title":"ReportAccessOut"},"ReportActivityOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"kind":{"type":"string","title":"Kind"},"report_version":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Report Version"},"duration_ms":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Duration Ms"},"model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model"},"reasoning_model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reasoning Model"},"details":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Details"},"started_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Started At"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"actor_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Actor Email"}},"type":"object","required":["id","kind","report_version","duration_ms","model","reasoning_model","details","started_at","created_at"],"title":"ReportActivityOut"},"ReportCreate":{"properties":{"title":{"type":"string","maxLength":300,"minLength":1,"title":"Title"},"scenario":{"type":"string","maxLength":50,"minLength":1,"title":"Scenario"},"scene_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Scene Id"},"operation_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Operation Id"}},"type":"object","required":["title","scenario"],"title":"ReportCreate"},"ReportInviteOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"email":{"type":"string","title":"Email"},"role_key":{"type":"string","title":"Role Key"},"role_label":{"type":"string","title":"Role Label"},"permission":{"type":"string","title":"Permission"},"join_as":{"type":"string","title":"Join As"},"status":{"type":"string","title":"Status"},"expires_at":{"type":"string","format":"date-time","title":"Expires At"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"emailed":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Emailed"},"accept_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Accept Url"}},"type":"object","required":["id","email","role_key","role_label","permission","join_as","status","expires_at","created_at"],"title":"ReportInviteOut"},"ReportPatch":{"properties":{"title":{"anyOf":[{"type":"string","maxLength":300,"minLength":1},{"type":"null"}],"title":"Title"},"doc":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Doc"},"status":{"anyOf":[{"type":"string","maxLength":20,"minLength":1},{"type":"null"}],"title":"Status"},"visibility":{"anyOf":[{"type":"string","pattern":"^(private|org)$"},{"type":"null"}],"title":"Visibility"},"scene_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Scene Id"},"page_orientation":{"anyOf":[{"type":"string","pattern":"^(portrait|landscape)$"},{"type":"null"}],"title":"Page Orientation"},"theme":{"anyOf":[{"$ref":"#/components/schemas/Theme"},{"type":"null"}]},"base_version":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Base Version"},"applied_operation_ids":{"items":{"type":"string","format":"uuid"},"type":"array","maxItems":256,"title":"Applied Operation Ids"},"edit_started_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Edit Started At"},"edit_duration_ms":{"anyOf":[{"type":"integer","maximum":86400000.0,"minimum":0.0},{"type":"null"}],"title":"Edit Duration Ms"}},"type":"object","title":"ReportPatch"},"ReportQueryIn":{"properties":{"messages":{"items":{"$ref":"#/components/schemas/ChatTurn-Input"},"type":"array","minItems":1,"title":"Messages"},"review_entire_report":{"type":"boolean","title":"Review Entire Report","default":false},"report_creation_receipts":{"type":"boolean","title":"Report Creation Receipts","default":false},"task_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Task Id"},"resume_task":{"type":"boolean","title":"Resume Task","default":false},"chat_session_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Chat Session Id"},"scene_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Scene Id"},"current_view_image":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Current View Image"},"view_pose":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"View Pose"},"model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model"},"reasoning_model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reasoning Model"},"temperature":{"anyOf":[{"type":"number","maximum":2.0,"minimum":0.0},{"type":"null"}],"title":"Temperature"},"view_measurements":{"anyOf":[{"items":{"$ref":"#/components/schemas/ViewMeasurement"},"type":"array"},{"type":"null"}],"title":"View Measurements"},"active_selection":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Active Selection"},"capture_results":{"anyOf":[{"items":{"$ref":"#/components/schemas/CaptureResult"},"type":"array"},{"type":"null"}],"title":"Capture Results"},"measurement_results":{"anyOf":[{"items":{"$ref":"#/components/schemas/MeasurementResult"},"type":"array"},{"type":"null"}],"title":"Measurement Results"},"camera_results":{"anyOf":[{"$ref":"#/components/schemas/CameraResults"},{"type":"null"}]},"current_doc":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Current Doc"},"focus_current_view":{"type":"boolean","title":"Focus Current View","default":false},"report_selection":{"anyOf":[{"$ref":"#/components/schemas/ReportSelection"},{"type":"null"}]}},"type":"object","required":["messages"],"title":"ReportQueryIn"},"ReportSelection":{"properties":{"text":{"type":"string","title":"Text"},"heading_path":{"items":{"type":"string"},"type":"array","title":"Heading Path"},"section_title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Section Title"}},"type":"object","required":["text"],"title":"ReportSelection","description":"A passage the user highlighted in the open report and attached to this\nturn (\"Add to chat\") — verbatim text + its heading breadcrumb, the same\nnormalized-heading pointer update_section targets."},"ReportSourceOut":{"properties":{"report_id":{"type":"string","title":"Report Id"},"title":{"type":"string","title":"Title"},"scenario":{"type":"string","title":"Scenario"},"org_name":{"type":"string","title":"Org Name"},"project_name":{"type":"string","title":"Project Name"},"scene_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Scene Name"},"is_plenex":{"type":"boolean","title":"Is Plenex"}},"type":"object","required":["report_id","title","scenario","org_name","project_name","scene_name","is_plenex"],"title":"ReportSourceOut"},"ReportSummaryOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"project_id":{"type":"string","format":"uuid","title":"Project Id"},"scene_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Scene Id"},"title":{"type":"string","title":"Title"},"scenario":{"type":"string","title":"Scenario"},"status":{"type":"string","title":"Status"},"visibility":{"type":"string","title":"Visibility"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"updated_by_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Updated By Email"}},"type":"object","required":["id","project_id","scene_id","title","scenario","status","visibility","created_at","updated_at"],"title":"ReportSummaryOut","description":"List item — no doc payload."},"ResetIn":{"properties":{"fresh":{"type":"boolean","title":"Fresh","default":false}},"type":"object","title":"ResetIn"},"ResetOut":{"properties":{"entities":{"type":"integer","title":"Entities"},"maps":{"type":"integer","title":"Maps"},"reports":{"type":"integer","title":"Reports"},"chats_removed":{"type":"integer","title":"Chats Removed"},"version":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Version"},"viewer_command":{"additionalProperties":true,"type":"object","title":"Viewer Command"}},"type":"object","required":["entities","maps","reports","chats_removed","version","viewer_command"],"title":"ResetOut"},"ResolveIn":{"properties":{"resolved":{"type":"boolean","title":"Resolved","default":true}},"type":"object","title":"ResolveIn"},"ResourceIn":{"properties":{"kind":{"type":"string","pattern":"^(person|equipment|robot)$","title":"Kind"},"key":{"type":"string","maxLength":80,"minLength":1,"pattern":"^[a-z][a-z0-9_:\\-]*$","title":"Key"},"name":{"type":"string","maxLength":200,"minLength":1,"title":"Name"},"count":{"type":"integer","maximum":999.0,"minimum":0.0,"title":"Count","default":1},"cost":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Cost"},"spec":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Spec"},"avatar":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Avatar"},"archived":{"type":"boolean","title":"Archived","default":false}},"type":"object","required":["kind","key","name"],"title":"ResourceIn"},"ResourceOut":{"properties":{"kind":{"type":"string","pattern":"^(person|equipment|robot)$","title":"Kind"},"key":{"type":"string","maxLength":80,"minLength":1,"pattern":"^[a-z][a-z0-9_:\\-]*$","title":"Key"},"name":{"type":"string","maxLength":200,"minLength":1,"title":"Name"},"count":{"type":"integer","maximum":999.0,"minimum":0.0,"title":"Count","default":1},"cost":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Cost"},"spec":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Spec"},"avatar":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Avatar"},"archived":{"type":"boolean","title":"Archived","default":false},"id":{"type":"string","format":"uuid","title":"Id"},"catalog_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Catalog Id"},"profile_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile Name"}},"type":"object","required":["kind","key","name","id","catalog_id"],"title":"ResourceOut"},"ResponseIn":{"properties":{"anchor_kind":{"type":"string","pattern":"^(document|section|register_row)$","title":"Anchor Kind","default":"register_row"},"anchor_ref":{"type":"string","maxLength":300,"minLength":1,"title":"Anchor Ref"},"anchor_label":{"anyOf":[{"type":"string","maxLength":300},{"type":"null"}],"title":"Anchor Label"},"role_key":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"title":"Role Key"},"status":{"type":"string","maxLength":40,"minLength":1,"title":"Status"},"note":{"anyOf":[{"type":"string","maxLength":4000},{"type":"null"}],"title":"Note"},"target_date":{"anyOf":[{"type":"string","maxLength":10},{"type":"null"}],"title":"Target Date"},"evidence_file_ids":{"items":{"type":"string","format":"uuid"},"type":"array","maxItems":20,"title":"Evidence File Ids"}},"type":"object","required":["anchor_ref","status"],"title":"ResponseIn"},"ResponseOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"anchor_kind":{"type":"string","title":"Anchor Kind"},"anchor_ref":{"type":"string","title":"Anchor Ref"},"anchor_label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Anchor Label"},"role_key":{"type":"string","title":"Role Key"},"role_label":{"type":"string","title":"Role Label"},"status":{"type":"string","title":"Status"},"status_label":{"type":"string","title":"Status Label"},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note"},"target_date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Target Date"},"evidence_file_ids":{"items":{"type":"string","format":"uuid"},"type":"array","title":"Evidence File Ids"},"author_user_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Author User Id"},"author_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Author Name"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","anchor_kind","anchor_ref","anchor_label","role_key","role_label","status","status_label","note","target_date","evidence_file_ids","author_user_id","author_name","created_at","updated_at"],"title":"ResponseOut"},"RestoredOut":{"properties":{"report_id":{"type":"string","title":"Report Id"},"example_key":{"type":"string","title":"Example Key"}},"type":"object","required":["report_id","example_key"],"title":"RestoredOut"},"ReviewOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"round_id":{"type":"string","format":"uuid","title":"Round Id"},"mode":{"type":"string","title":"Mode"},"reviewer_id":{"type":"string","format":"uuid","title":"Reviewer Id"},"reviewer_name":{"type":"string","title":"Reviewer Name"},"requested_by":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Requested By"},"requested_by_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Requested By Name"},"report_version":{"type":"integer","title":"Report Version"},"due_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Due Date"},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note"},"status":{"type":"string","title":"Status"},"decision_note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Decision Note"},"statement":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Statement"},"decided_version":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Decided Version"},"decided_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Decided At"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","round_id","mode","reviewer_id","reviewer_name","requested_by","requested_by_name","report_version","due_date","note","status","decision_note","statement","decided_version","decided_at","created_at"],"title":"ReviewOut"},"ReviewRequestIn":{"properties":{"reviewer_ids":{"items":{"type":"string","format":"uuid"},"type":"array","maxItems":10,"minItems":1,"title":"Reviewer Ids"},"mode":{"type":"string","pattern":"^(any|all)$","title":"Mode","default":"any"},"due_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Due Date"},"note":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Note"}},"type":"object","required":["reviewer_ids"],"title":"ReviewRequestIn"},"RoleUpdate":{"properties":{"role":{"type":"string","title":"Role"}},"type":"object","required":["role"],"title":"RoleUpdate"},"RollbackIn":{"properties":{"version":{"type":"integer","title":"Version"}},"type":"object","required":["version"],"title":"RollbackIn"},"RoofCutIn":{"properties":{"enabled":{"type":"boolean","title":"Enabled","default":true},"height_m":{"type":"number","title":"Height M"},"auto":{"type":"boolean","title":"Auto","default":false},"below_m":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Below M"}},"type":"object","required":["height_m"],"title":"RoofCutIn"},"RoundIn":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Name"},"start_entity_id":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Start Entity Id"},"resource_kind":{"anyOf":[{"type":"string","maxLength":80},{"type":"null"}],"title":"Resource Kind"},"zone_spec_ids":{"anyOf":[{"items":{"type":"string","format":"uuid"},"type":"array"},{"type":"null"}],"title":"Zone Spec Ids"},"return_to_start":{"type":"boolean","title":"Return To Start","default":true}},"type":"object","title":"RoundIn"},"RouteFitRequest":{"properties":{"waypoints_m":{"items":{"additionalProperties":true,"type":"object"},"type":"array","maxItems":50000,"minItems":2,"title":"Waypoints M"},"floor_y_m":{"type":"number","title":"Floor Y M","default":0.0},"profile":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Profile"},"avatar":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"title":"Avatar"},"body":{"anyOf":[{"$ref":"#/components/schemas/PathBodySpec"},{"type":"null"}]},"recipe":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Recipe"}},"type":"object","required":["waypoints_m"],"title":"RouteFitRequest","description":"An already-planned route (canonical map metres, the show_path\npolyline) and the traveller to check it for: ``profile`` (+ ``body``\nfields on top), else the traveller ``avatar`` stands for."},"RouteFitResponse":{"properties":{"fits":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Fits"},"profile":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"},"avatar":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Avatar"},"body":{"additionalProperties":true,"type":"object","title":"Body","default":{}},"speed_mps":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Speed Mps"},"checked_m":{"type":"number","title":"Checked M","default":0.0},"blocked_m":{"type":"number","title":"Blocked M","default":0.0},"blocked":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Blocked","default":[]},"blocked_count":{"type":"integer","title":"Blocked Count","default":0},"complete":{"type":"boolean","title":"Complete","default":true},"floorplans":{"items":{"anyOf":[{"type":"string"},{"type":"null"}]},"type":"array","title":"Floorplans","default":[]},"message":{"type":"string","title":"Message","default":""}},"type":"object","required":["fits"],"title":"RouteFitResponse"},"RunIn":{"properties":{"stages":{"anyOf":[{"items":{"type":"string","enum":["frames","floorplans","captions","features","views360"]},"type":"array"},{"type":"null"}],"title":"Stages"},"mode":{"type":"string","enum":["viewer","server"],"title":"Mode","default":"server"},"reset":{"items":{"type":"string","enum":["frames","floorplans","captions","features","views360"]},"type":"array","title":"Reset"}},"type":"object","title":"RunIn"},"RunPatch":{"properties":{"stage":{"anyOf":[{"type":"string","enum":["frames","floorplans","captions","features","views360"]},{"type":"null"}],"title":"Stage"},"status":{"anyOf":[{"type":"string","enum":["queued","running","done","reused","failed","skipped","needs_viewer","cancelled"]},{"type":"null"}],"title":"Status"},"counts":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Counts"},"error":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Error"},"run_status":{"anyOf":[{"type":"string","enum":["queued","running","done","failed","cancelled"]},{"type":"null"}],"title":"Run Status"}},"type":"object","title":"RunPatch"},"SaveAsIn":{"properties":{"title":{"type":"string","maxLength":300,"minLength":1,"title":"Title"},"doc":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Doc"}},"type":"object","required":["title"],"title":"SaveAsIn"},"SaveStyleIn":{"properties":{"name":{"type":"string","maxLength":120,"minLength":1,"title":"Name"}},"type":"object","required":["name"],"title":"SaveStyleIn"},"SavedPathCreate":{"properties":{"name":{"type":"string","maxLength":200,"minLength":1,"title":"Name"},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note"},"waypoints_m":{"items":{"$ref":"#/components/schemas/Waypoint"},"type":"array","minItems":2,"title":"Waypoints M"},"floor_y_m":{"type":"number","title":"Floor Y M"},"total_distance_m":{"type":"number","minimum":0.0,"title":"Total Distance M"},"clearance_m":{"type":"number","maximum":10.0,"minimum":0.0,"title":"Clearance M","default":0.3},"start_m":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Start M"},"end_m":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"End M"},"params":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Params"}},"type":"object","required":["name","waypoints_m","floor_y_m","total_distance_m"],"title":"SavedPathCreate"},"SavedPathOut":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note"},"reachable":{"type":"boolean","title":"Reachable","default":true},"waypoints_m":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Waypoints M"},"floor_y_m":{"type":"number","title":"Floor Y M"},"total_distance_m":{"type":"number","title":"Total Distance M"},"clearance_m":{"type":"number","title":"Clearance M"},"start_m":{"additionalProperties":true,"type":"object","title":"Start M","default":{}},"end_m":{"additionalProperties":true,"type":"object","title":"End M","default":{}},"params":{"additionalProperties":true,"type":"object","title":"Params","default":{}},"video":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Video"}},"type":"object","required":["id","name","waypoints_m","floor_y_m","total_distance_m","clearance_m"],"title":"SavedPathOut"},"SavedPathPatch":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":200,"minLength":1},{"type":"null"}],"title":"Name"},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note"}},"type":"object","title":"SavedPathPatch"},"ScanSubmission":{"properties":{"file_ids":{"items":{"type":"string","format":"uuid"},"type":"array","maxItems":10000,"minItems":1,"title":"File Ids"}},"type":"object","required":["file_ids"],"title":"ScanSubmission"},"ScanUploadOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"filename":{"type":"string","title":"Filename"},"size_bytes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Size Bytes"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"submitted":{"type":"boolean","title":"Submitted"}},"type":"object","required":["id","filename","size_bytes","created_at","submitted"],"title":"ScanUploadOut"},"ScenarioIn":{"properties":{"name":{"type":"string","maxLength":200,"minLength":1,"title":"Name"},"assignments":{"additionalProperties":{"additionalProperties":{"type":"string"},"type":"object"},"type":"object","title":"Assignments"},"options":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Options"}},"type":"object","required":["name"],"title":"ScenarioIn"},"ScenarioOut":{"properties":{"name":{"type":"string","maxLength":200,"minLength":1,"title":"Name"},"assignments":{"additionalProperties":{"additionalProperties":{"type":"string"},"type":"object"},"type":"object","title":"Assignments"},"options":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Options"},"id":{"type":"string","format":"uuid","title":"Id"},"plan_id":{"type":"string","format":"uuid","title":"Plan Id"},"is_live":{"type":"boolean","title":"Is Live"},"results":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Results"},"updated_at":{"type":"string","title":"Updated At"}},"type":"object","required":["name","id","plan_id","is_live","results","updated_at"],"title":"ScenarioOut"},"SceneCaptureDatePatch":{"properties":{"date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Date"}},"type":"object","title":"SceneCaptureDatePatch"},"SceneCreate":{"properties":{"name":{"type":"string","maxLength":200,"minLength":1,"title":"Name"},"file_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"File Id"},"splat_file_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Splat File Id"},"pointcloud_file_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Pointcloud File Id"},"mesh_file_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Mesh File Id"},"camera_track_file_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Camera Track File Id"},"include_llm":{"type":"boolean","title":"Include Llm","default":true}},"type":"object","required":["name"],"title":"SceneCreate"},"SceneHomeCameraPatch":{"properties":{"home_camera":{"anyOf":[{"$ref":"#/components/schemas/HomeCameraIn"},{"type":"null"}]}},"type":"object","title":"SceneHomeCameraPatch"},"SceneNamePatch":{"properties":{"name":{"type":"string","maxLength":200,"minLength":1,"title":"Name"}},"type":"object","required":["name"],"title":"SceneNamePatch"},"SceneNorthPatch":{"properties":{"north_deg":{"anyOf":[{"type":"number","exclusiveMaximum":360.0,"minimum":0.0},{"type":"null"}],"title":"North Deg"}},"type":"object","title":"SceneNorthPatch"},"SceneObjectCreate":{"properties":{"name":{"type":"string","maxLength":200,"minLength":1,"title":"Name"},"center":{"$ref":"#/components/schemas/Vec3In"},"extent":{"$ref":"#/components/schemas/Vec3In"},"is_amorphous":{"type":"boolean","title":"Is Amorphous","default":false},"rotation_y":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Rotation Y"},"rotation_q":{"anyOf":[{"$ref":"#/components/schemas/engine__api__scenes__QuatIn__1"},{"type":"null"}]},"front_face_local":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Front Face Local"},"confidence":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Confidence"},"attrs":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Attrs"},"note":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Note"}},"type":"object","required":["name","center","extent"],"title":"SceneObjectCreate"},"SceneObjectOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"base_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Base Name"},"number":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Number"},"bbox_3d":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Bbox 3D"},"dimensions_semantic":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Dimensions Semantic"},"is_amorphous":{"type":"boolean","title":"Is Amorphous"},"volume_m3":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Volume M3"},"volume_method":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Volume Method"},"confidence":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Confidence"},"attrs":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Attrs"},"image_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Image Url"},"model_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model Url"},"points_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Points Url"},"hidden":{"type":"boolean","title":"Hidden","default":false},"overlaps":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Overlaps"}},"type":"object","required":["id","name","bbox_3d","dimensions_semantic","is_amorphous","volume_m3","volume_method"],"title":"SceneObjectOut"},"SceneObjectPatch":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":200,"minLength":1},{"type":"null"}],"title":"Name"},"is_amorphous":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Amorphous"},"center":{"anyOf":[{"$ref":"#/components/schemas/Vec3In"},{"type":"null"}]},"extent":{"anyOf":[{"$ref":"#/components/schemas/Vec3In"},{"type":"null"}]},"rotation_q":{"anyOf":[{"$ref":"#/components/schemas/engine__api__scenes__QuatIn__1"},{"type":"null"}]},"rotation_y":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Rotation Y"},"attrs":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Attrs"}},"type":"object","title":"SceneObjectPatch"},"SceneOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"project_id":{"type":"string","format":"uuid","title":"Project Id"},"name":{"type":"string","title":"Name"},"status":{"type":"string","title":"Status"},"kind":{"type":"string","title":"Kind","default":"splat"},"unit_scale":{"type":"number","title":"Unit Scale"},"source_frame":{"type":"string","title":"Source Frame","default":"y_up"},"north_deg":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"North Deg"},"captured_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Captured At"},"captured_at_source":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Captured At Source"},"capture_date_editable":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Capture Date Editable"},"up_lock":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Up Lock"},"home_camera":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Home Camera"},"roof_cut":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Roof Cut"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"splat_file_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Splat File Id"},"splat_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Splat Url"},"splat_filename":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Splat Filename"},"lod":{"anyOf":[{"items":{"$ref":"#/components/schemas/LodLevel"},"type":"array"},{"type":"null"}],"title":"Lod"},"stream":{"anyOf":[{"$ref":"#/components/schemas/StreamOut"},{"type":"null"}]},"paged_stream":{"anyOf":[{"$ref":"#/components/schemas/PagedStreamOut"},{"type":"null"}]},"stream_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Stream Status"},"pointcloud_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pointcloud Url"},"pointcloud_filename":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pointcloud Filename"},"meshes":{"items":{"$ref":"#/components/schemas/MeshOut"},"type":"array","title":"Meshes","default":[]},"mesh_bundle_file_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Mesh Bundle File Id"},"mesh_bundle_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Mesh Bundle Status"},"mesh_gen_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Mesh Gen Status"},"mesh_gen_stats":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Mesh Gen Stats"},"queued_steps":{"anyOf":[{"items":{"$ref":"#/components/schemas/QueuedStepOut"},"type":"array"},{"type":"null"}],"title":"Queued Steps"},"objects_count":{"type":"integer","title":"Objects Count","default":0},"has_map":{"type":"boolean","title":"Has Map","default":false},"has_camera_track":{"type":"boolean","title":"Has Camera Track","default":false},"camera_track_filename":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Camera Track Filename"},"views360_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Views360 Count"}},"type":"object","required":["id","project_id","name","status","unit_scale","created_at"],"title":"SceneOut"},"SceneRoofCutPatch":{"properties":{"roof_cut":{"anyOf":[{"$ref":"#/components/schemas/RoofCutIn"},{"type":"null"}]}},"type":"object","title":"SceneRoofCutPatch"},"SceneSourceFramePatch":{"properties":{"source_frame":{"type":"string","pattern":"^(y_up|y_down|z_up)$","title":"Source Frame"}},"type":"object","required":["source_frame"],"title":"SceneSourceFramePatch"},"SceneUnitScalePatch":{"properties":{"unit_scale":{"type":"number","maximum":1000.0,"exclusiveMinimum":0.0,"title":"Unit Scale"}},"type":"object","required":["unit_scale"],"title":"SceneUnitScalePatch"},"SceneUpLockPatch":{"properties":{"up_lock":{"anyOf":[{"type":"string","pattern":"^(x|y|z)$"},{"type":"null"}],"title":"Up Lock"}},"type":"object","title":"SceneUpLockPatch"},"SegmentIn":{"properties":{"current_view_image":{"type":"string","minLength":1,"title":"Current View Image"},"prompts":{"items":{"type":"string"},"type":"array","minItems":1,"title":"Prompts"},"ground":{"items":{"type":"string"},"type":"array","maxItems":4,"title":"Ground"}},"type":"object","required":["current_view_image","prompts"],"title":"SegmentIn"},"SegmentPointsIn":{"properties":{"current_view_image":{"type":"string","minLength":1,"title":"Current View Image"},"points":{"items":{"$ref":"#/components/schemas/PointPrompt"},"type":"array","minItems":1,"title":"Points"},"prefer":{"type":"string","enum":["best","largest"],"title":"Prefer","default":"best"}},"type":"object","required":["current_view_image","points"],"title":"SegmentPointsIn"},"SendIn":{"properties":{"recipients":{"items":{"$ref":"#/components/schemas/RecipientIn"},"type":"array","maxItems":50,"minItems":1,"title":"Recipients"},"message":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Message"}},"type":"object","required":["recipients"],"title":"SendIn"},"SendOut":{"properties":{"correlation_id":{"type":"string","format":"uuid","title":"Correlation Id"},"results":{"items":{"$ref":"#/components/schemas/RecipientResult"},"type":"array","title":"Results"}},"type":"object","required":["correlation_id","results"],"title":"SendOut"},"ServerTimeline":{"properties":{"v":{"type":"integer","maximum":100.0,"minimum":1.0,"title":"V"},"total_ms":{"type":"integer","maximum":86400000.0,"minimum":0.0,"title":"Total Ms"},"prep_ms":{"type":"integer","maximum":86400000.0,"minimum":0.0,"title":"Prep Ms"},"first_text_ms":{"anyOf":[{"type":"integer","maximum":86400000.0,"minimum":0.0},{"type":"null"}],"title":"First Text Ms"},"model_ms":{"type":"integer","maximum":86400000.0,"minimum":0.0,"title":"Model Ms"},"model_calls":{"type":"integer","maximum":1000.0,"minimum":0.0,"title":"Model Calls"},"tool_ms":{"type":"integer","maximum":86400000.0,"minimum":0.0,"title":"Tool Ms"},"tool_calls":{"type":"integer","maximum":1000.0,"minimum":0.0,"title":"Tool Calls"},"steps":{"items":{"$ref":"#/components/schemas/ServerTimelineStep"},"type":"array","maxItems":300,"title":"Steps"},"fallback":{"anyOf":[{"type":"string","maxLength":80},{"type":"null"}],"title":"Fallback"}},"type":"object","required":["v","total_ms","prep_ms","model_ms","model_calls","tool_ms","tool_calls"],"title":"ServerTimeline","description":"One agent call as the server timed it (the `done` event's timeline,\nengine/api/chat_prep.TurnTimeline)."},"ServerTimelineStep":{"properties":{"k":{"type":"string","maxLength":10,"title":"K"},"name":{"type":"string","maxLength":80,"title":"Name","default":""},"at":{"type":"integer","maximum":86400000.0,"minimum":0.0,"title":"At"},"ms":{"type":"integer","maximum":86400000.0,"minimum":0.0,"title":"Ms"}},"type":"object","required":["k","at","ms"],"title":"ServerTimelineStep"},"SessionOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"pinned_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Pinned At"},"visibility":{"type":"string","title":"Visibility","default":"private"},"created_by":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Created By"},"author":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Author"},"is_mine":{"type":"boolean","title":"Is Mine","default":true},"can_manage":{"type":"boolean","title":"Can Manage","default":true},"can_post":{"type":"boolean","title":"Can Post","default":true}},"type":"object","required":["id","title","created_at","updated_at"],"title":"SessionOut"},"SessionUpdate":{"properties":{"title":{"anyOf":[{"type":"string","maxLength":120,"minLength":1},{"type":"null"}],"title":"Title"},"pinned":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Pinned"},"visibility":{"anyOf":[{"type":"string","pattern":"^(private|org)$"},{"type":"null"}],"title":"Visibility"}},"type":"object","title":"SessionUpdate","description":"Rename, pin and/or share a thread. All optional — an omitted field is\nleft as it is; ``title`` may not be blanked (the auto-title is the\nfallback). ``visibility`` \"org\" opens the thread to everyone who can reach\nthe scene, \"private\" pulls it back to its author."},"SetupConfig":{"properties":{"version":{"type":"integer","const":1,"title":"Version","default":1},"skip":{"items":{"type":"string","enum":["frames","floorplans","captions","features","views360"]},"type":"array","title":"Skip"},"opt_in":{"items":{"type":"string","enum":["frames","floorplans","captions","features","views360"]},"type":"array","title":"Opt In"},"frames":{"$ref":"#/components/schemas/FramesConfig"},"captions":{"$ref":"#/components/schemas/CaptionsConfig"},"detection":{"$ref":"#/components/schemas/DetectionConfig"},"floorplans":{"$ref":"#/components/schemas/FloorplansConfig"},"views360":{"$ref":"#/components/schemas/Views360Config"}},"additionalProperties":false,"type":"object","title":"SetupConfig"},"SetupEstimate":{"properties":{"caption_cost_per_frame_usd":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Caption Cost Per Frame Usd"},"seconds_per_frame":{"additionalProperties":{"type":"number"},"type":"object","title":"Seconds Per Frame"},"floorplans_s":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Floorplans S"}},"type":"object","title":"SetupEstimate"},"SetupOut":{"properties":{"config":{"$ref":"#/components/schemas/SetupConfig"},"last_run":{"anyOf":[{"$ref":"#/components/schemas/SetupRun"},{"type":"null"}]},"state":{"$ref":"#/components/schemas/SetupState"},"defaults":{"$ref":"#/components/schemas/SetupConfig"},"estimate":{"$ref":"#/components/schemas/SetupEstimate"},"default_stages":{"items":{"type":"string","enum":["frames","floorplans","captions","features","views360"]},"type":"array","title":"Default Stages"}},"type":"object","required":["config","last_run","state","defaults","estimate","default_stages"],"title":"SetupOut"},"SetupRun":{"properties":{"id":{"type":"string","title":"Id"},"mode":{"type":"string","enum":["viewer","server"],"title":"Mode"},"status":{"type":"string","enum":["queued","running","done","failed","cancelled"],"title":"Status","default":"queued"},"started_at":{"type":"string","format":"date-time","title":"Started At"},"finished_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Finished At"},"started_by":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Started By"},"cost_usd":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Cost Usd"},"stages":{"items":{"$ref":"#/components/schemas/StageRun"},"type":"array","title":"Stages"}},"type":"object","required":["id","mode","started_at","stages"],"title":"SetupRun"},"SetupState":{"properties":{"has_mesh":{"type":"boolean","title":"Has Mesh"},"has_camera_track":{"type":"boolean","title":"Has Camera Track"},"has_e57":{"type":"boolean","title":"Has E57"},"frames":{"$ref":"#/components/schemas/StageState"},"floorplans":{"$ref":"#/components/schemas/StageState"},"captions":{"$ref":"#/components/schemas/StageState"},"features":{"$ref":"#/components/schemas/StageState"},"views360":{"$ref":"#/components/schemas/StageState"},"targets":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Targets"}},"type":"object","required":["has_mesh","has_camera_track","has_e57","frames","floorplans","captions","features"],"title":"SetupState"},"SignIn":{"properties":{"role_key":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"title":"Role Key"}},"type":"object","title":"SignIn"},"SignoffOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"user_id":{"type":"string","format":"uuid","title":"User Id"},"name":{"type":"string","title":"Name"},"role_key":{"type":"string","title":"Role Key"},"role_label":{"type":"string","title":"Role Label"},"statement":{"type":"string","title":"Statement"},"version":{"type":"integer","title":"Version"},"signed_at":{"type":"string","format":"date-time","title":"Signed At"}},"type":"object","required":["id","user_id","name","role_key","role_label","statement","version","signed_at"],"title":"SignoffOut"},"SourceSceneOut":{"properties":{"scene_id":{"type":"string","title":"Scene Id"},"scene_name":{"type":"string","title":"Scene Name"},"project_id":{"type":"string","title":"Project Id"},"project_name":{"type":"string","title":"Project Name"},"org_id":{"type":"string","title":"Org Id"},"org_name":{"type":"string","title":"Org Name"},"is_plenex":{"type":"boolean","title":"Is Plenex"}},"type":"object","required":["scene_id","scene_name","project_id","project_name","org_id","org_name","is_plenex"],"title":"SourceSceneOut"},"SpecRow":{"properties":{"key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Key"},"label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Label"},"value":{"anyOf":[{"type":"number"},{"type":"string"},{"type":"null"}],"title":"Value"},"unit":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Unit"},"document":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Document"},"page":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Page"},"verified":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Verified"}},"type":"object","title":"SpecRow"},"StaffDocumentOut":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"filename":{"type":"string","title":"Filename"},"doc_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Doc Type"},"summary":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Summary"},"status":{"type":"string","title":"Status"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"},"send_whole":{"type":"boolean","title":"Send Whole","default":false},"picked":{"type":"boolean","title":"Picked"},"published":{"type":"boolean","title":"Published"}},"type":"object","required":["id","name","filename","doc_type","summary","status","error","created_at","picked","published"],"title":"StaffDocumentOut"},"StaffGrant":{"properties":{"email":{"type":"string","maxLength":320,"minLength":3,"title":"Email"}},"type":"object","required":["email"],"title":"StaffGrant"},"StaffPlaygroundOut":{"properties":{"id":{"type":"string","title":"Id"},"title":{"type":"string","title":"Title"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"image_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Image Url"},"audience":{"type":"string","title":"Audience"},"org_id":{"type":"string","title":"Org Id"},"project_id":{"type":"string","title":"Project Id"},"master_scene_id":{"type":"string","title":"Master Scene Id"},"published_version":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Published Version"},"draft_changed":{"type":"boolean","title":"Draft Changed"},"content_changed":{"type":"boolean","title":"Content Changed"},"content":{"additionalProperties":true,"type":"object","title":"Content"},"content_draft":{"additionalProperties":true,"type":"object","title":"Content Draft"},"content_published_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Content Published At"},"source":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Source"},"copies":{"type":"integer","title":"Copies"},"active_7d":{"type":"integer","title":"Active 7D"},"spend_30d_usd":{"type":"number","title":"Spend 30D Usd"},"grants":{"items":{"$ref":"#/components/schemas/engine__api__playgrounds__GrantOut"},"type":"array","title":"Grants"},"versions":{"items":{"$ref":"#/components/schemas/VersionOut"},"type":"array","title":"Versions"},"sort_order":{"type":"integer","title":"Sort Order"},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created At"},"site_name":{"type":"string","title":"Site Name"},"scene_name":{"type":"string","title":"Scene Name"},"source_refreshable":{"type":"boolean","title":"Source Refreshable"}},"type":"object","required":["id","title","description","image_url","audience","org_id","project_id","master_scene_id","published_version","draft_changed","content_changed","content","content_draft","content_published_at","source","copies","active_7d","spend_30d_usd","grants","versions","sort_order","created_at","site_name","scene_name","source_refreshable"],"title":"StaffPlaygroundOut"},"StaffProjectOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"deleted_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Deleted At"}},"type":"object","required":["id","name","created_at"],"title":"StaffProjectOut"},"StaffUserOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"email":{"type":"string","title":"Email"},"name":{"type":"string","title":"Name"},"org_id":{"type":"string","format":"uuid","title":"Org Id"},"org_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Org Name"},"role":{"type":"string","title":"Role"},"disabled_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Disabled At"},"last_login_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Login At"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","email","name","org_id","org_name","role","created_at"],"title":"StaffUserOut"},"StaffVideoOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"title":{"type":"string","title":"Title"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"status":{"type":"string","title":"Status"},"is_public":{"type":"boolean","title":"Is Public"},"sort_order":{"type":"integer","title":"Sort Order"},"size_bytes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Size Bytes"},"duration_s":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Duration S"},"width":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Width"},"height":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Height"},"poster_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Poster Url"},"org_ids":{"items":{"type":"string"},"type":"array","title":"Org Ids"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","title","description","status","is_public","sort_order","size_bytes","duration_s","width","height","poster_url","org_ids","created_at"],"title":"StaffVideoOut"},"StageRun":{"properties":{"key":{"type":"string","enum":["frames","floorplans","captions","features","views360"],"title":"Key"},"status":{"type":"string","enum":["queued","running","done","reused","failed","skipped","needs_viewer","cancelled"],"title":"Status","default":"queued"},"reset":{"type":"boolean","title":"Reset","default":false},"started_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Started At"},"finished_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Finished At"},"took_s":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Took S"},"counts":{"additionalProperties":true,"type":"object","title":"Counts"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"}},"type":"object","required":["key"],"title":"StageRun"},"StageState":{"properties":{"done":{"type":"boolean","title":"Done","default":false},"at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"At"},"counts":{"additionalProperties":true,"type":"object","title":"Counts"},"blocked":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Blocked"},"fresh":{"type":"boolean","title":"Fresh","default":false}},"type":"object","title":"StageState"},"StartIn":{"properties":{"budget_usd":{"anyOf":[{"type":"number","exclusiveMinimum":0.0},{"type":"null"}],"title":"Budget Usd"},"models":{"anyOf":[{"additionalProperties":{"type":"string"},"type":"object"},{"type":"null"}],"title":"Models"},"reset":{"type":"boolean","title":"Reset","default":false}},"additionalProperties":false,"type":"object","title":"StartIn"},"StateIn":{"properties":{"seen_intro":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Seen Intro"},"manual":{"anyOf":[{"additionalProperties":{"type":"boolean"},"type":"object"},{"type":"null"}],"title":"Manual"}},"type":"object","title":"StateIn"},"StreamOut":{"properties":{"kind":{"type":"string","title":"Kind"},"url":{"type":"string","title":"Url"},"filename":{"type":"string","title":"Filename"},"bytes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Bytes"}},"type":"object","required":["kind","url","filename"],"title":"StreamOut"},"SubjectIn":{"properties":{"subject_kind":{"type":"string","maxLength":40,"minLength":1,"title":"Subject Kind"},"subject_id":{"type":"string","format":"uuid","title":"Subject Id"}},"type":"object","required":["subject_kind","subject_id"],"title":"SubjectIn"},"SummarizeIn":{"properties":{"model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model"}},"type":"object","title":"SummarizeIn"},"SummaryOut":{"properties":{"summary":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Summary"}},"type":"object","required":["summary"],"title":"SummaryOut"},"SupportOut":{"properties":{"org_id":{"type":"string","title":"Org Id"},"project_id":{"type":"string","title":"Project Id"},"scene_id":{"type":"string","title":"Scene Id"}},"type":"object","required":["org_id","project_id","scene_id"],"title":"SupportOut"},"SweepIn":{"properties":{"zone_spec_id":{"type":"string","format":"uuid","title":"Zone Spec Id"},"profile":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Profile"},"resource_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Resource Id"},"task_key":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"title":"Task Key"}},"type":"object","required":["zone_spec_id"],"title":"SweepIn"},"Table":{"properties":{"header_fill":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Header Fill"},"header_text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Header Text"},"body_fill":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Body Fill"},"body_text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Body Text"},"border_color":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Border Color"},"borders":{"anyOf":[{"type":"string","enum":["grid","horizontal","none"]},{"type":"null"}],"title":"Borders"}},"additionalProperties":false,"type":"object","title":"Table"},"TargetSceneOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"edited_since_copy":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Edited Since Copy"},"last_copied_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Copied At"}},"type":"object","required":["id","name","edited_since_copy","last_copied_at"],"title":"TargetSceneOut"},"TaskLine":{"properties":{"task_key":{"type":"string","maxLength":40,"minLength":1,"title":"Task Key"},"per_week":{"type":"number","maximum":100.0,"minimum":0.0,"title":"Per Week"},"count":{"anyOf":[{"type":"number","minimum":0.0},{"type":"null"}],"title":"Count"},"resource_kind":{"anyOf":[{"type":"string","maxLength":60},{"type":"null"}],"title":"Resource Kind"},"standard":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"title":"Standard"}},"type":"object","required":["task_key","per_week"],"title":"TaskLine"},"TaskTypeIn":{"properties":{"key":{"type":"string","maxLength":40,"minLength":1,"pattern":"^[a-z][a-z0-9_]*$","title":"Key"},"name":{"type":"string","maxLength":120,"minLength":1,"title":"Name"},"unit":{"type":"string","pattern":"^(m2|room|item|bin|fixture)$","title":"Unit","default":"m2"},"default_per_week":{"type":"number","maximum":100.0,"minimum":0.0,"title":"Default Per Week","default":5},"standard":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"title":"Standard"},"sop_steps":{"items":{"type":"string"},"type":"array","title":"Sop Steps"},"ppe":{"items":{"type":"string"},"type":"array","title":"Ppe"},"chemicals":{"items":{"type":"string"},"type":"array","title":"Chemicals"},"safety_ref":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Safety Ref"},"sort_order":{"type":"integer","title":"Sort Order","default":0},"archived":{"type":"boolean","title":"Archived","default":false}},"type":"object","required":["key","name"],"title":"TaskTypeIn"},"TaskTypeOut":{"properties":{"key":{"type":"string","maxLength":40,"minLength":1,"pattern":"^[a-z][a-z0-9_]*$","title":"Key"},"name":{"type":"string","maxLength":120,"minLength":1,"title":"Name"},"unit":{"type":"string","pattern":"^(m2|room|item|bin|fixture)$","title":"Unit","default":"m2"},"default_per_week":{"type":"number","maximum":100.0,"minimum":0.0,"title":"Default Per Week","default":5},"standard":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"title":"Standard"},"sop_steps":{"items":{"type":"string"},"type":"array","title":"Sop Steps"},"ppe":{"items":{"type":"string"},"type":"array","title":"Ppe"},"chemicals":{"items":{"type":"string"},"type":"array","title":"Chemicals"},"safety_ref":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Safety Ref"},"sort_order":{"type":"integer","title":"Sort Order","default":0},"archived":{"type":"boolean","title":"Archived","default":false},"id":{"type":"string","format":"uuid","title":"Id"}},"type":"object","required":["key","name","id"],"title":"TaskTypeOut"},"TemplateCreate":{"properties":{"key":{"type":"string","maxLength":50,"minLength":1,"pattern":"^[a-z0-9_]+$","title":"Key"},"name":{"type":"string","maxLength":200,"minLength":1,"title":"Name"},"project_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Project Id"},"brief_md":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Brief Md"},"doc_skeleton":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Doc Skeleton"},"settings":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Settings"}},"type":"object","required":["key","name"],"title":"TemplateCreate"},"TemplateListItem":{"properties":{"id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Id"},"key":{"type":"string","title":"Key"},"name":{"type":"string","title":"Name"},"scope":{"type":"string","title":"Scope"},"has_brief":{"type":"boolean","title":"Has Brief"},"has_skeleton":{"type":"boolean","title":"Has Skeleton"},"has_docx_reference":{"type":"boolean","title":"Has Docx Reference","default":false}},"type":"object","required":["key","name","scope","has_brief","has_skeleton"],"title":"TemplateListItem"},"TemplatePatch":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":200,"minLength":1},{"type":"null"}],"title":"Name"},"brief_md":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Brief Md"},"doc_skeleton":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Doc Skeleton"},"settings":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Settings"}},"type":"object","title":"TemplatePatch"},"TemplateResolvedOut":{"properties":{"key":{"type":"string","title":"Key"},"name":{"type":"string","title":"Name"},"brief_md":{"type":"string","title":"Brief Md"},"doc_skeleton":{"additionalProperties":true,"type":"object","title":"Doc Skeleton"},"settings":{"additionalProperties":true,"type":"object","title":"Settings"},"template_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Template Id"},"sources":{"additionalProperties":true,"type":"object","title":"Sources","default":{}},"builtin_brief_md":{"type":"string","title":"Builtin Brief Md","default":""},"builtin_scenario_md":{"type":"string","title":"Builtin Scenario Md","default":""},"builtin_doc_skeleton":{"additionalProperties":true,"type":"object","title":"Builtin Doc Skeleton","default":{}}},"type":"object","required":["key","name","brief_md","doc_skeleton","settings","template_id"],"title":"TemplateResolvedOut"},"Theme":{"properties":{"version":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Version"},"appearance":{"anyOf":[{"type":"string","enum":["plenex","standard"]},{"type":"null"}],"title":"Appearance"},"fonts":{"anyOf":[{"$ref":"#/components/schemas/Fonts"},{"type":"null"}]},"colors":{"anyOf":[{"$ref":"#/components/schemas/Colors"},{"type":"null"}]},"table":{"anyOf":[{"$ref":"#/components/schemas/Table"},{"type":"null"}]},"base_size_pt":{"anyOf":[{"type":"number","maximum":24.0,"minimum":7.0},{"type":"null"}],"title":"Base Size Pt"},"headings":{"anyOf":[{"$ref":"#/components/schemas/Headings"},{"type":"null"}]},"page":{"anyOf":[{"$ref":"#/components/schemas/Page"},{"type":"null"}]},"footer_text":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Footer Text"},"cover_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Cover Enabled"},"company_name":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Company Name"},"company_address":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Company Address"},"logo_file_id":{"anyOf":[{"type":"string","pattern":"^([0-9a-fA-F-]{36})?$"},{"type":"null"}],"title":"Logo File Id"}},"additionalProperties":false,"type":"object","title":"Theme"},"TimelineStep":{"properties":{"k":{"type":"string","maxLength":20,"title":"K"},"at":{"type":"integer","maximum":86400000.0,"minimum":0.0,"title":"At"},"ms":{"type":"integer","maximum":86400000.0,"minimum":0.0,"title":"Ms"},"server":{"anyOf":[{"$ref":"#/components/schemas/ServerTimeline"},{"type":"null"}]}},"type":"object","required":["k","at","ms"],"title":"TimelineStep"},"ToolDeclaration":{"properties":{"name":{"type":"string","title":"Name"},"description":{"type":"string","title":"Description"},"parameters":{"additionalProperties":true,"type":"object","title":"Parameters"}},"type":"object","required":["name","description","parameters"],"title":"ToolDeclaration"},"ToolListOut":{"properties":{"tools":{"items":{"$ref":"#/components/schemas/ToolDeclaration"},"type":"array","title":"Tools"}},"type":"object","required":["tools"],"title":"ToolListOut"},"TransferRunOut":{"properties":{"id":{"type":"string","title":"Id"},"direction":{"type":"string","title":"Direction"},"bundle_id":{"type":"string","title":"Bundle Id"},"status":{"type":"string","title":"Status"},"detail":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Detail"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"}},"type":"object","required":["id","direction","bundle_id","status","detail","error"],"title":"TransferRunOut"},"TransitionIn":{"properties":{"to":{"type":"string","maxLength":20,"minLength":1,"title":"To"}},"type":"object","required":["to"],"title":"TransitionIn"},"TurnMetadata":{"properties":{"elapsed_ms":{"type":"integer","maximum":86400000.0,"minimum":0.0,"title":"Elapsed Ms"},"started_at":{"type":"string","format":"date-time","title":"Started At"},"completed_at":{"type":"string","format":"date-time","title":"Completed At"},"model":{"anyOf":[{"type":"string","maxLength":80},{"type":"null"}],"title":"Model"},"reasoning_model":{"anyOf":[{"type":"string","maxLength":80},{"type":"null"}],"title":"Reasoning Model"},"used_reasoning":{"type":"boolean","title":"Used Reasoning","default":false},"tool_call_count":{"type":"integer","maximum":10000.0,"minimum":0.0,"title":"Tool Call Count","default":0},"report_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Report Id"},"model_note":{"anyOf":[{"type":"string","maxLength":300},{"type":"null"}],"title":"Model Note"},"timeline":{"anyOf":[{"$ref":"#/components/schemas/FlowTimeline"},{"type":"null"}]}},"type":"object","required":["elapsed_ms","started_at","completed_at"],"title":"TurnMetadata","description":"Safe, bounded provenance shown under a completed assistant turn."},"UVIn":{"properties":{"u":{"type":"number","title":"U"},"v":{"type":"number","title":"V"}},"type":"object","required":["u","v"],"title":"UVIn"},"UiEventsIn":{"properties":{"events":{"items":{"additionalProperties":true,"type":"object"},"type":"array","maxItems":500,"title":"Events"}},"type":"object","required":["events"],"title":"UiEventsIn"},"UploadIn":{"properties":{"filename":{"type":"string","maxLength":500,"minLength":1,"title":"Filename"},"size_bytes":{"type":"integer","exclusiveMinimum":0.0,"title":"Size Bytes"},"name":{"anyOf":[{"type":"string","maxLength":300},{"type":"null"}],"title":"Name"},"folder_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Folder Id"}},"type":"object","required":["filename","size_bytes"],"title":"UploadIn"},"UsageOverview":{"properties":{"days":{"type":"integer","title":"Days"},"since":{"type":"string","format":"date-time","title":"Since"},"est_cost_usd":{"type":"number","title":"Est Cost Usd"},"turns":{"type":"integer","title":"Turns"},"orgs":{"items":{"$ref":"#/components/schemas/OrgUsage"},"type":"array","title":"Orgs"}},"type":"object","required":["days","since","est_cost_usd","turns","orgs"],"title":"UsageOverview"},"ValidateCandidatesIn":{"properties":{"top_k":{"type":"integer","maximum":10.0,"minimum":1.0,"title":"Top K","default":3}},"type":"object","title":"ValidateCandidatesIn"},"ValidateCandidatesOut":{"properties":{"checked":{"type":"integer","title":"Checked"},"supported":{"type":"integer","title":"Supported"},"unsupported":{"type":"integer","title":"Unsupported"},"unseen":{"type":"integer","title":"Unseen"},"frames":{"type":"integer","title":"Frames"}},"type":"object","required":["checked","supported","unsupported","unseen","frames"],"title":"ValidateCandidatesOut"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"},"Vec3":{"properties":{"x":{"type":"number","title":"X"},"y":{"type":"number","title":"Y"},"z":{"type":"number","title":"Z"}},"type":"object","required":["x","y","z"],"title":"Vec3"},"Vec3In":{"properties":{"x":{"type":"number","title":"X"},"y":{"type":"number","title":"Y"},"z":{"type":"number","title":"Z"}},"type":"object","required":["x","y","z"],"title":"Vec3In"},"VerifyIn":{"properties":{"verified":{"type":"boolean","title":"Verified"}},"type":"object","required":["verified"],"title":"VerifyIn"},"VersionOut":{"properties":{"version":{"type":"integer","title":"Version"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"counts":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Counts"},"published_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Published At"}},"type":"object","required":["version","notes","counts","published_at"],"title":"VersionOut"},"VideoCreate":{"properties":{"title":{"type":"string","maxLength":200,"minLength":1,"title":"Title"},"description":{"anyOf":[{"type":"string","maxLength":5000},{"type":"null"}],"title":"Description"},"content_type":{"type":"string","maxLength":100,"title":"Content Type","default":"video/mp4"},"size_bytes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Size Bytes"}},"type":"object","required":["title"],"title":"VideoCreate"},"VideoCreated":{"properties":{"video_id":{"type":"string","format":"uuid","title":"Video Id"},"upload_url":{"type":"string","title":"Upload Url"},"poster_upload_url":{"type":"string","title":"Poster Upload Url"}},"type":"object","required":["video_id","upload_url","poster_upload_url"],"title":"VideoCreated"},"VideoPatch":{"properties":{"title":{"anyOf":[{"type":"string","maxLength":200,"minLength":1},{"type":"null"}],"title":"Title"},"description":{"anyOf":[{"type":"string","maxLength":5000},{"type":"null"}],"title":"Description"},"is_public":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Public"},"sort_order":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Sort Order"}},"type":"object","title":"VideoPatch"},"VideoRegister":{"properties":{"duration_s":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Duration S"},"width":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Width"},"height":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Height"}},"type":"object","title":"VideoRegister","description":"Measured by the uploading browser — it has already decoded the file to\ndraw the poster, so these come free and double as the compatibility check."},"ViewMeasurement":{"properties":{"description":{"type":"string","title":"Description"},"area_units2":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Area Units2"},"bbox_units":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Bbox Units"},"method":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Method"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"}},"type":"object","required":["description"],"title":"ViewMeasurement","description":"A region the VIEWER measured for the previous turn, sent back so the agent\ncan state ANY dimension (area OR height/width/depth) — the selection isn't tied\nto area. Raw scene units; the server applies unit_scale here (squared for area),\nfor text only, never in the viewer. bbox_units holds the {dx, dy, dz} extents."},"Views360Config":{"properties":{"interval_m":{"type":"number","maximum":100.0,"exclusiveMinimum":0.0,"title":"Interval M","default":3.0},"selection":{"type":"string","enum":["spacing","coverage"],"title":"Selection","default":"spacing"},"coverage_target":{"anyOf":[{"type":"number","maximum":1.0,"exclusiveMinimum":0.0},{"type":"null"}],"title":"Coverage Target"},"min_object_m":{"type":"number","maximum":5.0,"exclusiveMinimum":0.0,"title":"Min Object M","default":0.3},"min_object_px":{"type":"number","maximum":1000.0,"exclusiveMinimum":0.0,"title":"Min Object Px","default":32},"face_px":{"type":"integer","maximum":4096.0,"minimum":256.0,"title":"Face Px","default":1536}},"additionalProperties":false,"type":"object","title":"Views360Config"},"VisibilityIn":{"properties":{"keys":{"items":{"type":"string"},"type":"array","maxItems":100,"minItems":1,"title":"Keys"},"visible":{"type":"boolean","title":"Visible"},"org_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Org Id"}},"type":"object","required":["keys","visible"],"title":"VisibilityIn"},"VocabularyIn":{"properties":{"prompt":{"type":"string","minLength":1,"title":"Prompt","default":"Below are the kinds of objects seen along a walkthrough of a 3D-scanned commercial building — one per line with other wordings and the number of frames each was seen in. Write the vocabulary for an open-vocabulary object detector (SAM 3) that will run on every frame.\nKEEP the building features and fixed equipment that matter for a commercial property insurance survey whenever the list supports them: doors, fire exits, fire extinguishers, sprinkler heads, fire hose reels, fire alarm call points, emergency lights, exit signs, escalators, lifts, staircases, electrical panels, HVAC units, storage racks, garage doors, skylights, structural columns, CCTV cameras, smoke detectors.\nDROP stock and consumables that appear in high volume (boxes, cartons, bicycles, bicycle parts, packaging, goods on pallets), people, lighting, surfaces and materials (floor, wall, ceiling, concrete), whole structures and areas that are not one object (mezzanine, loading dock, aisle, room, workshop), and vague words (equipment, item, object).\nWORDING: use the plain everyday noun a photo-captioning model would use, never a trade term — 'rack' not 'pallet racking', 'garage door' not 'roller shutter door', 'cabinet' not 'storage cabinet'. One term per concept: never list a general term together with its subtypes — 'garage door' OR 'door', not both; 'staircase' without 'handrail' or 'railing'.\nSkip anything seen in fewer than 3 frames unless it is a fire-safety or first-aid item.\nUse short generic class nouns of one to three words, lowercase, singular, most important first. Reply with ONLY a comma-separated list of at most 15 items — no numbering, no prose."},"model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model"},"rebuild_index":{"type":"boolean","title":"Rebuild Index","default":false}},"type":"object","title":"VocabularyIn"},"VocabularyOut":{"properties":{"items":{"items":{"type":"string"},"type":"array","title":"Items"},"prompt":{"type":"string","title":"Prompt"},"generated_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Generated At"},"index_objects":{"type":"integer","title":"Index Objects","default":0},"default_prompt":{"type":"string","title":"Default Prompt","default":"Below are the kinds of objects seen along a walkthrough of a 3D-scanned commercial building — one per line with other wordings and the number of frames each was seen in. Write the vocabulary for an open-vocabulary object detector (SAM 3) that will run on every frame.\nKEEP the building features and fixed equipment that matter for a commercial property insurance survey whenever the list supports them: doors, fire exits, fire extinguishers, sprinkler heads, fire hose reels, fire alarm call points, emergency lights, exit signs, escalators, lifts, staircases, electrical panels, HVAC units, storage racks, garage doors, skylights, structural columns, CCTV cameras, smoke detectors.\nDROP stock and consumables that appear in high volume (boxes, cartons, bicycles, bicycle parts, packaging, goods on pallets), people, lighting, surfaces and materials (floor, wall, ceiling, concrete), whole structures and areas that are not one object (mezzanine, loading dock, aisle, room, workshop), and vague words (equipment, item, object).\nWORDING: use the plain everyday noun a photo-captioning model would use, never a trade term — 'rack' not 'pallet racking', 'garage door' not 'roller shutter door', 'cabinet' not 'storage cabinet'. One term per concept: never list a general term together with its subtypes — 'garage door' OR 'door', not both; 'staircase' without 'handrail' or 'railing'.\nSkip anything seen in fewer than 3 frames unless it is a fire-safety or first-aid item.\nUse short generic class nouns of one to three words, lowercase, singular, most important first. Reply with ONLY a comma-separated list of at most 15 items — no numbering, no prose."}},"type":"object","required":["items","prompt"],"title":"VocabularyOut"},"WalkthroughInspectIn":{"properties":{"frames":{"items":{"$ref":"#/components/schemas/InspectFrame"},"type":"array","maxItems":40,"minItems":1,"title":"Frames"},"question":{"type":"string","title":"Question","default":"safety hazards and regulatory non-compliance"},"model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model"}},"type":"object","required":["frames"],"title":"WalkthroughInspectIn"},"WarmIn":{"properties":{"app":{"anyOf":[{"type":"string","maxLength":40,"pattern":"^[a-z][a-z0-9_]*$"},{"type":"null"}],"title":"App"}},"type":"object","title":"WarmIn","description":"What the viewer's next chat turn will carry that shapes its prompt: the\napp context (an app's tools and persona block join the prompt). Optional —\nan empty body warms the mesh and model list only for the core prompt."},"Waypoint":{"properties":{"x":{"type":"number","title":"X"},"z":{"type":"number","title":"Z"},"yaw_deg":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Yaw Deg"}},"type":"object","required":["x","z"],"title":"Waypoint"},"WorkloadOut":{"properties":{"hours_per_week":{"type":"number","title":"Hours Per Week"},"hours_per_day":{"type":"number","title":"Hours Per Day"},"fte":{"type":"number","title":"Fte"},"labour_cost_per_week":{"type":"number","title":"Labour Cost Per Week"},"missing_rates":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Missing Rates"}},"type":"object","required":["hours_per_week","hours_per_day","fte","labour_cost_per_week","missing_rates"],"title":"WorkloadOut"},"ZoneCreate":{"properties":{"name":{"type":"string","maxLength":200,"minLength":1,"title":"Name"},"outline_m":{"items":{"items":{"type":"number"},"type":"array"},"type":"array","maxItems":4000,"minItems":3,"title":"Outline M"},"map_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Map Id"},"floor_y_m":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Floor Y M"},"paths":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Paths"},"cables":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cables"},"band_m":{"anyOf":[{"items":{"type":"number"},"type":"array"},{"type":"null"}],"title":"Band M"}},"type":"object","required":["name","outline_m"],"title":"ZoneCreate"},"ZoneOut":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"floor_y_m":{"type":"number","title":"Floor Y M"},"outline_m":{"items":{"items":{"type":"number"},"type":"array"},"type":"array","title":"Outline M"},"rules":{"additionalProperties":{"type":"string"},"type":"object","title":"Rules","default":{}},"band_m":{"anyOf":[{"items":{"type":"number"},"type":"array"},{"type":"null"}],"title":"Band M"},"area_m2":{"type":"number","title":"Area M2"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"},"source":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source"},"floor_type":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Floor Type"}},"type":"object","required":["id","name","floor_y_m","outline_m","area_m2"],"title":"ZoneOut"},"ZonePatch":{"properties":{"outline_m":{"anyOf":[{"items":{"items":{"type":"number"},"type":"array"},"type":"array","maxItems":4000,"minItems":3},{"type":"null"}],"title":"Outline M"},"map_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Map Id"},"floor_y_m":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Floor Y M"},"paths":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Paths"},"cables":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cables"},"band_m":{"anyOf":[{"items":{"type":"number"},"type":"array"},{"type":"null"}],"title":"Band M"},"floor_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Floor Type"}},"type":"object","title":"ZonePatch"},"ZoneSpecIn":{"properties":{"id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Id"},"zone_entity_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Zone Entity Id"},"name":{"type":"string","maxLength":200,"minLength":1,"title":"Name"},"area_m2":{"type":"number","minimum":0.0,"title":"Area M2"},"space_type":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"title":"Space Type"},"floor_type":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"title":"Floor Type"},"traffic":{"anyOf":[{"type":"string","maxLength":20},{"type":"null"}],"title":"Traffic"},"access_window":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"title":"Access Window"},"travel_m":{"type":"number","minimum":0.0,"title":"Travel M","default":0},"tasks":{"items":{"$ref":"#/components/schemas/TaskLine"},"type":"array","title":"Tasks"}},"type":"object","required":["name","area_m2"],"title":"ZoneSpecIn"},"ZoneSpecOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"zone_entity_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Zone Entity Id"},"name":{"type":"string","maxLength":200,"minLength":1,"title":"Name"},"area_m2":{"type":"number","minimum":0.0,"title":"Area M2"},"space_type":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"title":"Space Type"},"floor_type":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"title":"Floor Type"},"traffic":{"anyOf":[{"type":"string","maxLength":20},{"type":"null"}],"title":"Traffic"},"access_window":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"title":"Access Window"},"travel_m":{"type":"number","minimum":0.0,"title":"Travel M","default":0},"tasks":{"items":{"$ref":"#/components/schemas/TaskLine"},"type":"array","title":"Tasks"},"hours_per_week":{"type":"number","title":"Hours Per Week","default":0.0},"lines":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Lines"}},"type":"object","required":["id","name","area_m2"],"title":"ZoneSpecOut"},"ZonesIn":{"properties":{"zones":{"items":{"$ref":"#/components/schemas/ZoneSpecIn"},"type":"array","title":"Zones"}},"type":"object","required":["zones"],"title":"ZonesIn"},"app__cleaning__router__DocumentOut":{"properties":{"report_id":{"type":"string","format":"uuid","title":"Report Id"},"title":{"type":"string","title":"Title"},"scenario":{"type":"string","title":"Scenario"}},"type":"object","required":["report_id","title","scenario"],"title":"DocumentOut"},"app__cleaning__router__ImportIn":{"properties":{"scene_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Scene Id"}},"type":"object","title":"ImportIn"},"app__cleaning__router__PlanOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"project_id":{"type":"string","format":"uuid","title":"Project Id"},"project_name":{"type":"string","title":"Project Name"},"scene_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Scene Id"},"scene_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Scene Name"},"name":{"type":"string","title":"Name"},"version":{"type":"integer","title":"Version"},"status":{"type":"string","title":"Status"},"client_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Client Name"},"shift_hours":{"type":"number","title":"Shift Hours"},"days_per_week":{"type":"number","title":"Days Per Week"},"utilisation":{"type":"number","title":"Utilisation"},"labour_rate":{"type":"number","title":"Labour Rate"},"currency":{"type":"string","title":"Currency"},"shift_window":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Shift Window"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"zones":{"items":{"$ref":"#/components/schemas/ZoneSpecOut"},"type":"array","title":"Zones"},"workload":{"$ref":"#/components/schemas/WorkloadOut"},"stations":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Stations"},"schedule":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Schedule"},"runs":{"items":{"$ref":"#/components/schemas/app__cleaning__router__RunOut"},"type":"array","title":"Runs"},"updated_at":{"type":"string","title":"Updated At"}},"type":"object","required":["id","project_id","project_name","scene_id","scene_name","name","version","status","client_name","shift_hours","days_per_week","utilisation","labour_rate","currency","shift_window","notes","zones","workload","stations","schedule","runs","updated_at"],"title":"PlanOut"},"app__cleaning__router__RunOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"kind":{"type":"string","title":"Kind"},"name":{"type":"string","title":"Name"},"resource_kind":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Resource Kind"},"zone_spec_ids":{"items":{"type":"string"},"type":"array","title":"Zone Spec Ids"},"start_entity_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Start Entity Id"},"saved_path_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Saved Path Id"},"result":{"additionalProperties":true,"type":"object","title":"Result"},"created_at":{"type":"string","title":"Created At"},"recipe":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Recipe"},"inputs_digest":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Inputs Digest"},"origin":{"type":"string","title":"Origin","default":"card"},"stale":{"type":"boolean","title":"Stale","default":false}},"type":"object","required":["id","kind","name","resource_kind","zone_spec_ids","start_entity_id","saved_path_id","result","created_at"],"title":"RunOut"},"app__insurance__claims__DocumentOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"report_id":{"type":"string","format":"uuid","title":"Report Id"},"kind":{"type":"string","title":"Kind"},"title":{"type":"string","title":"Title"},"status":{"type":"string","title":"Status"},"status_label":{"type":"string","title":"Status Label"},"scene_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Scene Id"},"signed_roles":{"items":{"type":"string"},"type":"array","title":"Signed Roles"},"open_threads":{"type":"integer","title":"Open Threads"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","report_id","kind","title","status","status_label","scene_id","signed_roles","open_threads","updated_at"],"title":"DocumentOut"},"engine__api__admin__GrantOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"staff_user_id":{"type":"string","format":"uuid","title":"Staff User Id"},"target_org_id":{"type":"string","format":"uuid","title":"Target Org Id"},"target_org_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Target Org Name"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"expires_at":{"type":"string","format":"date-time","title":"Expires At"},"ended_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Ended At"},"active":{"type":"boolean","title":"Active"}},"type":"object","required":["id","staff_user_id","target_org_id","target_org_name","reason","created_at","expires_at","ended_at","active"],"title":"GrantOut"},"engine__api__chat_history__ImageIn":{"properties":{"image":{"type":"string","minLength":1,"title":"Image"},"name":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Name"},"kind":{"type":"string","pattern":"^(sent|generated)$","title":"Kind","default":"generated"}},"type":"object","required":["image"],"title":"ImageIn","description":"An image to keep with the turn. ``kind`` says where it belongs in the\ntranscript: \"sent\" renders under the user's bubble (the 📷 snapshot that\nwent with the question), \"generated\" under the assistant's."},"engine__api__chat_history__ImageOut":{"properties":{"file_id":{"type":"string","format":"uuid","title":"File Id"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"kind":{"type":"string","title":"Kind","default":"generated"},"url":{"type":"string","title":"Url"}},"type":"object","required":["file_id","url"],"title":"ImageOut"},"engine__api__document_tools__InspectIn":{"properties":{"page":{"type":"integer","minimum":1.0,"title":"Page","default":1},"query":{"type":"string","maxLength":2000,"title":"Query","default":""}},"type":"object","title":"InspectIn"},"engine__api__entities__ClaimIn":{"properties":{"subject":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Subject"},"attribute":{"anyOf":[{"type":"string","maxLength":80},{"type":"null"}],"title":"Attribute"},"value":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Value"}},"type":"object","title":"ClaimIn"},"engine__api__entitlements__PlanOut":{"properties":{"code":{"type":"string","title":"Code"},"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"apps":{"additionalProperties":{"items":{"type":"string"},"type":"array"},"type":"object","title":"Apps"},"core_visible":{"type":"boolean","title":"Core Visible"},"limits":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Limits"},"sort_order":{"type":"integer","title":"Sort Order"}},"type":"object","required":["code","name","description","apps","core_visible","limits","sort_order"],"title":"PlanOut"},"engine__api__env_copy__ImportIn":{"properties":{"org_id":{"type":"string","format":"uuid","title":"Org Id"},"project_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Project Id"},"mapping":{"additionalProperties":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}]},"type":"object","title":"Mapping"},"confirm":{"type":"string","title":"Confirm","default":""}},"type":"object","required":["org_id","mapping"],"title":"ImportIn"},"engine__api__env_copy__RunOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"direction":{"type":"string","title":"Direction"},"bundle_id":{"type":"string","title":"Bundle Id"},"status":{"type":"string","title":"Status"},"org_id":{"type":"string","format":"uuid","title":"Org Id"},"org_name":{"type":"string","title":"Org Name"},"project_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Project Id"},"project_name":{"type":"string","title":"Project Name"},"requested_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Requested By"},"detail":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Detail"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","direction","bundle_id","status","org_id","org_name","project_id","project_name","requested_by","detail","error","created_at","updated_at"],"title":"RunOut"},"engine__api__org__OrgOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"}},"type":"object","required":["id","name"],"title":"OrgOut"},"engine__api__organisations__OrgOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"user_count":{"type":"integer","title":"User Count"},"removed_user_count":{"type":"integer","title":"Removed User Count"},"project_count":{"type":"integer","title":"Project Count"},"deleted_project_count":{"type":"integer","title":"Deleted Project Count"},"pending_invite_count":{"type":"integer","title":"Pending Invite Count"},"last_active_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Active At"}},"type":"object","required":["id","name","created_at","user_count","removed_user_count","project_count","deleted_project_count","pending_invite_count","last_active_at"],"title":"OrgOut"},"engine__api__password_claim__ClaimIn":{"properties":{"email":{"type":"string","maxLength":320,"minLength":3,"title":"Email"},"password":{"type":"string","maxLength":128,"minLength":8,"title":"Password"}},"type":"object","required":["email","password"],"title":"ClaimIn"},"engine__api__playgrounds__GrantOut":{"properties":{"id":{"type":"string","title":"Id"},"kind":{"type":"string","title":"Kind"},"org_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Org Id"},"org_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Org Name"},"user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User Id"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"invited":{"type":"boolean","title":"Invited","default":false}},"type":"object","required":["id","kind"],"title":"GrantOut"},"engine__api__scenes__QuatIn__1":{"properties":{"x":{"type":"number","title":"X"},"y":{"type":"number","title":"Y"},"z":{"type":"number","title":"Z"},"w":{"type":"number","title":"W"}},"type":"object","required":["x","y","z","w"],"title":"QuatIn"},"engine__api__scenes__QuatIn__2":{"properties":{"x":{"type":"number","title":"X"},"y":{"type":"number","title":"Y"},"z":{"type":"number","title":"Z"},"w":{"type":"number","title":"W"}},"type":"object","required":["x","y","z","w"],"title":"QuatIn","description":"Unit quaternion (canonical frame). For kind=\"box\": the box's full\norientation, local +Y = the base surface's normal — a box drawn on a wall\n(or in a scene whose content's up axis is Z) is NOT a yaw-only rotation."},"engine__api__splat_preparation__PrepareIn":{"properties":{"source_file_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Source File Id"}},"type":"object","title":"PrepareIn"},"engine__api__vlm_inspect__InspectIn":{"properties":{"targets":{"items":{"$ref":"#/components/schemas/InspectTarget"},"type":"array","maxItems":8,"minItems":1,"title":"Targets"},"question":{"type":"string","minLength":1,"title":"Question","default":"What do you see?"},"model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model"}},"type":"object","required":["targets"],"title":"InspectIn"},"services__policies__documents__DocumentOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"filename":{"type":"string","title":"Filename"},"ext":{"type":"string","title":"Ext"},"doc_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Doc Type"},"summary":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Summary"},"status":{"type":"string","title":"Status"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"chunk_count":{"type":"integer","title":"Chunk Count"},"ocr_pages":{"type":"integer","title":"Ocr Pages","default":0},"source_file_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Source File Id"},"has_parsed":{"type":"boolean","title":"Has Parsed"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","name","filename","ext","doc_type","summary","status","error","chunk_count","source_file_id","has_parsed","created_at"],"title":"DocumentOut"},"services__policies__documents__PrepareIn":{"properties":{"force":{"type":"boolean","title":"Force","default":false},"file_ids":{"anyOf":[{"items":{"type":"string","format":"uuid"},"type":"array"},{"type":"null"}],"title":"File Ids"}},"type":"object","title":"PrepareIn"},"services__policies__playground__DocumentOut":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"filename":{"type":"string","title":"Filename"},"doc_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Doc Type"},"summary":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Summary"},"status":{"type":"string","title":"Status"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"},"send_whole":{"type":"boolean","title":"Send Whole","default":false}},"type":"object","required":["id","name","filename","doc_type","summary","status","error","created_at"],"title":"DocumentOut"},"services__reports__playground__TemplateOut":{"properties":{"key":{"type":"string","title":"Key"},"name":{"type":"string","title":"Name"}},"type":"object","required":["key","name"],"title":"TemplateOut"},"services__reports__playground_history__ReportOut":{"properties":{"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"archived":{"type":"boolean","title":"Archived"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"},"scenario":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Scenario"},"example":{"type":"boolean","title":"Example"},"updated_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Updated At"},"markdown":{"type":"string","title":"Markdown"}},"type":"object","required":["title","archived","reason","scenario","example","updated_at","markdown"],"title":"ReportOut"},"services__reports__router__ImageIn":{"properties":{"image":{"type":"string","minLength":1,"title":"Image"},"name":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Name"},"pose":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Pose"}},"type":"object","required":["image"],"title":"ImageIn"},"services__reports__router__ImageOut":{"properties":{"file_id":{"type":"string","format":"uuid","title":"File Id"},"url":{"type":"string","title":"Url"}},"type":"object","required":["file_id","url"],"title":"ImageOut"},"services__reports__router__ReportOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"project_id":{"type":"string","format":"uuid","title":"Project Id"},"scene_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Scene Id"},"title":{"type":"string","title":"Title"},"scenario":{"type":"string","title":"Scenario"},"template_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Template Id"},"doc":{"additionalProperties":true,"type":"object","title":"Doc"},"version":{"type":"integer","title":"Version"},"status":{"type":"string","title":"Status"},"visibility":{"type":"string","title":"Visibility"},"page_orientation":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Page Orientation"},"theme":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Theme"},"style_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Style Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"updated_by_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Updated By Email"},"my_permission":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"My Permission"},"my_role_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"My Role Key"},"my_is_host_org":{"type":"boolean","title":"My Is Host Org","default":false},"supersedes_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Supersedes Id"}},"type":"object","required":["id","project_id","scene_id","title","scenario","template_id","doc","version","status","visibility","created_at","updated_at"],"title":"ReportOut"},"services__reports__templates__TemplateOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"key":{"type":"string","title":"Key"},"name":{"type":"string","title":"Name"},"project_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Project Id"},"brief_md":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Brief Md"},"doc_skeleton":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Doc Skeleton"},"settings":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Settings"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","key","name","project_id","brief_md","doc_skeleton","settings","created_at","updated_at"],"title":"TemplateOut"}}}}